blob: f4faa671324a4d2f13a8a4ae683695e085bffb8f [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003# Generated by GNU Autoconf 2.60 for llvm 2.5svn.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
Tanya Lattnercf067672008-01-17 05:57:22 +000012# Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017# Be Bourne compatible
John Criswell0c38eaf2003-09-10 15:17:25 +000018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000026 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
29DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000240# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000250fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000260# Be Bourne compatible
Reid Spencera773bd52006-08-04 18:18:08 +0000261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Reid Spencera773bd52006-08-04 18:18:08 +0000270fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
Reid Spencera773bd52006-08-04 18:18:08 +0000273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +0000528else
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000529 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +0000530fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattnerd53b4d32008-10-07 04:35:08 +0000718PACKAGE_VERSION='2.5svn'
719PACKAGE_STRING='llvm 2.5svn'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000726#if HAVE_SYS_TYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000727# include <sys/types.h>
728#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000729#if HAVE_SYS_STAT_H
John Criswell7a73b802003-06-30 21:59:07 +0000730# include <sys/stat.h>
731#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000732#if STDC_HEADERS
John Criswell7a73b802003-06-30 21:59:07 +0000733# include <stdlib.h>
734# include <stddef.h>
735#else
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000736# if HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +0000737# include <stdlib.h>
738# endif
739#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
John Criswell7a73b802003-06-30 21:59:07 +0000742# include <memory.h>
743# endif
744# include <string.h>
745#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000746#if HAVE_STRINGS_H
John Criswell7a73b802003-06-30 21:59:07 +0000747# include <strings.h>
748#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000749#if HAVE_INTTYPES_H
John Criswell7a73b802003-06-30 21:59:07 +0000750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000752#if HAVE_STDINT_H
Reid Spencera773bd52006-08-04 18:18:08 +0000753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000755#if HAVE_UNISTD_H
John Criswell7a73b802003-06-30 21:59:07 +0000756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
Duncan Sands67f1c492007-12-12 23:03:45 +0000816ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +0000817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
Jim Grosbach673612e2008-10-02 22:56:44 +0000830BUILD_CXX
Reid Spencera773bd52006-08-04 18:18:08 +0000831CVSBUILD
832ENABLE_OPTIMIZED
833DISABLE_ASSERTIONS
David Greenea696d242007-06-28 19:36:08 +0000834ENABLE_EXPENSIVE_CHECKS
835EXPENSIVE_CHECKS
Reid Spencer8b2e1412006-11-17 03:32:33 +0000836DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000837JIT
838TARGET_HAS_JIT
839ENABLE_DOXYGEN
840ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000841ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000842TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000843ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000844EXTRA_OPTIONS
845CXX
846CXXFLAGS
847ac_ct_CXX
848LEX
Torok Edwincc499a42008-10-22 09:56:27 +0000849LEXLIB
Gordon Henriksen40e7f192008-10-22 12:40:55 +0000850LEX_OUTPUT_ROOT
Reid Spencera773bd52006-08-04 18:18:08 +0000851FLEX
852YACC
853YFLAGS
854BISON
855NM
856ifGNUmake
857LN_S
858CMP
859CP
860DATE
861FIND
862MKDIR
863MV
864RANLIB
865RM
866SED
867TAR
868BINPWD
869GRAPHVIZ
870DOT
871GV
872DOTTY
873PERL
874HAVE_PERL
875INSTALL_PROGRAM
876INSTALL_SCRIPT
877INSTALL_DATA
878BZIP2
879DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000880GROFF
881GZIP
882POD2HTML
883POD2MAN
884RUNTEST
885TCLSH
886ZIP
Gordon Henriksen54c7e122007-09-18 12:27:13 +0000887OCAMLC
888OCAMLOPT
Gordon Henriksenc20f5b02007-09-20 16:48:18 +0000889OCAMLDEP
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +0000890OCAMLDOC
Torok Edwincc499a42008-10-22 09:56:27 +0000891GAS
Reid Spencera773bd52006-08-04 18:18:08 +0000892INSTALL_LTDL_TRUE
893INSTALL_LTDL_FALSE
894CONVENIENCE_LTDL_TRUE
895CONVENIENCE_LTDL_FALSE
896LIBADD_DL
897ECHO
898AR
899STRIP
900CXXCPP
901F77
902FFLAGS
903ac_ct_F77
904LIBTOOL
Reid Spencera773bd52006-08-04 18:18:08 +0000905LLVMGCC
906LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000907USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000908HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000909HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000910ALLOCA
911MMAP_FILE
912LLVMCC1
913LLVMCC1PLUS
914LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000915LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000916LLVMGCC_VERSION
917LLVMGCC_MAJVERS
Reid Spencer0d238182007-04-21 21:28:52 +0000918LLVMGCC_LANGS
Reid Spencera773bd52006-08-04 18:18:08 +0000919SHLIBEXT
920LLVM_PREFIX
921LLVM_BINDIR
922LLVM_LIBDIR
923LLVM_DATADIR
924LLVM_DOCSDIR
925LLVM_ETCDIR
926LLVM_INCLUDEDIR
927LLVM_INFODIR
928LLVM_MANDIR
929LLVM_CONFIGTIME
Gordon Henriksenc0efff82007-10-02 09:50:32 +0000930BINDINGS_TO_BUILD
931ALL_BINDINGS
Gordon Henriksenf0915682007-10-02 16:42:22 +0000932OCAML_LIBDIR
Daniel Dunbardcf114e2008-08-30 01:16:19 +0000933ENABLE_VISIBILITY_INLINES_HIDDEN
Reid Spencera773bd52006-08-04 18:18:08 +0000934LIBOBJS
935LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000936ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000937 ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943CPPFLAGS
944CPP
945CXX
946CXXFLAGS
947CCC
948YACC
949YFLAGS
950CXXCPP
951F77
952FFLAGS'
953ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000954projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000955projects/llvm-stacker
Anton Korobeynikov080d6872007-07-03 17:16:46 +0000956projects/llvm-test
Matthijs Kooijman5b80c662008-06-24 13:01:57 +0000957projects/test-suite
Reid Spencera773bd52006-08-04 18:18:08 +0000958projects/llvm-reopt
959projects/llvm-gcc
960projects/llvm-java
961projects/llvm-tv
962projects/llvm-poolalloc
Andrew Lenharth0af32252007-07-17 20:37:35 +0000963projects/poolalloc
Reid Spencera773bd52006-08-04 18:18:08 +0000964projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000965
966# Initialize some variables set by options.
967ac_init_help=
968ac_init_version=false
969# The variables have the same names as the options, with
970# dashes changed to underlines.
971cache_file=/dev/null
972exec_prefix=NONE
973no_create=
974no_recursion=
975prefix=NONE
976program_prefix=NONE
977program_suffix=NONE
978program_transform_name=s,x,x,
979silent=
980site=
981srcdir=
982verbose=
983x_includes=NONE
984x_libraries=NONE
985
986# Installation directory options.
987# These are left unexpanded so users can "make install exec_prefix=/foo"
988# and all the variables that are supposed to be based on exec_prefix
989# by default will actually change.
990# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000991# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000992bindir='${exec_prefix}/bin'
993sbindir='${exec_prefix}/sbin'
994libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000995datarootdir='${prefix}/share'
996datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000997sysconfdir='${prefix}/etc'
998sharedstatedir='${prefix}/com'
999localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +00001000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +00001002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +00001011
1012ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +00001013ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001014for ac_option
1015do
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001018 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001019 ac_prev=
1020 continue
1021 fi
1022
Reid Spencera773bd52006-08-04 18:18:08 +00001023 case $ac_option in
1024 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *) ac_optarg=yes ;;
1026 esac
John Criswell7a73b802003-06-30 21:59:07 +00001027
1028 # Accept the important Cygnus configure options, so we can diagnose typos.
1029
Reid Spencera773bd52006-08-04 18:18:08 +00001030 case $ac_dashdash$ac_option in
1031 --)
1032 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001033
1034 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1035 ac_prev=bindir ;;
1036 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1037 bindir=$ac_optarg ;;
1038
1039 -build | --build | --buil | --bui | --bu)
1040 ac_prev=build_alias ;;
1041 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1042 build_alias=$ac_optarg ;;
1043
1044 -cache-file | --cache-file | --cache-fil | --cache-fi \
1045 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1046 ac_prev=cache_file ;;
1047 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1048 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1049 cache_file=$ac_optarg ;;
1050
1051 --config-cache | -C)
1052 cache_file=config.cache ;;
1053
Reid Spencera773bd52006-08-04 18:18:08 +00001054 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001055 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001056 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001057 datadir=$ac_optarg ;;
1058
Reid Spencera773bd52006-08-04 18:18:08 +00001059 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1060 | --dataroo | --dataro | --datar)
1061 ac_prev=datarootdir ;;
1062 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1063 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1064 datarootdir=$ac_optarg ;;
1065
John Criswell7a73b802003-06-30 21:59:07 +00001066 -disable-* | --disable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001073 eval enable_$ac_feature=no ;;
1074
1075 -docdir | --docdir | --docdi | --doc | --do)
1076 ac_prev=docdir ;;
1077 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1078 docdir=$ac_optarg ;;
1079
1080 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1081 ac_prev=dvidir ;;
1082 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1083 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001084
1085 -enable-* | --enable-*)
1086 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1087 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001088 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001089 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1090 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001091 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001092 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001093
1094 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1095 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1096 | --exec | --exe | --ex)
1097 ac_prev=exec_prefix ;;
1098 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1099 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1100 | --exec=* | --exe=* | --ex=*)
1101 exec_prefix=$ac_optarg ;;
1102
1103 -gas | --gas | --ga | --g)
1104 # Obsolete; use --with-gas.
1105 with_gas=yes ;;
1106
1107 -help | --help | --hel | --he | -h)
1108 ac_init_help=long ;;
1109 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1110 ac_init_help=recursive ;;
1111 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1112 ac_init_help=short ;;
1113
1114 -host | --host | --hos | --ho)
1115 ac_prev=host_alias ;;
1116 -host=* | --host=* | --hos=* | --ho=*)
1117 host_alias=$ac_optarg ;;
1118
Reid Spencera773bd52006-08-04 18:18:08 +00001119 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1120 ac_prev=htmldir ;;
1121 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1122 | --ht=*)
1123 htmldir=$ac_optarg ;;
1124
John Criswell7a73b802003-06-30 21:59:07 +00001125 -includedir | --includedir | --includedi | --included | --include \
1126 | --includ | --inclu | --incl | --inc)
1127 ac_prev=includedir ;;
1128 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1129 | --includ=* | --inclu=* | --incl=* | --inc=*)
1130 includedir=$ac_optarg ;;
1131
1132 -infodir | --infodir | --infodi | --infod | --info | --inf)
1133 ac_prev=infodir ;;
1134 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1135 infodir=$ac_optarg ;;
1136
1137 -libdir | --libdir | --libdi | --libd)
1138 ac_prev=libdir ;;
1139 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1140 libdir=$ac_optarg ;;
1141
1142 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1143 | --libexe | --libex | --libe)
1144 ac_prev=libexecdir ;;
1145 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1146 | --libexe=* | --libex=* | --libe=*)
1147 libexecdir=$ac_optarg ;;
1148
Reid Spencera773bd52006-08-04 18:18:08 +00001149 -localedir | --localedir | --localedi | --localed | --locale)
1150 ac_prev=localedir ;;
1151 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1152 localedir=$ac_optarg ;;
1153
John Criswell7a73b802003-06-30 21:59:07 +00001154 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001155 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001156 ac_prev=localstatedir ;;
1157 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001158 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001159 localstatedir=$ac_optarg ;;
1160
1161 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1162 ac_prev=mandir ;;
1163 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1164 mandir=$ac_optarg ;;
1165
1166 -nfp | --nfp | --nf)
1167 # Obsolete; use --without-fp.
1168 with_fp=no ;;
1169
1170 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1171 | --no-cr | --no-c | -n)
1172 no_create=yes ;;
1173
1174 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1175 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1176 no_recursion=yes ;;
1177
1178 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1179 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1180 | --oldin | --oldi | --old | --ol | --o)
1181 ac_prev=oldincludedir ;;
1182 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1183 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1184 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1185 oldincludedir=$ac_optarg ;;
1186
1187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1188 ac_prev=prefix ;;
1189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1190 prefix=$ac_optarg ;;
1191
1192 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1193 | --program-pre | --program-pr | --program-p)
1194 ac_prev=program_prefix ;;
1195 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1196 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1197 program_prefix=$ac_optarg ;;
1198
1199 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1200 | --program-suf | --program-su | --program-s)
1201 ac_prev=program_suffix ;;
1202 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1203 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1204 program_suffix=$ac_optarg ;;
1205
1206 -program-transform-name | --program-transform-name \
1207 | --program-transform-nam | --program-transform-na \
1208 | --program-transform-n | --program-transform- \
1209 | --program-transform | --program-transfor \
1210 | --program-transfo | --program-transf \
1211 | --program-trans | --program-tran \
1212 | --progr-tra | --program-tr | --program-t)
1213 ac_prev=program_transform_name ;;
1214 -program-transform-name=* | --program-transform-name=* \
1215 | --program-transform-nam=* | --program-transform-na=* \
1216 | --program-transform-n=* | --program-transform-=* \
1217 | --program-transform=* | --program-transfor=* \
1218 | --program-transfo=* | --program-transf=* \
1219 | --program-trans=* | --program-tran=* \
1220 | --progr-tra=* | --program-tr=* | --program-t=*)
1221 program_transform_name=$ac_optarg ;;
1222
Reid Spencera773bd52006-08-04 18:18:08 +00001223 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1224 ac_prev=pdfdir ;;
1225 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1226 pdfdir=$ac_optarg ;;
1227
1228 -psdir | --psdir | --psdi | --psd | --ps)
1229 ac_prev=psdir ;;
1230 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1231 psdir=$ac_optarg ;;
1232
John Criswell7a73b802003-06-30 21:59:07 +00001233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1234 | -silent | --silent | --silen | --sile | --sil)
1235 silent=yes ;;
1236
1237 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1238 ac_prev=sbindir ;;
1239 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1240 | --sbi=* | --sb=*)
1241 sbindir=$ac_optarg ;;
1242
1243 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1244 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1245 | --sharedst | --shareds | --shared | --share | --shar \
1246 | --sha | --sh)
1247 ac_prev=sharedstatedir ;;
1248 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1249 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1250 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1251 | --sha=* | --sh=*)
1252 sharedstatedir=$ac_optarg ;;
1253
1254 -site | --site | --sit)
1255 ac_prev=site ;;
1256 -site=* | --site=* | --sit=*)
1257 site=$ac_optarg ;;
1258
1259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1260 ac_prev=srcdir ;;
1261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1262 srcdir=$ac_optarg ;;
1263
1264 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1265 | --syscon | --sysco | --sysc | --sys | --sy)
1266 ac_prev=sysconfdir ;;
1267 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1268 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1269 sysconfdir=$ac_optarg ;;
1270
1271 -target | --target | --targe | --targ | --tar | --ta | --t)
1272 ac_prev=target_alias ;;
1273 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1274 target_alias=$ac_optarg ;;
1275
1276 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1277 verbose=yes ;;
1278
1279 -version | --version | --versio | --versi | --vers | -V)
1280 ac_init_version=: ;;
1281
1282 -with-* | --with-*)
1283 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001285 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001286 { echo "$as_me: error: invalid package name: $ac_package" >&2
1287 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001288 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001289 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001290
1291 -without-* | --without-*)
1292 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 # Reject names that are not valid shell variable names.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001294 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
John Criswell7a73b802003-06-30 21:59:07 +00001295 { echo "$as_me: error: invalid package name: $ac_package" >&2
1296 { (exit 1); exit 1; }; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001297 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001298 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001299
1300 --x)
1301 # Obsolete; use --with-x.
1302 with_x=yes ;;
1303
1304 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1305 | --x-incl | --x-inc | --x-in | --x-i)
1306 ac_prev=x_includes ;;
1307 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1308 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1309 x_includes=$ac_optarg ;;
1310
1311 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1312 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1313 ac_prev=x_libraries ;;
1314 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1315 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1316 x_libraries=$ac_optarg ;;
1317
1318 -*) { echo "$as_me: error: unrecognized option: $ac_option
1319Try \`$0 --help' for more information." >&2
1320 { (exit 1); exit 1; }; }
1321 ;;
1322
1323 *=*)
1324 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1327 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1328 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001329 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001330 export $ac_envvar ;;
1331
1332 *)
1333 # FIXME: should be removed in autoconf 3.0.
1334 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1335 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1336 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1337 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1338 ;;
1339
1340 esac
1341done
1342
1343if test -n "$ac_prev"; then
1344 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1345 { echo "$as_me: error: missing argument to $ac_option" >&2
1346 { (exit 1); exit 1; }; }
1347fi
1348
Reid Spencera773bd52006-08-04 18:18:08 +00001349# Be sure to have absolute directory names.
1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001354do
Reid Spencera773bd52006-08-04 18:18:08 +00001355 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001356 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001359 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001360 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1361 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001362done
1363
1364# There might be people who depend on the old broken behavior: `$host'
1365# used to hold the argument of --host etc.
1366# FIXME: To remove some day.
1367build=$build_alias
1368host=$host_alias
1369target=$target_alias
1370
1371# FIXME: To remove some day.
1372if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used." >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380fi
1381
1382ac_tool_prefix=
1383test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385test "$silent" = yes && exec 6>/dev/null
1386
1387
Reid Spencera773bd52006-08-04 18:18:08 +00001388ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389ac_ls_di=`ls -di .` &&
1390ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 { echo "$as_me: error: Working directory cannot be determined" >&2
1392 { (exit 1); exit 1; }; }
1393test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 { echo "$as_me: error: pwd does not report name of working directory" >&2
1395 { (exit 1); exit 1; }; }
1396
1397
John Criswell7a73b802003-06-30 21:59:07 +00001398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001403$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001404 X"$0" : 'X\(//\)[^/]' \| \
1405 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001407echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001425 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001426 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001427 srcdir=..
1428 fi
1429else
1430 ac_srcdir_defaulted=no
1431fi
Reid Spencera773bd52006-08-04 18:18:08 +00001432if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001435 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001436fi
Reid Spencera773bd52006-08-04 18:18:08 +00001437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001440 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001441 pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
John Criswell7a73b802003-06-30 21:59:07 +00001458
1459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
1465 cat <<_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001466\`configure' configures llvm 2.5svn to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
1480 -q, --quiet, --silent do not print \`checking...' messages
1481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
John Criswell7a73b802003-06-30 21:59:07 +00001486Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001488 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001490 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
1500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001519_ACEOF
1520
1521 cat <<\_ACEOF
1522
1523System types:
1524 --build=BUILD configure for building on BUILD [guessed]
1525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526 --target=TARGET configure for building compilers for TARGET [HOST]
1527_ACEOF
1528fi
1529
1530if test -n "$ac_init_help"; then
1531 case $ac_init_help in
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001532 short | recursive ) echo "Configuration of llvm 2.5svn:";;
John Criswell7a73b802003-06-30 21:59:07 +00001533 esac
1534 cat <<\_ACEOF
1535
1536Optional Features:
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001539 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001540 --enable-assertions
David Greenea696d242007-06-28 19:36:08 +00001541 --enable-expensive-checks
1542
Reid Spencer8b2e1412006-11-17 03:32:33 +00001543 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001544 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001545 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001546 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001547 --enable-pic Build LLVM with Position Independent Code (default
1548 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001549 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001550 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001551 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1552 %a (default is YES)
Gordon Henriksenc0efff82007-10-02 09:50:32 +00001553 --enable-bindings Build specific language bindings:
1554 all,auto,none,{binding-name} (default=auto)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001555 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --enable-shared[=PKGS] build shared libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001557 [default=yes]
Reid Spencera773bd52006-08-04 18:18:08 +00001558 --enable-static[=PKGS] build static libraries
Tanya Lattner856585b2007-09-17 21:41:15 +00001559 [default=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001560 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001561 optimize for fast installation
Tanya Lattner856585b2007-09-17 21:41:15 +00001562 [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001563 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001568 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1569 searches PATH)
Devang Patel5d28b882007-12-04 22:54:47 +00001570 --with-llvmgcc Specify location of llvm-gcc driver (default
1571 searches PATH)
1572 --with-llvmgxx Specify location of llvm-g++ driver (default
1573 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001574 --with-extra-options Specify addtional options to compile LLVM with
Gordon Henriksenf0915682007-10-02 16:42:22 +00001575 --with-ocaml-libdir Specify install location for ocaml bindings (default
1576 is stdlib)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001577 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001581 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001582 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001583
1584Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001585 CC C compiler command
1586 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001589 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001591 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001592 CXX C++ compiler command
1593 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001594 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1595 the first program found out of: `bison -y', `byacc', `yacc'.
1596 YFLAGS The list of arguments that will be passed by default to $YACC.
1597 This script will default YFLAGS to the empty string to avoid a
1598 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001599 CXXCPP C++ preprocessor
1600 F77 Fortran 77 compiler command
1601 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603Use these variables to override the choices made by `configure' or to help
1604it to find libraries and programs with nonstandard names/locations.
1605
1606Report bugs to <llvmbugs@cs.uiuc.edu>.
1607_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001608ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001609fi
1610
1611if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001614 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_builddir=.
1616
Reid Spencera773bd52006-08-04 18:18:08 +00001617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
John Criswell7a73b802003-06-30 21:59:07 +00001620 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001621 # A ".." for each directory in $ac_dir_suffix.
1622 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001632
1633case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001634 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001635 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001639 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001646esac
Reid Spencera773bd52006-08-04 18:18:08 +00001647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001648
Reid Spencera773bd52006-08-04 18:18:08 +00001649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001657 else
1658 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001661 done
1662fi
1663
Reid Spencera773bd52006-08-04 18:18:08 +00001664test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001665if $ac_init_version; then
1666 cat <<\_ACEOF
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001667llvm configure 2.5svn
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001668generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001669
Reid Spencera773bd52006-08-04 18:18:08 +00001670Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001672This configure script is free software; the Free Software Foundation
1673gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001674
Tanya Lattnercf067672008-01-17 05:57:22 +00001675Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001677 exit
John Criswell7a73b802003-06-30 21:59:07 +00001678fi
Reid Spencera773bd52006-08-04 18:18:08 +00001679cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001680This file contains any messages produced by compilers while
1681running configure, to aid debugging if configure makes a mistake.
1682
Tanya Lattnerd53b4d32008-10-07 04:35:08 +00001683It was created by llvm $as_me 2.5svn, which was
Gordon Henriksen40e7f192008-10-22 12:40:55 +00001684generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001685
1686 $ $0 $@
1687
1688_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001689exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001690{
1691cat <<_ASUNAME
1692## --------- ##
1693## Platform. ##
1694## --------- ##
1695
1696hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1697uname -m = `(uname -m) 2>/dev/null || echo unknown`
1698uname -r = `(uname -r) 2>/dev/null || echo unknown`
1699uname -s = `(uname -s) 2>/dev/null || echo unknown`
1700uname -v = `(uname -v) 2>/dev/null || echo unknown`
1701
1702/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1703/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1704
1705/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1706/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1707/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001708/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001709/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1710/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1711/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1712
1713_ASUNAME
1714
1715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716for as_dir in $PATH
1717do
1718 IFS=$as_save_IFS
1719 test -z "$as_dir" && as_dir=.
1720 echo "PATH: $as_dir"
1721done
Reid Spencera773bd52006-08-04 18:18:08 +00001722IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001723
1724} >&5
1725
1726cat >&5 <<_ACEOF
1727
1728
1729## ----------- ##
1730## Core tests. ##
1731## ----------- ##
1732
1733_ACEOF
1734
1735
1736# Keep a trace of the command line.
1737# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001738# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001739# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001740# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001741ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001742ac_configure_args0=
1743ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001744ac_must_keep_next=false
1745for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001746do
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 for ac_arg
1748 do
1749 case $ac_arg in
1750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1752 | -silent | --silent | --silen | --sile | --sil)
1753 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001754 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001755 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 esac
1757 case $ac_pass in
1758 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1759 2)
1760 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1761 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001762 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001763 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001764 case $ac_arg in
1765 *=* | --config-cache | -C | -disable-* | --disable-* \
1766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1768 | -with-* | --with-* | -without-* | --without-* | --x)
1769 case "$ac_configure_args0 " in
1770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1771 esac
1772 ;;
1773 -* ) ac_must_keep_next=true ;;
1774 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001775 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001776 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001777 ;;
1778 esac
1779 done
John Criswell7a73b802003-06-30 21:59:07 +00001780done
John Criswell0c38eaf2003-09-10 15:17:25 +00001781$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1782$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001783
1784# When interrupted or exit'd, cleanup temporary files, and complete
1785# config.log. We remove comments because anyway the quotes in there
1786# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001787# WARNING: Use '\'' to represent an apostrophe within the trap.
1788# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001789trap 'exit_status=$?
1790 # Save into config.log some information that might help in debugging.
1791 {
1792 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001793
John Criswell7a73b802003-06-30 21:59:07 +00001794 cat <<\_ASBOX
1795## ---------------- ##
1796## Cache variables. ##
1797## ---------------- ##
1798_ASBOX
1799 echo
1800 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001801(
1802 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1803 eval ac_val=\$$ac_var
1804 case $ac_val in #(
1805 *${as_nl}*)
1806 case $ac_var in #(
1807 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1808echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1809 esac
1810 case $ac_var in #(
1811 _ | IFS | as_nl) ;; #(
1812 *) $as_unset $ac_var ;;
1813 esac ;;
1814 esac
1815 done
John Criswell7a73b802003-06-30 21:59:07 +00001816 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001817 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1818 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001819 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001820 "s/'\''/'\''\\\\'\'''\''/g;
1821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1822 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001823 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001824 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001825 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001826 esac |
1827 sort
1828)
John Criswell7a73b802003-06-30 21:59:07 +00001829 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001830
1831 cat <<\_ASBOX
1832## ----------------- ##
1833## Output variables. ##
1834## ----------------- ##
1835_ASBOX
1836 echo
1837 for ac_var in $ac_subst_vars
1838 do
Reid Spencera773bd52006-08-04 18:18:08 +00001839 eval ac_val=\$$ac_var
1840 case $ac_val in
1841 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1842 esac
1843 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001844 done | sort
1845 echo
1846
1847 if test -n "$ac_subst_files"; then
1848 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001849## ------------------- ##
1850## File substitutions. ##
1851## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001852_ASBOX
1853 echo
1854 for ac_var in $ac_subst_files
1855 do
Reid Spencera773bd52006-08-04 18:18:08 +00001856 eval ac_val=\$$ac_var
1857 case $ac_val in
1858 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1859 esac
1860 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001861 done | sort
1862 echo
1863 fi
1864
John Criswell7a73b802003-06-30 21:59:07 +00001865 if test -s confdefs.h; then
1866 cat <<\_ASBOX
1867## ----------- ##
1868## confdefs.h. ##
1869## ----------- ##
1870_ASBOX
1871 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001872 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001873 echo
1874 fi
1875 test "$ac_signal" != 0 &&
1876 echo "$as_me: caught signal $ac_signal"
1877 echo "$as_me: exit $exit_status"
1878 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001879 rm -f core *.core core.conftest.* &&
1880 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001881 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001882' 0
John Criswell7a73b802003-06-30 21:59:07 +00001883for ac_signal in 1 2 13 15; do
1884 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1885done
1886ac_signal=0
1887
1888# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001889rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001890
1891# Predefined preprocessor variables.
1892
1893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_NAME "$PACKAGE_NAME"
1895_ACEOF
1896
1897
1898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1900_ACEOF
1901
1902
1903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_VERSION "$PACKAGE_VERSION"
1905_ACEOF
1906
1907
1908cat >>confdefs.h <<_ACEOF
1909#define PACKAGE_STRING "$PACKAGE_STRING"
1910_ACEOF
1911
1912
1913cat >>confdefs.h <<_ACEOF
1914#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1915_ACEOF
1916
1917
1918# Let the site file select an alternate cache file if it wants to.
1919# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001920if test -n "$CONFIG_SITE"; then
1921 set x "$CONFIG_SITE"
1922elif test "x$prefix" != xNONE; then
1923 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1924else
1925 set x "$ac_default_prefix/share/config.site" \
1926 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001927fi
Reid Spencera773bd52006-08-04 18:18:08 +00001928shift
1929for ac_site_file
1930do
John Criswell7a73b802003-06-30 21:59:07 +00001931 if test -r "$ac_site_file"; then
1932 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933echo "$as_me: loading site script $ac_site_file" >&6;}
1934 sed 's/^/| /' "$ac_site_file" >&5
1935 . "$ac_site_file"
1936 fi
1937done
1938
1939if test -r "$cache_file"; then
1940 # Some versions of bash will fail to source /dev/null (special
1941 # files actually), so we avoid doing that.
1942 if test -f "$cache_file"; then
1943 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944echo "$as_me: loading cache $cache_file" >&6;}
1945 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001946 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001948 esac
1949 fi
1950else
1951 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952echo "$as_me: creating cache $cache_file" >&6;}
1953 >$cache_file
1954fi
1955
1956# Check that the precious variables saved in the cache have kept the same
1957# value.
1958ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001959for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001960 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001962 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001964 case $ac_old_set,$ac_new_set in
1965 set,)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,set)
1970 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972 ac_cache_corrupted=: ;;
1973 ,);;
1974 *)
1975 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001976 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001977echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001978 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001979echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001980 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001981echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001982 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001983 fi;;
1984 esac
1985 # Pass precious variables to config.status.
1986 if test "$ac_new_set" = set; then
1987 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001988 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001989 *) ac_arg=$ac_var=$ac_new_val ;;
1990 esac
1991 case " $ac_configure_args " in
1992 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1993 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1994 esac
1995 fi
1996done
1997if $ac_cache_corrupted; then
1998 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1999echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2000 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2001echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2002 { (exit 1); exit 1; }; }
2003fi
2004
Reid Spencera773bd52006-08-04 18:18:08 +00002005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
John Criswell7a73b802003-06-30 21:59:07 +00002029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034
2035
2036
Tanya Lattnercf067672008-01-17 05:57:22 +00002037LLVM_COPYRIGHT="Copyright (c) 2003-2008 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002038
2039
2040
2041
2042
2043
2044
John Criswell7a73b802003-06-30 21:59:07 +00002045ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002046for ac_dir in autoconf "$srcdir"/autoconf; do
2047 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002048 ac_aux_dir=$ac_dir
2049 ac_install_sh="$ac_aux_dir/install-sh -c"
2050 break
Reid Spencera773bd52006-08-04 18:18:08 +00002051 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002052 ac_aux_dir=$ac_dir
2053 ac_install_sh="$ac_aux_dir/install.sh -c"
2054 break
Reid Spencera773bd52006-08-04 18:18:08 +00002055 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002056 ac_aux_dir=$ac_dir
2057 ac_install_sh="$ac_aux_dir/shtool install -c"
2058 break
2059 fi
2060done
2061if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002062 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2063echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002064 { (exit 1); exit 1; }; }
2065fi
Reid Spencera773bd52006-08-04 18:18:08 +00002066
2067# These three variables are undocumented and unsupported,
2068# and are intended to be withdrawn in a future Autoconf release.
2069# They can cause serious problems if a builder's source tree is in a directory
2070# whose full name contains unusual characters.
2071ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2072ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2073ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2074
John Criswell7a73b802003-06-30 21:59:07 +00002075
John Criswell392aaa32003-07-22 19:18:09 +00002076
Reid Spencer2706f8c2004-09-19 23:53:36 +00002077if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002078 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2079 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002080echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2081 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 fi
John Criswell93e1c722003-09-15 17:04:06 +00002083fi
2084
John Criswell33a911a2003-11-25 20:36:46 +00002085for i in `ls ${srcdir}/projects`
2086do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002087 if test -d ${srcdir}/projects/${i} ; then
2088 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002089 CVS) ;;
2090 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002091 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002092 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002093 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002094 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002095 ;;
Tanya Lattnerb70e4522008-06-24 17:49:13 +00002096 # llvm-test is the old name of the test-suite, kept here for backwards
2097 # compatibility
Anton Korobeynikov080d6872007-07-03 17:16:46 +00002098 llvm-test) subdirs="$subdirs projects/llvm-test"
Reid Spencer67bb0792007-01-17 02:14:46 +00002099 ;;
Matthijs Kooijman5b80c662008-06-24 13:01:57 +00002100 test-suite) subdirs="$subdirs projects/test-suite"
2101 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002102 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002103;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002104 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002105 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002106 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002107 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002108 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002109 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002110 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002111 ;;
Reid Spencer9372f152007-07-30 20:13:24 +00002112 poolalloc) subdirs="$subdirs projects/poolalloc"
Andrew Lenharth0af32252007-07-17 20:37:35 +00002113 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002114 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002115 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002116 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002117 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2118echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002119 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002120 esac
John Criswell33a911a2003-11-25 20:36:46 +00002121 fi
2122done
John Criswell559a6c12003-09-30 16:31:48 +00002123
John Criswell7a73b802003-06-30 21:59:07 +00002124
2125# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002126$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2127 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2128echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002129 { (exit 1); exit 1; }; }
2130
Reid Spencera773bd52006-08-04 18:18:08 +00002131{ echo "$as_me:$LINENO: checking build system type" >&5
2132echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002133if test "${ac_cv_build+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
Reid Spencera773bd52006-08-04 18:18:08 +00002136 ac_build_alias=$build_alias
2137test "x$ac_build_alias" = x &&
2138 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2139test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002140 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2141echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2142 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002143ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2145echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
2147
2148fi
Reid Spencera773bd52006-08-04 18:18:08 +00002149{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2150echo "${ECHO_T}$ac_cv_build" >&6; }
2151case $ac_cv_build in
2152*-*-*) ;;
2153*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2154echo "$as_me: error: invalid value of canonical build" >&2;}
2155 { (exit 1); exit 1; }; };;
2156esac
John Criswell7a73b802003-06-30 21:59:07 +00002157build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002158ac_save_IFS=$IFS; IFS='-'
2159set x $ac_cv_build
2160shift
2161build_cpu=$1
2162build_vendor=$2
2163shift; shift
2164# Remember, the first character of IFS is used to create $*,
2165# except with old shells:
2166build_os=$*
2167IFS=$ac_save_IFS
2168case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002169
2170
Reid Spencera773bd52006-08-04 18:18:08 +00002171{ echo "$as_me:$LINENO: checking host system type" >&5
2172echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002173if test "${ac_cv_host+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2175else
Reid Spencera773bd52006-08-04 18:18:08 +00002176 if test "x$host_alias" = x; then
2177 ac_cv_host=$ac_cv_build
2178else
2179 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2180 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2181echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002182 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002183fi
John Criswell7a73b802003-06-30 21:59:07 +00002184
2185fi
Reid Spencera773bd52006-08-04 18:18:08 +00002186{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2187echo "${ECHO_T}$ac_cv_host" >&6; }
2188case $ac_cv_host in
2189*-*-*) ;;
2190*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2191echo "$as_me: error: invalid value of canonical host" >&2;}
2192 { (exit 1); exit 1; }; };;
2193esac
John Criswell7a73b802003-06-30 21:59:07 +00002194host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002195ac_save_IFS=$IFS; IFS='-'
2196set x $ac_cv_host
2197shift
2198host_cpu=$1
2199host_vendor=$2
2200shift; shift
2201# Remember, the first character of IFS is used to create $*,
2202# except with old shells:
2203host_os=$*
2204IFS=$ac_save_IFS
2205case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002206
2207
Reid Spencera773bd52006-08-04 18:18:08 +00002208{ echo "$as_me:$LINENO: checking target system type" >&5
2209echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002210if test "${ac_cv_target+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
Reid Spencera773bd52006-08-04 18:18:08 +00002213 if test "x$target_alias" = x; then
2214 ac_cv_target=$ac_cv_host
2215else
2216 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2218echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002220fi
John Criswell7a73b802003-06-30 21:59:07 +00002221
2222fi
Reid Spencera773bd52006-08-04 18:18:08 +00002223{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2224echo "${ECHO_T}$ac_cv_target" >&6; }
2225case $ac_cv_target in
2226*-*-*) ;;
2227*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2228echo "$as_me: error: invalid value of canonical target" >&2;}
2229 { (exit 1); exit 1; }; };;
2230esac
John Criswell7a73b802003-06-30 21:59:07 +00002231target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002232ac_save_IFS=$IFS; IFS='-'
2233set x $ac_cv_target
2234shift
2235target_cpu=$1
2236target_vendor=$2
2237shift; shift
2238# Remember, the first character of IFS is used to create $*,
2239# except with old shells:
2240target_os=$*
2241IFS=$ac_save_IFS
2242case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002243
2244
2245# The aliases save the names the user supplied, while $host etc.
2246# will get canonicalized.
2247test -n "$target_alias" &&
2248 test "$program_prefix$program_suffix$program_transform_name" = \
2249 NONENONEs,x,x, &&
2250 program_prefix=${target_alias}-
2251
Reid Spencera773bd52006-08-04 18:18:08 +00002252{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2253echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002257 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002258 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 llvm_cv_os_type="AIX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002263 *-*-irix*)
2264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2266 llvm_cv_os_type="IRIX"
2267 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002268 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Cygwin"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,-all_load"
Chris Lattner399c7c72008-02-05 19:43:53 +00002275 llvm_cv_no_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="Darwin"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="FreeBSD"
2282 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002283 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002286 llvm_cv_os_type="OpenBSD"
2287 llvm_cv_platform_type="Unix" ;;
Reid Spencer466207a2007-01-20 20:45:39 +00002288 *-*-netbsd*)
2289 llvm_cv_link_all_option="-Wl,--whole-archive"
2290 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2291 llvm_cv_os_type="NetBSD"
2292 llvm_cv_platform_type="Unix" ;;
Matthijs Kooijmanf5122812008-06-26 10:36:58 +00002293 *-*-dragonfly*)
2294 llvm_cv_link_all_option="-Wl,--whole-archive"
2295 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2296 llvm_cv_os_type="DragonFly"
2297 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002298 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002299 llvm_cv_link_all_option="-Wl,--whole-archive"
2300 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002301 llvm_cv_os_type="HP-UX"
2302 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002304 llvm_cv_link_all_option="-Wl,--whole-archive"
2305 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306 llvm_cv_os_type="Interix"
2307 llvm_cv_platform_type="Unix" ;;
2308 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002309 llvm_cv_link_all_option="-Wl,--whole-archive"
2310 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002311 llvm_cv_os_type="Linux"
2312 llvm_cv_platform_type="Unix" ;;
2313 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002314 llvm_cv_link_all_option="-Wl,-z,allextract"
2315 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002316 llvm_cv_os_type="SunOS"
2317 llvm_cv_platform_type="Unix" ;;
2318 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002319 llvm_cv_link_all_option="-Wl,--whole-archive"
2320 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 llvm_cv_os_type="Win32"
2322 llvm_cv_platform_type="Win32" ;;
2323 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002324 llvm_cv_link_all_option="-Wl,--whole-archive"
2325 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002326 llvm_cv_os_type="MingW"
2327 llvm_cv_platform_type="Win32" ;;
2328 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002329 llvm_cv_link_all_option=""
2330 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002331 llvm_cv_os_type="Unknown"
2332 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002333esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002334fi
Reid Spencera773bd52006-08-04 18:18:08 +00002335{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2336echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002337
Reid Spencer7b3e8512004-12-24 06:29:05 +00002338if test "$llvm_cv_os_type" = "Unknown" ; then
2339 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2340echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002341 { (exit 1); exit 1; }; }
2342fi
2343
Reid Spencer7b3e8512004-12-24 06:29:05 +00002344OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345
2346
Reid Spencera773bd52006-08-04 18:18:08 +00002347LINKALL=$llvm_cv_link_all_option
2348
2349NOLINKALL=$llvm_cv_no_link_all_option
2350
2351
Reid Spencer7b3e8512004-12-24 06:29:05 +00002352case $llvm_cv_platform_type in
2353 Unix)
2354
2355cat >>confdefs.h <<\_ACEOF
2356#define LLVM_ON_UNIX 1
2357_ACEOF
2358
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002359 LLVM_ON_UNIX=1
2360
2361 LLVM_ON_WIN32=0
2362
Reid Spencer7b3e8512004-12-24 06:29:05 +00002363 ;;
2364 Win32)
2365
2366cat >>confdefs.h <<\_ACEOF
2367#define LLVM_ON_WIN32 1
2368_ACEOF
2369
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002370 LLVM_ON_UNIX=0
2371
2372 LLVM_ON_WIN32=1
2373
Reid Spencer7b3e8512004-12-24 06:29:05 +00002374 ;;
2375esac
2376
Reid Spencera773bd52006-08-04 18:18:08 +00002377{ echo "$as_me:$LINENO: checking target architecture" >&5
2378echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002379if test "${llvm_cv_target_arch+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002383 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002384 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002385 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2386 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002387 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002388 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00002389 arm-*) llvm_cv_target_arch="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00002390 mips-*) llvm_cv_target_arch="Mips" ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00002391 pic16-*) llvm_cv_target_arch="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00002392 xcore-*) llvm_cv_target_arch="XCore" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002393 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002394esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002395fi
Reid Spencera773bd52006-08-04 18:18:08 +00002396{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2397echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002398
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399if test "$llvm_cv_target_arch" = "Unknown" ; then
2400 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2401echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2402fi
John Criswell76595452003-07-01 22:07:39 +00002403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002405
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407ac_ext=c
2408ac_cpp='$CPP $CPPFLAGS'
2409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2411ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002412if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2414set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002415{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002417if test "${ac_cv_prog_CC+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2419else
2420 if test -n "$CC"; then
2421 ac_cv_prog_CC="$CC" # Let the user override the test.
2422else
2423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424for as_dir in $PATH
2425do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2432 break 2
2433 fi
2434done
2435done
Reid Spencera773bd52006-08-04 18:18:08 +00002436IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002442 { echo "$as_me:$LINENO: result: $CC" >&5
2443echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002444else
Reid Spencera773bd52006-08-04 18:18:08 +00002445 { echo "$as_me:$LINENO: result: no" >&5
2446echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447fi
2448
Reid Spencera773bd52006-08-04 18:18:08 +00002449
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450fi
2451if test -z "$ac_cv_prog_CC"; then
2452 ac_ct_CC=$CC
2453 # Extract the first word of "gcc", so it can be a program name with args.
2454set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460 if test -n "$ac_ct_CC"; then
2461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466 IFS=$as_save_IFS
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470 ac_cv_prog_ac_ct_CC="gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472 break 2
2473 fi
2474done
2475done
Reid Spencera773bd52006-08-04 18:18:08 +00002476IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002477
2478fi
2479fi
2480ac_ct_CC=$ac_cv_prog_ac_ct_CC
2481if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2483echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484else
Reid Spencera773bd52006-08-04 18:18:08 +00002485 { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002487fi
2488
Reid Spencera773bd52006-08-04 18:18:08 +00002489 if test "x$ac_ct_CC" = x; then
2490 CC=""
2491 else
2492 case $cross_compiling:$ac_tool_warned in
2493yes:)
2494{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2495whose name does not start with the host triplet. If you think this
2496configuration is useful to you, please write to autoconf@gnu.org." >&5
2497echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet. If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2500ac_tool_warned=yes ;;
2501esac
2502 CC=$ac_ct_CC
2503 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504else
2505 CC="$ac_cv_prog_CC"
2506fi
2507
2508if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002509 if test -n "$ac_tool_prefix"; then
2510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002511set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002512{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002514if test "${ac_cv_prog_CC+set}" = set; then
2515 echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517 if test -n "$CC"; then
2518 ac_cv_prog_CC="$CC" # Let the user override the test.
2519else
2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521for as_dir in $PATH
2522do
2523 IFS=$as_save_IFS
2524 test -z "$as_dir" && as_dir=.
2525 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002527 ac_cv_prog_CC="${ac_tool_prefix}cc"
2528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 break 2
2530 fi
2531done
2532done
Reid Spencera773bd52006-08-04 18:18:08 +00002533IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002534
2535fi
2536fi
2537CC=$ac_cv_prog_CC
2538if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002539 { echo "$as_me:$LINENO: result: $CC" >&5
2540echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002541else
Reid Spencera773bd52006-08-04 18:18:08 +00002542 { echo "$as_me:$LINENO: result: no" >&5
2543echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002544fi
2545
Reid Spencera773bd52006-08-04 18:18:08 +00002546
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002547 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548fi
2549if test -z "$CC"; then
2550 # Extract the first word of "cc", so it can be a program name with args.
2551set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002552{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2559else
2560 ac_prog_rejected=no
2561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562for as_dir in $PATH
2563do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002568 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2569 ac_prog_rejected=yes
2570 continue
2571 fi
2572 ac_cv_prog_CC="cc"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
Reid Spencera773bd52006-08-04 18:18:08 +00002578IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002579
2580if test $ac_prog_rejected = yes; then
2581 # We found a bogon in the path, so make sure we never use it.
2582 set dummy $ac_cv_prog_CC
2583 shift
2584 if test $# != 0; then
2585 # We chose a different compiler from the bogus one.
2586 # However, it has the same basename, so the bogon will be chosen
2587 # first if we set CC to just the basename; use the full file name.
2588 shift
2589 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2590 fi
2591fi
2592fi
2593fi
2594CC=$ac_cv_prog_CC
2595if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002596 { echo "$as_me:$LINENO: result: $CC" >&5
2597echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002598else
Reid Spencera773bd52006-08-04 18:18:08 +00002599 { echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002601fi
2602
Reid Spencera773bd52006-08-04 18:18:08 +00002603
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604fi
2605if test -z "$CC"; then
2606 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002607 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002608 do
2609 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 if test -n "$CC"; then
2617 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
Reid Spencera773bd52006-08-04 18:18:08 +00002632IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002633
2634fi
2635fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636CC=$ac_cv_prog_CC
2637if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: $CC" >&5
2639echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002640else
Reid Spencera773bd52006-08-04 18:18:08 +00002641 { echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002643fi
2644
Reid Spencera773bd52006-08-04 18:18:08 +00002645
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002647 done
2648fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002649if test -z "$CC"; then
2650 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002651 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002652do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002657if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660 if test -n "$ac_ct_CC"; then
2661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002670 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675done
Reid Spencera773bd52006-08-04 18:18:08 +00002676IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002677
2678fi
2679fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680ac_ct_CC=$ac_cv_prog_ac_ct_CC
2681if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002682 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2683echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002684else
Reid Spencera773bd52006-08-04 18:18:08 +00002685 { echo "$as_me:$LINENO: result: no" >&5
2686echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002687fi
2688
Reid Spencera773bd52006-08-04 18:18:08 +00002689
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002691done
John Criswell7a73b802003-06-30 21:59:07 +00002692
Reid Spencera773bd52006-08-04 18:18:08 +00002693 if test "x$ac_ct_CC" = x; then
2694 CC=""
2695 else
2696 case $cross_compiling:$ac_tool_warned in
2697yes:)
2698{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2699whose name does not start with the host triplet. If you think this
2700configuration is useful to you, please write to autoconf@gnu.org." >&5
2701echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2702whose name does not start with the host triplet. If you think this
2703configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2704ac_tool_warned=yes ;;
2705esac
2706 CC=$ac_ct_CC
2707 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002708fi
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
2711
2712
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002713test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2714See \`config.log' for more details." >&5
2715echo "$as_me: error: no acceptable C compiler found in \$PATH
2716See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2718
John Criswell7a73b802003-06-30 21:59:07 +00002719# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002720echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002721ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002722{ (ac_try="$ac_compiler --version >&5"
2723case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2726esac
2727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002732{ (ac_try="$ac_compiler -v >&5"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002742{ (ac_try="$ac_compiler -V >&5"
2743case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2746esac
2747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }
2752
2753cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002759
John Criswell7a73b802003-06-30 21:59:07 +00002760int
2761main ()
2762{
2763
2764 ;
2765 return 0;
2766}
2767_ACEOF
2768ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002769ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002770# Try to create an executable without -o first, disregard a.out.
2771# It will help us diagnose broken compilers, and finding out an intuition
2772# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002773{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2774echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002775ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002776#
2777# List of possible output files, starting from the most likely.
2778# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2779# only as a last resort. b.out is created by i960 compilers.
2780ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2781#
2782# The IRIX 6 linker writes into existing files which may not be
2783# executable, retaining their permissions. Remove them first so a
2784# subsequent execution test works.
2785ac_rmfiles=
2786for ac_file in $ac_files
2787do
2788 case $ac_file in
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2791 esac
2792done
2793rm -f $ac_rmfiles
2794
2795if { (ac_try="$ac_link_default"
2796case "(($ac_try" in
2797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798 *) ac_try_echo=$ac_try;;
2799esac
2800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002805 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2806# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2807# in a Makefile. We should not override ac_cv_exeext if it was cached,
2808# so that the user can short-circuit this test for compilers unknown to
2809# Autoconf.
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002810for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002811do
2812 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002813 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002815 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002816 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002817 # We found the default executable, but exeext='' is most
2818 # certainly right.
2819 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002820 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002821 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2822 then :; else
2823 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2824 fi
2825 # We set ac_cv_exeext here because the later test for it is not
2826 # safe: cross compilers may not add the suffix if given an `-o'
2827 # argument, so we may need to know it at that point already.
2828 # Even if this section looks crufty: it has the advantage of
2829 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002830 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002831 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002832 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002833 esac
2834done
Reid Spencera773bd52006-08-04 18:18:08 +00002835test "$ac_cv_exeext" = no && ac_cv_exeext=
2836
John Criswell7a73b802003-06-30 21:59:07 +00002837else
2838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002839sed 's/^/| /' conftest.$ac_ext >&5
2840
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002841{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002842See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002843echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002844See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002845 { (exit 77); exit 77; }; }
2846fi
2847
2848ac_exeext=$ac_cv_exeext
Gordon Henriksen40e7f192008-10-22 12:40:55 +00002849{ echo "$as_me:$LINENO: result: $ac_file" >&5
2850echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002851
Reid Spencera773bd52006-08-04 18:18:08 +00002852# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002853# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002854{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2855echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002856# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2857# If not cross compiling, check that we can run a simple program.
2858if test "$cross_compiling" != yes; then
2859 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002860 { (case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2865 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 cross_compiling=no
2870 else
2871 if test "$cross_compiling" = maybe; then
2872 cross_compiling=yes
2873 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002874 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002875If you meant to cross compile, use \`--host'.
2876See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002877echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002878If you meant to cross compile, use \`--host'.
2879See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002880 { (exit 1); exit 1; }; }
2881 fi
2882 fi
2883fi
Reid Spencera773bd52006-08-04 18:18:08 +00002884{ echo "$as_me:$LINENO: result: yes" >&5
2885echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002886
John Criswell0c38eaf2003-09-10 15:17:25 +00002887rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002888ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002889# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002890# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002891{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2892echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2893{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2894echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002895
Reid Spencera773bd52006-08-04 18:18:08 +00002896{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2897echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2898if { (ac_try="$ac_link"
2899case "(($ac_try" in
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2902esac
2903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; then
2908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2909# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2910# work properly (i.e., refer to `conftest.exe'), while it won't with
2911# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002912for ac_file in conftest.exe conftest conftest.*; do
2913 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002914 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002917 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002918 * ) break;;
2919 esac
2920done
2921else
John Criswell0c38eaf2003-09-10 15:17:25 +00002922 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2923See \`config.log' for more details." >&5
2924echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2925See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002926 { (exit 1); exit 1; }; }
2927fi
2928
2929rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002930{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2931echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002932
2933rm -f conftest.$ac_ext
2934EXEEXT=$ac_cv_exeext
2935ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002936{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2937echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002938if test "${ac_cv_objext+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940else
2941 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
2946/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002947
John Criswell7a73b802003-06-30 21:59:07 +00002948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
2956rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002967 for ac_file in conftest.o conftest.obj conftest.*; do
2968 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002969 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002971 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 break;;
2973 esac
2974done
2975else
2976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2980See \`config.log' for more details." >&5
2981echo "$as_me: error: cannot compute suffix of object files: cannot compile
2982See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002983 { (exit 1); exit 1; }; }
2984fi
2985
2986rm -f conftest.$ac_cv_objext conftest.$ac_ext
2987fi
Reid Spencera773bd52006-08-04 18:18:08 +00002988{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2989echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002990OBJEXT=$ac_cv_objext
2991ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002992{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2993echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002994if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002998/* confdefs.h. */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003003
John Criswell7a73b802003-06-30 21:59:07 +00003004int
3005main ()
3006{
3007#ifndef __GNUC__
3008 choke me
3009#endif
3010
3011 ;
3012 return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3020esac
3021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003023 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003024 grep -v '^ *+' conftest.er1 >conftest.err
3025 rm -f conftest.er1
3026 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3033esac
3034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3043esac
3044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003049 ac_compiler_gnu=yes
3050else
3051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003052sed 's/^/| /' conftest.$ac_ext >&5
3053
Reid Spencera773bd52006-08-04 18:18:08 +00003054 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003055fi
Reid Spencera773bd52006-08-04 18:18:08 +00003056
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003058ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003059
3060fi
Reid Spencera773bd52006-08-04 18:18:08 +00003061{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3062echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003063GCC=`test $ac_compiler_gnu = yes && echo yes`
3064ac_test_CFLAGS=${CFLAGS+set}
3065ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003066{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3067echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003068if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
Reid Spencera773bd52006-08-04 18:18:08 +00003071 ac_save_c_werror_flag=$ac_c_werror_flag
3072 ac_c_werror_flag=yes
3073 ac_cv_prog_cc_g=no
3074 CFLAGS="-g"
3075 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003076/* confdefs.h. */
3077_ACEOF
3078cat confdefs.h >>conftest.$ac_ext
3079cat >>conftest.$ac_ext <<_ACEOF
3080/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003081
John Criswell7a73b802003-06-30 21:59:07 +00003082int
3083main ()
3084{
3085
3086 ;
3087 return 0;
3088}
3089_ACEOF
3090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003091if { (ac_try="$ac_compile"
3092case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095esac
3096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003099 grep -v '^ *+' conftest.er1 >conftest.err
3100 rm -f conftest.er1
3101 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003103 (exit $ac_status); } &&
3104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3105 { (case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108esac
3109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3110 (eval "$ac_try") 2>&5
3111 ac_status=$?
3112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113 (exit $ac_status); }; } &&
3114 { ac_try='test -s conftest.$ac_objext'
3115 { (case "(($ac_try" in
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3118esac
3119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003124 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003125else
3126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003127sed 's/^/| /' conftest.$ac_ext >&5
3128
Reid Spencera773bd52006-08-04 18:18:08 +00003129 CFLAGS=""
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140
3141 ;
3142 return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (ac_try="$ac_compile"
3147case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150esac
3151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3153 ac_status=$?
3154 grep -v '^ *+' conftest.er1 >conftest.err
3155 rm -f conftest.er1
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163esac
3164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003179 :
3180else
3181 echo "$as_me: failed program was:" >&5
3182sed 's/^/| /' conftest.$ac_ext >&5
3183
3184 ac_c_werror_flag=$ac_save_c_werror_flag
3185 CFLAGS="-g"
3186 cat >conftest.$ac_ext <<_ACEOF
3187/* confdefs.h. */
3188_ACEOF
3189cat confdefs.h >>conftest.$ac_ext
3190cat >>conftest.$ac_ext <<_ACEOF
3191/* end confdefs.h. */
3192
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201rm -f conftest.$ac_objext
3202if { (ac_try="$ac_compile"
3203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
3207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compile") 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003214 (exit $ac_status); } &&
3215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3216 { (case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219esac
3220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_try") 2>&5
3222 ac_status=$?
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229esac
3230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_try") 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003235 ac_cv_prog_cc_g=yes
3236else
3237 echo "$as_me: failed program was:" >&5
3238sed 's/^/| /' conftest.$ac_ext >&5
3239
3240
John Criswell7a73b802003-06-30 21:59:07 +00003241fi
Reid Spencera773bd52006-08-04 18:18:08 +00003242
3243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003244fi
Reid Spencera773bd52006-08-04 18:18:08 +00003245
3246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3247fi
3248
3249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_c_werror_flag=$ac_save_c_werror_flag
3251fi
3252{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3253echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003254if test "$ac_test_CFLAGS" = set; then
3255 CFLAGS=$ac_save_CFLAGS
3256elif test $ac_cv_prog_cc_g = yes; then
3257 if test "$GCC" = yes; then
3258 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003259 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003260 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003261 fi
3262else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 if test "$GCC" = yes; then
3264 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003265 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003267 fi
3268fi
Reid Spencera773bd52006-08-04 18:18:08 +00003269{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3270echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3271if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003272 echo $ECHO_N "(cached) $ECHO_C" >&6
3273else
Reid Spencera773bd52006-08-04 18:18:08 +00003274 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275ac_save_CC=$CC
3276cat >conftest.$ac_ext <<_ACEOF
3277/* confdefs.h. */
3278_ACEOF
3279cat confdefs.h >>conftest.$ac_ext
3280cat >>conftest.$ac_ext <<_ACEOF
3281/* end confdefs.h. */
3282#include <stdarg.h>
3283#include <stdio.h>
3284#include <sys/types.h>
3285#include <sys/stat.h>
3286/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3287struct buf { int x; };
3288FILE * (*rcsopen) (struct buf *, struct stat *, int);
3289static char *e (p, i)
3290 char **p;
3291 int i;
3292{
3293 return p[i];
3294}
3295static char *f (char * (*g) (char **, int), char **p, ...)
3296{
3297 char *s;
3298 va_list v;
3299 va_start (v,p);
3300 s = g (p, va_arg (v,int));
3301 va_end (v);
3302 return s;
3303}
3304
3305/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3306 function prototypes and stuff, but not '\xHH' hex character constants.
3307 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003308 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003309 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3310 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003311 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3313
Reid Spencera773bd52006-08-04 18:18:08 +00003314/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3315 inside strings and character constants. */
3316#define FOO(x) 'x'
3317int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3318
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319int test (int i, double x);
3320struct s1 {int (*f) (int a);};
3321struct s2 {int (*f) (double a);};
3322int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3323int argc;
3324char **argv;
3325int
3326main ()
3327{
3328return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 ;
3330 return 0;
3331}
3332_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003333for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3334 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335do
3336 CC="$ac_save_CC $ac_arg"
3337 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003338if { (ac_try="$ac_compile"
3339case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003350 (exit $ac_status); } &&
3351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3352 { (case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355esac
3356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_try") 2>&5
3358 ac_status=$?
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; } &&
3361 { ac_try='test -s conftest.$ac_objext'
3362 { (case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
3366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_try") 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003371 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
Reid Spencera773bd52006-08-04 18:18:08 +00003376
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003377fi
Reid Spencera773bd52006-08-04 18:18:08 +00003378
3379rm -f core conftest.err conftest.$ac_objext
3380 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003381done
Reid Spencera773bd52006-08-04 18:18:08 +00003382rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003383CC=$ac_save_CC
3384
3385fi
Reid Spencera773bd52006-08-04 18:18:08 +00003386# AC_CACHE_VAL
3387case "x$ac_cv_prog_cc_c89" in
3388 x)
3389 { echo "$as_me:$LINENO: result: none needed" >&5
3390echo "${ECHO_T}none needed" >&6; } ;;
3391 xno)
3392 { echo "$as_me:$LINENO: result: unsupported" >&5
3393echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003394 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003395 CC="$CC $ac_cv_prog_cc_c89"
3396 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3397echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003398esac
3399
John Criswell0c38eaf2003-09-10 15:17:25 +00003400
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003401ac_ext=c
3402ac_cpp='$CPP $CPPFLAGS'
3403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003408ac_ext=c
3409ac_cpp='$CPP $CPPFLAGS'
3410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003413{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3414echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003415# On Suns, sometimes $CPP names a directory.
3416if test -n "$CPP" && test -d "$CPP"; then
3417 CPP=
3418fi
3419if test -z "$CPP"; then
3420 if test "${ac_cv_prog_CPP+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 # Double quotes because CPP needs to be expanded
3424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3425 do
3426 ac_preproc_ok=false
3427for ac_c_preproc_warn_flag in '' yes
3428do
3429 # Use a header file that comes with gcc, so configuring glibc
3430 # with a fresh cross-compiler works.
3431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3432 # <limits.h> exists even on freestanding compilers.
3433 # On the NeXT, cc -E runs the code through the compiler's parser,
3434 # not just through cpp. "Syntax error" is here to catch this case.
3435 cat >conftest.$ac_ext <<_ACEOF
3436/* confdefs.h. */
3437_ACEOF
3438cat confdefs.h >>conftest.$ac_ext
3439cat >>conftest.$ac_ext <<_ACEOF
3440/* end confdefs.h. */
3441#ifdef __STDC__
3442# include <limits.h>
3443#else
3444# include <assert.h>
3445#endif
3446 Syntax error
3447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003448if { (ac_try="$ac_cpp conftest.$ac_ext"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 else
3465 ac_cpp_err=
3466 fi
3467else
3468 ac_cpp_err=yes
3469fi
3470if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003471 :
3472else
3473 echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476 # Broken: fails on valid input.
3477continue
3478fi
Reid Spencera773bd52006-08-04 18:18:08 +00003479
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480rm -f conftest.err conftest.$ac_ext
3481
Reid Spencera773bd52006-08-04 18:18:08 +00003482 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003483 # can be detected and how.
3484 cat >conftest.$ac_ext <<_ACEOF
3485/* confdefs.h. */
3486_ACEOF
3487cat confdefs.h >>conftest.$ac_ext
3488cat >>conftest.$ac_ext <<_ACEOF
3489/* end confdefs.h. */
3490#include <ac_nonexistent.h>
3491_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003492if { (ac_try="$ac_cpp conftest.$ac_ext"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003504 (exit $ac_status); } >/dev/null; then
3505 if test -s conftest.err; then
3506 ac_cpp_err=$ac_c_preproc_warn_flag
3507 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3508 else
3509 ac_cpp_err=
3510 fi
3511else
3512 ac_cpp_err=yes
3513fi
3514if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003515 # Broken: success on invalid input.
3516continue
3517else
3518 echo "$as_me: failed program was:" >&5
3519sed 's/^/| /' conftest.$ac_ext >&5
3520
3521 # Passes both tests.
3522ac_preproc_ok=:
3523break
3524fi
Reid Spencera773bd52006-08-04 18:18:08 +00003525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003526rm -f conftest.err conftest.$ac_ext
3527
3528done
3529# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3530rm -f conftest.err conftest.$ac_ext
3531if $ac_preproc_ok; then
3532 break
3533fi
3534
3535 done
3536 ac_cv_prog_CPP=$CPP
3537
3538fi
3539 CPP=$ac_cv_prog_CPP
3540else
3541 ac_cv_prog_CPP=$CPP
3542fi
Reid Spencera773bd52006-08-04 18:18:08 +00003543{ echo "$as_me:$LINENO: result: $CPP" >&5
3544echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003545ac_preproc_ok=false
3546for ac_c_preproc_warn_flag in '' yes
3547do
3548 # Use a header file that comes with gcc, so configuring glibc
3549 # with a fresh cross-compiler works.
3550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3551 # <limits.h> exists even on freestanding compilers.
3552 # On the NeXT, cc -E runs the code through the compiler's parser,
3553 # not just through cpp. "Syntax error" is here to catch this case.
3554 cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h. */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */
3560#ifdef __STDC__
3561# include <limits.h>
3562#else
3563# include <assert.h>
3564#endif
3565 Syntax error
3566_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003567if { (ac_try="$ac_cpp conftest.$ac_ext"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3585 fi
3586else
3587 ac_cpp_err=yes
3588fi
3589if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003590 :
3591else
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 # Broken: fails on valid input.
3596continue
3597fi
Reid Spencera773bd52006-08-04 18:18:08 +00003598
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599rm -f conftest.err conftest.$ac_ext
3600
Reid Spencera773bd52006-08-04 18:18:08 +00003601 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003602 # can be detected and how.
3603 cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h. */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h. */
3609#include <ac_nonexistent.h>
3610_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003611if { (ac_try="$ac_cpp conftest.$ac_ext"
3612case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615esac
3616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003618 ac_status=$?
3619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003623 (exit $ac_status); } >/dev/null; then
3624 if test -s conftest.err; then
3625 ac_cpp_err=$ac_c_preproc_warn_flag
3626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3627 else
3628 ac_cpp_err=
3629 fi
3630else
3631 ac_cpp_err=yes
3632fi
3633if test -z "$ac_cpp_err"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003634 # Broken: success on invalid input.
3635continue
3636else
3637 echo "$as_me: failed program was:" >&5
3638sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 # Passes both tests.
3641ac_preproc_ok=:
3642break
3643fi
Reid Spencera773bd52006-08-04 18:18:08 +00003644
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003645rm -f conftest.err conftest.$ac_ext
3646
3647done
3648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3649rm -f conftest.err conftest.$ac_ext
3650if $ac_preproc_ok; then
3651 :
3652else
3653 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3654See \`config.log' for more details." >&5
3655echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3656See \`config.log' for more details." >&2;}
3657 { (exit 1); exit 1; }; }
3658fi
3659
John Criswell7a73b802003-06-30 21:59:07 +00003660ac_ext=c
3661ac_cpp='$CPP $CPPFLAGS'
3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
John Criswell7a73b802003-06-30 21:59:07 +00003666
Reid Spencera773bd52006-08-04 18:18:08 +00003667{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3668echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003669if test "${ac_cv_path_GREP+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3671else
Reid Spencera773bd52006-08-04 18:18:08 +00003672 # Extract the first word of "grep ggrep" to use in msg output
3673if test -z "$GREP"; then
3674set dummy grep ggrep; ac_prog_name=$2
3675if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676 echo $ECHO_N "(cached) $ECHO_C" >&6
3677else
Reid Spencera773bd52006-08-04 18:18:08 +00003678 ac_path_GREP_found=false
3679# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003681for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682do
3683 IFS=$as_save_IFS
3684 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003685 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003686 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003687 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003688 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003689 # Check for GNU ac_path_GREP and select it if it is found.
3690 # Check for GNU $ac_path_GREP
3691case `"$ac_path_GREP" --version 2>&1` in
3692*GNU*)
3693 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3694*)
3695 ac_count=0
3696 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3697 while :
3698 do
3699 cat "conftest.in" "conftest.in" >"conftest.tmp"
3700 mv "conftest.tmp" "conftest.in"
3701 cp "conftest.in" "conftest.nl"
3702 echo 'GREP' >> "conftest.nl"
3703 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3705 ac_count=`expr $ac_count + 1`
3706 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3707 # Best one so far, save it but keep looking for a better one
3708 ac_cv_path_GREP="$ac_path_GREP"
3709 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003710 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003711 # 10*(2^10) chars as input seems more than enough
3712 test $ac_count -gt 10 && break
3713 done
3714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3715esac
3716
3717
3718 $ac_path_GREP_found && break 3
3719 done
3720done
3721
3722done
3723IFS=$as_save_IFS
3724
3725
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003726fi
Reid Spencera773bd52006-08-04 18:18:08 +00003727
3728GREP="$ac_cv_path_GREP"
3729if test -z "$GREP"; then
3730 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3731echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3732 { (exit 1); exit 1; }; }
3733fi
3734
3735else
3736 ac_cv_path_GREP=$GREP
3737fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003738
John Criswell7a73b802003-06-30 21:59:07 +00003739
Reid Spencera773bd52006-08-04 18:18:08 +00003740fi
3741{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3742echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3743 GREP="$ac_cv_path_GREP"
3744
3745
3746{ echo "$as_me:$LINENO: checking for egrep" >&5
3747echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3748if test "${ac_cv_path_EGREP+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3752 then ac_cv_path_EGREP="$GREP -E"
3753 else
3754 # Extract the first word of "egrep" to use in msg output
3755if test -z "$EGREP"; then
3756set dummy egrep; ac_prog_name=$2
3757if test "${ac_cv_path_EGREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3759else
3760 ac_path_EGREP_found=false
3761# Loop through the user's path and test for each of PROGNAME-LIST
3762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in egrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003770 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
Reid Spencera773bd52006-08-04 18:18:08 +00003771 # Check for GNU ac_path_EGREP and select it if it is found.
3772 # Check for GNU $ac_path_EGREP
3773case `"$ac_path_EGREP" --version 2>&1` in
3774*GNU*)
3775 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3776*)
3777 ac_count=0
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779 while :
3780 do
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'EGREP' >> "conftest.nl"
3785 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_EGREP="$ac_path_EGREP"
3791 ac_path_EGREP_max=$ac_count
3792 fi
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3795 done
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797esac
3798
3799
3800 $ac_path_EGREP_found && break 3
3801 done
3802done
3803
3804done
3805IFS=$as_save_IFS
3806
3807
3808fi
3809
3810EGREP="$ac_cv_path_EGREP"
3811if test -z "$EGREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3815fi
3816
3817else
3818 ac_cv_path_EGREP=$EGREP
3819fi
3820
3821
3822 fi
3823fi
3824{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3825echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3827
3828
3829{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3830echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003831if test "${ac_cv_header_stdc+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833else
3834 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003835/* confdefs.h. */
3836_ACEOF
3837cat confdefs.h >>conftest.$ac_ext
3838cat >>conftest.$ac_ext <<_ACEOF
3839/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003840#include <stdlib.h>
3841#include <stdarg.h>
3842#include <string.h>
3843#include <float.h>
3844
John Criswell0c38eaf2003-09-10 15:17:25 +00003845int
3846main ()
3847{
3848
3849 ;
3850 return 0;
3851}
John Criswell7a73b802003-06-30 21:59:07 +00003852_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003854if { (ac_try="$ac_compile"
3855case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858esac
3859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3860 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003861 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003862 grep -v '^ *+' conftest.er1 >conftest.err
3863 rm -f conftest.er1
3864 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00003866 (exit $ac_status); } &&
3867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3868 { (case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871esac
3872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_try") 2>&5
3874 ac_status=$?
3875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876 (exit $ac_status); }; } &&
3877 { ac_try='test -s conftest.$ac_objext'
3878 { (case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881esac
3882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_try") 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003887 ac_cv_header_stdc=yes
3888else
3889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003890sed 's/^/| /' conftest.$ac_ext >&5
3891
Reid Spencera773bd52006-08-04 18:18:08 +00003892 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003893fi
Reid Spencera773bd52006-08-04 18:18:08 +00003894
3895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003896
3897if test $ac_cv_header_stdc = yes; then
3898 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003900/* confdefs.h. */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003905#include <string.h>
3906
3907_ACEOF
3908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003909 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003910 :
3911else
3912 ac_cv_header_stdc=no
3913fi
3914rm -f conftest*
3915
3916fi
3917
3918if test $ac_cv_header_stdc = yes; then
3919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003921/* confdefs.h. */
3922_ACEOF
3923cat confdefs.h >>conftest.$ac_ext
3924cat >>conftest.$ac_ext <<_ACEOF
3925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003926#include <stdlib.h>
3927
3928_ACEOF
3929if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003930 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003931 :
3932else
3933 ac_cv_header_stdc=no
3934fi
3935rm -f conftest*
3936
3937fi
3938
3939if test $ac_cv_header_stdc = yes; then
3940 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3941 if test "$cross_compiling" = yes; then
3942 :
3943else
3944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003950#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003951#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003952#if ((' ' & 0x0FF) == 0x020)
3953# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3954# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3955#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003956# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003957 (('a' <= (c) && (c) <= 'i') \
3958 || ('j' <= (c) && (c) <= 'r') \
3959 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003960# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3961#endif
3962
3963#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3964int
3965main ()
3966{
3967 int i;
3968 for (i = 0; i < 256; i++)
3969 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003970 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003971 return 2;
3972 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003973}
3974_ACEOF
3975rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003976if { (ac_try="$ac_link"
3977case "(($ac_try" in
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3980esac
3981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003986 { (case "(($ac_try" in
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3989esac
3990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003992 ac_status=$?
3993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994 (exit $ac_status); }; }; then
3995 :
3996else
3997 echo "$as_me: program exited with status $ac_status" >&5
3998echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003999sed 's/^/| /' conftest.$ac_ext >&5
4000
John Criswell7a73b802003-06-30 21:59:07 +00004001( exit $ac_status )
4002ac_cv_header_stdc=no
4003fi
Reid Spencera773bd52006-08-04 18:18:08 +00004004rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4005fi
4006
4007
John Criswell7a73b802003-06-30 21:59:07 +00004008fi
4009fi
Reid Spencera773bd52006-08-04 18:18:08 +00004010{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4011echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00004012if test $ac_cv_header_stdc = yes; then
4013
4014cat >>confdefs.h <<\_ACEOF
4015#define STDC_HEADERS 1
4016_ACEOF
4017
4018fi
4019
Reid Spencera773bd52006-08-04 18:18:08 +00004020# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4031 inttypes.h stdint.h unistd.h
4032do
4033as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4034{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4036if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 cat >conftest.$ac_ext <<_ACEOF
4040/* confdefs.h. */
4041_ACEOF
4042cat confdefs.h >>conftest.$ac_ext
4043cat >>conftest.$ac_ext <<_ACEOF
4044/* end confdefs.h. */
4045$ac_includes_default
4046
4047#include <$ac_header>
4048_ACEOF
4049rm -f conftest.$ac_objext
4050if { (ac_try="$ac_compile"
4051case "(($ac_try" in
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4054esac
4055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004062 (exit $ac_status); } &&
4063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4064 { (case "(($ac_try" in
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4067esac
4068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_try") 2>&5
4070 ac_status=$?
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); }; } &&
4073 { ac_try='test -s conftest.$ac_objext'
4074 { (case "(($ac_try" in
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4077esac
4078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_try") 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004083 eval "$as_ac_Header=yes"
4084else
4085 echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088 eval "$as_ac_Header=no"
4089fi
4090
4091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092fi
4093ac_res=`eval echo '${'$as_ac_Header'}'`
4094 { echo "$as_me:$LINENO: result: $ac_res" >&5
4095echo "${ECHO_T}$ac_res" >&6; }
4096if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099_ACEOF
4100
4101fi
4102
4103done
4104
4105
4106{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4107echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4108if test "${ac_cv_c_bigendian+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
4110else
4111 # See if sys/param.h defines the BYTE_ORDER macro.
4112cat >conftest.$ac_ext <<_ACEOF
4113/* confdefs.h. */
4114_ACEOF
4115cat confdefs.h >>conftest.$ac_ext
4116cat >>conftest.$ac_ext <<_ACEOF
4117/* end confdefs.h. */
4118#include <sys/types.h>
4119#include <sys/param.h>
4120
4121int
4122main ()
4123{
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004124#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
Reid Spencera773bd52006-08-04 18:18:08 +00004125 bogus endian macros
4126#endif
4127
4128 ;
4129 return 0;
4130}
4131_ACEOF
4132rm -f conftest.$ac_objext
4133if { (ac_try="$ac_compile"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4139 (eval "$ac_compile") 2>conftest.er1
4140 ac_status=$?
4141 grep -v '^ *+' conftest.er1 >conftest.err
4142 rm -f conftest.er1
4143 cat conftest.err >&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004145 (exit $ac_status); } &&
4146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4147 { (case "(($ac_try" in
4148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149 *) ac_try_echo=$ac_try;;
4150esac
4151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152 (eval "$ac_try") 2>&5
4153 ac_status=$?
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); }; } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (case "(($ac_try" in
4158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4160esac
4161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_try") 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004166 # It does; now see whether it defined to BIG_ENDIAN or not.
4167cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
4173#include <sys/types.h>
4174#include <sys/param.h>
4175
4176int
4177main ()
4178{
4179#if BYTE_ORDER != BIG_ENDIAN
4180 not big endian
4181#endif
4182
4183 ;
4184 return 0;
4185}
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (ac_try="$ac_compile"
4189case "(($ac_try" in
4190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4192esac
4193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4195 ac_status=$?
4196 grep -v '^ *+' conftest.er1 >conftest.err
4197 rm -f conftest.er1
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004200 (exit $ac_status); } &&
4201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4202 { (case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205esac
4206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_try") 2>&5
4208 ac_status=$?
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); }; } &&
4211 { ac_try='test -s conftest.$ac_objext'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004221 ac_cv_c_bigendian=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 ac_cv_c_bigendian=no
4227fi
4228
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230else
4231 echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234 # It does not; compile a test program.
4235if test "$cross_compiling" = yes; then
4236 # try to guess the endianness by grepping values into an object file
4237 ac_cv_c_bigendian=unknown
4238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4243/* end confdefs.h. */
4244short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4245short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4246void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4247short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4248short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4249void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4250int
4251main ()
4252{
4253 _ascii (); _ebcdic ();
4254 ;
4255 return 0;
4256}
4257_ACEOF
4258rm -f conftest.$ac_objext
4259if { (ac_try="$ac_compile"
4260case "(($ac_try" in
4261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4262 *) ac_try_echo=$ac_try;;
4263esac
4264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4265 (eval "$ac_compile") 2>conftest.er1
4266 ac_status=$?
4267 grep -v '^ *+' conftest.er1 >conftest.err
4268 rm -f conftest.er1
4269 cat conftest.err >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004271 (exit $ac_status); } &&
4272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4276esac
4277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest.$ac_objext'
4283 { (case "(($ac_try" in
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4286esac
4287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004292 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4293 ac_cv_c_bigendian=yes
4294fi
4295if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4296 if test "$ac_cv_c_bigendian" = unknown; then
4297 ac_cv_c_bigendian=no
4298 else
4299 # finding both strings is unlikely to happen, but who knows?
4300 ac_cv_c_bigendian=unknown
4301 fi
4302fi
4303else
4304 echo "$as_me: failed program was:" >&5
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
4307
4308fi
4309
4310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311else
4312 cat >conftest.$ac_ext <<_ACEOF
4313/* confdefs.h. */
4314_ACEOF
4315cat confdefs.h >>conftest.$ac_ext
4316cat >>conftest.$ac_ext <<_ACEOF
4317/* end confdefs.h. */
4318$ac_includes_default
4319int
4320main ()
4321{
4322
4323 /* Are we little or big endian? From Harbison&Steele. */
4324 union
4325 {
4326 long int l;
4327 char c[sizeof (long int)];
4328 } u;
4329 u.l = 1;
4330 return u.c[sizeof (long int) - 1] == 1;
4331
4332 ;
4333 return 0;
4334}
4335_ACEOF
4336rm -f conftest$ac_exeext
4337if { (ac_try="$ac_link"
4338case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4341esac
4342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_link") 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4347 { (case "(($ac_try" in
4348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4349 *) ac_try_echo=$ac_try;;
4350esac
4351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4352 (eval "$ac_try") 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); }; }; then
4356 ac_cv_c_bigendian=no
4357else
4358 echo "$as_me: program exited with status $ac_status" >&5
4359echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362( exit $ac_status )
4363ac_cv_c_bigendian=yes
4364fi
4365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4366fi
4367
4368
4369fi
4370
4371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372fi
4373{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4374echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4375case $ac_cv_c_bigendian in
4376 yes)
4377 ENDIAN=big
4378 ;;
4379 no)
4380 ENDIAN=little
4381 ;;
4382 *)
4383 { { echo "$as_me:$LINENO: error: unknown endianness
4384presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4385echo "$as_me: error: unknown endianness
4386presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4387 { (exit 1); exit 1; }; } ;;
4388esac
4389
4390
4391if test "$cross_compiling" = yes; then
4392 LLVM_CROSS_COMPILING=1
4393
4394
4395{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4396echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4397if test "${ac_cv_build_exeext+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4401 ac_cv_build_exeext=.exe
4402else
4403 ac_build_prefix=${build_alias}-
4404
4405 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4406set dummy ${ac_build_prefix}gcc; ac_word=$2
4407{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4409if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4411else
4412 if test -n "$BUILD_CC"; then
4413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4414else
4415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004422 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426done
4427done
4428IFS=$as_save_IFS
4429
4430fi
4431fi
4432BUILD_CC=$ac_cv_prog_BUILD_CC
4433if test -n "$BUILD_CC"; then
4434 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4435echo "${ECHO_T}$BUILD_CC" >&6; }
4436else
4437 { echo "$as_me:$LINENO: result: no" >&5
4438echo "${ECHO_T}no" >&6; }
4439fi
4440
4441
4442 if test -z "$BUILD_CC"; then
4443 # Extract the first word of "gcc", so it can be a program name with args.
4444set dummy gcc; ac_word=$2
4445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4447if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449else
4450 if test -n "$BUILD_CC"; then
4451 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4452else
4453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454for as_dir in $PATH
4455do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004460 ac_cv_prog_BUILD_CC="gcc"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4462 break 2
4463 fi
4464done
4465done
4466IFS=$as_save_IFS
4467
4468fi
4469fi
4470BUILD_CC=$ac_cv_prog_BUILD_CC
4471if test -n "$BUILD_CC"; then
4472 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4473echo "${ECHO_T}$BUILD_CC" >&6; }
4474else
4475 { echo "$as_me:$LINENO: result: no" >&5
4476echo "${ECHO_T}no" >&6; }
4477fi
4478
4479
4480 if test -z "$BUILD_CC"; then
4481 # Extract the first word of "cc", so it can be a program name with args.
4482set dummy cc; ac_word=$2
4483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487else
4488 if test -n "$BUILD_CC"; then
4489 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4490else
4491 ac_prog_rejected=no
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00004499 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4500 ac_prog_rejected=yes
4501 continue
4502 fi
4503 ac_cv_prog_BUILD_CC="cc"
4504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507done
4508done
4509IFS=$as_save_IFS
4510
4511if test $ac_prog_rejected = yes; then
4512 # We found a bogon in the path, so make sure we never use it.
4513 set dummy $ac_cv_prog_BUILD_CC
4514 shift
4515 if test $# != 0; then
4516 # We chose a different compiler from the bogus one.
4517 # However, it has the same basename, so the bogon will be chosen
4518 # first if we set BUILD_CC to just the basename; use the full file name.
4519 shift
4520 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4521 fi
4522fi
4523fi
4524fi
4525BUILD_CC=$ac_cv_prog_BUILD_CC
4526if test -n "$BUILD_CC"; then
4527 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4528echo "${ECHO_T}$BUILD_CC" >&6; }
4529else
4530 { echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6; }
4532fi
4533
4534
4535 fi
4536 fi
4537 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4538echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4539 { (exit 1); exit 1; }; }
4540 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4541 rm -f conftest*
4542 echo 'int main () { return 0; }' > conftest.$ac_ext
4543 ac_cv_build_exeext=
4544 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4545 (eval $ac_build_link) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; then
4549 for file in conftest.*; do
4550 case $file in
Jim Grosbach0eecd892008-09-26 17:27:58 +00004551 *.c | *.o | *.obj | *.dSYM) ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004552 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4553 esac
4554 done
4555 else
4556 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4557echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4558 { (exit 1); exit 1; }; }
4559 fi
4560 rm -f conftest*
4561 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4562fi
4563fi
4564
4565BUILD_EXEEXT=""
4566test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4567{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4568echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4569ac_build_exeext=$BUILD_EXEEXT
4570
Jim Grosbach673612e2008-10-02 22:56:44 +00004571 ac_build_prefix=${build_alias}-
4572 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4573set dummy ${ac_build_prefix}g++; ac_word=$2
4574{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4577 echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579 if test -n "$BUILD_CXX"; then
4580 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4581else
4582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4583for as_dir in $PATH
4584do
4585 IFS=$as_save_IFS
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004589 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 break 2
4592 fi
4593done
4594done
4595IFS=$as_save_IFS
4596
4597fi
4598fi
4599BUILD_CXX=$ac_cv_prog_BUILD_CXX
4600if test -n "$BUILD_CXX"; then
4601 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4602echo "${ECHO_T}$BUILD_CXX" >&6; }
4603else
4604 { echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6; }
4606fi
4607
4608
4609 if test -z "$BUILD_CXX"; then
4610 # Extract the first word of "g++", so it can be a program name with args.
4611set dummy g++; ac_word=$2
4612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4614if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
4616else
4617 if test -n "$BUILD_CXX"; then
4618 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4619else
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004627 ac_cv_prog_BUILD_CXX="g++"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4630 fi
4631done
4632done
4633IFS=$as_save_IFS
4634
4635fi
4636fi
4637BUILD_CXX=$ac_cv_prog_BUILD_CXX
4638if test -n "$BUILD_CXX"; then
4639 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4640echo "${ECHO_T}$BUILD_CXX" >&6; }
4641else
4642 { echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6; }
4644fi
4645
4646
4647 if test -z "$BUILD_CXX"; then
4648 # Extract the first word of "c++", so it can be a program name with args.
4649set dummy c++; ac_word=$2
4650{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4652if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
4655 if test -n "$BUILD_CXX"; then
4656 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4657else
4658 ac_prog_rejected=no
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00004665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Jim Grosbach673612e2008-10-02 22:56:44 +00004666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4667 ac_prog_rejected=yes
4668 continue
4669 fi
4670 ac_cv_prog_BUILD_CXX="c++"
4671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674done
4675done
4676IFS=$as_save_IFS
4677
4678if test $ac_prog_rejected = yes; then
4679 # We found a bogon in the path, so make sure we never use it.
4680 set dummy $ac_cv_prog_BUILD_CXX
4681 shift
4682 if test $# != 0; then
4683 # We chose a different compiler from the bogus one.
4684 # However, it has the same basename, so the bogon will be chosen
4685 # first if we set BUILD_CXX to just the basename; use the full file name.
4686 shift
4687 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4688 fi
4689fi
4690fi
4691fi
4692BUILD_CXX=$ac_cv_prog_BUILD_CXX
4693if test -n "$BUILD_CXX"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4695echo "${ECHO_T}$BUILD_CXX" >&6; }
4696else
4697 { echo "$as_me:$LINENO: result: no" >&5
4698echo "${ECHO_T}no" >&6; }
4699fi
4700
4701
4702 fi
4703 fi
Reid Spencera773bd52006-08-04 18:18:08 +00004704else
4705 LLVM_CROSS_COMPILING=0
4706
4707fi
4708
Reid Spencer0b1e4662007-04-02 15:41:39 +00004709if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn"; then
Reid Spencera773bd52006-08-04 18:18:08 +00004710 cvsbuild="yes"
4711 optimize="no"
4712 CVSBUILD=CVSBUILD=1
4713
4714else
4715 cvsbuild="no"
4716 optimize="yes"
4717fi
4718
4719
4720# Check whether --enable-optimized was given.
4721if test "${enable_optimized+set}" = set; then
4722 enableval=$enable_optimized;
4723else
4724 enableval=$optimize
4725fi
4726
4727if test ${enableval} = "no" ; then
4728 ENABLE_OPTIMIZED=
4729
4730else
4731 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4732
4733fi
4734
4735# Check whether --enable-assertions was given.
4736if test "${enable_assertions+set}" = set; then
4737 enableval=$enable_assertions;
4738else
4739 enableval="yes"
4740fi
4741
4742if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=
4744
4745else
4746 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4747
4748fi
4749
David Greenea696d242007-06-28 19:36:08 +00004750# Check whether --enable-expensive-checks was given.
4751if test "${enable_expensive_checks+set}" = set; then
4752 enableval=$enable_expensive_checks;
4753else
4754 enableval="no"
4755fi
4756
4757if test ${enableval} = "yes" ; then
4758 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4759
4760 EXPENSIVE_CHECKS=yes
4761
4762else
4763 ENABLE_EXPENSIVE_CHECKS=
4764
4765 EXPENSIVE_CHECKS=no
4766
4767fi
4768
Reid Spencer8b2e1412006-11-17 03:32:33 +00004769# Check whether --enable-debug-runtime was given.
4770if test "${enable_debug_runtime+set}" = set; then
4771 enableval=$enable_debug_runtime;
4772else
4773 enableval=no
4774fi
4775
4776if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=
4778
4779else
4780 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4781
4782fi
4783
Reid Spencera773bd52006-08-04 18:18:08 +00004784# Check whether --enable-jit was given.
4785if test "${enable_jit+set}" = set; then
4786 enableval=$enable_jit;
4787else
4788 enableval=default
4789fi
4790
4791if test ${enableval} = "no"
4792then
4793 JIT=
4794
4795else
4796 case "$llvm_cv_target_arch" in
4797 x86) TARGET_HAS_JIT=1
4798 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004799 Sparc) TARGET_HAS_JIT=0
Reid Spencera773bd52006-08-04 18:18:08 +00004800 ;;
4801 PowerPC) TARGET_HAS_JIT=1
4802 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004803 x86_64) TARGET_HAS_JIT=1
Reid Spencera773bd52006-08-04 18:18:08 +00004804 ;;
4805 Alpha) TARGET_HAS_JIT=1
4806 ;;
4807 IA64) TARGET_HAS_JIT=0
4808 ;;
Reid Spencerfebecf42007-01-21 06:42:03 +00004809 ARM) TARGET_HAS_JIT=0
Reid Spencer9b5b1822007-01-21 06:32:59 +00004810 ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004811 Mips) TARGET_HAS_JIT=0
4812 ;;
Sanjiv Gupta0234f512008-05-13 17:37:32 +00004813 PIC16) TARGET_HAS_JIT=0
4814 ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004815 XCore) TARGET_HAS_JIT=0
4816 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004817 *) TARGET_HAS_JIT=0
4818 ;;
4819 esac
4820fi
4821
4822# Check whether --enable-doxygen was given.
4823if test "${enable_doxygen+set}" = set; then
4824 enableval=$enable_doxygen;
4825else
4826 enableval=default
4827fi
4828
4829case "$enableval" in
4830 yes) ENABLE_DOXYGEN=1
4831 ;;
4832 no) ENABLE_DOXYGEN=0
4833 ;;
4834 default) ENABLE_DOXYGEN=0
4835 ;;
4836 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4837echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4838 { (exit 1); exit 1; }; } ;;
4839esac
4840
4841# Check whether --enable-threads was given.
4842if test "${enable_threads+set}" = set; then
4843 enableval=$enable_threads;
4844else
Reid Spencer65c5d752006-11-05 17:08:18 +00004845 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004846fi
4847
4848case "$enableval" in
4849 yes) ENABLE_THREADS=1
4850 ;;
4851 no) ENABLE_THREADS=0
4852 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004853 default) ENABLE_THREADS=1
4854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004855 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4856echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4857 { (exit 1); exit 1; }; } ;;
4858esac
4859
4860cat >>confdefs.h <<_ACEOF
4861#define ENABLE_THREADS $ENABLE_THREADS
4862_ACEOF
4863
4864
Reid Spencer89b0d992006-12-16 22:07:52 +00004865# Check whether --enable-pic was given.
4866if test "${enable_pic+set}" = set; then
4867 enableval=$enable_pic;
4868else
4869 enableval=default
4870fi
4871
4872case "$enableval" in
4873 yes) ENABLE_PIC=1
4874 ;;
4875 no) ENABLE_PIC=0
4876 ;;
4877 default) ENABLE_PIC=0
4878 ;;
4879 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4880echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4881 { (exit 1); exit 1; }; } ;;
4882esac
4883
4884cat >>confdefs.h <<_ACEOF
4885#define ENABLE_PIC $ENABLE_PIC
4886_ACEOF
4887
4888
Reid Spencera773bd52006-08-04 18:18:08 +00004889TARGETS_TO_BUILD=""
4890# Check whether --enable-targets was given.
4891if test "${enable_targets+set}" = set; then
4892 enableval=$enable_targets;
4893else
4894 enableval=all
4895fi
4896
4897case "$enableval" in
Richard Osborneb25baef2008-11-07 10:59:00 +00004898 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM Mips CellSPU PIC16 XCore CBackend MSIL CppBackend" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004899 host-only)
4900 case "$llvm_cv_target_arch" in
4901 x86) TARGETS_TO_BUILD="X86" ;;
4902 x86_64) TARGETS_TO_BUILD="X86" ;;
4903 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4904 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4905 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4906 IA64) TARGETS_TO_BUILD="IA64" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004907 ARM) TARGETS_TO_BUILD="ARM" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004908 Mips) TARGETS_TO_BUILD="Mips" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004909 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004910 PIC16) TARGETS_TO_BUILD="PIC16" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004911 XCore) TARGETS_TO_BUILD="XCore" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004912 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4913echo "$as_me: error: Can not set target to build" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4915 esac
4916 ;;
4917 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4918 case "$a_target" in
4919 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4920 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4921 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4922 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4923 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4924 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer9b5b1822007-01-21 06:32:59 +00004925 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
Tanya Lattnerdde567f2007-08-29 16:38:16 +00004926 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
Scott Michel96dcd2b2007-12-05 21:24:02 +00004927 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
Sanjiv Guptae3f34282008-05-14 08:03:23 +00004928 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
Richard Osborneb25baef2008-11-07 10:59:00 +00004929 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
Nate Begeman57b1efb2007-12-13 01:18:52 +00004930 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4931 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
Tanya Lattner49ff6612008-05-10 04:20:38 +00004932 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004933 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4934echo "$as_me: error: Unrecognized target $a_target" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4936 esac
4937 done
4938 ;;
4939esac
Reid Spencera773bd52006-08-04 18:18:08 +00004940TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4941
4942
Reid Spencer65c5d752006-11-05 17:08:18 +00004943# Check whether --enable-cbe-printf-a was given.
4944if test "${enable_cbe_printf_a+set}" = set; then
4945 enableval=$enable_cbe_printf_a;
4946else
4947 enableval=default
4948fi
4949
4950case "$enableval" in
4951 yes) ENABLE_CBE_PRINTF_A=1
4952 ;;
4953 no) ENABLE_CBE_PRINTF_A=0
4954 ;;
4955 default) ENABLE_CBE_PRINTF_A=1
4956 ;;
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4958echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4960esac
4961
4962cat >>confdefs.h <<_ACEOF
4963#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4964_ACEOF
4965
4966
Reid Spencera773bd52006-08-04 18:18:08 +00004967
4968# Check whether --with-llvmgccdir was given.
4969if test "${with_llvmgccdir+set}" = set; then
4970 withval=$with_llvmgccdir;
4971else
4972 withval=default
4973fi
4974
4975case "$withval" in
4976 default) WITH_LLVMGCCDIR=default ;;
4977 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4978 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4979echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4980 { (exit 1); exit 1; }; } ;;
4981esac
4982
4983
Devang Patel5d28b882007-12-04 22:54:47 +00004984# Check whether --with-llvmgcc was given.
4985if test "${with_llvmgcc+set}" = set; then
4986 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
4987 WITH_LLVMGCCDIR=""
4988fi
4989
4990
4991
4992# Check whether --with-llvmgxx was given.
4993if test "${with_llvmgxx+set}" = set; then
4994 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
4995 WITH_LLVMGCCDIR=""
4996fi
4997
4998
4999if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5000 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5001echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5002 { (exit 1); exit 1; }; };
5003fi
5004
5005if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5006 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5007echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5008 { (exit 1); exit 1; }; };
5009fi
5010
5011
Reid Spencera773bd52006-08-04 18:18:08 +00005012# Check whether --with-extra-options was given.
5013if test "${with_extra_options+set}" = set; then
5014 withval=$with_extra_options;
5015else
5016 withval=default
5017fi
5018
5019case "$withval" in
5020 default) EXTRA_OPTIONS= ;;
5021 *) EXTRA_OPTIONS=$withval ;;
5022esac
5023EXTRA_OPTIONS=$EXTRA_OPTIONS
5024
5025
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005026# Check whether --enable-bindings was given.
5027if test "${enable_bindings+set}" = set; then
5028 enableval=$enable_bindings;
5029else
5030 enableval=default
5031fi
5032
5033BINDINGS_TO_BUILD=""
5034case "$enableval" in
Gordon Henriksenbae4adc2007-10-02 10:14:42 +00005035 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
Gordon Henriksenc0efff82007-10-02 09:50:32 +00005036 all ) BINDINGS_TO_BUILD="ocaml" ;;
5037 none | no) BINDINGS_TO_BUILD="" ;;
5038 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5039 case "$a_binding" in
5040 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5041 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5042echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5043 { (exit 1); exit 1; }; } ;;
5044 esac
5045 done
5046 ;;
5047esac
5048
Reid Spencera773bd52006-08-04 18:18:08 +00005049
Gordon Henriksenf0915682007-10-02 16:42:22 +00005050# Check whether --with-ocaml-libdir was given.
5051if test "${with_ocaml_libdir+set}" = set; then
5052 withval=$with_ocaml_libdir;
5053else
5054 withval=auto
5055fi
5056
5057case "$withval" in
5058 auto) with_ocaml_libdir="$withval" ;;
5059 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5060 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5061echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5062 { (exit 1); exit 1; }; } ;;
5063esac
5064
5065
Reid Spencera773bd52006-08-04 18:18:08 +00005066ac_ext=c
5067ac_cpp='$CPP $CPPFLAGS'
5068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5072echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5073# On Suns, sometimes $CPP names a directory.
5074if test -n "$CPP" && test -d "$CPP"; then
5075 CPP=
5076fi
5077if test -z "$CPP"; then
5078 if test "${ac_cv_prog_CPP+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080else
5081 # Double quotes because CPP needs to be expanded
5082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5083 do
5084 ac_preproc_ok=false
5085for ac_c_preproc_warn_flag in '' yes
5086do
5087 # Use a header file that comes with gcc, so configuring glibc
5088 # with a fresh cross-compiler works.
5089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5090 # <limits.h> exists even on freestanding compilers.
5091 # On the NeXT, cc -E runs the code through the compiler's parser,
5092 # not just through cpp. "Syntax error" is here to catch this case.
5093 cat >conftest.$ac_ext <<_ACEOF
5094/* confdefs.h. */
5095_ACEOF
5096cat confdefs.h >>conftest.$ac_ext
5097cat >>conftest.$ac_ext <<_ACEOF
5098/* end confdefs.h. */
5099#ifdef __STDC__
5100# include <limits.h>
5101#else
5102# include <assert.h>
5103#endif
5104 Syntax error
5105_ACEOF
5106if { (ac_try="$ac_cpp conftest.$ac_ext"
5107case "(($ac_try" in
5108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5109 *) ac_try_echo=$ac_try;;
5110esac
5111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_c_preproc_warn_flag
5121 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5122 else
5123 ac_cpp_err=
5124 fi
5125else
5126 ac_cpp_err=yes
5127fi
5128if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005129 :
5130else
5131 echo "$as_me: failed program was:" >&5
5132sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 # Broken: fails on valid input.
5135continue
5136fi
5137
5138rm -f conftest.err conftest.$ac_ext
5139
5140 # OK, works on sane cases. Now check whether nonexistent headers
5141 # can be detected and how.
5142 cat >conftest.$ac_ext <<_ACEOF
5143/* confdefs.h. */
5144_ACEOF
5145cat confdefs.h >>conftest.$ac_ext
5146cat >>conftest.$ac_ext <<_ACEOF
5147/* end confdefs.h. */
5148#include <ac_nonexistent.h>
5149_ACEOF
5150if { (ac_try="$ac_cpp conftest.$ac_ext"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5157 ac_status=$?
5158 grep -v '^ *+' conftest.er1 >conftest.err
5159 rm -f conftest.er1
5160 cat conftest.err >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005162 (exit $ac_status); } >/dev/null; then
5163 if test -s conftest.err; then
5164 ac_cpp_err=$ac_c_preproc_warn_flag
5165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5166 else
5167 ac_cpp_err=
5168 fi
5169else
5170 ac_cpp_err=yes
5171fi
5172if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005173 # Broken: success on invalid input.
5174continue
5175else
5176 echo "$as_me: failed program was:" >&5
5177sed 's/^/| /' conftest.$ac_ext >&5
5178
5179 # Passes both tests.
5180ac_preproc_ok=:
5181break
5182fi
5183
5184rm -f conftest.err conftest.$ac_ext
5185
5186done
5187# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5188rm -f conftest.err conftest.$ac_ext
5189if $ac_preproc_ok; then
5190 break
5191fi
5192
5193 done
5194 ac_cv_prog_CPP=$CPP
5195
5196fi
5197 CPP=$ac_cv_prog_CPP
5198else
5199 ac_cv_prog_CPP=$CPP
5200fi
5201{ echo "$as_me:$LINENO: result: $CPP" >&5
5202echo "${ECHO_T}$CPP" >&6; }
5203ac_preproc_ok=false
5204for ac_c_preproc_warn_flag in '' yes
5205do
5206 # Use a header file that comes with gcc, so configuring glibc
5207 # with a fresh cross-compiler works.
5208 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5209 # <limits.h> exists even on freestanding compilers.
5210 # On the NeXT, cc -E runs the code through the compiler's parser,
5211 # not just through cpp. "Syntax error" is here to catch this case.
5212 cat >conftest.$ac_ext <<_ACEOF
5213/* confdefs.h. */
5214_ACEOF
5215cat confdefs.h >>conftest.$ac_ext
5216cat >>conftest.$ac_ext <<_ACEOF
5217/* end confdefs.h. */
5218#ifdef __STDC__
5219# include <limits.h>
5220#else
5221# include <assert.h>
5222#endif
5223 Syntax error
5224_ACEOF
5225if { (ac_try="$ac_cpp conftest.$ac_ext"
5226case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5232 ac_status=$?
5233 grep -v '^ *+' conftest.er1 >conftest.err
5234 rm -f conftest.er1
5235 cat conftest.err >&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005237 (exit $ac_status); } >/dev/null; then
5238 if test -s conftest.err; then
5239 ac_cpp_err=$ac_c_preproc_warn_flag
5240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241 else
5242 ac_cpp_err=
5243 fi
5244else
5245 ac_cpp_err=yes
5246fi
5247if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005248 :
5249else
5250 echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 # Broken: fails on valid input.
5254continue
5255fi
5256
5257rm -f conftest.err conftest.$ac_ext
5258
5259 # OK, works on sane cases. Now check whether nonexistent headers
5260 # can be detected and how.
5261 cat >conftest.$ac_ext <<_ACEOF
5262/* confdefs.h. */
5263_ACEOF
5264cat confdefs.h >>conftest.$ac_ext
5265cat >>conftest.$ac_ext <<_ACEOF
5266/* end confdefs.h. */
5267#include <ac_nonexistent.h>
5268_ACEOF
5269if { (ac_try="$ac_cpp conftest.$ac_ext"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005281 (exit $ac_status); } >/dev/null; then
5282 if test -s conftest.err; then
5283 ac_cpp_err=$ac_c_preproc_warn_flag
5284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5285 else
5286 ac_cpp_err=
5287 fi
5288else
5289 ac_cpp_err=yes
5290fi
5291if test -z "$ac_cpp_err"; then
Reid Spencera773bd52006-08-04 18:18:08 +00005292 # Broken: success on invalid input.
5293continue
5294else
5295 echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 # Passes both tests.
5299ac_preproc_ok=:
5300break
5301fi
5302
5303rm -f conftest.err conftest.$ac_ext
5304
5305done
5306# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5307rm -f conftest.err conftest.$ac_ext
5308if $ac_preproc_ok; then
5309 :
5310else
5311 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5312See \`config.log' for more details." >&5
5313echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5314See \`config.log' for more details." >&2;}
5315 { (exit 1); exit 1; }; }
5316fi
5317
5318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323
5324ac_ext=c
5325ac_cpp='$CPP $CPPFLAGS'
5326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5328ac_compiler_gnu=$ac_cv_c_compiler_gnu
5329if test -n "$ac_tool_prefix"; then
5330 for ac_prog in gcc
5331 do
5332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5333set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5336if test "${ac_cv_prog_CC+set}" = set; then
5337 echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339 if test -n "$CC"; then
5340 ac_cv_prog_CC="$CC" # Let the user override the test.
5341else
5342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343for as_dir in $PATH
5344do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005349 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353done
5354done
5355IFS=$as_save_IFS
5356
5357fi
5358fi
5359CC=$ac_cv_prog_CC
5360if test -n "$CC"; then
5361 { echo "$as_me:$LINENO: result: $CC" >&5
5362echo "${ECHO_T}$CC" >&6; }
5363else
5364 { echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6; }
5366fi
5367
5368
5369 test -n "$CC" && break
5370 done
5371fi
5372if test -z "$CC"; then
5373 ac_ct_CC=$CC
5374 for ac_prog in gcc
5375do
5376 # Extract the first word of "$ac_prog", so it can be a program name with args.
5377set dummy $ac_prog; ac_word=$2
5378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5380if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383 if test -n "$ac_ct_CC"; then
5384 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5385else
5386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387for as_dir in $PATH
5388do
5389 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005393 ac_cv_prog_ac_ct_CC="$ac_prog"
5394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397done
5398done
5399IFS=$as_save_IFS
5400
5401fi
5402fi
5403ac_ct_CC=$ac_cv_prog_ac_ct_CC
5404if test -n "$ac_ct_CC"; then
5405 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5406echo "${ECHO_T}$ac_ct_CC" >&6; }
5407else
5408 { echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6; }
5410fi
5411
5412
5413 test -n "$ac_ct_CC" && break
5414done
5415
5416 if test "x$ac_ct_CC" = x; then
5417 CC=""
5418 else
5419 case $cross_compiling:$ac_tool_warned in
5420yes:)
5421{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5422whose name does not start with the host triplet. If you think this
5423configuration is useful to you, please write to autoconf@gnu.org." >&5
5424echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5425whose name does not start with the host triplet. If you think this
5426configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5427ac_tool_warned=yes ;;
5428esac
5429 CC=$ac_ct_CC
5430 fi
5431fi
5432
5433
5434test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5435See \`config.log' for more details." >&5
5436echo "$as_me: error: no acceptable C compiler found in \$PATH
5437See \`config.log' for more details." >&2;}
5438 { (exit 1); exit 1; }; }
5439
5440# Provide some information about the compiler.
5441echo "$as_me:$LINENO: checking for C compiler version" >&5
5442ac_compiler=`set X $ac_compile; echo $2`
5443{ (ac_try="$ac_compiler --version >&5"
5444case "(($ac_try" in
5445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446 *) ac_try_echo=$ac_try;;
5447esac
5448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449 (eval "$ac_compiler --version >&5") 2>&5
5450 ac_status=$?
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); }
5453{ (ac_try="$ac_compiler -v >&5"
5454case "(($ac_try" in
5455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456 *) ac_try_echo=$ac_try;;
5457esac
5458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459 (eval "$ac_compiler -v >&5") 2>&5
5460 ac_status=$?
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); }
5463{ (ac_try="$ac_compiler -V >&5"
5464case "(($ac_try" in
5465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5466 *) ac_try_echo=$ac_try;;
5467esac
5468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5469 (eval "$ac_compiler -V >&5") 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }
5473
5474{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5475echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5476if test "${ac_cv_c_compiler_gnu+set}" = set; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478else
5479 cat >conftest.$ac_ext <<_ACEOF
5480/* confdefs.h. */
5481_ACEOF
5482cat confdefs.h >>conftest.$ac_ext
5483cat >>conftest.$ac_ext <<_ACEOF
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489#ifndef __GNUC__
5490 choke me
5491#endif
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497rm -f conftest.$ac_objext
5498if { (ac_try="$ac_compile"
5499case "(($ac_try" in
5500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5501 *) ac_try_echo=$ac_try;;
5502esac
5503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5504 (eval "$ac_compile") 2>conftest.er1
5505 ac_status=$?
5506 grep -v '^ *+' conftest.er1 >conftest.err
5507 rm -f conftest.er1
5508 cat conftest.err >&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005510 (exit $ac_status); } &&
5511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5512 { (case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515esac
5516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_try") 2>&5
5518 ac_status=$?
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); }; } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (case "(($ac_try" in
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5525esac
5526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_try") 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005531 ac_compiler_gnu=yes
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536 ac_compiler_gnu=no
5537fi
5538
5539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540ac_cv_c_compiler_gnu=$ac_compiler_gnu
5541
5542fi
5543{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5544echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5545GCC=`test $ac_compiler_gnu = yes && echo yes`
5546ac_test_CFLAGS=${CFLAGS+set}
5547ac_save_CFLAGS=$CFLAGS
5548{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5549echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5550if test "${ac_cv_prog_cc_g+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552else
5553 ac_save_c_werror_flag=$ac_c_werror_flag
5554 ac_c_werror_flag=yes
5555 ac_cv_prog_cc_g=no
5556 CFLAGS="-g"
5557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572rm -f conftest.$ac_objext
5573if { (ac_try="$ac_compile"
5574case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577esac
5578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5587 { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_try") 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; } &&
5596 { ac_try='test -s conftest.$ac_objext'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
5603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005606 ac_cv_prog_cc_g=yes
5607else
5608 echo "$as_me: failed program was:" >&5
5609sed 's/^/| /' conftest.$ac_ext >&5
5610
5611 CFLAGS=""
5612 cat >conftest.$ac_ext <<_ACEOF
5613/* confdefs.h. */
5614_ACEOF
5615cat confdefs.h >>conftest.$ac_ext
5616cat >>conftest.$ac_ext <<_ACEOF
5617/* end confdefs.h. */
5618
5619int
5620main ()
5621{
5622
5623 ;
5624 return 0;
5625}
5626_ACEOF
5627rm -f conftest.$ac_objext
5628if { (ac_try="$ac_compile"
5629case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632esac
5633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005640 (exit $ac_status); } &&
5641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5642 { (case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
5646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647 (eval "$ac_try") 2>&5
5648 ac_status=$?
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); }; } &&
5651 { ac_try='test -s conftest.$ac_objext'
5652 { (case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_try") 2>&5
5658 ac_status=$?
5659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005661 :
5662else
5663 echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666 ac_c_werror_flag=$ac_save_c_werror_flag
5667 CFLAGS="-g"
5668 cat >conftest.$ac_ext <<_ACEOF
5669/* confdefs.h. */
5670_ACEOF
5671cat confdefs.h >>conftest.$ac_ext
5672cat >>conftest.$ac_ext <<_ACEOF
5673/* end confdefs.h. */
5674
5675int
5676main ()
5677{
5678
5679 ;
5680 return 0;
5681}
5682_ACEOF
5683rm -f conftest.$ac_objext
5684if { (ac_try="$ac_compile"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005696 (exit $ac_status); } &&
5697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest.$ac_objext'
5708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005717 ac_cv_prog_cc_g=yes
5718else
5719 echo "$as_me: failed program was:" >&5
5720sed 's/^/| /' conftest.$ac_ext >&5
5721
5722
5723fi
5724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5726fi
5727
5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729fi
5730
5731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 ac_c_werror_flag=$ac_save_c_werror_flag
5733fi
5734{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5735echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5736if test "$ac_test_CFLAGS" = set; then
5737 CFLAGS=$ac_save_CFLAGS
5738elif test $ac_cv_prog_cc_g = yes; then
5739 if test "$GCC" = yes; then
5740 CFLAGS="-g -O2"
5741 else
5742 CFLAGS="-g"
5743 fi
5744else
5745 if test "$GCC" = yes; then
5746 CFLAGS="-O2"
5747 else
5748 CFLAGS=
5749 fi
5750fi
5751{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5752echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5753if test "${ac_cv_prog_cc_c89+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5755else
5756 ac_cv_prog_cc_c89=no
5757ac_save_CC=$CC
5758cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
5764#include <stdarg.h>
5765#include <stdio.h>
5766#include <sys/types.h>
5767#include <sys/stat.h>
5768/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5769struct buf { int x; };
5770FILE * (*rcsopen) (struct buf *, struct stat *, int);
5771static char *e (p, i)
5772 char **p;
5773 int i;
5774{
5775 return p[i];
5776}
5777static char *f (char * (*g) (char **, int), char **p, ...)
5778{
5779 char *s;
5780 va_list v;
5781 va_start (v,p);
5782 s = g (p, va_arg (v,int));
5783 va_end (v);
5784 return s;
5785}
5786
5787/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5788 function prototypes and stuff, but not '\xHH' hex character constants.
5789 These don't provoke an error unfortunately, instead are silently treated
5790 as 'x'. The following induces an error, until -std is added to get
5791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5792 array size at least. It's necessary to write '\x00'==0 to get something
5793 that's true only with -std. */
5794int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5795
5796/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5797 inside strings and character constants. */
5798#define FOO(x) 'x'
5799int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5800
5801int test (int i, double x);
5802struct s1 {int (*f) (int a);};
5803struct s2 {int (*f) (double a);};
5804int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5805int argc;
5806char **argv;
5807int
5808main ()
5809{
5810return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5811 ;
5812 return 0;
5813}
5814_ACEOF
5815for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5817do
5818 CC="$ac_save_CC $ac_arg"
5819 rm -f conftest.$ac_objext
5820if { (ac_try="$ac_compile"
5821case "(($ac_try" in
5822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5823 *) ac_try_echo=$ac_try;;
5824esac
5825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5826 (eval "$ac_compile") 2>conftest.er1
5827 ac_status=$?
5828 grep -v '^ *+' conftest.er1 >conftest.err
5829 rm -f conftest.er1
5830 cat conftest.err >&5
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005832 (exit $ac_status); } &&
5833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5834 { (case "(($ac_try" in
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5837esac
5838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_try") 2>&5
5840 ac_status=$?
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_try") 2>&5
5850 ac_status=$?
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005853 ac_cv_prog_cc_c89=$ac_arg
5854else
5855 echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858
5859fi
5860
5861rm -f core conftest.err conftest.$ac_objext
5862 test "x$ac_cv_prog_cc_c89" != "xno" && break
5863done
5864rm -f conftest.$ac_ext
5865CC=$ac_save_CC
5866
5867fi
5868# AC_CACHE_VAL
5869case "x$ac_cv_prog_cc_c89" in
5870 x)
5871 { echo "$as_me:$LINENO: result: none needed" >&5
5872echo "${ECHO_T}none needed" >&6; } ;;
5873 xno)
5874 { echo "$as_me:$LINENO: result: unsupported" >&5
5875echo "${ECHO_T}unsupported" >&6; } ;;
5876 *)
5877 CC="$CC $ac_cv_prog_cc_c89"
5878 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5879echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5880esac
5881
5882
5883ac_ext=c
5884ac_cpp='$CPP $CPPFLAGS'
5885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5887ac_compiler_gnu=$ac_cv_c_compiler_gnu
5888
5889ac_ext=cpp
5890ac_cpp='$CXXCPP $CPPFLAGS'
5891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5894if test -z "$CXX"; then
5895 if test -n "$CCC"; then
5896 CXX=$CCC
5897 else
5898 if test -n "$ac_tool_prefix"; then
5899 for ac_prog in g++
5900 do
5901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5902set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5903{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905if test "${ac_cv_prog_CXX+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5907else
5908 if test -n "$CXX"; then
5909 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5910else
5911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912for as_dir in $PATH
5913do
5914 IFS=$as_save_IFS
5915 test -z "$as_dir" && as_dir=.
5916 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005918 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920 break 2
5921 fi
5922done
5923done
5924IFS=$as_save_IFS
5925
5926fi
5927fi
5928CXX=$ac_cv_prog_CXX
5929if test -n "$CXX"; then
5930 { echo "$as_me:$LINENO: result: $CXX" >&5
5931echo "${ECHO_T}$CXX" >&6; }
5932else
5933 { echo "$as_me:$LINENO: result: no" >&5
5934echo "${ECHO_T}no" >&6; }
5935fi
5936
5937
5938 test -n "$CXX" && break
5939 done
5940fi
5941if test -z "$CXX"; then
5942 ac_ct_CXX=$CXX
5943 for ac_prog in g++
5944do
5945 # Extract the first word of "$ac_prog", so it can be a program name with args.
5946set dummy $ac_prog; ac_word=$2
5947{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952 if test -n "$ac_ct_CXX"; then
5953 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5954else
5955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956for as_dir in $PATH
5957do
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00005961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00005962 ac_cv_prog_ac_ct_CXX="$ac_prog"
5963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5964 break 2
5965 fi
5966done
5967done
5968IFS=$as_save_IFS
5969
5970fi
5971fi
5972ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5973if test -n "$ac_ct_CXX"; then
5974 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5975echo "${ECHO_T}$ac_ct_CXX" >&6; }
5976else
5977 { echo "$as_me:$LINENO: result: no" >&5
5978echo "${ECHO_T}no" >&6; }
5979fi
5980
5981
5982 test -n "$ac_ct_CXX" && break
5983done
5984
5985 if test "x$ac_ct_CXX" = x; then
5986 CXX="g++"
5987 else
5988 case $cross_compiling:$ac_tool_warned in
5989yes:)
5990{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5991whose name does not start with the host triplet. If you think this
5992configuration is useful to you, please write to autoconf@gnu.org." >&5
5993echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5994whose name does not start with the host triplet. If you think this
5995configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5996ac_tool_warned=yes ;;
5997esac
5998 CXX=$ac_ct_CXX
5999 fi
6000fi
6001
6002 fi
6003fi
6004# Provide some information about the compiler.
6005echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6006ac_compiler=`set X $ac_compile; echo $2`
6007{ (ac_try="$ac_compiler --version >&5"
6008case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_compiler --version >&5") 2>&5
6014 ac_status=$?
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }
6017{ (ac_try="$ac_compiler -v >&5"
6018case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021esac
6022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_compiler -v >&5") 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }
6027{ (ac_try="$ac_compiler -V >&5"
6028case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031esac
6032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_compiler -V >&5") 2>&5
6034 ac_status=$?
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); }
6037
6038{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6039echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6040if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 cat >conftest.$ac_ext <<_ACEOF
6044/* confdefs.h. */
6045_ACEOF
6046cat confdefs.h >>conftest.$ac_ext
6047cat >>conftest.$ac_ext <<_ACEOF
6048/* end confdefs.h. */
6049
6050int
6051main ()
6052{
6053#ifndef __GNUC__
6054 choke me
6055#endif
6056
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061rm -f conftest.$ac_objext
6062if { (ac_try="$ac_compile"
6063case "(($ac_try" in
6064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6065 *) ac_try_echo=$ac_try;;
6066esac
6067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6068 (eval "$ac_compile") 2>conftest.er1
6069 ac_status=$?
6070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006074 (exit $ac_status); } &&
6075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6076 { (case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079esac
6080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_try") 2>&5
6082 ac_status=$?
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089esac
6090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_try") 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006095 ac_compiler_gnu=yes
6096else
6097 echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_compiler_gnu=no
6101fi
6102
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6105
6106fi
6107{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6108echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6109GXX=`test $ac_compiler_gnu = yes && echo yes`
6110ac_test_CXXFLAGS=${CXXFLAGS+set}
6111ac_save_CXXFLAGS=$CXXFLAGS
6112{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6113echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6114if test "${ac_cv_prog_cxx_g+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6118 ac_cxx_werror_flag=yes
6119 ac_cv_prog_cxx_g=no
6120 CXXFLAGS="-g"
6121 cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h. */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h. */
6127
6128int
6129main ()
6130{
6131
6132 ;
6133 return 0;
6134}
6135_ACEOF
6136rm -f conftest.$ac_objext
6137if { (ac_try="$ac_compile"
6138case "(($ac_try" in
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6141esac
6142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6144 ac_status=$?
6145 grep -v '^ *+' conftest.er1 >conftest.err
6146 rm -f conftest.er1
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154esac
6155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6164esac
6165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006170 ac_cv_prog_cxx_g=yes
6171else
6172 echo "$as_me: failed program was:" >&5
6173sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 CXXFLAGS=""
6176 cat >conftest.$ac_ext <<_ACEOF
6177/* confdefs.h. */
6178_ACEOF
6179cat confdefs.h >>conftest.$ac_ext
6180cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */
6182
6183int
6184main ()
6185{
6186
6187 ;
6188 return 0;
6189}
6190_ACEOF
6191rm -f conftest.$ac_objext
6192if { (ac_try="$ac_compile"
6193case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006204 (exit $ac_status); } &&
6205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6206 { (case "(($ac_try" in
6207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6208 *) ac_try_echo=$ac_try;;
6209esac
6210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6211 (eval "$ac_try") 2>&5
6212 ac_status=$?
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (case "(($ac_try" in
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6219esac
6220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_try") 2>&5
6222 ac_status=$?
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006225 :
6226else
6227 echo "$as_me: failed program was:" >&5
6228sed 's/^/| /' conftest.$ac_ext >&5
6229
6230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6231 CXXFLAGS="-g"
6232 cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h. */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h. */
6238
6239int
6240main ()
6241{
6242
6243 ;
6244 return 0;
6245}
6246_ACEOF
6247rm -f conftest.$ac_objext
6248if { (ac_try="$ac_compile"
6249case "(($ac_try" in
6250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6251 *) ac_try_echo=$ac_try;;
6252esac
6253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_compile") 2>conftest.er1
6255 ac_status=$?
6256 grep -v '^ *+' conftest.er1 >conftest.err
6257 rm -f conftest.er1
6258 cat conftest.err >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006260 (exit $ac_status); } &&
6261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6262 { (case "(($ac_try" in
6263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6264 *) ac_try_echo=$ac_try;;
6265esac
6266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6267 (eval "$ac_try") 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; } &&
6271 { ac_try='test -s conftest.$ac_objext'
6272 { (case "(($ac_try" in
6273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6274 *) ac_try_echo=$ac_try;;
6275esac
6276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6277 (eval "$ac_try") 2>&5
6278 ac_status=$?
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006281 ac_cv_prog_cxx_g=yes
6282else
6283 echo "$as_me: failed program was:" >&5
6284sed 's/^/| /' conftest.$ac_ext >&5
6285
6286
6287fi
6288
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290fi
6291
6292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6293fi
6294
6295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6297fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6299echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6300if test "$ac_test_CXXFLAGS" = set; then
6301 CXXFLAGS=$ac_save_CXXFLAGS
6302elif test $ac_cv_prog_cxx_g = yes; then
6303 if test "$GXX" = yes; then
6304 CXXFLAGS="-g -O2"
6305 else
6306 CXXFLAGS="-g"
6307 fi
6308else
6309 if test "$GXX" = yes; then
6310 CXXFLAGS="-O2"
6311 else
6312 CXXFLAGS=
6313 fi
6314fi
6315ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320
6321{ echo "$as_me:$LINENO: checking " >&5
6322echo $ECHO_N "checking ... $ECHO_C" >&6; }
6323if test "${ac_cv_has_flex+set}" = set; then
6324 echo $ECHO_N "(cached) $ECHO_C" >&6
6325else
6326 for ac_prog in flex lex
6327do
6328 # Extract the first word of "$ac_prog", so it can be a program name with args.
6329set dummy $ac_prog; ac_word=$2
6330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332if test "${ac_cv_prog_LEX+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 if test -n "$LEX"; then
6336 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006345 ac_cv_prog_LEX="$ac_prog"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355LEX=$ac_cv_prog_LEX
6356if test -n "$LEX"; then
6357 { echo "$as_me:$LINENO: result: $LEX" >&5
6358echo "${ECHO_T}$LEX" >&6; }
6359else
6360 { echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6; }
6362fi
6363
6364
6365 test -n "$LEX" && break
6366done
6367test -n "$LEX" || LEX=":"
6368
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006369if test -z "$LEXLIB"
6370then
6371 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6372echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6373if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376 ac_check_lib_save_LIBS=$LIBS
6377LIBS="-lfl $LIBS"
6378cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384
6385/* Override any GCC internal prototype to avoid an error.
6386 Use char because int might match the return type of a GCC
6387 builtin and then its argument prototype would still apply. */
6388#ifdef __cplusplus
6389extern "C"
Torok Edwincc499a42008-10-22 09:56:27 +00006390#endif
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006391char yywrap ();
Torok Edwincc499a42008-10-22 09:56:27 +00006392int
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006393main ()
Torok Edwincc499a42008-10-22 09:56:27 +00006394{
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006395return yywrap ();
6396 ;
6397 return 0;
Torok Edwincc499a42008-10-22 09:56:27 +00006398}
Tanya Lattnercf067672008-01-17 05:57:22 +00006399_ACEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006400rm -f conftest.$ac_objext conftest$ac_exeext
6401if { (ac_try="$ac_link"
6402case "(($ac_try" in
6403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6404 *) ac_try_echo=$ac_try;;
6405esac
6406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6407 (eval "$ac_link") 2>conftest.er1
6408 ac_status=$?
6409 grep -v '^ *+' conftest.er1 >conftest.err
6410 rm -f conftest.er1
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6415 { (case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6418esac
6419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420 (eval "$ac_try") 2>&5
6421 ac_status=$?
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); }; } &&
6424 { ac_try='test -s conftest$ac_exeext'
6425 { (case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428esac
6429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_try") 2>&5
6431 ac_status=$?
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); }; }; then
6434 ac_cv_lib_fl_yywrap=yes
6435else
6436 echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 ac_cv_lib_fl_yywrap=no
6440fi
6441
6442rm -f core conftest.err conftest.$ac_objext \
6443 conftest$ac_exeext conftest.$ac_ext
6444LIBS=$ac_check_lib_save_LIBS
6445fi
6446{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6447echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6448if test $ac_cv_lib_fl_yywrap = yes; then
6449 LEXLIB="-lfl"
6450else
6451 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6452echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6453if test "${ac_cv_lib_l_yywrap+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6455else
6456 ac_check_lib_save_LIBS=$LIBS
6457LIBS="-ll $LIBS"
6458cat >conftest.$ac_ext <<_ACEOF
6459/* confdefs.h. */
6460_ACEOF
6461cat confdefs.h >>conftest.$ac_ext
6462cat >>conftest.$ac_ext <<_ACEOF
6463/* end confdefs.h. */
6464
6465/* Override any GCC internal prototype to avoid an error.
6466 Use char because int might match the return type of a GCC
6467 builtin and then its argument prototype would still apply. */
6468#ifdef __cplusplus
6469extern "C"
6470#endif
6471char yywrap ();
6472int
6473main ()
6474{
6475return yywrap ();
6476 ;
6477 return 0;
6478}
6479_ACEOF
6480rm -f conftest.$ac_objext conftest$ac_exeext
6481if { (ac_try="$ac_link"
6482case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
6486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_link") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } &&
6494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6495 { (case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498esac
6499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_try") 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); }; } &&
6504 { ac_try='test -s conftest$ac_exeext'
6505 { (case "(($ac_try" in
6506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507 *) ac_try_echo=$ac_try;;
6508esac
6509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6510 (eval "$ac_try") 2>&5
6511 ac_status=$?
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6514 ac_cv_lib_l_yywrap=yes
6515else
6516 echo "$as_me: failed program was:" >&5
6517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519 ac_cv_lib_l_yywrap=no
6520fi
6521
6522rm -f core conftest.err conftest.$ac_objext \
6523 conftest$ac_exeext conftest.$ac_ext
6524LIBS=$ac_check_lib_save_LIBS
6525fi
6526{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6527echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6528if test $ac_cv_lib_l_yywrap = yes; then
6529 LEXLIB="-ll"
6530fi
6531
6532fi
6533
6534fi
6535
6536if test "x$LEX" != "x:"; then
6537 { echo "$as_me:$LINENO: checking lex output file root" >&5
6538echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6539if test "${ac_cv_prog_lex_root+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541else
6542 # The minimal lex program is just a single line: %%. But some broken lexes
6543# (Solaris, I think it was) want two %% lines, so accommodate them.
6544cat >conftest.l <<_ACEOF
6545%%
6546%%
6547_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00006548{ (ac_try="$LEX conftest.l"
6549case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552esac
6553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$LEX conftest.l") 2>&5
6555 ac_status=$?
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }
6558if test -f lex.yy.c; then
6559 ac_cv_prog_lex_root=lex.yy
6560elif test -f lexyy.c; then
6561 ac_cv_prog_lex_root=lexyy
6562else
6563 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6564echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6565 { (exit 1); exit 1; }; }
6566fi
6567fi
6568{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6569echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006570rm -f conftest.l
Reid Spencera773bd52006-08-04 18:18:08 +00006571LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6572
Torok Edwincc499a42008-10-22 09:56:27 +00006573{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6574echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6575if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6577else
6578 # POSIX says lex can declare yytext either as a pointer or an array; the
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006579# default is implementation-dependent. Figure out which it is, since
Torok Edwincc499a42008-10-22 09:56:27 +00006580# not all implementations provide the %pointer and %array declarations.
6581ac_cv_prog_lex_yytext_pointer=no
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006582echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
Torok Edwincc499a42008-10-22 09:56:27 +00006583ac_save_LIBS=$LIBS
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006584LIBS="$LIBS $LEXLIB"
Torok Edwincc499a42008-10-22 09:56:27 +00006585cat >conftest.$ac_ext <<_ACEOF
Torok Edwincc499a42008-10-22 09:56:27 +00006586`cat $LEX_OUTPUT_ROOT.c`
6587_ACEOF
6588rm -f conftest.$ac_objext conftest$ac_exeext
6589if { (ac_try="$ac_link"
6590case "(($ac_try" in
Tanya Lattnercf067672008-01-17 05:57:22 +00006591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593esac
6594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
Torok Edwincc499a42008-10-22 09:56:27 +00006595 (eval "$ac_link") 2>conftest.er1
Tanya Lattnercf067672008-01-17 05:57:22 +00006596 ac_status=$?
Torok Edwincc499a42008-10-22 09:56:27 +00006597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
Tanya Lattnercf067672008-01-17 05:57:22 +00006600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6603 { (case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606esac
6607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6608 (eval "$ac_try") 2>&5
6609 ac_status=$?
6610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611 (exit $ac_status); }; } &&
6612 { ac_try='test -s conftest$ac_exeext'
6613 { (case "(($ac_try" in
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6616esac
6617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_try") 2>&5
6619 ac_status=$?
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006622 ac_cv_prog_lex_yytext_pointer=yes
6623else
6624 echo "$as_me: failed program was:" >&5
6625sed 's/^/| /' conftest.$ac_ext >&5
6626
6627
6628fi
6629
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006630rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00006631 conftest$ac_exeext conftest.$ac_ext
6632LIBS=$ac_save_LIBS
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006633rm -f "${LEX_OUTPUT_ROOT}.c"
Reid Spencera773bd52006-08-04 18:18:08 +00006634
6635fi
6636{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6637echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6638if test $ac_cv_prog_lex_yytext_pointer = yes; then
6639
6640cat >>confdefs.h <<\_ACEOF
6641#define YYTEXT_POINTER 1
6642_ACEOF
6643
6644fi
6645
6646fi
6647
6648fi
6649{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6650echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6651if test "$LEX" != "flex"; then
6652 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6653echo "$as_me: error: flex not found but required" >&2;}
6654 { (exit 1); exit 1; }; }
6655else
6656 FLEX=flex
6657
6658fi
6659
6660{ echo "$as_me:$LINENO: checking " >&5
6661echo $ECHO_N "checking ... $ECHO_C" >&6; }
6662if test "${llvm_cv_has_bison+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664else
6665 for ac_prog in 'bison -y' byacc
6666do
6667 # Extract the first word of "$ac_prog", so it can be a program name with args.
6668set dummy $ac_prog; ac_word=$2
6669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6671if test "${ac_cv_prog_YACC+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673else
6674 if test -n "$YACC"; then
6675 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006684 ac_cv_prog_YACC="$ac_prog"
6685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694YACC=$ac_cv_prog_YACC
6695if test -n "$YACC"; then
6696 { echo "$as_me:$LINENO: result: $YACC" >&5
6697echo "${ECHO_T}$YACC" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704 test -n "$YACC" && break
6705done
6706test -n "$YACC" || YACC="yacc"
6707
6708fi
6709{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6710echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6711if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006712
6713 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6714echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006715else
6716 BISON=bison
6717
6718fi
6719
6720{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6721echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6722if test "${lt_cv_path_NM+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725 if test -n "$NM"; then
6726 # Let the user override the test.
6727 lt_cv_path_NM="$NM"
6728else
6729 lt_nm_to_check="${ac_tool_prefix}nm"
6730 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6731 lt_nm_to_check="$lt_nm_to_check nm"
6732 fi
6733 for lt_tmp_nm in $lt_nm_to_check; do
6734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6736 IFS="$lt_save_ifs"
6737 test -z "$ac_dir" && ac_dir=.
6738 tmp_nm="$ac_dir/$lt_tmp_nm"
6739 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6740 # Check to see if the nm accepts a BSD-compat flag.
6741 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6742 # nm: unknown option "B" ignored
6743 # Tru64's nm complains that /dev/null is an invalid object file
6744 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6745 */dev/null* | *'Invalid file or object type'*)
6746 lt_cv_path_NM="$tmp_nm -B"
6747 break
6748 ;;
6749 *)
6750 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6751 */dev/null*)
6752 lt_cv_path_NM="$tmp_nm -p"
6753 break
6754 ;;
6755 *)
6756 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6757 continue # so that we can try to find one that supports BSD flags
6758 ;;
6759 esac
6760 ;;
6761 esac
6762 fi
6763 done
6764 IFS="$lt_save_ifs"
6765 done
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6767fi
6768fi
6769{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6770echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6771NM="$lt_cv_path_NM"
6772
6773
6774
6775{ echo "$as_me:$LINENO: checking for GNU make" >&5
6776echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6777if test "${llvm_cv_gnu_make_command+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780 llvm_cv_gnu_make_command=''
6781 for a in "$MAKE" make gmake gnumake ; do
6782 if test -z "$a" ; then continue ; fi ;
6783 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6784 then
6785 llvm_cv_gnu_make_command=$a ;
6786 break;
6787 fi
6788 done
6789fi
6790{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6791echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6792 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6793 ifGNUmake='' ;
6794 else
6795 ifGNUmake='#' ;
6796 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6797echo "${ECHO_T}\"Not found\"" >&6; };
6798 fi
6799
6800
6801{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6802echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6803LN_S=$as_ln_s
6804if test "$LN_S" = "ln -s"; then
6805 { echo "$as_me:$LINENO: result: yes" >&5
6806echo "${ECHO_T}yes" >&6; }
6807else
6808 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6809echo "${ECHO_T}no, using $LN_S" >&6; }
6810fi
6811
6812# Extract the first word of "cmp", so it can be a program name with args.
6813set dummy cmp; ac_word=$2
6814{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816if test "${ac_cv_path_CMP+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6818else
6819 case $CMP in
6820 [\\/]* | ?:[\\/]*)
6821 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6822 ;;
6823 *)
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825for as_dir in $PATH
6826do
6827 IFS=$as_save_IFS
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006831 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 break 2
6834 fi
6835done
6836done
6837IFS=$as_save_IFS
6838
6839 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6840 ;;
6841esac
6842fi
6843CMP=$ac_cv_path_CMP
6844if test -n "$CMP"; then
6845 { echo "$as_me:$LINENO: result: $CMP" >&5
6846echo "${ECHO_T}$CMP" >&6; }
6847else
6848 { echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6; }
6850fi
6851
6852
6853# Extract the first word of "cp", so it can be a program name with args.
6854set dummy cp; ac_word=$2
6855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6857if test "${ac_cv_path_CP+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859else
6860 case $CP in
6861 [\\/]* | ?:[\\/]*)
6862 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6863 ;;
6864 *)
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006872 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878IFS=$as_save_IFS
6879
6880 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6881 ;;
6882esac
6883fi
6884CP=$ac_cv_path_CP
6885if test -n "$CP"; then
6886 { echo "$as_me:$LINENO: result: $CP" >&5
6887echo "${ECHO_T}$CP" >&6; }
6888else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6; }
6891fi
6892
6893
6894# Extract the first word of "date", so it can be a program name with args.
6895set dummy date; ac_word=$2
6896{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6898if test "${ac_cv_path_DATE+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901 case $DATE in
6902 [\\/]* | ?:[\\/]*)
6903 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6904 ;;
6905 *)
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907for as_dir in $PATH
6908do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006913 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917done
6918done
6919IFS=$as_save_IFS
6920
6921 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6922 ;;
6923esac
6924fi
6925DATE=$ac_cv_path_DATE
6926if test -n "$DATE"; then
6927 { echo "$as_me:$LINENO: result: $DATE" >&5
6928echo "${ECHO_T}$DATE" >&6; }
6929else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6; }
6932fi
6933
6934
6935# Extract the first word of "find", so it can be a program name with args.
6936set dummy find; ac_word=$2
6937{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6939if test "${ac_cv_path_FIND+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6941else
6942 case $FIND in
6943 [\\/]* | ?:[\\/]*)
6944 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6945 ;;
6946 *)
6947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6948for as_dir in $PATH
6949do
6950 IFS=$as_save_IFS
6951 test -z "$as_dir" && as_dir=.
6952 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006954 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 break 2
6957 fi
6958done
6959done
6960IFS=$as_save_IFS
6961
6962 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6963 ;;
6964esac
6965fi
6966FIND=$ac_cv_path_FIND
6967if test -n "$FIND"; then
6968 { echo "$as_me:$LINENO: result: $FIND" >&5
6969echo "${ECHO_T}$FIND" >&6; }
6970else
6971 { echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6; }
6973fi
6974
6975
6976# Extract the first word of "grep", so it can be a program name with args.
6977set dummy grep; ac_word=$2
6978{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6980if test "${ac_cv_path_GREP+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982else
6983 case $GREP in
6984 [\\/]* | ?:[\\/]*)
6985 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989for as_dir in $PATH
6990do
6991 IFS=$as_save_IFS
6992 test -z "$as_dir" && as_dir=.
6993 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00006994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00006995 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 break 2
6998 fi
6999done
7000done
7001IFS=$as_save_IFS
7002
7003 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
7004 ;;
7005esac
7006fi
7007GREP=$ac_cv_path_GREP
7008if test -n "$GREP"; then
7009 { echo "$as_me:$LINENO: result: $GREP" >&5
7010echo "${ECHO_T}$GREP" >&6; }
7011else
7012 { echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6; }
7014fi
7015
7016
7017# Extract the first word of "mkdir", so it can be a program name with args.
7018set dummy mkdir; ac_word=$2
7019{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7021if test "${ac_cv_path_MKDIR+set}" = set; then
7022 echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024 case $MKDIR in
7025 [\\/]* | ?:[\\/]*)
7026 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7027 ;;
7028 *)
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007036 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7039 fi
7040done
7041done
7042IFS=$as_save_IFS
7043
7044 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
7045 ;;
7046esac
7047fi
7048MKDIR=$ac_cv_path_MKDIR
7049if test -n "$MKDIR"; then
7050 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7051echo "${ECHO_T}$MKDIR" >&6; }
7052else
7053 { echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6; }
7055fi
7056
7057
7058# Extract the first word of "mv", so it can be a program name with args.
7059set dummy mv; ac_word=$2
7060{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7062if test "${ac_cv_path_MV+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7064else
7065 case $MV in
7066 [\\/]* | ?:[\\/]*)
7067 ac_cv_path_MV="$MV" # Let the user override the test with a path.
7068 ;;
7069 *)
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH
7072do
7073 IFS=$as_save_IFS
7074 test -z "$as_dir" && as_dir=.
7075 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007077 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 break 2
7080 fi
7081done
7082done
7083IFS=$as_save_IFS
7084
7085 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7086 ;;
7087esac
7088fi
7089MV=$ac_cv_path_MV
7090if test -n "$MV"; then
7091 { echo "$as_me:$LINENO: result: $MV" >&5
7092echo "${ECHO_T}$MV" >&6; }
7093else
7094 { echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6; }
7096fi
7097
7098
7099if test -n "$ac_tool_prefix"; then
7100 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7101set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7102{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7104if test "${ac_cv_prog_RANLIB+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107 if test -n "$RANLIB"; then
7108 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7109else
7110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111for as_dir in $PATH
7112do
7113 IFS=$as_save_IFS
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007117 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7119 break 2
7120 fi
7121done
7122done
7123IFS=$as_save_IFS
7124
7125fi
7126fi
7127RANLIB=$ac_cv_prog_RANLIB
7128if test -n "$RANLIB"; then
7129 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7130echo "${ECHO_T}$RANLIB" >&6; }
7131else
7132 { echo "$as_me:$LINENO: result: no" >&5
7133echo "${ECHO_T}no" >&6; }
7134fi
7135
7136
7137fi
7138if test -z "$ac_cv_prog_RANLIB"; then
7139 ac_ct_RANLIB=$RANLIB
7140 # Extract the first word of "ranlib", so it can be a program name with args.
7141set dummy ranlib; ac_word=$2
7142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146else
7147 if test -n "$ac_ct_RANLIB"; then
7148 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7149else
7150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151for as_dir in $PATH
7152do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007157 ac_cv_prog_ac_ct_RANLIB="ranlib"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161done
7162done
7163IFS=$as_save_IFS
7164
7165fi
7166fi
7167ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7168if test -n "$ac_ct_RANLIB"; then
7169 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7170echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7171else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173echo "${ECHO_T}no" >&6; }
7174fi
7175
7176 if test "x$ac_ct_RANLIB" = x; then
7177 RANLIB=":"
7178 else
7179 case $cross_compiling:$ac_tool_warned in
7180yes:)
7181{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7182whose name does not start with the host triplet. If you think this
7183configuration is useful to you, please write to autoconf@gnu.org." >&5
7184echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7185whose name does not start with the host triplet. If you think this
7186configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7187ac_tool_warned=yes ;;
7188esac
7189 RANLIB=$ac_ct_RANLIB
7190 fi
7191else
7192 RANLIB="$ac_cv_prog_RANLIB"
7193fi
7194
7195# Extract the first word of "rm", so it can be a program name with args.
7196set dummy rm; ac_word=$2
7197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7199if test "${ac_cv_path_RM+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202 case $RM in
7203 [\\/]* | ?:[\\/]*)
7204 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7205 ;;
7206 *)
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208for as_dir in $PATH
7209do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007214 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218done
7219done
7220IFS=$as_save_IFS
7221
7222 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7223 ;;
7224esac
7225fi
7226RM=$ac_cv_path_RM
7227if test -n "$RM"; then
7228 { echo "$as_me:$LINENO: result: $RM" >&5
7229echo "${ECHO_T}$RM" >&6; }
7230else
7231 { echo "$as_me:$LINENO: result: no" >&5
7232echo "${ECHO_T}no" >&6; }
7233fi
7234
7235
7236# Extract the first word of "sed", so it can be a program name with args.
7237set dummy sed; ac_word=$2
7238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240if test "${ac_cv_path_SED+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242else
7243 case $SED in
7244 [\\/]* | ?:[\\/]*)
7245 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7246 ;;
7247 *)
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251 IFS=$as_save_IFS
7252 test -z "$as_dir" && as_dir=.
7253 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007255 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257 break 2
7258 fi
7259done
7260done
7261IFS=$as_save_IFS
7262
7263 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7264 ;;
7265esac
7266fi
7267SED=$ac_cv_path_SED
7268if test -n "$SED"; then
7269 { echo "$as_me:$LINENO: result: $SED" >&5
7270echo "${ECHO_T}$SED" >&6; }
7271else
7272 { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
7274fi
7275
7276
7277# Extract the first word of "tar", so it can be a program name with args.
7278set dummy tar; ac_word=$2
7279{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281if test "${ac_cv_path_TAR+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283else
7284 case $TAR in
7285 [\\/]* | ?:[\\/]*)
7286 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7287 ;;
7288 *)
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290for as_dir in $PATH
7291do
7292 IFS=$as_save_IFS
7293 test -z "$as_dir" && as_dir=.
7294 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007296 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298 break 2
7299 fi
7300done
7301done
7302IFS=$as_save_IFS
7303
7304 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7305 ;;
7306esac
7307fi
7308TAR=$ac_cv_path_TAR
7309if test -n "$TAR"; then
7310 { echo "$as_me:$LINENO: result: $TAR" >&5
7311echo "${ECHO_T}$TAR" >&6; }
7312else
7313 { echo "$as_me:$LINENO: result: no" >&5
7314echo "${ECHO_T}no" >&6; }
7315fi
7316
7317
7318# Extract the first word of "pwd", so it can be a program name with args.
7319set dummy pwd; ac_word=$2
7320{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7321echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322if test "${ac_cv_path_BINPWD+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7324else
7325 case $BINPWD in
7326 [\\/]* | ?:[\\/]*)
7327 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7328 ;;
7329 *)
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331for as_dir in $PATH
7332do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007337 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341done
7342done
7343IFS=$as_save_IFS
7344
7345 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7346 ;;
7347esac
7348fi
7349BINPWD=$ac_cv_path_BINPWD
7350if test -n "$BINPWD"; then
7351 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7352echo "${ECHO_T}$BINPWD" >&6; }
7353else
7354 { echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6; }
7356fi
7357
7358
7359
7360# Extract the first word of "Graphviz", so it can be a program name with args.
7361set dummy Graphviz; ac_word=$2
7362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367 case $GRAPHVIZ in
7368 [\\/]* | ?:[\\/]*)
7369 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7370 ;;
7371 *)
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373for as_dir in $PATH
7374do
7375 IFS=$as_save_IFS
7376 test -z "$as_dir" && as_dir=.
7377 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007379 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7381 break 2
7382 fi
7383done
7384done
7385IFS=$as_save_IFS
7386
7387 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7388 ;;
7389esac
7390fi
7391GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7392if test -n "$GRAPHVIZ"; then
7393 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7394echo "${ECHO_T}$GRAPHVIZ" >&6; }
7395else
7396 { echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6; }
7398fi
7399
7400
7401if test "$GRAPHVIZ" != "echo Graphviz" ; then
7402
7403cat >>confdefs.h <<\_ACEOF
7404#define HAVE_GRAPHVIZ 1
7405_ACEOF
7406
Jeff Cohen28783c32007-01-12 18:22:38 +00007407 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007408 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7409 fi
7410
7411cat >>confdefs.h <<_ACEOF
7412#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7413_ACEOF
7414
7415fi
7416# Extract the first word of "dot", so it can be a program name with args.
7417set dummy dot; ac_word=$2
7418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420if test "${ac_cv_path_DOT+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423 case $DOT in
7424 [\\/]* | ?:[\\/]*)
7425 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7426 ;;
7427 *)
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429for as_dir in $PATH
7430do
7431 IFS=$as_save_IFS
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007435 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439done
7440done
7441IFS=$as_save_IFS
7442
7443 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7444 ;;
7445esac
7446fi
7447DOT=$ac_cv_path_DOT
7448if test -n "$DOT"; then
7449 { echo "$as_me:$LINENO: result: $DOT" >&5
7450echo "${ECHO_T}$DOT" >&6; }
7451else
7452 { echo "$as_me:$LINENO: result: no" >&5
7453echo "${ECHO_T}no" >&6; }
7454fi
7455
7456
7457if test "$DOT" != "echo dot" ; then
7458
7459cat >>confdefs.h <<\_ACEOF
7460#define HAVE_DOT 1
7461_ACEOF
7462
Jeff Cohen28783c32007-01-12 18:22:38 +00007463 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007464 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7465 fi
7466
7467cat >>confdefs.h <<_ACEOF
7468#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7469_ACEOF
7470
7471fi
7472for ac_prog in gv gsview32
7473do
7474 # Extract the first word of "$ac_prog", so it can be a program name with args.
7475set dummy $ac_prog; ac_word=$2
7476{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7478if test "${ac_cv_path_GV+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 case $GV in
7482 [\\/]* | ?:[\\/]*)
7483 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7484 ;;
7485 *)
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007493 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7496 fi
7497done
7498done
7499IFS=$as_save_IFS
7500
7501 ;;
7502esac
7503fi
7504GV=$ac_cv_path_GV
7505if test -n "$GV"; then
7506 { echo "$as_me:$LINENO: result: $GV" >&5
7507echo "${ECHO_T}$GV" >&6; }
7508else
7509 { echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6; }
7511fi
7512
7513
7514 test -n "$GV" && break
7515done
7516test -n "$GV" || GV="echo gv"
7517
7518if test "$GV" != "echo gv" ; then
7519
7520cat >>confdefs.h <<\_ACEOF
7521#define HAVE_GV 1
7522_ACEOF
7523
Jeff Cohen28783c32007-01-12 18:22:38 +00007524 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007525 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7526 fi
7527
7528cat >>confdefs.h <<_ACEOF
7529#define LLVM_PATH_GV "$GV${EXEEXT}"
7530_ACEOF
7531
7532fi
7533# Extract the first word of "dotty", so it can be a program name with args.
7534set dummy dotty; ac_word=$2
7535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7537if test "${ac_cv_path_DOTTY+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540 case $DOTTY in
7541 [\\/]* | ?:[\\/]*)
7542 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7543 ;;
7544 *)
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
7550 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007552 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 break 2
7555 fi
7556done
7557done
7558IFS=$as_save_IFS
7559
7560 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7561 ;;
7562esac
7563fi
7564DOTTY=$ac_cv_path_DOTTY
7565if test -n "$DOTTY"; then
7566 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7567echo "${ECHO_T}$DOTTY" >&6; }
7568else
7569 { echo "$as_me:$LINENO: result: no" >&5
7570echo "${ECHO_T}no" >&6; }
7571fi
7572
7573
7574if test "$DOTTY" != "echo dotty" ; then
7575
7576cat >>confdefs.h <<\_ACEOF
7577#define HAVE_DOTTY 1
7578_ACEOF
7579
Jeff Cohen28783c32007-01-12 18:22:38 +00007580 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007581 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7582 fi
7583
7584cat >>confdefs.h <<_ACEOF
7585#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7586_ACEOF
7587
7588fi
7589
7590
7591# Extract the first word of "perl", so it can be a program name with args.
7592set dummy perl; ac_word=$2
7593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7595if test "${ac_cv_path_PERL+set}" = set; then
7596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 case $PERL in
7599 [\\/]* | ?:[\\/]*)
7600 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7601 ;;
7602 *)
7603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7604for as_dir in $PATH
7605do
7606 IFS=$as_save_IFS
7607 test -z "$as_dir" && as_dir=.
7608 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007610 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7612 break 2
7613 fi
7614done
7615done
7616IFS=$as_save_IFS
7617
7618 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7619 ;;
7620esac
7621fi
7622PERL=$ac_cv_path_PERL
7623if test -n "$PERL"; then
7624 { echo "$as_me:$LINENO: result: $PERL" >&5
7625echo "${ECHO_T}$PERL" >&6; }
7626else
7627 { echo "$as_me:$LINENO: result: no" >&5
7628echo "${ECHO_T}no" >&6; }
7629fi
7630
7631
7632if test "$PERL" != "none"; then
7633 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7634echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7635 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7636 { echo "$as_me:$LINENO: result: yes" >&5
7637echo "${ECHO_T}yes" >&6; }
7638 else
7639 PERL=none
7640 { echo "$as_me:$LINENO: result: not found" >&5
7641echo "${ECHO_T}not found" >&6; }
7642 fi
7643fi
7644
7645
7646if test x"$PERL" = xnone; then
7647 HAVE_PERL=0
7648
Reid Spencer59807fa2007-05-17 18:11:03 +00007649 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7650echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7651 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00007652else
7653 HAVE_PERL=1
7654
7655fi
7656
7657# Find a good install program. We prefer a C program (faster),
7658# so one script is as good as another. But avoid the broken or
7659# incompatible versions:
7660# SysV /etc/install, /usr/sbin/install
7661# SunOS /usr/etc/install
7662# IRIX /sbin/install
7663# AIX /bin/install
7664# AmigaOS /C/install, which installs bootblocks on floppy discs
7665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7666# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7668# OS/2's system install, which has a completely different semantic
7669# ./install, which can be erroneously created by make from ./install.sh.
7670{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7671echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7672if test -z "$INSTALL"; then
7673if test "${ac_cv_path_install+set}" = set; then
7674 echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 # Account for people who put trailing slashes in PATH elements.
7682case $as_dir/ in
7683 ./ | .// | /cC/* | \
7684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7686 /usr/ucb/* ) ;;
7687 *)
7688 # OSF1 and SCO ODT 3.0 have their own names for install.
7689 # Don't use installbsd from OSF since it installs stuff as root
7690 # by default.
7691 for ac_prog in ginstall scoinst install; do
7692 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007694 if test $ac_prog = install &&
7695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7696 # AIX install. It has an incompatible calling convention.
7697 :
7698 elif test $ac_prog = install &&
7699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7700 # program-specific install script used by HP pwplus--don't use.
7701 :
7702 else
7703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7704 break 3
7705 fi
7706 fi
7707 done
7708 done
7709 ;;
7710esac
7711done
7712IFS=$as_save_IFS
7713
7714
7715fi
7716 if test "${ac_cv_path_install+set}" = set; then
7717 INSTALL=$ac_cv_path_install
7718 else
7719 # As a last resort, use the slow shell script. Don't cache a
7720 # value for INSTALL within a source directory, because that will
7721 # break other packages using the cache if that directory is
7722 # removed, or if the value is a relative name.
7723 INSTALL=$ac_install_sh
7724 fi
7725fi
7726{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7727echo "${ECHO_T}$INSTALL" >&6; }
7728
7729# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7730# It thinks the first close brace ends the variable substitution.
7731test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7732
7733test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7734
7735test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7736
7737
7738# Extract the first word of "bzip2", so it can be a program name with args.
7739set dummy bzip2; ac_word=$2
7740{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7742if test "${ac_cv_path_BZIP2+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7744else
7745 case $BZIP2 in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7748 ;;
7749 *)
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007757 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7760 fi
7761done
7762done
7763IFS=$as_save_IFS
7764
Reid Spencera773bd52006-08-04 18:18:08 +00007765 ;;
7766esac
7767fi
7768BZIP2=$ac_cv_path_BZIP2
7769if test -n "$BZIP2"; then
7770 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7771echo "${ECHO_T}$BZIP2" >&6; }
7772else
7773 { echo "$as_me:$LINENO: result: no" >&5
7774echo "${ECHO_T}no" >&6; }
7775fi
7776
7777
7778# Extract the first word of "doxygen", so it can be a program name with args.
7779set dummy doxygen; ac_word=$2
7780{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7782if test "${ac_cv_path_DOXYGEN+set}" = set; then
7783 echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785 case $DOXYGEN in
7786 [\\/]* | ?:[\\/]*)
7787 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7788 ;;
7789 *)
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791for as_dir in $PATH
7792do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007797 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801done
7802done
7803IFS=$as_save_IFS
7804
Reid Spencera773bd52006-08-04 18:18:08 +00007805 ;;
7806esac
7807fi
7808DOXYGEN=$ac_cv_path_DOXYGEN
7809if test -n "$DOXYGEN"; then
7810 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7811echo "${ECHO_T}$DOXYGEN" >&6; }
7812else
7813 { echo "$as_me:$LINENO: result: no" >&5
7814echo "${ECHO_T}no" >&6; }
7815fi
7816
7817
Reid Spencera773bd52006-08-04 18:18:08 +00007818# Extract the first word of "groff", so it can be a program name with args.
7819set dummy groff; ac_word=$2
7820{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822if test "${ac_cv_path_GROFF+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7824else
7825 case $GROFF in
7826 [\\/]* | ?:[\\/]*)
7827 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7828 ;;
7829 *)
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833 IFS=$as_save_IFS
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007837 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 break 2
7840 fi
7841done
7842done
7843IFS=$as_save_IFS
7844
Reid Spencera773bd52006-08-04 18:18:08 +00007845 ;;
7846esac
7847fi
7848GROFF=$ac_cv_path_GROFF
7849if test -n "$GROFF"; then
7850 { echo "$as_me:$LINENO: result: $GROFF" >&5
7851echo "${ECHO_T}$GROFF" >&6; }
7852else
7853 { echo "$as_me:$LINENO: result: no" >&5
7854echo "${ECHO_T}no" >&6; }
7855fi
7856
7857
7858# Extract the first word of "gzip", so it can be a program name with args.
7859set dummy gzip; ac_word=$2
7860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7862if test "${ac_cv_path_GZIP+set}" = set; then
7863 echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865 case $GZIP in
7866 [\\/]* | ?:[\\/]*)
7867 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7868 ;;
7869 *)
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007877 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881done
7882done
7883IFS=$as_save_IFS
7884
Reid Spencera773bd52006-08-04 18:18:08 +00007885 ;;
7886esac
7887fi
7888GZIP=$ac_cv_path_GZIP
7889if test -n "$GZIP"; then
7890 { echo "$as_me:$LINENO: result: $GZIP" >&5
7891echo "${ECHO_T}$GZIP" >&6; }
7892else
7893 { echo "$as_me:$LINENO: result: no" >&5
7894echo "${ECHO_T}no" >&6; }
7895fi
7896
7897
7898# Extract the first word of "pod2html", so it can be a program name with args.
7899set dummy pod2html; ac_word=$2
7900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7902if test "${ac_cv_path_POD2HTML+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905 case $POD2HTML in
7906 [\\/]* | ?:[\\/]*)
7907 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7908 ;;
7909 *)
7910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911for as_dir in $PATH
7912do
7913 IFS=$as_save_IFS
7914 test -z "$as_dir" && as_dir=.
7915 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007917 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 break 2
7920 fi
7921done
7922done
7923IFS=$as_save_IFS
7924
Reid Spencera773bd52006-08-04 18:18:08 +00007925 ;;
7926esac
7927fi
7928POD2HTML=$ac_cv_path_POD2HTML
7929if test -n "$POD2HTML"; then
7930 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7931echo "${ECHO_T}$POD2HTML" >&6; }
7932else
7933 { echo "$as_me:$LINENO: result: no" >&5
7934echo "${ECHO_T}no" >&6; }
7935fi
7936
7937
7938# Extract the first word of "pod2man", so it can be a program name with args.
7939set dummy pod2man; ac_word=$2
7940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7942if test "${ac_cv_path_POD2MAN+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945 case $POD2MAN in
7946 [\\/]* | ?:[\\/]*)
7947 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7948 ;;
7949 *)
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007957 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961done
7962done
7963IFS=$as_save_IFS
7964
Reid Spencera773bd52006-08-04 18:18:08 +00007965 ;;
7966esac
7967fi
7968POD2MAN=$ac_cv_path_POD2MAN
7969if test -n "$POD2MAN"; then
7970 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7971echo "${ECHO_T}$POD2MAN" >&6; }
7972else
7973 { echo "$as_me:$LINENO: result: no" >&5
7974echo "${ECHO_T}no" >&6; }
7975fi
7976
7977
7978# Extract the first word of "runtest", so it can be a program name with args.
7979set dummy runtest; ac_word=$2
7980{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982if test "${ac_cv_path_RUNTEST+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985 case $RUNTEST in
7986 [\\/]* | ?:[\\/]*)
7987 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7988 ;;
7989 *)
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7991for as_dir in $PATH
7992do
7993 IFS=$as_save_IFS
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00007996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00007997 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7999 break 2
8000 fi
8001done
8002done
8003IFS=$as_save_IFS
8004
Reid Spencera773bd52006-08-04 18:18:08 +00008005 ;;
8006esac
8007fi
8008RUNTEST=$ac_cv_path_RUNTEST
8009if test -n "$RUNTEST"; then
8010 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8011echo "${ECHO_T}$RUNTEST" >&6; }
8012else
8013 { echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6; }
8015fi
8016
8017
8018
8019no_itcl=true
8020{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8021echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8022
8023# Check whether --with-tclinclude was given.
8024if test "${with_tclinclude+set}" = set; then
8025 withval=$with_tclinclude; with_tclinclude=${withval}
8026else
8027 with_tclinclude=''
8028fi
8029
8030if test "${ac_cv_path_tclsh+set}" = set; then
8031 echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033
8034if test x"${with_tclinclude}" != x ; then
8035 if test -f ${with_tclinclude}/tclsh ; then
8036 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8037 elif test -f ${with_tclinclude}/src/tclsh ; then
8038 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8039 else
8040 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8041echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8042 { (exit 1); exit 1; }; }
8043 fi
8044fi
8045
8046if test x"${ac_cv_path_tclsh}" = x ; then
8047 { echo "$as_me:$LINENO: result: none" >&5
8048echo "${ECHO_T}none" >&6; }
8049 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
8050do
8051 # Extract the first word of "$ac_prog", so it can be a program name with args.
8052set dummy $ac_prog; ac_word=$2
8053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8055if test "${ac_cv_path_TCLSH+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8057else
8058 case $TCLSH in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8061 ;;
8062 *)
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064for as_dir in $PATH
8065do
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008070 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8073 fi
8074done
8075done
8076IFS=$as_save_IFS
8077
8078 ;;
8079esac
8080fi
8081TCLSH=$ac_cv_path_TCLSH
8082if test -n "$TCLSH"; then
8083 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8084echo "${ECHO_T}$TCLSH" >&6; }
8085else
8086 { echo "$as_me:$LINENO: result: no" >&5
8087echo "${ECHO_T}no" >&6; }
8088fi
8089
8090
8091 test -n "$TCLSH" && break
8092done
8093
8094 if test x"${TCLSH}" = x ; then
8095 ac_cv_path_tclsh='';
8096 else
8097 ac_cv_path_tclsh="${TCLSH}";
8098 fi
8099else
8100 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8101echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8102 TCLSH="${ac_cv_path_tclsh}"
8103
8104fi
8105
8106fi
8107
8108# Extract the first word of "zip", so it can be a program name with args.
8109set dummy zip; ac_word=$2
8110{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8112if test "${ac_cv_path_ZIP+set}" = set; then
8113 echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115 case $ZIP in
8116 [\\/]* | ?:[\\/]*)
8117 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8118 ;;
8119 *)
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121for as_dir in $PATH
8122do
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008127 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8130 fi
8131done
8132done
8133IFS=$as_save_IFS
8134
Reid Spencera773bd52006-08-04 18:18:08 +00008135 ;;
8136esac
8137fi
8138ZIP=$ac_cv_path_ZIP
8139if test -n "$ZIP"; then
8140 { echo "$as_me:$LINENO: result: $ZIP" >&5
8141echo "${ECHO_T}$ZIP" >&6; }
8142else
8143 { echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6; }
8145fi
8146
8147
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008148for ac_prog in ocamlc
Gordon Henriksene7072162008-03-07 18:20:01 +00008149do
8150 # Extract the first word of "$ac_prog", so it can be a program name with args.
8151set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008152{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8154if test "${ac_cv_path_OCAMLC+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157 case $OCAMLC in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8160 ;;
8161 *)
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163for as_dir in $PATH
8164do
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008169 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8172 fi
8173done
8174done
8175IFS=$as_save_IFS
8176
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008177 ;;
8178esac
8179fi
8180OCAMLC=$ac_cv_path_OCAMLC
8181if test -n "$OCAMLC"; then
8182 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8183echo "${ECHO_T}$OCAMLC" >&6; }
8184else
8185 { echo "$as_me:$LINENO: result: no" >&5
8186echo "${ECHO_T}no" >&6; }
8187fi
8188
8189
Gordon Henriksene7072162008-03-07 18:20:01 +00008190 test -n "$OCAMLC" && break
8191done
8192
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008193for ac_prog in ocamlopt
Gordon Henriksene7072162008-03-07 18:20:01 +00008194do
8195 # Extract the first word of "$ac_prog", so it can be a program name with args.
8196set dummy $ac_prog; ac_word=$2
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008197{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8198echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8199if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 case $OCAMLOPT in
8203 [\\/]* | ?:[\\/]*)
8204 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8205 ;;
8206 *)
8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208for as_dir in $PATH
8209do
8210 IFS=$as_save_IFS
8211 test -z "$as_dir" && as_dir=.
8212 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008214 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8216 break 2
8217 fi
8218done
8219done
8220IFS=$as_save_IFS
8221
Gordon Henriksen54c7e122007-09-18 12:27:13 +00008222 ;;
8223esac
8224fi
8225OCAMLOPT=$ac_cv_path_OCAMLOPT
8226if test -n "$OCAMLOPT"; then
8227 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8228echo "${ECHO_T}$OCAMLOPT" >&6; }
8229else
8230 { echo "$as_me:$LINENO: result: no" >&5
8231echo "${ECHO_T}no" >&6; }
8232fi
8233
8234
Gordon Henriksene7072162008-03-07 18:20:01 +00008235 test -n "$OCAMLOPT" && break
8236done
8237
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008238for ac_prog in ocamldep
Gordon Henriksene7072162008-03-07 18:20:01 +00008239do
8240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8241set dummy $ac_prog; ac_word=$2
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8244if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8245 echo $ECHO_N "(cached) $ECHO_C" >&6
8246else
8247 case $OCAMLDEP in
8248 [\\/]* | ?:[\\/]*)
8249 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8250 ;;
8251 *)
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253for as_dir in $PATH
8254do
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008259 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8262 fi
8263done
8264done
8265IFS=$as_save_IFS
8266
Gordon Henriksenc20f5b02007-09-20 16:48:18 +00008267 ;;
8268esac
8269fi
8270OCAMLDEP=$ac_cv_path_OCAMLDEP
8271if test -n "$OCAMLDEP"; then
8272 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8273echo "${ECHO_T}$OCAMLDEP" >&6; }
8274else
8275 { echo "$as_me:$LINENO: result: no" >&5
8276echo "${ECHO_T}no" >&6; }
8277fi
8278
8279
Gordon Henriksene7072162008-03-07 18:20:01 +00008280 test -n "$OCAMLDEP" && break
8281done
8282
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008283for ac_prog in ocamldoc
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008284do
8285 # Extract the first word of "$ac_prog", so it can be a program name with args.
8286set dummy $ac_prog; ac_word=$2
8287{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8289if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291else
8292 case $OCAMLDOC in
8293 [\\/]* | ?:[\\/]*)
8294 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8295 ;;
8296 *)
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298for as_dir in $PATH
8299do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +00008304 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308done
8309done
8310IFS=$as_save_IFS
8311
8312 ;;
8313esac
8314fi
8315OCAMLDOC=$ac_cv_path_OCAMLDOC
8316if test -n "$OCAMLDOC"; then
8317 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8318echo "${ECHO_T}$OCAMLDOC" >&6; }
8319else
8320 { echo "$as_me:$LINENO: result: no" >&5
8321echo "${ECHO_T}no" >&6; }
8322fi
8323
8324
8325 test -n "$OCAMLDOC" && break
8326done
8327
Torok Edwincc499a42008-10-22 09:56:27 +00008328for ac_prog in gas as
8329do
8330 # Extract the first word of "$ac_prog", so it can be a program name with args.
8331set dummy $ac_prog; ac_word=$2
8332{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8334if test "${ac_cv_path_GAS+set}" = set; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8336else
8337 case $GAS in
8338 [\\/]* | ?:[\\/]*)
8339 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8340 ;;
8341 *)
8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
8347 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Torok Edwincc499a42008-10-22 09:56:27 +00008349 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8351 break 2
8352 fi
8353done
8354done
8355IFS=$as_save_IFS
8356
8357 ;;
8358esac
8359fi
8360GAS=$ac_cv_path_GAS
8361if test -n "$GAS"; then
8362 { echo "$as_me:$LINENO: result: $GAS" >&5
8363echo "${ECHO_T}$GAS" >&6; }
8364else
8365 { echo "$as_me:$LINENO: result: no" >&5
8366echo "${ECHO_T}no" >&6; }
8367fi
8368
8369
8370 test -n "$GAS" && break
8371done
8372
Reid Spencera773bd52006-08-04 18:18:08 +00008373
8374{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8375echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8376if test "${llvm_cv_link_use_r+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 ac_ext=c
8380ac_cpp='$CPP $CPPFLAGS'
8381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8383ac_compiler_gnu=$ac_cv_c_compiler_gnu
8384
8385 oldcflags="$CFLAGS"
8386 CFLAGS="$CFLAGS -Wl,-R."
8387 cat >conftest.$ac_ext <<_ACEOF
8388/* confdefs.h. */
8389_ACEOF
8390cat confdefs.h >>conftest.$ac_ext
8391cat >>conftest.$ac_ext <<_ACEOF
8392/* end confdefs.h. */
8393
8394int
8395main ()
8396{
8397int main() { return 0; }
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402rm -f conftest.$ac_objext conftest$ac_exeext
8403if { (ac_try="$ac_link"
8404case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407esac
8408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_link") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
8423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest$ac_exeext'
8427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
8433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008436 llvm_cv_link_use_r=yes
8437else
8438 echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 llvm_cv_link_use_r=no
8442fi
8443
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008444rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008445 conftest$ac_exeext conftest.$ac_ext
8446 CFLAGS="$oldcflags"
8447 ac_ext=c
8448ac_cpp='$CPP $CPPFLAGS'
8449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8451ac_compiler_gnu=$ac_cv_c_compiler_gnu
8452
8453
8454fi
8455{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8456echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8457if test "$llvm_cv_link_use_r" = yes ; then
8458
8459cat >>confdefs.h <<\_ACEOF
8460#define HAVE_LINK_R 1
8461_ACEOF
8462
8463 fi
8464
8465
8466
8467
8468{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8469echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8470if test "${ac_cv_c_const+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473 cat >conftest.$ac_ext <<_ACEOF
8474/* confdefs.h. */
8475_ACEOF
8476cat confdefs.h >>conftest.$ac_ext
8477cat >>conftest.$ac_ext <<_ACEOF
8478/* end confdefs.h. */
8479
8480int
8481main ()
8482{
8483/* FIXME: Include the comments suggested by Paul. */
8484#ifndef __cplusplus
8485 /* Ultrix mips cc rejects this. */
8486 typedef int charset[2];
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008487 const charset x;
Reid Spencera773bd52006-08-04 18:18:08 +00008488 /* SunOS 4.1.1 cc rejects this. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008489 char const *const *ccp;
8490 char **p;
Reid Spencera773bd52006-08-04 18:18:08 +00008491 /* NEC SVR4.0.2 mips cc rejects this. */
8492 struct point {int x, y;};
8493 static struct point const zero = {0,0};
8494 /* AIX XL C 1.02.0.0 rejects this.
8495 It does not let you subtract one const X* pointer from another in
8496 an arm of an if-expression whose if-part is not a constant
8497 expression */
8498 const char *g = "string";
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008499 ccp = &g + (g ? g-g : 0);
Reid Spencera773bd52006-08-04 18:18:08 +00008500 /* HPUX 7.0 cc rejects these. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008501 ++ccp;
8502 p = (char**) ccp;
8503 ccp = (char const *const *) p;
Reid Spencera773bd52006-08-04 18:18:08 +00008504 { /* SCO 3.2v4 cc rejects this. */
8505 char *t;
8506 char const *s = 0 ? (char *) 0 : (char const *) 0;
8507
8508 *t++ = 0;
8509 if (s) return 0;
8510 }
8511 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8512 int x[] = {25, 17};
8513 const int *foo = &x[0];
8514 ++foo;
8515 }
8516 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8517 typedef const int *iptr;
8518 iptr p = 0;
8519 ++p;
8520 }
8521 { /* AIX XL C 1.02.0.0 rejects this saying
8522 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8523 struct s { int j; const int *ap[3]; };
8524 struct s *b; b->j = 5;
8525 }
8526 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8527 const int foo = 10;
8528 if (!foo) return 0;
8529 }
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008530 return !x[0] && !zero.x;
Reid Spencera773bd52006-08-04 18:18:08 +00008531#endif
8532
8533 ;
8534 return 0;
8535}
8536_ACEOF
8537rm -f conftest.$ac_objext
8538if { (ac_try="$ac_compile"
8539case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542esac
8543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_compile") 2>conftest.er1
8545 ac_status=$?
8546 grep -v '^ *+' conftest.er1 >conftest.err
8547 rm -f conftest.er1
8548 cat conftest.err >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008550 (exit $ac_status); } &&
8551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8552 { (case "(($ac_try" in
8553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554 *) ac_try_echo=$ac_try;;
8555esac
8556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_try") 2>&5
8558 ac_status=$?
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest.$ac_objext'
8562 { (case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565esac
8566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8567 (eval "$ac_try") 2>&5
8568 ac_status=$?
8569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8570 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008571 ac_cv_c_const=yes
8572else
8573 echo "$as_me: failed program was:" >&5
8574sed 's/^/| /' conftest.$ac_ext >&5
8575
8576 ac_cv_c_const=no
8577fi
8578
8579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8580fi
8581{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8582echo "${ECHO_T}$ac_cv_c_const" >&6; }
8583if test $ac_cv_c_const = no; then
8584
8585cat >>confdefs.h <<\_ACEOF
8586#define const
8587_ACEOF
8588
8589fi
8590
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008591
8592
8593
8594
8595
8596ac_header_dirent=no
8597for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008599{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8600echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 cat >conftest.$ac_ext <<_ACEOF
8605/* confdefs.h. */
8606_ACEOF
8607cat confdefs.h >>conftest.$ac_ext
8608cat >>conftest.$ac_ext <<_ACEOF
8609/* end confdefs.h. */
8610#include <sys/types.h>
8611#include <$ac_hdr>
8612
8613int
8614main ()
8615{
8616if ((DIR *) 0)
8617return 0;
8618 ;
8619 return 0;
8620}
8621_ACEOF
8622rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008623if { (ac_try="$ac_compile"
8624case "(($ac_try" in
8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626 *) ac_try_echo=$ac_try;;
8627esac
8628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008630 ac_status=$?
8631 grep -v '^ *+' conftest.er1 >conftest.err
8632 rm -f conftest.er1
8633 cat conftest.err >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008635 (exit $ac_status); } &&
8636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8637 { (case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_try") 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest.$ac_objext'
8647 { (case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
8651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652 (eval "$ac_try") 2>&5
8653 ac_status=$?
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008656 eval "$as_ac_Header=yes"
8657else
8658 echo "$as_me: failed program was:" >&5
8659sed 's/^/| /' conftest.$ac_ext >&5
8660
Reid Spencera773bd52006-08-04 18:18:08 +00008661 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008662fi
Reid Spencera773bd52006-08-04 18:18:08 +00008663
8664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008665fi
Reid Spencera773bd52006-08-04 18:18:08 +00008666ac_res=`eval echo '${'$as_ac_Header'}'`
8667 { echo "$as_me:$LINENO: result: $ac_res" >&5
8668echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008669if test `eval echo '${'$as_ac_Header'}'` = yes; then
8670 cat >>confdefs.h <<_ACEOF
8671#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8672_ACEOF
8673
8674ac_header_dirent=$ac_hdr; break
8675fi
8676
8677done
8678# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8679if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008680 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8681echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008682if test "${ac_cv_search_opendir+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008686cat >conftest.$ac_ext <<_ACEOF
8687/* confdefs.h. */
8688_ACEOF
8689cat confdefs.h >>conftest.$ac_ext
8690cat >>conftest.$ac_ext <<_ACEOF
8691/* end confdefs.h. */
8692
Reid Spencera773bd52006-08-04 18:18:08 +00008693/* Override any GCC internal prototype to avoid an error.
8694 Use char because int might match the return type of a GCC
8695 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008696#ifdef __cplusplus
8697extern "C"
8698#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008699char opendir ();
8700int
8701main ()
8702{
Reid Spencera773bd52006-08-04 18:18:08 +00008703return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008704 ;
8705 return 0;
8706}
8707_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008708for ac_lib in '' dir; do
8709 if test -z "$ac_lib"; then
8710 ac_res="none required"
8711 else
8712 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008714 fi
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716if { (ac_try="$ac_link"
8717case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008728 (exit $ac_status); } &&
8729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest$ac_exeext'
8740 { (case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743esac
8744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_try") 2>&5
8746 ac_status=$?
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008749 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008750else
8751 echo "$as_me: failed program was:" >&5
8752sed 's/^/| /' conftest.$ac_ext >&5
8753
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008754
8755fi
8756
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008757rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008758 conftest$ac_exeext
8759 if test "${ac_cv_search_opendir+set}" = set; then
8760 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008761fi
John Criswell7a73b802003-06-30 21:59:07 +00008762done
Reid Spencera773bd52006-08-04 18:18:08 +00008763if test "${ac_cv_search_opendir+set}" = set; then
8764 :
8765else
8766 ac_cv_search_opendir=no
8767fi
8768rm conftest.$ac_ext
8769LIBS=$ac_func_search_save_LIBS
8770fi
8771{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8772echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8773ac_res=$ac_cv_search_opendir
8774if test "$ac_res" != no; then
8775 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008776
Reid Spencera773bd52006-08-04 18:18:08 +00008777fi
8778
8779else
8780 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8781echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8782if test "${ac_cv_search_opendir+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784else
8785 ac_func_search_save_LIBS=$LIBS
8786cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h. */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */
8792
8793/* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
8796#ifdef __cplusplus
8797extern "C"
8798#endif
8799char opendir ();
8800int
8801main ()
8802{
8803return opendir ();
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808for ac_lib in '' x; do
8809 if test -z "$ac_lib"; then
8810 ac_res="none required"
8811 else
8812 ac_res=-l$ac_lib
8813 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8814 fi
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816if { (ac_try="$ac_link"
8817case "(($ac_try" in
8818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8820esac
8821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_link") 2>conftest.er1
8823 ac_status=$?
8824 grep -v '^ *+' conftest.er1 >conftest.err
8825 rm -f conftest.er1
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (case "(($ac_try" in
8831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832 *) ac_try_echo=$ac_try;;
8833esac
8834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835 (eval "$ac_try") 2>&5
8836 ac_status=$?
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; } &&
8839 { ac_try='test -s conftest$ac_exeext'
8840 { (case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843esac
8844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_try") 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008849 ac_cv_search_opendir=$ac_res
8850else
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
8854
8855fi
8856
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008857rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +00008858 conftest$ac_exeext
8859 if test "${ac_cv_search_opendir+set}" = set; then
8860 break
8861fi
8862done
8863if test "${ac_cv_search_opendir+set}" = set; then
8864 :
8865else
8866 ac_cv_search_opendir=no
8867fi
8868rm conftest.$ac_ext
8869LIBS=$ac_func_search_save_LIBS
8870fi
8871{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8872echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8873ac_res=$ac_cv_search_opendir
8874if test "$ac_res" != no; then
8875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8876
8877fi
8878
8879fi
John Criswell7a73b802003-06-30 21:59:07 +00008880
8881
8882for ac_header in dlfcn.h
8883do
8884as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008885if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8888if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008889 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008890fi
Reid Spencera773bd52006-08-04 18:18:08 +00008891ac_res=`eval echo '${'$as_ac_Header'}'`
8892 { echo "$as_me:$LINENO: result: $ac_res" >&5
8893echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008894else
Brian Gaeke0a621332004-09-08 20:38:05 +00008895 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008896{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8897echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008898cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008899/* confdefs.h. */
8900_ACEOF
8901cat confdefs.h >>conftest.$ac_ext
8902cat >>conftest.$ac_ext <<_ACEOF
8903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008904$ac_includes_default
8905#include <$ac_header>
8906_ACEOF
8907rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008908if { (ac_try="$ac_compile"
8909case "(($ac_try" in
8910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911 *) ac_try_echo=$ac_try;;
8912esac
8913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008915 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008916 grep -v '^ *+' conftest.er1 >conftest.err
8917 rm -f conftest.er1
8918 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008920 (exit $ac_status); } &&
8921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922 { (case "(($ac_try" in
8923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924 *) ac_try_echo=$ac_try;;
8925esac
8926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927 (eval "$ac_try") 2>&5
8928 ac_status=$?
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); }; } &&
8931 { ac_try='test -s conftest.$ac_objext'
8932 { (case "(($ac_try" in
8933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8935esac
8936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_try") 2>&5
8938 ac_status=$?
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008941 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008942else
8943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008944sed 's/^/| /' conftest.$ac_ext >&5
8945
Reid Spencera773bd52006-08-04 18:18:08 +00008946 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008947fi
Reid Spencera773bd52006-08-04 18:18:08 +00008948
8949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8951echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008952
8953# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008954{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008956cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008957/* confdefs.h. */
8958_ACEOF
8959cat confdefs.h >>conftest.$ac_ext
8960cat >>conftest.$ac_ext <<_ACEOF
8961/* end confdefs.h. */
8962#include <$ac_header>
8963_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008964if { (ac_try="$ac_cpp conftest.$ac_ext"
8965case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968esac
8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +00008976 (exit $ac_status); } >/dev/null; then
8977 if test -s conftest.err; then
8978 ac_cpp_err=$ac_c_preproc_warn_flag
8979 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8980 else
8981 ac_cpp_err=
8982 fi
8983else
8984 ac_cpp_err=yes
8985fi
8986if test -z "$ac_cpp_err"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008987 ac_header_preproc=yes
8988else
8989 echo "$as_me: failed program was:" >&5
8990sed 's/^/| /' conftest.$ac_ext >&5
8991
8992 ac_header_preproc=no
8993fi
Reid Spencera773bd52006-08-04 18:18:08 +00008994
Brian Gaeke0a621332004-09-08 20:38:05 +00008995rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8997echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008998
8999# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9001 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00009002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9006 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009007 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009008 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00009009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00009017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00009019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00009021 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00009022## ----------------------------------- ##
9023## Report this to llvmbugs@cs.uiuc.edu ##
9024## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00009025_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00009026 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00009027 ;;
9028esac
Reid Spencera773bd52006-08-04 18:18:08 +00009029{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9031if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009032 echo $ECHO_N "(cached) $ECHO_C" >&6
9033else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009034 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00009035fi
Reid Spencera773bd52006-08-04 18:18:08 +00009036ac_res=`eval echo '${'$as_ac_Header'}'`
9037 { echo "$as_me:$LINENO: result: $ac_res" >&5
9038echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00009039
9040fi
John Criswell7a73b802003-06-30 21:59:07 +00009041if test `eval echo '${'$as_ac_Header'}'` = yes; then
9042 cat >>confdefs.h <<_ACEOF
9043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9044_ACEOF
9045
9046fi
9047
9048done
9049
Reid Spencera773bd52006-08-04 18:18:08 +00009050# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009051if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00009052 enableval=$enable_ltdl_install;
9053fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009054
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009055
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009056
9057
9058if test x"${enable_ltdl_install-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009059 INSTALL_LTDL_TRUE=
9060 INSTALL_LTDL_FALSE='#'
9061else
9062 INSTALL_LTDL_TRUE='#'
9063 INSTALL_LTDL_FALSE=
9064fi
9065
Gordon Henriksen40e7f192008-10-22 12:40:55 +00009066
9067
9068if test x"${enable_ltdl_convenience-no}" != xno; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009069 CONVENIENCE_LTDL_TRUE=
9070 CONVENIENCE_LTDL_FALSE='#'
9071else
9072 CONVENIENCE_LTDL_TRUE='#'
9073 CONVENIENCE_LTDL_FALSE=
9074fi
9075
9076
Reid Spencera773bd52006-08-04 18:18:08 +00009077{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009079library_names_spec=
9080libname_spec='lib$name'
9081soname_spec=
9082shrext_cmds=".so"
9083postinstall_cmds=
9084postuninstall_cmds=
9085finish_cmds=
9086finish_eval=
9087shlibpath_var=
9088shlibpath_overrides_runpath=unknown
9089version_type=none
9090dynamic_linker="$host_os ld.so"
9091sys_lib_dlsearch_path_spec="/lib /usr/lib"
9092if test "$GCC" = yes; then
9093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9095 # if the path contains ";" then we assume it to be the separator
9096 # otherwise default to the standard path separator (i.e. ":") - it is
9097 # assumed that no part of a normal pathname contains ";" but that should
9098 # okay in the real world where ";" in dirpaths is itself problematic.
9099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9100 else
9101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9102 fi
9103else
9104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9105fi
9106need_lib_prefix=unknown
9107hardcode_into_libs=no
9108
9109# when you set need_version to no, make sure it does not cause -set_version
9110# flags to be left without arguments
9111need_version=unknown
9112
9113case $host_os in
9114aix3*)
9115 version_type=linux
9116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9117 shlibpath_var=LIBPATH
9118
9119 # AIX 3 has no versioning support, so we append a major version to the name.
9120 soname_spec='${libname}${release}${shared_ext}$major'
9121 ;;
9122
9123aix4* | aix5*)
9124 version_type=linux
9125 need_lib_prefix=no
9126 need_version=no
9127 hardcode_into_libs=yes
9128 if test "$host_cpu" = ia64; then
9129 # AIX 5 supports IA64
9130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9131 shlibpath_var=LD_LIBRARY_PATH
9132 else
9133 # With GCC up to 2.95.x, collect2 would create an import file
9134 # for dependence libraries. The import file would start with
9135 # the line `#! .'. This would cause the generated library to
9136 # depend on `.', always an invalid library. This was fixed in
9137 # development snapshots of GCC prior to 3.0.
9138 case $host_os in
9139 aix4 | aix4.[01] | aix4.[01].*)
9140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9141 echo ' yes '
9142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9143 :
9144 else
9145 can_build_shared=no
9146 fi
9147 ;;
9148 esac
9149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9150 # soname into executable. Probably we can add versioning support to
9151 # collect2, so additional links can be useful in future.
9152 if test "$aix_use_runtimelinking" = yes; then
9153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9154 # instead of lib<name>.a to let people know that these are not
9155 # typical AIX shared libraries.
9156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9157 else
9158 # We preserve .a as extension for shared libraries through AIX4.2
9159 # and later when we are not doing run time linking.
9160 library_names_spec='${libname}${release}.a $libname.a'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 fi
9163 shlibpath_var=LIBPATH
9164 fi
9165 ;;
9166
9167amigaos*)
9168 library_names_spec='$libname.ixlibrary $libname.a'
9169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9170 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9171 ;;
9172
9173beos*)
9174 library_names_spec='${libname}${shared_ext}'
9175 dynamic_linker="$host_os ld.so"
9176 shlibpath_var=LIBRARY_PATH
9177 ;;
9178
9179bsdi[45]*)
9180 version_type=linux
9181 need_version=no
9182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9183 soname_spec='${libname}${release}${shared_ext}$major'
9184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9185 shlibpath_var=LD_LIBRARY_PATH
9186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9188 # the default ld.so.conf also contains /usr/contrib/lib and
9189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9190 # libtool to hard-code these into programs
9191 ;;
9192
9193cygwin* | mingw* | pw32*)
9194 version_type=windows
9195 shrext_cmds=".dll"
9196 need_version=no
9197 need_lib_prefix=no
9198
9199 case $GCC,$host_os in
9200 yes,cygwin* | yes,mingw* | yes,pw32*)
9201 library_names_spec='$libname.dll.a'
9202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9203 postinstall_cmds='base_file=`basename \${file}`~
9204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9205 dldir=$destdir/`dirname \$dlpath`~
9206 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00009207 $install_prog $dir/$dlname \$dldir/$dlname~
9208 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009209 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9210 dlpath=$dir/\$dldll~
9211 $rm \$dlpath'
9212 shlibpath_overrides_runpath=yes
9213
9214 case $host_os in
9215 cygwin*)
9216 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9217 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9219 ;;
9220 mingw*)
9221 # MinGW DLLs use traditional 'lib' prefix
9222 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9223 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9224 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9225 # It is most probably a Windows format PATH printed by
9226 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9227 # path with ; separators, and with drive letters. We can handle the
9228 # drive letters (cygwin fileutils understands them), so leave them,
9229 # especially as we might pass files found there to a mingw objdump,
9230 # which wouldn't understand a cygwinified path. Ahh.
9231 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9232 else
9233 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9234 fi
9235 ;;
9236 pw32*)
9237 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00009238 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009239 ;;
9240 esac
9241 ;;
9242
9243 *)
9244 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9245 ;;
9246 esac
9247 dynamic_linker='Win32 ld.exe'
9248 # FIXME: first we should search . and the directory the executable is in
9249 shlibpath_var=PATH
9250 ;;
9251
9252darwin* | rhapsody*)
9253 dynamic_linker="$host_os dyld"
9254 version_type=darwin
9255 need_lib_prefix=no
9256 need_version=no
9257 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9258 soname_spec='${libname}${release}${major}$shared_ext'
9259 shlibpath_overrides_runpath=yes
9260 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +00009261 shrext_cmds='.dylib'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009262 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9263 if test "$GCC" = yes; then
9264 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9265 else
9266 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9267 fi
9268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9269 ;;
9270
9271dgux*)
9272 version_type=linux
9273 need_lib_prefix=no
9274 need_version=no
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9276 soname_spec='${libname}${release}${shared_ext}$major'
9277 shlibpath_var=LD_LIBRARY_PATH
9278 ;;
9279
9280freebsd1*)
9281 dynamic_linker=no
9282 ;;
9283
9284kfreebsd*-gnu)
9285 version_type=linux
9286 need_lib_prefix=no
9287 need_version=no
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9289 soname_spec='${libname}${release}${shared_ext}$major'
9290 shlibpath_var=LD_LIBRARY_PATH
9291 shlibpath_overrides_runpath=no
9292 hardcode_into_libs=yes
9293 dynamic_linker='GNU ld.so'
9294 ;;
9295
Reid Spencera773bd52006-08-04 18:18:08 +00009296freebsd* | dragonfly*)
9297 # DragonFly does not have aout. When/if they implement a new
9298 # versioning mechanism, adjust this.
9299 if test -x /usr/bin/objformat; then
9300 objformat=`/usr/bin/objformat`
9301 else
9302 case $host_os in
9303 freebsd[123]*) objformat=aout ;;
9304 *) objformat=elf ;;
9305 esac
9306 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009307 version_type=freebsd-$objformat
9308 case $version_type in
9309 freebsd-elf*)
9310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9311 need_version=no
9312 need_lib_prefix=no
9313 ;;
9314 freebsd-*)
9315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9316 need_version=yes
9317 ;;
9318 esac
9319 shlibpath_var=LD_LIBRARY_PATH
9320 case $host_os in
9321 freebsd2*)
9322 shlibpath_overrides_runpath=yes
9323 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009324 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009325 shlibpath_overrides_runpath=yes
9326 hardcode_into_libs=yes
9327 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009328 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9329 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009330 shlibpath_overrides_runpath=no
9331 hardcode_into_libs=yes
9332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009333 freebsd*) # from 4.6 on
9334 shlibpath_overrides_runpath=yes
9335 hardcode_into_libs=yes
9336 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009337 esac
9338 ;;
9339
9340gnu*)
9341 version_type=linux
9342 need_lib_prefix=no
9343 need_version=no
9344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9345 soname_spec='${libname}${release}${shared_ext}$major'
9346 shlibpath_var=LD_LIBRARY_PATH
9347 hardcode_into_libs=yes
9348 ;;
9349
9350hpux9* | hpux10* | hpux11*)
9351 # Give a soname corresponding to the major version so that dld.sl refuses to
9352 # link against other versions.
9353 version_type=sunos
9354 need_lib_prefix=no
9355 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00009356 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009357 ia64*)
9358 shrext_cmds='.so'
9359 hardcode_into_libs=yes
9360 dynamic_linker="$host_os dld.so"
9361 shlibpath_var=LD_LIBRARY_PATH
9362 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9364 soname_spec='${libname}${release}${shared_ext}$major'
9365 if test "X$HPUX_IA64_MODE" = X32; then
9366 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9367 else
9368 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9369 fi
9370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9371 ;;
9372 hppa*64*)
9373 shrext_cmds='.sl'
9374 hardcode_into_libs=yes
9375 dynamic_linker="$host_os dld.sl"
9376 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9379 soname_spec='${libname}${release}${shared_ext}$major'
9380 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9382 ;;
9383 *)
9384 shrext_cmds='.sl'
9385 dynamic_linker="$host_os dld.sl"
9386 shlibpath_var=SHLIB_PATH
9387 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9389 soname_spec='${libname}${release}${shared_ext}$major'
9390 ;;
9391 esac
9392 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9393 postinstall_cmds='chmod 555 $lib'
9394 ;;
9395
Reid Spencera773bd52006-08-04 18:18:08 +00009396interix3*)
9397 version_type=linux
9398 need_lib_prefix=no
9399 need_version=no
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9401 soname_spec='${libname}${release}${shared_ext}$major'
9402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9403 shlibpath_var=LD_LIBRARY_PATH
9404 shlibpath_overrides_runpath=no
9405 hardcode_into_libs=yes
9406 ;;
9407
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009408irix5* | irix6* | nonstopux*)
9409 case $host_os in
9410 nonstopux*) version_type=nonstopux ;;
9411 *)
9412 if test "$lt_cv_prog_gnu_ld" = yes; then
9413 version_type=linux
9414 else
9415 version_type=irix
9416 fi ;;
9417 esac
9418 need_lib_prefix=no
9419 need_version=no
9420 soname_spec='${libname}${release}${shared_ext}$major'
9421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9422 case $host_os in
9423 irix5* | nonstopux*)
9424 libsuff= shlibsuff=
9425 ;;
9426 *)
9427 case $LD in # libtool.m4 will add one of these switches to LD
9428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9429 libsuff= shlibsuff= libmagic=32-bit;;
9430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9431 libsuff=32 shlibsuff=N32 libmagic=N32;;
9432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9434 *) libsuff= shlibsuff= libmagic=never-match;;
9435 esac
9436 ;;
9437 esac
9438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9439 shlibpath_overrides_runpath=no
9440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9442 hardcode_into_libs=yes
9443 ;;
9444
9445# No shared lib support for Linux oldld, aout, or coff.
9446linux*oldld* | linux*aout* | linux*coff*)
9447 dynamic_linker=no
9448 ;;
9449
9450# This must be Linux ELF.
9451linux*)
9452 version_type=linux
9453 need_lib_prefix=no
9454 need_version=no
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 shlibpath_overrides_runpath=no
9460 # This implies no fast_install, which is unacceptable.
9461 # Some rework will be needed to allow for fast_install
9462 # before this can be enabled.
9463 hardcode_into_libs=yes
9464
9465 # Append ld.so.conf contents to the search path
9466 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00009467 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9469 fi
9470
9471 # We used to test for /lib/ld.so.1 and disable shared libraries on
9472 # powerpc, because MkLinux only supported shared libraries with the
9473 # GNU dynamic linker. Since this was broken with cross compilers,
9474 # most powerpc-linux boxes support dynamic linking these days and
9475 # people can always --disable-shared, the test was removed, and we
9476 # assume the GNU/Linux dynamic linker is in use.
9477 dynamic_linker='GNU/Linux ld.so'
9478 ;;
9479
9480knetbsd*-gnu)
9481 version_type=linux
9482 need_lib_prefix=no
9483 need_version=no
9484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9485 soname_spec='${libname}${release}${shared_ext}$major'
9486 shlibpath_var=LD_LIBRARY_PATH
9487 shlibpath_overrides_runpath=no
9488 hardcode_into_libs=yes
9489 dynamic_linker='GNU ld.so'
9490 ;;
9491
9492netbsd*)
9493 version_type=sunos
9494 need_lib_prefix=no
9495 need_version=no
9496 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9498 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9499 dynamic_linker='NetBSD (a.out) ld.so'
9500 else
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 dynamic_linker='NetBSD ld.elf_so'
9504 fi
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=yes
9507 hardcode_into_libs=yes
9508 ;;
9509
9510newsos6)
9511 version_type=linux
9512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9513 shlibpath_var=LD_LIBRARY_PATH
9514 shlibpath_overrides_runpath=yes
9515 ;;
9516
9517nto-qnx*)
9518 version_type=linux
9519 need_lib_prefix=no
9520 need_version=no
9521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9525 ;;
9526
9527openbsd*)
9528 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009529 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9532 case $host_os in
9533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9534 *) need_version=no ;;
9535 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9538 shlibpath_var=LD_LIBRARY_PATH
9539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9540 case $host_os in
9541 openbsd2.[89] | openbsd2.[89].*)
9542 shlibpath_overrides_runpath=no
9543 ;;
9544 *)
9545 shlibpath_overrides_runpath=yes
9546 ;;
9547 esac
9548 else
9549 shlibpath_overrides_runpath=yes
9550 fi
9551 ;;
9552
9553os2*)
9554 libname_spec='$name'
9555 shrext_cmds=".dll"
9556 need_lib_prefix=no
9557 library_names_spec='$libname${shared_ext} $libname.a'
9558 dynamic_linker='OS/2 ld.exe'
9559 shlibpath_var=LIBPATH
9560 ;;
9561
9562osf3* | osf4* | osf5*)
9563 version_type=osf
9564 need_lib_prefix=no
9565 need_version=no
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9571 ;;
9572
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009573solaris*)
9574 version_type=linux
9575 need_lib_prefix=no
9576 need_version=no
9577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578 soname_spec='${libname}${release}${shared_ext}$major'
9579 shlibpath_var=LD_LIBRARY_PATH
9580 shlibpath_overrides_runpath=yes
9581 hardcode_into_libs=yes
9582 # ldd complains unless libraries are executable
9583 postinstall_cmds='chmod +x $lib'
9584 ;;
9585
9586sunos4*)
9587 version_type=sunos
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9590 shlibpath_var=LD_LIBRARY_PATH
9591 shlibpath_overrides_runpath=yes
9592 if test "$with_gnu_ld" = yes; then
9593 need_lib_prefix=no
9594 fi
9595 need_version=yes
9596 ;;
9597
Reid Spencera773bd52006-08-04 18:18:08 +00009598sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009599 version_type=linux
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 case $host_vendor in
9604 sni)
9605 shlibpath_overrides_runpath=no
9606 need_lib_prefix=no
9607 export_dynamic_flag_spec='${wl}-Blargedynsym'
9608 runpath_var=LD_RUN_PATH
9609 ;;
9610 siemens)
9611 need_lib_prefix=no
9612 ;;
9613 motorola)
9614 need_lib_prefix=no
9615 need_version=no
9616 shlibpath_overrides_runpath=no
9617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9618 ;;
9619 esac
9620 ;;
9621
9622sysv4*MP*)
9623 if test -d /usr/nec ;then
9624 version_type=linux
9625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9626 soname_spec='$libname${shared_ext}.$major'
9627 shlibpath_var=LD_LIBRARY_PATH
9628 fi
9629 ;;
9630
Reid Spencera773bd52006-08-04 18:18:08 +00009631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9632 version_type=freebsd-elf
9633 need_lib_prefix=no
9634 need_version=no
9635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9636 soname_spec='${libname}${release}${shared_ext}$major'
9637 shlibpath_var=LD_LIBRARY_PATH
9638 hardcode_into_libs=yes
9639 if test "$with_gnu_ld" = yes; then
9640 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9641 shlibpath_overrides_runpath=no
9642 else
9643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9644 shlibpath_overrides_runpath=yes
9645 case $host_os in
9646 sco3.2v5*)
9647 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9648 ;;
9649 esac
9650 fi
9651 sys_lib_dlsearch_path_spec='/usr/lib'
9652 ;;
9653
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009654uts4*)
9655 version_type=linux
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 shlibpath_var=LD_LIBRARY_PATH
9659 ;;
9660
9661*)
9662 dynamic_linker=no
9663 ;;
9664esac
Reid Spencera773bd52006-08-04 18:18:08 +00009665{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9666echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009667test "$dynamic_linker" = no && can_build_shared=no
9668
Reid Spencera773bd52006-08-04 18:18:08 +00009669variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9670if test "$GCC" = yes; then
9671 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9672fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009673
Reid Spencera773bd52006-08-04 18:18:08 +00009674
9675{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9676echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009677if test "${libltdl_cv_shlibext+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679else
9680
9681module=yes
9682eval libltdl_cv_shlibext=$shrext_cmds
9683
9684fi
Reid Spencera773bd52006-08-04 18:18:08 +00009685{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9686echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687if test -n "$libltdl_cv_shlibext"; then
9688
9689cat >>confdefs.h <<_ACEOF
9690#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9691_ACEOF
9692
9693fi
9694
9695
Reid Spencera773bd52006-08-04 18:18:08 +00009696{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9697echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698if test "${libltdl_cv_shlibpath_var+set}" = set; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9700else
9701 libltdl_cv_shlibpath_var="$shlibpath_var"
9702fi
Reid Spencera773bd52006-08-04 18:18:08 +00009703{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9704echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705if test -n "$libltdl_cv_shlibpath_var"; then
9706
9707cat >>confdefs.h <<_ACEOF
9708#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9709_ACEOF
9710
9711fi
9712
9713
Reid Spencera773bd52006-08-04 18:18:08 +00009714{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9715echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009716if test "${libltdl_cv_sys_search_path+set}" = set; then
9717 echo $ECHO_N "(cached) $ECHO_C" >&6
9718else
9719 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9720fi
Reid Spencera773bd52006-08-04 18:18:08 +00009721{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9722echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723if test -n "$libltdl_cv_sys_search_path"; then
9724 sys_search_path=
9725 for dir in $libltdl_cv_sys_search_path; do
9726 if test -z "$sys_search_path"; then
9727 sys_search_path="$dir"
9728 else
9729 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9730 fi
9731 done
9732
9733cat >>confdefs.h <<_ACEOF
9734#define LTDL_SYSSEARCHPATH "$sys_search_path"
9735_ACEOF
9736
9737fi
9738
Reid Spencera773bd52006-08-04 18:18:08 +00009739{ echo "$as_me:$LINENO: checking for objdir" >&5
9740echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009741if test "${libltdl_cv_objdir+set}" = set; then
9742 echo $ECHO_N "(cached) $ECHO_C" >&6
9743else
9744 libltdl_cv_objdir="$objdir"
9745 if test -n "$objdir"; then
9746 :
9747 else
9748 rm -f .libs 2>/dev/null
9749 mkdir .libs 2>/dev/null
9750 if test -d .libs; then
9751 libltdl_cv_objdir=.libs
9752 else
9753 # MS-DOS does not allow filenames that begin with a dot.
9754 libltdl_cv_objdir=_libs
9755 fi
9756 rmdir .libs 2>/dev/null
9757 fi
9758
9759fi
Reid Spencera773bd52006-08-04 18:18:08 +00009760{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9761echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009762
9763cat >>confdefs.h <<_ACEOF
9764#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9765_ACEOF
9766
9767
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009768
9769
9770
9771
9772# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009773{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9774echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777else
9778
9779# These are sane defaults that work on at least a few old systems.
9780# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9781
9782# Character class describing NM global symbol codes.
9783symcode='[BCDEGRST]'
9784
9785# Regexp to match symbols that can be accessed directly from C.
9786sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9787
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009788# Transform an extracted symbol line into a proper C declaration
9789lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9790
9791# Transform an extracted symbol line into symbol name and symbol address
9792lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9793
9794# Define system-specific variables.
9795case $host_os in
9796aix*)
9797 symcode='[BCDT]'
9798 ;;
9799cygwin* | mingw* | pw32*)
9800 symcode='[ABCDGISTW]'
9801 ;;
9802hpux*) # Its linker distinguishes data from code symbols
9803 if test "$host_cpu" = ia64; then
9804 symcode='[ABCDEGRST]'
9805 fi
9806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9808 ;;
9809linux*)
9810 if test "$host_cpu" = ia64; then
9811 symcode='[ABCDGIRSTW]'
9812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9813 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9814 fi
9815 ;;
9816irix* | nonstopux*)
9817 symcode='[BCDEGRST]'
9818 ;;
9819osf*)
9820 symcode='[BCDEGQRST]'
9821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009822solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009823 symcode='[BDRT]'
9824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009825sco3.2v5*)
9826 symcode='[DT]'
9827 ;;
9828sysv4.2uw2*)
9829 symcode='[DT]'
9830 ;;
9831sysv5* | sco5v6* | unixware* | OpenUNIX*)
9832 symcode='[ABDT]'
9833 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009834sysv4)
9835 symcode='[DFNSTU]'
9836 ;;
9837esac
9838
9839# Handle CRLF in mingw tool chain
9840opt_cr=
9841case $build_os in
9842mingw*)
9843 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9844 ;;
9845esac
9846
9847# If we're using GNU nm, then use its standard symbol codes.
9848case `$NM -V 2>&1` in
9849*GNU* | *'with BFD'*)
9850 symcode='[ABCDGIRSTW]' ;;
9851esac
9852
9853# Try without a prefix undercore, then with it.
9854for ac_symprfx in "" "_"; do
9855
Reid Spencera773bd52006-08-04 18:18:08 +00009856 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9857 symxfrm="\\1 $ac_symprfx\\2 \\2"
9858
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009859 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009860 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861
9862 # Check to see that the pipe works correctly.
9863 pipe_works=no
9864
9865 rm -f conftest*
9866 cat > conftest.$ac_ext <<EOF
9867#ifdef __cplusplus
9868extern "C" {
9869#endif
9870char nm_test_var;
9871void nm_test_func(){}
9872#ifdef __cplusplus
9873}
9874#endif
9875int main(){nm_test_var='a';nm_test_func();return(0);}
9876EOF
9877
9878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9879 (eval $ac_compile) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; then
9883 # Now try to grab the symbols.
9884 nlist=conftest.nm
9885 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9886 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9887 ac_status=$?
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } && test -s "$nlist"; then
9890 # Try sorting and uniquifying the output.
9891 if sort "$nlist" | uniq > "$nlist"T; then
9892 mv -f "$nlist"T "$nlist"
9893 else
9894 rm -f "$nlist"T
9895 fi
9896
9897 # Make sure that we snagged all the symbols we need.
9898 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9899 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9900 cat <<EOF > conftest.$ac_ext
9901#ifdef __cplusplus
9902extern "C" {
9903#endif
9904
9905EOF
9906 # Now generate the symbol file.
9907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9908
9909 cat <<EOF >> conftest.$ac_ext
9910#if defined (__STDC__) && __STDC__
9911# define lt_ptr_t void *
9912#else
9913# define lt_ptr_t char *
9914# define const
9915#endif
9916
9917/* The mapping between symbol names and symbols. */
9918const struct {
9919 const char *name;
9920 lt_ptr_t address;
9921}
9922lt_preloaded_symbols[] =
9923{
9924EOF
9925 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9926 cat <<\EOF >> conftest.$ac_ext
9927 {0, (lt_ptr_t) 0}
9928};
9929
9930#ifdef __cplusplus
9931}
9932#endif
9933EOF
9934 # Now try linking the two files.
9935 mv conftest.$ac_objext conftstm.$ac_objext
9936 lt_save_LIBS="$LIBS"
9937 lt_save_CFLAGS="$CFLAGS"
9938 LIBS="conftstm.$ac_objext"
9939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>&5
9942 ac_status=$?
9943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9944 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9945 pipe_works=yes
9946 fi
9947 LIBS="$lt_save_LIBS"
9948 CFLAGS="$lt_save_CFLAGS"
9949 else
9950 echo "cannot find nm_test_func in $nlist" >&5
9951 fi
9952 else
9953 echo "cannot find nm_test_var in $nlist" >&5
9954 fi
9955 else
9956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9957 fi
9958 else
9959 echo "$progname: failed program was:" >&5
9960 cat conftest.$ac_ext >&5
9961 fi
9962 rm -f conftest* conftst*
9963
9964 # Do not use the global_symbol_pipe unless it works.
9965 if test "$pipe_works" = yes; then
9966 break
9967 else
9968 lt_cv_sys_global_symbol_pipe=
9969 fi
9970done
9971
9972fi
9973
9974if test -z "$lt_cv_sys_global_symbol_pipe"; then
9975 lt_cv_sys_global_symbol_to_cdecl=
9976fi
9977if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009978 { echo "$as_me:$LINENO: result: failed" >&5
9979echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009980else
Reid Spencera773bd52006-08-04 18:18:08 +00009981 { echo "$as_me:$LINENO: result: ok" >&5
9982echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009983fi
9984
9985
Reid Spencera773bd52006-08-04 18:18:08 +00009986{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9987echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009988if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9989 echo $ECHO_N "(cached) $ECHO_C" >&6
9990else
9991 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9992 libltdl_cv_preloaded_symbols=yes
9993 else
9994 libltdl_cv_preloaded_symbols=no
9995 fi
9996
9997fi
Reid Spencera773bd52006-08-04 18:18:08 +00009998{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9999echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010000if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10001
10002cat >>confdefs.h <<\_ACEOF
10003#define HAVE_PRELOADED_SYMBOLS 1
10004_ACEOF
10005
10006fi
10007
10008LIBADD_DL=
10009
10010ac_ext=c
10011ac_cpp='$CPP $CPPFLAGS'
10012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10014ac_compiler_gnu=$ac_cv_c_compiler_gnu
10015
10016
Reid Spencera773bd52006-08-04 18:18:08 +000010017{ echo "$as_me:$LINENO: checking for shl_load" >&5
10018echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019if test "${ac_cv_func_shl_load+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022 cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030#define shl_load innocuous_shl_load
10031
10032/* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char shl_load (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10036
10037#ifdef __STDC__
10038# include <limits.h>
10039#else
10040# include <assert.h>
10041#endif
10042
10043#undef shl_load
10044
Reid Spencera773bd52006-08-04 18:18:08 +000010045/* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048#ifdef __cplusplus
10049extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051char shl_load ();
10052/* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010055#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057#endif
10058
10059int
10060main ()
10061{
Reid Spencera773bd52006-08-04 18:18:08 +000010062return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063 ;
10064 return 0;
10065}
10066_ACEOF
10067rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010068if { (ac_try="$ac_link"
10069case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010080 (exit $ac_status); } &&
10081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
10098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010101 ac_cv_func_shl_load=yes
10102else
10103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
Reid Spencera773bd52006-08-04 18:18:08 +000010106 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107fi
Reid Spencera773bd52006-08-04 18:18:08 +000010108
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 conftest$ac_exeext conftest.$ac_ext
10111fi
Reid Spencera773bd52006-08-04 18:18:08 +000010112{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10113echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114if test $ac_cv_func_shl_load = yes; then
10115
10116cat >>confdefs.h <<\_ACEOF
10117#define HAVE_SHL_LOAD 1
10118_ACEOF
10119
10120else
Reid Spencera773bd52006-08-04 18:18:08 +000010121 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10122echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010123if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10124 echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126 ac_check_lib_save_LIBS=$LIBS
10127LIBS="-ldld $LIBS"
10128cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134
Reid Spencera773bd52006-08-04 18:18:08 +000010135/* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138#ifdef __cplusplus
10139extern "C"
10140#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010141char shl_load ();
10142int
10143main ()
10144{
Reid Spencera773bd52006-08-04 18:18:08 +000010145return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010146 ;
10147 return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010151if { (ac_try="$ac_link"
10152case "(($ac_try" in
10153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10154 *) ac_try_echo=$ac_try;;
10155esac
10156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10157 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010158 ac_status=$?
10159 grep -v '^ *+' conftest.er1 >conftest.err
10160 rm -f conftest.er1
10161 cat conftest.err >&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010163 (exit $ac_status); } &&
10164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10165 { (case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_try") 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_try") 2>&5
10181 ac_status=$?
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184 ac_cv_lib_dld_shl_load=yes
10185else
10186 echo "$as_me: failed program was:" >&5
10187sed 's/^/| /' conftest.$ac_ext >&5
10188
Reid Spencera773bd52006-08-04 18:18:08 +000010189 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190fi
Reid Spencera773bd52006-08-04 18:18:08 +000010191
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010192rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193 conftest$ac_exeext conftest.$ac_ext
10194LIBS=$ac_check_lib_save_LIBS
10195fi
Reid Spencera773bd52006-08-04 18:18:08 +000010196{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10197echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198if test $ac_cv_lib_dld_shl_load = yes; then
10199
10200cat >>confdefs.h <<\_ACEOF
10201#define HAVE_SHL_LOAD 1
10202_ACEOF
10203
10204 LIBADD_DL="$LIBADD_DL -ldld"
10205else
Reid Spencera773bd52006-08-04 18:18:08 +000010206 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10207echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010208if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211 ac_check_lib_save_LIBS=$LIBS
10212LIBS="-ldl $LIBS"
10213cat >conftest.$ac_ext <<_ACEOF
10214/* confdefs.h. */
10215_ACEOF
10216cat confdefs.h >>conftest.$ac_ext
10217cat >>conftest.$ac_ext <<_ACEOF
10218/* end confdefs.h. */
10219
Reid Spencera773bd52006-08-04 18:18:08 +000010220/* Override any GCC internal prototype to avoid an error.
10221 Use char because int might match the return type of a GCC
10222 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223#ifdef __cplusplus
10224extern "C"
10225#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010226char dlopen ();
10227int
10228main ()
10229{
Reid Spencera773bd52006-08-04 18:18:08 +000010230return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010231 ;
10232 return 0;
10233}
10234_ACEOF
10235rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010236if { (ac_try="$ac_link"
10237case "(($ac_try" in
10238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10240esac
10241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010248 (exit $ac_status); } &&
10249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10250 { (case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_try") 2>&5
10256 ac_status=$?
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); }; } &&
10259 { ac_try='test -s conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269 ac_cv_lib_dl_dlopen=yes
10270else
10271 echo "$as_me: failed program was:" >&5
10272sed 's/^/| /' conftest.$ac_ext >&5
10273
Reid Spencera773bd52006-08-04 18:18:08 +000010274 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010275fi
Reid Spencera773bd52006-08-04 18:18:08 +000010276
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010277rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010278 conftest$ac_exeext conftest.$ac_ext
10279LIBS=$ac_check_lib_save_LIBS
10280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10282echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283if test $ac_cv_lib_dl_dlopen = yes; then
10284
10285cat >>confdefs.h <<\_ACEOF
10286#define HAVE_LIBDL 1
10287_ACEOF
10288
10289 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10290else
10291 cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297#if HAVE_DLFCN_H
10298# include <dlfcn.h>
10299#endif
10300
10301int
10302main ()
10303{
10304dlopen(0, 0);
10305 ;
10306 return 0;
10307}
10308_ACEOF
10309rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010310if { (ac_try="$ac_link"
10311case "(($ac_try" in
10312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313 *) ac_try_echo=$ac_try;;
10314esac
10315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10324 { (case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327esac
10328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_try") 2>&5
10330 ac_status=$?
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try='test -s conftest$ac_exeext'
10334 { (case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_try") 2>&5
10340 ac_status=$?
10341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343
10344cat >>confdefs.h <<\_ACEOF
10345#define HAVE_LIBDL 1
10346_ACEOF
10347 libltdl_cv_func_dlopen="yes"
10348else
10349 echo "$as_me: failed program was:" >&5
10350sed 's/^/| /' conftest.$ac_ext >&5
10351
Reid Spencera773bd52006-08-04 18:18:08 +000010352 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10353echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010354if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357 ac_check_lib_save_LIBS=$LIBS
10358LIBS="-lsvld $LIBS"
10359cat >conftest.$ac_ext <<_ACEOF
10360/* confdefs.h. */
10361_ACEOF
10362cat confdefs.h >>conftest.$ac_ext
10363cat >>conftest.$ac_ext <<_ACEOF
10364/* end confdefs.h. */
10365
Reid Spencera773bd52006-08-04 18:18:08 +000010366/* Override any GCC internal prototype to avoid an error.
10367 Use char because int might match the return type of a GCC
10368 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010369#ifdef __cplusplus
10370extern "C"
10371#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010372char dlopen ();
10373int
10374main ()
10375{
Reid Spencera773bd52006-08-04 18:18:08 +000010376return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010377 ;
10378 return 0;
10379}
10380_ACEOF
10381rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010382if { (ac_try="$ac_link"
10383case "(($ac_try" in
10384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385 *) ac_try_echo=$ac_try;;
10386esac
10387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10388 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010394 (exit $ac_status); } &&
10395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10396 { (case "(($ac_try" in
10397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10398 *) ac_try_echo=$ac_try;;
10399esac
10400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10401 (eval "$ac_try") 2>&5
10402 ac_status=$?
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); }; } &&
10405 { ac_try='test -s conftest$ac_exeext'
10406 { (case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409esac
10410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_try") 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010415 ac_cv_lib_svld_dlopen=yes
10416else
10417 echo "$as_me: failed program was:" >&5
10418sed 's/^/| /' conftest.$ac_ext >&5
10419
Reid Spencera773bd52006-08-04 18:18:08 +000010420 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010421fi
Reid Spencera773bd52006-08-04 18:18:08 +000010422
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010423rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010424 conftest$ac_exeext conftest.$ac_ext
10425LIBS=$ac_check_lib_save_LIBS
10426fi
Reid Spencera773bd52006-08-04 18:18:08 +000010427{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10428echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010429if test $ac_cv_lib_svld_dlopen = yes; then
10430
10431cat >>confdefs.h <<\_ACEOF
10432#define HAVE_LIBDL 1
10433_ACEOF
10434
10435 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10436else
Reid Spencera773bd52006-08-04 18:18:08 +000010437 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10438echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010439if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 ac_check_lib_save_LIBS=$LIBS
10443LIBS="-ldld $LIBS"
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
10450
Reid Spencera773bd52006-08-04 18:18:08 +000010451/* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010454#ifdef __cplusplus
10455extern "C"
10456#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010457char dld_link ();
10458int
10459main ()
10460{
Reid Spencera773bd52006-08-04 18:18:08 +000010461return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010462 ;
10463 return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010467if { (ac_try="$ac_link"
10468case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10471esac
10472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010474 ac_status=$?
10475 grep -v '^ *+' conftest.er1 >conftest.err
10476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010479 (exit $ac_status); } &&
10480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10481 { (case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484esac
10485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_try") 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494esac
10495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_try") 2>&5
10497 ac_status=$?
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 ac_cv_lib_dld_dld_link=yes
10501else
10502 echo "$as_me: failed program was:" >&5
10503sed 's/^/| /' conftest.$ac_ext >&5
10504
Reid Spencera773bd52006-08-04 18:18:08 +000010505 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010506fi
Reid Spencera773bd52006-08-04 18:18:08 +000010507
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010508rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 conftest$ac_exeext conftest.$ac_ext
10510LIBS=$ac_check_lib_save_LIBS
10511fi
Reid Spencera773bd52006-08-04 18:18:08 +000010512{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10513echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514if test $ac_cv_lib_dld_dld_link = yes; then
10515
10516cat >>confdefs.h <<\_ACEOF
10517#define HAVE_DLD 1
10518_ACEOF
10519
10520 LIBADD_DL="$LIBADD_DL -ldld"
10521else
Reid Spencera773bd52006-08-04 18:18:08 +000010522 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10523echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010524if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10526else
10527 cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h. */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h. */
10533/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10535#define _dyld_func_lookup innocuous__dyld_func_lookup
10536
10537/* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char _dyld_func_lookup (); below.
10539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10540 <limits.h> exists even on freestanding compilers. */
10541
10542#ifdef __STDC__
10543# include <limits.h>
10544#else
10545# include <assert.h>
10546#endif
10547
10548#undef _dyld_func_lookup
10549
Reid Spencera773bd52006-08-04 18:18:08 +000010550/* Override any GCC internal prototype to avoid an error.
10551 Use char because int might match the return type of a GCC
10552 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010553#ifdef __cplusplus
10554extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010555#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556char _dyld_func_lookup ();
10557/* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010560#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010561choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010562#endif
10563
10564int
10565main ()
10566{
Reid Spencera773bd52006-08-04 18:18:08 +000010567return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010573if { (ac_try="$ac_link"
10574case "(($ac_try" in
10575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10576 *) ac_try_echo=$ac_try;;
10577esac
10578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10579 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010585 (exit $ac_status); } &&
10586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10587 { (case "(($ac_try" in
10588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10589 *) ac_try_echo=$ac_try;;
10590esac
10591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10592 (eval "$ac_try") 2>&5
10593 ac_status=$?
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; } &&
10596 { ac_try='test -s conftest$ac_exeext'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600esac
10601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10603 ac_status=$?
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606 ac_cv_func__dyld_func_lookup=yes
10607else
10608 echo "$as_me: failed program was:" >&5
10609sed 's/^/| /' conftest.$ac_ext >&5
10610
Reid Spencera773bd52006-08-04 18:18:08 +000010611 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612fi
Reid Spencera773bd52006-08-04 18:18:08 +000010613
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010614rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615 conftest$ac_exeext conftest.$ac_ext
10616fi
Reid Spencera773bd52006-08-04 18:18:08 +000010617{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10618echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010619if test $ac_cv_func__dyld_func_lookup = yes; then
10620
10621cat >>confdefs.h <<\_ACEOF
10622#define HAVE_DYLD 1
10623_ACEOF
10624
10625fi
10626
10627
10628fi
10629
10630
10631fi
10632
10633
10634fi
Reid Spencera773bd52006-08-04 18:18:08 +000010635
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010636rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637 conftest$ac_exeext conftest.$ac_ext
10638
10639fi
10640
10641
10642fi
10643
10644
10645fi
10646
10647
10648if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10649then
10650 lt_save_LIBS="$LIBS"
10651 LIBS="$LIBS $LIBADD_DL"
10652
10653for ac_func in dlerror
10654do
10655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010656{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10658if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010659 echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661 cat >conftest.$ac_ext <<_ACEOF
10662/* confdefs.h. */
10663_ACEOF
10664cat confdefs.h >>conftest.$ac_ext
10665cat >>conftest.$ac_ext <<_ACEOF
10666/* end confdefs.h. */
10667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10669#define $ac_func innocuous_$ac_func
10670
10671/* System header to define __stub macros and hopefully few prototypes,
10672 which can conflict with char $ac_func (); below.
10673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10674 <limits.h> exists even on freestanding compilers. */
10675
10676#ifdef __STDC__
10677# include <limits.h>
10678#else
10679# include <assert.h>
10680#endif
10681
10682#undef $ac_func
10683
Reid Spencera773bd52006-08-04 18:18:08 +000010684/* Override any GCC internal prototype to avoid an error.
10685 Use char because int might match the return type of a GCC
10686 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010687#ifdef __cplusplus
10688extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010689#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010690char $ac_func ();
10691/* The GNU C library defines this for functions which it implements
10692 to always fail with ENOSYS. Some functions are actually named
10693 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010694#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010695choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010696#endif
10697
10698int
10699main ()
10700{
Reid Spencera773bd52006-08-04 18:18:08 +000010701return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702 ;
10703 return 0;
10704}
10705_ACEOF
10706rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010707if { (ac_try="$ac_link"
10708case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711esac
10712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest$ac_exeext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 eval "$as_ac_var=yes"
10741else
10742 echo "$as_me: failed program was:" >&5
10743sed 's/^/| /' conftest.$ac_ext >&5
10744
Reid Spencera773bd52006-08-04 18:18:08 +000010745 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010746fi
Reid Spencera773bd52006-08-04 18:18:08 +000010747
Gordon Henriksen40e7f192008-10-22 12:40:55 +000010748rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010749 conftest$ac_exeext conftest.$ac_ext
10750fi
Reid Spencera773bd52006-08-04 18:18:08 +000010751ac_res=`eval echo '${'$as_ac_var'}'`
10752 { echo "$as_me:$LINENO: result: $ac_res" >&5
10753echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010754if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10757_ACEOF
10758
10759fi
10760done
10761
10762 LIBS="$lt_save_LIBS"
10763fi
10764ac_ext=c
10765ac_cpp='$CPP $CPPFLAGS'
10766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10768ac_compiler_gnu=$ac_cv_c_compiler_gnu
10769
10770
10771
Reid Spencera773bd52006-08-04 18:18:08 +000010772{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10773echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 ac_cv_sys_symbol_underscore=no
10778 cat > conftest.$ac_ext <<EOF
10779void nm_test_func(){}
10780int main(){nm_test_func;return 0;}
10781EOF
10782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10783 (eval $ac_compile) 2>&5
10784 ac_status=$?
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; then
10787 # Now try to grab the symbols.
10788 ac_nlist=conftest.nm
10789 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10790 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10791 ac_status=$?
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && test -s "$ac_nlist"; then
10794 # See whether the symbols have a leading underscore.
10795 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10796 ac_cv_sys_symbol_underscore=yes
10797 else
10798 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10799 :
10800 else
10801 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10802 fi
10803 fi
10804 else
10805 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10806 fi
10807 else
10808 echo "configure: failed program was:" >&5
10809 cat conftest.c >&5
10810 fi
10811 rm -rf conftest*
10812
10813fi
Reid Spencera773bd52006-08-04 18:18:08 +000010814{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10815echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010816
10817
10818if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10819 if test x"$libltdl_cv_func_dlopen" = xyes ||
10820 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010821 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10822echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823if test "${libltdl_cv_need_uscore+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10825else
10826 libltdl_cv_need_uscore=unknown
10827 save_LIBS="$LIBS"
10828 LIBS="$LIBS $LIBADD_DL"
10829 if test "$cross_compiling" = yes; then :
10830 libltdl_cv_need_uscore=cross
10831else
10832 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10833 lt_status=$lt_dlunknown
10834 cat > conftest.$ac_ext <<EOF
Richard Osborneb25baef2008-11-07 10:59:00 +000010835#line 10835 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010836#include "confdefs.h"
10837
10838#if HAVE_DLFCN_H
10839#include <dlfcn.h>
10840#endif
10841
10842#include <stdio.h>
10843
10844#ifdef RTLD_GLOBAL
10845# define LT_DLGLOBAL RTLD_GLOBAL
10846#else
10847# ifdef DL_GLOBAL
10848# define LT_DLGLOBAL DL_GLOBAL
10849# else
10850# define LT_DLGLOBAL 0
10851# endif
10852#endif
10853
10854/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10855 find out it does not work in some platform. */
10856#ifndef LT_DLLAZY_OR_NOW
10857# ifdef RTLD_LAZY
10858# define LT_DLLAZY_OR_NOW RTLD_LAZY
10859# else
10860# ifdef DL_LAZY
10861# define LT_DLLAZY_OR_NOW DL_LAZY
10862# else
10863# ifdef RTLD_NOW
10864# define LT_DLLAZY_OR_NOW RTLD_NOW
10865# else
10866# ifdef DL_NOW
10867# define LT_DLLAZY_OR_NOW DL_NOW
10868# else
10869# define LT_DLLAZY_OR_NOW 0
10870# endif
10871# endif
10872# endif
10873# endif
10874#endif
10875
10876#ifdef __cplusplus
10877extern "C" void exit (int);
10878#endif
10879
10880void fnord() { int i=42;}
10881int main ()
10882{
10883 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10884 int status = $lt_dlunknown;
10885
10886 if (self)
10887 {
10888 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10889 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10890 /* dlclose (self); */
10891 }
Reid Spencera773bd52006-08-04 18:18:08 +000010892 else
10893 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010894
10895 exit (status);
10896}
10897EOF
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010903 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010904 lt_status=$?
10905 case x$lt_status in
10906 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10907 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010908 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909 esac
10910 else :
10911 # compilation failed
10912
10913 fi
10914fi
10915rm -fr conftest*
10916
10917 LIBS="$save_LIBS"
10918
10919fi
Reid Spencera773bd52006-08-04 18:18:08 +000010920{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10921echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010922 fi
10923fi
10924
10925if test x"$libltdl_cv_need_uscore" = xyes; then
10926
10927cat >>confdefs.h <<\_ACEOF
10928#define NEED_USCORE 1
10929_ACEOF
10930
10931fi
10932
10933
Reid Spencera773bd52006-08-04 18:18:08 +000010934{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10935echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010936if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938else
10939 # PORTME does your system automatically load deplibs for dlopen?
10940 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10941 # For now, we just catch OSes we know something about -- in the
10942 # future, we'll try test this programmatically.
10943 libltdl_cv_sys_dlopen_deplibs=unknown
10944 case "$host_os" in
10945 aix3*|aix4.1.*|aix4.2.*)
10946 # Unknown whether this is true for these versions of AIX, but
10947 # we want this `case' here to explicitly catch those versions.
10948 libltdl_cv_sys_dlopen_deplibs=unknown
10949 ;;
10950 aix[45]*)
10951 libltdl_cv_sys_dlopen_deplibs=yes
10952 ;;
10953 darwin*)
10954 # Assuming the user has installed a libdl from somewhere, this is true
10955 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10956 libltdl_cv_sys_dlopen_deplibs=yes
10957 ;;
10958 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10959 # GNU and its variants, using gnu ld.so (Glibc)
10960 libltdl_cv_sys_dlopen_deplibs=yes
10961 ;;
10962 hpux10*|hpux11*)
10963 libltdl_cv_sys_dlopen_deplibs=yes
10964 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010965 interix*)
10966 libltdl_cv_sys_dlopen_deplibs=yes
10967 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010968 irix[12345]*|irix6.[01]*)
10969 # Catch all versions of IRIX before 6.2, and indicate that we don't
10970 # know how it worked for any of those versions.
10971 libltdl_cv_sys_dlopen_deplibs=unknown
10972 ;;
10973 irix*)
10974 # The case above catches anything before 6.2, and it's known that
10975 # at 6.2 and later dlopen does load deplibs.
10976 libltdl_cv_sys_dlopen_deplibs=yes
10977 ;;
10978 netbsd*)
10979 libltdl_cv_sys_dlopen_deplibs=yes
10980 ;;
10981 openbsd*)
10982 libltdl_cv_sys_dlopen_deplibs=yes
10983 ;;
10984 osf[1234]*)
10985 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10986 # it did *not* use an RPATH in a shared library to find objects the
10987 # library depends on, so we explictly say `no'.
10988 libltdl_cv_sys_dlopen_deplibs=no
10989 ;;
10990 osf5.0|osf5.0a|osf5.1)
10991 # dlopen *does* load deplibs and with the right loader patch applied
10992 # it even uses RPATH in a shared library to search for shared objects
10993 # that the library depends on, but there's no easy way to know if that
10994 # patch is installed. Since this is the case, all we can really
10995 # say is unknown -- it depends on the patch being installed. If
10996 # it is, this changes to `yes'. Without it, it would be `no'.
10997 libltdl_cv_sys_dlopen_deplibs=unknown
10998 ;;
10999 osf*)
11000 # the two cases above should catch all versions of osf <= 5.1. Read
11001 # the comments above for what we know about them.
11002 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11003 # is used to find them so we can finally say `yes'.
11004 libltdl_cv_sys_dlopen_deplibs=yes
11005 ;;
11006 solaris*)
11007 libltdl_cv_sys_dlopen_deplibs=yes
11008 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000011009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11010 libltdl_cv_sys_dlopen_deplibs=yes
11011 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 esac
11013
11014fi
Reid Spencera773bd52006-08-04 18:18:08 +000011015{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11016echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011017if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11018
11019cat >>confdefs.h <<\_ACEOF
11020#define LTDL_DLOPEN_DEPLIBS 1
11021_ACEOF
11022
11023fi
11024
11025
11026for ac_header in argz.h
11027do
11028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011029if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034fi
Reid Spencera773bd52006-08-04 18:18:08 +000011035ac_res=`eval echo '${'$as_ac_Header'}'`
11036 { echo "$as_me:$LINENO: result: $ac_res" >&5
11037echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038else
11039 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011040{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11041echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011042cat >conftest.$ac_ext <<_ACEOF
11043/* confdefs.h. */
11044_ACEOF
11045cat confdefs.h >>conftest.$ac_ext
11046cat >>conftest.$ac_ext <<_ACEOF
11047/* end confdefs.h. */
11048$ac_includes_default
11049#include <$ac_header>
11050_ACEOF
11051rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011052if { (ac_try="$ac_compile"
11053case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011064 (exit $ac_status); } &&
11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11066 { (case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069esac
11070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071 (eval "$ac_try") 2>&5
11072 ac_status=$?
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest.$ac_objext'
11076 { (case "(($ac_try" in
11077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11078 *) ac_try_echo=$ac_try;;
11079esac
11080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11081 (eval "$ac_try") 2>&5
11082 ac_status=$?
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011085 ac_header_compiler=yes
11086else
11087 echo "$as_me: failed program was:" >&5
11088sed 's/^/| /' conftest.$ac_ext >&5
11089
Reid Spencera773bd52006-08-04 18:18:08 +000011090 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011091fi
Reid Spencera773bd52006-08-04 18:18:08 +000011092
11093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11095echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011096
11097# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011098{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11099echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100cat >conftest.$ac_ext <<_ACEOF
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106#include <$ac_header>
11107_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011108if { (ac_try="$ac_cpp conftest.$ac_ext"
11109case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112esac
11113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011115 ac_status=$?
11116 grep -v '^ *+' conftest.er1 >conftest.err
11117 rm -f conftest.er1
11118 cat conftest.err >&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011120 (exit $ac_status); } >/dev/null; then
11121 if test -s conftest.err; then
11122 ac_cpp_err=$ac_c_preproc_warn_flag
11123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11124 else
11125 ac_cpp_err=
11126 fi
11127else
11128 ac_cpp_err=yes
11129fi
11130if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011131 ac_header_preproc=yes
11132else
11133 echo "$as_me: failed program was:" >&5
11134sed 's/^/| /' conftest.$ac_ext >&5
11135
11136 ac_header_preproc=no
11137fi
Reid Spencera773bd52006-08-04 18:18:08 +000011138
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011140{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11141echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011142
11143# So? What about this header?
11144case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11145 yes:no: )
11146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11147echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11149echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11150 ac_header_preproc=yes
11151 ;;
11152 no:yes:* )
11153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11154echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11156echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11158echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11160echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11162echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11164echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011165 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011166## ----------------------------------- ##
11167## Report this to llvmbugs@cs.uiuc.edu ##
11168## ----------------------------------- ##
11169_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011170 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011171 ;;
11172esac
Reid Spencera773bd52006-08-04 18:18:08 +000011173{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11175if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011176 echo $ECHO_N "(cached) $ECHO_C" >&6
11177else
11178 eval "$as_ac_Header=\$ac_header_preproc"
11179fi
Reid Spencera773bd52006-08-04 18:18:08 +000011180ac_res=`eval echo '${'$as_ac_Header'}'`
11181 { echo "$as_me:$LINENO: result: $ac_res" >&5
11182echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011183
11184fi
11185if test `eval echo '${'$as_ac_Header'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11188_ACEOF
11189
11190fi
11191
11192done
11193
11194
Reid Spencera773bd52006-08-04 18:18:08 +000011195{ echo "$as_me:$LINENO: checking for error_t" >&5
11196echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197if test "${ac_cv_type_error_t+set}" = set; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11199else
11200 cat >conftest.$ac_ext <<_ACEOF
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#if HAVE_ARGZ_H
11207# include <argz.h>
11208#endif
11209
Reid Spencera773bd52006-08-04 18:18:08 +000011210typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211int
11212main ()
11213{
Reid Spencera773bd52006-08-04 18:18:08 +000011214if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000011216if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011217 return 0;
11218 ;
11219 return 0;
11220}
11221_ACEOF
11222rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011223if { (ac_try="$ac_compile"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011230 ac_status=$?
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011235 (exit $ac_status); } &&
11236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11237 { (case "(($ac_try" in
11238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11240esac
11241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11242 (eval "$ac_try") 2>&5
11243 ac_status=$?
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); }; } &&
11246 { ac_try='test -s conftest.$ac_objext'
11247 { (case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250esac
11251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_try") 2>&5
11253 ac_status=$?
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011256 ac_cv_type_error_t=yes
11257else
11258 echo "$as_me: failed program was:" >&5
11259sed 's/^/| /' conftest.$ac_ext >&5
11260
Reid Spencera773bd52006-08-04 18:18:08 +000011261 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011262fi
Reid Spencera773bd52006-08-04 18:18:08 +000011263
11264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011265fi
Reid Spencera773bd52006-08-04 18:18:08 +000011266{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11267echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268if test $ac_cv_type_error_t = yes; then
11269
11270cat >>confdefs.h <<_ACEOF
11271#define HAVE_ERROR_T 1
11272_ACEOF
11273
11274
11275else
11276
11277cat >>confdefs.h <<\_ACEOF
11278#define error_t int
11279_ACEOF
11280
11281fi
11282
11283
11284
11285
11286
11287
11288
11289for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11290do
11291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011292{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296else
11297 cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305#define $ac_func innocuous_$ac_func
11306
11307/* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11311
11312#ifdef __STDC__
11313# include <limits.h>
11314#else
11315# include <assert.h>
11316#endif
11317
11318#undef $ac_func
11319
Reid Spencera773bd52006-08-04 18:18:08 +000011320/* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011323#ifdef __cplusplus
11324extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011325#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011326char $ac_func ();
11327/* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011330#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011331choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011332#endif
11333
11334int
11335main ()
11336{
Reid Spencera773bd52006-08-04 18:18:08 +000011337return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011338 ;
11339 return 0;
11340}
11341_ACEOF
11342rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011343if { (ac_try="$ac_link"
11344case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347esac
11348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (case "(($ac_try" in
11358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11359 *) ac_try_echo=$ac_try;;
11360esac
11361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11362 (eval "$ac_try") 2>&5
11363 ac_status=$?
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); }; } &&
11366 { ac_try='test -s conftest$ac_exeext'
11367 { (case "(($ac_try" in
11368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11369 *) ac_try_echo=$ac_try;;
11370esac
11371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11372 (eval "$ac_try") 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376 eval "$as_ac_var=yes"
11377else
11378 echo "$as_me: failed program was:" >&5
11379sed 's/^/| /' conftest.$ac_ext >&5
11380
Reid Spencera773bd52006-08-04 18:18:08 +000011381 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011382fi
Reid Spencera773bd52006-08-04 18:18:08 +000011383
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011384rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 conftest$ac_exeext conftest.$ac_ext
11386fi
Reid Spencera773bd52006-08-04 18:18:08 +000011387ac_res=`eval echo '${'$as_ac_var'}'`
11388 { echo "$as_me:$LINENO: result: $ac_res" >&5
11389echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011390if test `eval echo '${'$as_ac_var'}'` = yes; then
11391 cat >>confdefs.h <<_ACEOF
11392#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11393_ACEOF
11394
11395fi
11396done
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11426 stdio.h unistd.h
11427do
11428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434fi
Reid Spencera773bd52006-08-04 18:18:08 +000011435ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011438else
11439 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011440{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448$ac_includes_default
11449#include <$ac_header>
11450_ACEOF
11451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011452if { (ac_try="$ac_compile"
11453case "(($ac_try" in
11454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11455 *) ac_try_echo=$ac_try;;
11456esac
11457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11458 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011459 ac_status=$?
11460 grep -v '^ *+' conftest.er1 >conftest.err
11461 rm -f conftest.er1
11462 cat conftest.err >&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011464 (exit $ac_status); } &&
11465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11466 { (case "(($ac_try" in
11467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11469esac
11470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471 (eval "$ac_try") 2>&5
11472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; } &&
11475 { ac_try='test -s conftest.$ac_objext'
11476 { (case "(($ac_try" in
11477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11478 *) ac_try_echo=$ac_try;;
11479esac
11480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11481 (eval "$ac_try") 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485 ac_header_compiler=yes
11486else
11487 echo "$as_me: failed program was:" >&5
11488sed 's/^/| /' conftest.$ac_ext >&5
11489
Reid Spencera773bd52006-08-04 18:18:08 +000011490 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011491fi
Reid Spencera773bd52006-08-04 18:18:08 +000011492
11493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11495echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011496
11497# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011498{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11499echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011500cat >conftest.$ac_ext <<_ACEOF
11501/* confdefs.h. */
11502_ACEOF
11503cat confdefs.h >>conftest.$ac_ext
11504cat >>conftest.$ac_ext <<_ACEOF
11505/* end confdefs.h. */
11506#include <$ac_header>
11507_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011508if { (ac_try="$ac_cpp conftest.$ac_ext"
11509case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512esac
11513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011520 (exit $ac_status); } >/dev/null; then
11521 if test -s conftest.err; then
11522 ac_cpp_err=$ac_c_preproc_warn_flag
11523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11524 else
11525 ac_cpp_err=
11526 fi
11527else
11528 ac_cpp_err=yes
11529fi
11530if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011531 ac_header_preproc=yes
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536 ac_header_preproc=no
11537fi
Reid Spencera773bd52006-08-04 18:18:08 +000011538
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011539rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011540{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11541echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542
11543# So? What about this header?
11544case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11545 yes:no: )
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11547echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11549echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11550 ac_header_preproc=yes
11551 ;;
11552 no:yes:* )
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11554echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11556echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11558echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11560echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11562echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11563 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11564echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011565 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566## ----------------------------------- ##
11567## Report this to llvmbugs@cs.uiuc.edu ##
11568## ----------------------------------- ##
11569_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011570 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011571 ;;
11572esac
Reid Spencera773bd52006-08-04 18:18:08 +000011573{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011576 echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578 eval "$as_ac_Header=\$ac_header_preproc"
11579fi
Reid Spencera773bd52006-08-04 18:18:08 +000011580ac_res=`eval echo '${'$as_ac_Header'}'`
11581 { echo "$as_me:$LINENO: result: $ac_res" >&5
11582echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583
11584fi
11585if test `eval echo '${'$as_ac_Header'}'` = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11588_ACEOF
11589
11590fi
11591
11592done
11593
11594
11595
11596
11597
11598for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11599do
11600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011605 echo $ECHO_N "(cached) $ECHO_C" >&6
11606fi
Reid Spencera773bd52006-08-04 18:18:08 +000011607ac_res=`eval echo '${'$as_ac_Header'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610else
11611 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011612{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011614cat >conftest.$ac_ext <<_ACEOF
11615/* confdefs.h. */
11616_ACEOF
11617cat confdefs.h >>conftest.$ac_ext
11618cat >>conftest.$ac_ext <<_ACEOF
11619/* end confdefs.h. */
11620$ac_includes_default
11621#include <$ac_header>
11622_ACEOF
11623rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011624if { (ac_try="$ac_compile"
11625case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 ac_status=$?
11632 grep -v '^ *+' conftest.er1 >conftest.err
11633 rm -f conftest.er1
11634 cat conftest.err >&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011636 (exit $ac_status); } &&
11637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11638 { (case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641esac
11642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_try") 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (case "(($ac_try" in
11649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11650 *) ac_try_echo=$ac_try;;
11651esac
11652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11653 (eval "$ac_try") 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011657 ac_header_compiler=yes
11658else
11659 echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
Reid Spencera773bd52006-08-04 18:18:08 +000011662 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011663fi
Reid Spencera773bd52006-08-04 18:18:08 +000011664
11665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11666{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11667echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011668
11669# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011670{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011672cat >conftest.$ac_ext <<_ACEOF
11673/* confdefs.h. */
11674_ACEOF
11675cat confdefs.h >>conftest.$ac_ext
11676cat >>conftest.$ac_ext <<_ACEOF
11677/* end confdefs.h. */
11678#include <$ac_header>
11679_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011680if { (ac_try="$ac_cpp conftest.$ac_ext"
11681case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11684esac
11685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011687 ac_status=$?
11688 grep -v '^ *+' conftest.er1 >conftest.err
11689 rm -f conftest.er1
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011692 (exit $ac_status); } >/dev/null; then
11693 if test -s conftest.err; then
11694 ac_cpp_err=$ac_c_preproc_warn_flag
11695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11696 else
11697 ac_cpp_err=
11698 fi
11699else
11700 ac_cpp_err=yes
11701fi
11702if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703 ac_header_preproc=yes
11704else
11705 echo "$as_me: failed program was:" >&5
11706sed 's/^/| /' conftest.$ac_ext >&5
11707
11708 ac_header_preproc=no
11709fi
Reid Spencera773bd52006-08-04 18:18:08 +000011710
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011712{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11713echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011714
11715# So? What about this header?
11716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11717 yes:no: )
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11719echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11721echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11722 ac_header_preproc=yes
11723 ;;
11724 no:yes:* )
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11726echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11728echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11729 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11730echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11731 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11732echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11734echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11736echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011737 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011738## ----------------------------------- ##
11739## Report this to llvmbugs@cs.uiuc.edu ##
11740## ----------------------------------- ##
11741_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011742 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011743 ;;
11744esac
Reid Spencera773bd52006-08-04 18:18:08 +000011745{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011748 echo $ECHO_N "(cached) $ECHO_C" >&6
11749else
11750 eval "$as_ac_Header=\$ac_header_preproc"
11751fi
Reid Spencera773bd52006-08-04 18:18:08 +000011752ac_res=`eval echo '${'$as_ac_Header'}'`
11753 { echo "$as_me:$LINENO: result: $ac_res" >&5
11754echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755
11756fi
11757if test `eval echo '${'$as_ac_Header'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11760_ACEOF
11761
11762fi
11763
11764done
11765
11766
11767
11768for ac_header in string.h strings.h
11769do
11770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11773echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11774if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776fi
Reid Spencera773bd52006-08-04 18:18:08 +000011777ac_res=`eval echo '${'$as_ac_Header'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011780else
11781 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011782{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11783echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011784cat >conftest.$ac_ext <<_ACEOF
11785/* confdefs.h. */
11786_ACEOF
11787cat confdefs.h >>conftest.$ac_ext
11788cat >>conftest.$ac_ext <<_ACEOF
11789/* end confdefs.h. */
11790$ac_includes_default
11791#include <$ac_header>
11792_ACEOF
11793rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011794if { (ac_try="$ac_compile"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest.$ac_objext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011827 ac_header_compiler=yes
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
Reid Spencera773bd52006-08-04 18:18:08 +000011832 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011833fi
Reid Spencera773bd52006-08-04 18:18:08 +000011834
11835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011838
11839# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011840{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011842cat >conftest.$ac_ext <<_ACEOF
11843/* confdefs.h. */
11844_ACEOF
11845cat confdefs.h >>conftest.$ac_ext
11846cat >>conftest.$ac_ext <<_ACEOF
11847/* end confdefs.h. */
11848#include <$ac_header>
11849_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011850if { (ac_try="$ac_cpp conftest.$ac_ext"
11851case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854esac
11855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000011862 (exit $ac_status); } >/dev/null; then
11863 if test -s conftest.err; then
11864 ac_cpp_err=$ac_c_preproc_warn_flag
11865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11866 else
11867 ac_cpp_err=
11868 fi
11869else
11870 ac_cpp_err=yes
11871fi
11872if test -z "$ac_cpp_err"; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011873 ac_header_preproc=yes
11874else
11875 echo "$as_me: failed program was:" >&5
11876sed 's/^/| /' conftest.$ac_ext >&5
11877
11878 ac_header_preproc=no
11879fi
Reid Spencera773bd52006-08-04 18:18:08 +000011880
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011881rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011882{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11883echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011884
11885# So? What about this header?
11886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11887 yes:no: )
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11892 ac_header_preproc=yes
11893 ;;
11894 no:yes:* )
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011907 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011908## ----------------------------------- ##
11909## Report this to llvmbugs@cs.uiuc.edu ##
11910## ----------------------------------- ##
11911_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011912 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913 ;;
11914esac
Reid Spencera773bd52006-08-04 18:18:08 +000011915{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919else
11920 eval "$as_ac_Header=\$ac_header_preproc"
11921fi
Reid Spencera773bd52006-08-04 18:18:08 +000011922ac_res=`eval echo '${'$as_ac_Header'}'`
11923 { echo "$as_me:$LINENO: result: $ac_res" >&5
11924echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925
11926fi
11927if test `eval echo '${'$as_ac_Header'}'` = yes; then
11928 cat >>confdefs.h <<_ACEOF
11929#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11930_ACEOF
11931 break
11932fi
11933
11934done
11935
11936
11937
11938
11939for ac_func in strchr index
11940do
11941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011942{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11944if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011945 echo $ECHO_N "(cached) $ECHO_C" >&6
11946else
11947 cat >conftest.$ac_ext <<_ACEOF
11948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11955#define $ac_func innocuous_$ac_func
11956
11957/* System header to define __stub macros and hopefully few prototypes,
11958 which can conflict with char $ac_func (); below.
11959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11960 <limits.h> exists even on freestanding compilers. */
11961
11962#ifdef __STDC__
11963# include <limits.h>
11964#else
11965# include <assert.h>
11966#endif
11967
11968#undef $ac_func
11969
Reid Spencera773bd52006-08-04 18:18:08 +000011970/* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011973#ifdef __cplusplus
11974extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011976char $ac_func ();
11977/* The GNU C library defines this for functions which it implements
11978 to always fail with ENOSYS. Some functions are actually named
11979 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011980#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011981choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982#endif
11983
11984int
11985main ()
11986{
Reid Spencera773bd52006-08-04 18:18:08 +000011987return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011993if { (ac_try="$ac_link"
11994case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997esac
11998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012005 (exit $ac_status); } &&
12006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12007 { (case "(($ac_try" in
12008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009 *) ac_try_echo=$ac_try;;
12010esac
12011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012 (eval "$ac_try") 2>&5
12013 ac_status=$?
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); }; } &&
12016 { ac_try='test -s conftest$ac_exeext'
12017 { (case "(($ac_try" in
12018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019 *) ac_try_echo=$ac_try;;
12020esac
12021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022 (eval "$ac_try") 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012026 eval "$as_ac_var=yes"
12027else
12028 echo "$as_me: failed program was:" >&5
12029sed 's/^/| /' conftest.$ac_ext >&5
12030
Reid Spencera773bd52006-08-04 18:18:08 +000012031 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012032fi
Reid Spencera773bd52006-08-04 18:18:08 +000012033
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012034rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035 conftest$ac_exeext conftest.$ac_ext
12036fi
Reid Spencera773bd52006-08-04 18:18:08 +000012037ac_res=`eval echo '${'$as_ac_var'}'`
12038 { echo "$as_me:$LINENO: result: $ac_res" >&5
12039echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040if test `eval echo '${'$as_ac_var'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043_ACEOF
12044 break
12045fi
12046done
12047
12048
12049
12050for ac_func in strrchr rindex
12051do
12052as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012053{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12054echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12055if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012056 echo $ECHO_N "(cached) $ECHO_C" >&6
12057else
12058 cat >conftest.$ac_ext <<_ACEOF
12059/* confdefs.h. */
12060_ACEOF
12061cat confdefs.h >>conftest.$ac_ext
12062cat >>conftest.$ac_ext <<_ACEOF
12063/* end confdefs.h. */
12064/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12066#define $ac_func innocuous_$ac_func
12067
12068/* System header to define __stub macros and hopefully few prototypes,
12069 which can conflict with char $ac_func (); below.
12070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12071 <limits.h> exists even on freestanding compilers. */
12072
12073#ifdef __STDC__
12074# include <limits.h>
12075#else
12076# include <assert.h>
12077#endif
12078
12079#undef $ac_func
12080
Reid Spencera773bd52006-08-04 18:18:08 +000012081/* Override any GCC internal prototype to avoid an error.
12082 Use char because int might match the return type of a GCC
12083 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012084#ifdef __cplusplus
12085extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012086#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087char $ac_func ();
12088/* The GNU C library defines this for functions which it implements
12089 to always fail with ENOSYS. Some functions are actually named
12090 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012091#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012093#endif
12094
12095int
12096main ()
12097{
Reid Spencera773bd52006-08-04 18:18:08 +000012098return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012104if { (ac_try="$ac_link"
12105case "(($ac_try" in
12106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12107 *) ac_try_echo=$ac_try;;
12108esac
12109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12110 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012111 ac_status=$?
12112 grep -v '^ *+' conftest.er1 >conftest.err
12113 rm -f conftest.er1
12114 cat conftest.err >&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012116 (exit $ac_status); } &&
12117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12118 { (case "(($ac_try" in
12119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12120 *) ac_try_echo=$ac_try;;
12121esac
12122eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12123 (eval "$ac_try") 2>&5
12124 ac_status=$?
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest$ac_exeext'
12128 { (case "(($ac_try" in
12129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12130 *) ac_try_echo=$ac_try;;
12131esac
12132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12133 (eval "$ac_try") 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012137 eval "$as_ac_var=yes"
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
Reid Spencera773bd52006-08-04 18:18:08 +000012142 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012143fi
Reid Spencera773bd52006-08-04 18:18:08 +000012144
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012145rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012146 conftest$ac_exeext conftest.$ac_ext
12147fi
Reid Spencera773bd52006-08-04 18:18:08 +000012148ac_res=`eval echo '${'$as_ac_var'}'`
12149 { echo "$as_me:$LINENO: result: $ac_res" >&5
12150echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012151if test `eval echo '${'$as_ac_var'}'` = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154_ACEOF
12155 break
12156fi
12157done
12158
12159
12160
12161for ac_func in memcpy bcopy
12162do
12163as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012164{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12165echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12166if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 cat >conftest.$ac_ext <<_ACEOF
12170/* confdefs.h. */
12171_ACEOF
12172cat confdefs.h >>conftest.$ac_ext
12173cat >>conftest.$ac_ext <<_ACEOF
12174/* end confdefs.h. */
12175/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12177#define $ac_func innocuous_$ac_func
12178
12179/* System header to define __stub macros and hopefully few prototypes,
12180 which can conflict with char $ac_func (); below.
12181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12182 <limits.h> exists even on freestanding compilers. */
12183
12184#ifdef __STDC__
12185# include <limits.h>
12186#else
12187# include <assert.h>
12188#endif
12189
12190#undef $ac_func
12191
Reid Spencera773bd52006-08-04 18:18:08 +000012192/* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012195#ifdef __cplusplus
12196extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012197#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198char $ac_func ();
12199/* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012202#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012204#endif
12205
12206int
12207main ()
12208{
Reid Spencera773bd52006-08-04 18:18:08 +000012209return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012210 ;
12211 return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012215if { (ac_try="$ac_link"
12216case "(($ac_try" in
12217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12218 *) ac_try_echo=$ac_try;;
12219esac
12220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12221 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12232esac
12233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12235 ac_status=$?
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; } &&
12238 { ac_try='test -s conftest$ac_exeext'
12239 { (case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
12243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_try") 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012248 eval "$as_ac_var=yes"
12249else
12250 echo "$as_me: failed program was:" >&5
12251sed 's/^/| /' conftest.$ac_ext >&5
12252
Reid Spencera773bd52006-08-04 18:18:08 +000012253 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254fi
Reid Spencera773bd52006-08-04 18:18:08 +000012255
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012256rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012257 conftest$ac_exeext conftest.$ac_ext
12258fi
Reid Spencera773bd52006-08-04 18:18:08 +000012259ac_res=`eval echo '${'$as_ac_var'}'`
12260 { echo "$as_me:$LINENO: result: $ac_res" >&5
12261echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012262if test `eval echo '${'$as_ac_var'}'` = yes; then
12263 cat >>confdefs.h <<_ACEOF
12264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12265_ACEOF
12266 break
12267fi
12268done
12269
12270
12271
12272for ac_func in memmove strcmp
12273do
12274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012275{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12277if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 echo $ECHO_N "(cached) $ECHO_C" >&6
12279else
12280 cat >conftest.$ac_ext <<_ACEOF
12281/* confdefs.h. */
12282_ACEOF
12283cat confdefs.h >>conftest.$ac_ext
12284cat >>conftest.$ac_ext <<_ACEOF
12285/* end confdefs.h. */
12286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12288#define $ac_func innocuous_$ac_func
12289
12290/* System header to define __stub macros and hopefully few prototypes,
12291 which can conflict with char $ac_func (); below.
12292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12293 <limits.h> exists even on freestanding compilers. */
12294
12295#ifdef __STDC__
12296# include <limits.h>
12297#else
12298# include <assert.h>
12299#endif
12300
12301#undef $ac_func
12302
Reid Spencera773bd52006-08-04 18:18:08 +000012303/* Override any GCC internal prototype to avoid an error.
12304 Use char because int might match the return type of a GCC
12305 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012306#ifdef __cplusplus
12307extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012308#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012309char $ac_func ();
12310/* The GNU C library defines this for functions which it implements
12311 to always fail with ENOSYS. Some functions are actually named
12312 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012313#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012314choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012315#endif
12316
12317int
12318main ()
12319{
Reid Spencera773bd52006-08-04 18:18:08 +000012320return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012321 ;
12322 return 0;
12323}
12324_ACEOF
12325rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012326if { (ac_try="$ac_link"
12327case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330esac
12331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12340 { (case "(($ac_try" in
12341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12343esac
12344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_try") 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest$ac_exeext'
12350 { (case "(($ac_try" in
12351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12352 *) ac_try_echo=$ac_try;;
12353esac
12354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12355 (eval "$ac_try") 2>&5
12356 ac_status=$?
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012359 eval "$as_ac_var=yes"
12360else
12361 echo "$as_me: failed program was:" >&5
12362sed 's/^/| /' conftest.$ac_ext >&5
12363
Reid Spencera773bd52006-08-04 18:18:08 +000012364 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012365fi
Reid Spencera773bd52006-08-04 18:18:08 +000012366
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012367rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012368 conftest$ac_exeext conftest.$ac_ext
12369fi
Reid Spencera773bd52006-08-04 18:18:08 +000012370ac_res=`eval echo '${'$as_ac_var'}'`
12371 { echo "$as_me:$LINENO: result: $ac_res" >&5
12372echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012373if test `eval echo '${'$as_ac_var'}'` = yes; then
12374 cat >>confdefs.h <<_ACEOF
12375#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12376_ACEOF
12377
12378fi
12379done
12380
12381
12382
12383
12384for ac_func in closedir opendir readdir
12385do
12386as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000012387{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12388echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12389if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012390 echo $ECHO_N "(cached) $ECHO_C" >&6
12391else
12392 cat >conftest.$ac_ext <<_ACEOF
12393/* confdefs.h. */
12394_ACEOF
12395cat confdefs.h >>conftest.$ac_ext
12396cat >>conftest.$ac_ext <<_ACEOF
12397/* end confdefs.h. */
12398/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12400#define $ac_func innocuous_$ac_func
12401
12402/* System header to define __stub macros and hopefully few prototypes,
12403 which can conflict with char $ac_func (); below.
12404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12405 <limits.h> exists even on freestanding compilers. */
12406
12407#ifdef __STDC__
12408# include <limits.h>
12409#else
12410# include <assert.h>
12411#endif
12412
12413#undef $ac_func
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415/* Override any GCC internal prototype to avoid an error.
12416 Use char because int might match the return type of a GCC
12417 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012418#ifdef __cplusplus
12419extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421char $ac_func ();
12422/* The GNU C library defines this for functions which it implements
12423 to always fail with ENOSYS. Some functions are actually named
12424 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000012425#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012426choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012427#endif
12428
12429int
12430main ()
12431{
Reid Spencera773bd52006-08-04 18:18:08 +000012432return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012433 ;
12434 return 0;
12435}
12436_ACEOF
12437rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012438if { (ac_try="$ac_link"
12439case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012450 (exit $ac_status); } &&
12451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12452 { (case "(($ac_try" in
12453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12454 *) ac_try_echo=$ac_try;;
12455esac
12456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12457 (eval "$ac_try") 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; } &&
12461 { ac_try='test -s conftest$ac_exeext'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465esac
12466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012471 eval "$as_ac_var=yes"
12472else
12473 echo "$as_me: failed program was:" >&5
12474sed 's/^/| /' conftest.$ac_ext >&5
12475
Reid Spencera773bd52006-08-04 18:18:08 +000012476 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477fi
Reid Spencera773bd52006-08-04 18:18:08 +000012478
Gordon Henriksen40e7f192008-10-22 12:40:55 +000012479rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012480 conftest$ac_exeext conftest.$ac_ext
12481fi
Reid Spencera773bd52006-08-04 18:18:08 +000012482ac_res=`eval echo '${'$as_ac_var'}'`
12483 { echo "$as_me:$LINENO: result: $ac_res" >&5
12484echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012485if test `eval echo '${'$as_ac_var'}'` = yes; then
12486 cat >>confdefs.h <<_ACEOF
12487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12488_ACEOF
12489
12490fi
12491done
12492
12493
Reid Spencera773bd52006-08-04 18:18:08 +000012494# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012495if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012496 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012497 case $enableval in
12498 yes) enable_shared=yes ;;
12499 no) enable_shared=no ;;
12500 *)
12501 enable_shared=no
12502 # Look at the argument we got. We use all the common list separators.
12503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12504 for pkg in $enableval; do
12505 IFS="$lt_save_ifs"
12506 if test "X$pkg" = "X$p"; then
12507 enable_shared=yes
12508 fi
12509 done
12510 IFS="$lt_save_ifs"
12511 ;;
12512 esac
12513else
12514 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012515fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012516
Reid Spencera773bd52006-08-04 18:18:08 +000012517
12518# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012519if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012520 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012521 case $enableval in
12522 yes) enable_static=yes ;;
12523 no) enable_static=no ;;
12524 *)
12525 enable_static=no
12526 # Look at the argument we got. We use all the common list separators.
12527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12528 for pkg in $enableval; do
12529 IFS="$lt_save_ifs"
12530 if test "X$pkg" = "X$p"; then
12531 enable_static=yes
12532 fi
12533 done
12534 IFS="$lt_save_ifs"
12535 ;;
12536 esac
12537else
12538 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012539fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012540
Reid Spencera773bd52006-08-04 18:18:08 +000012541
12542# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012543if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012544 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012545 case $enableval in
12546 yes) enable_fast_install=yes ;;
12547 no) enable_fast_install=no ;;
12548 *)
12549 enable_fast_install=no
12550 # Look at the argument we got. We use all the common list separators.
12551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12552 for pkg in $enableval; do
12553 IFS="$lt_save_ifs"
12554 if test "X$pkg" = "X$p"; then
12555 enable_fast_install=yes
12556 fi
12557 done
12558 IFS="$lt_save_ifs"
12559 ;;
12560 esac
12561else
12562 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012563fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012564
Reid Spencera773bd52006-08-04 18:18:08 +000012565
12566{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12567echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012568if test "${lt_cv_path_SED+set}" = set; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12570else
12571 # Loop through the user's path and test for sed and gsed.
12572# Then use that list of sed's as ones to test for truncation.
12573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574for as_dir in $PATH
12575do
12576 IFS=$as_save_IFS
12577 test -z "$as_dir" && as_dir=.
12578 for lt_ac_prog in sed gsed; do
12579 for ac_exec_ext in '' $ac_executable_extensions; do
12580 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12581 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12582 fi
12583 done
12584 done
12585done
12586lt_ac_max=0
12587lt_ac_count=0
12588# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12589# along with /bin/sed that truncates output.
12590for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012591 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592 cat /dev/null > conftest.in
12593 lt_ac_count=0
12594 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12595 # Check for GNU sed and select it if it is found.
12596 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12597 lt_cv_path_SED=$lt_ac_sed
12598 break
12599 fi
12600 while true; do
12601 cat conftest.in conftest.in >conftest.tmp
12602 mv conftest.tmp conftest.in
12603 cp conftest.in conftest.nl
12604 echo >>conftest.nl
12605 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12606 cmp -s conftest.out conftest.nl || break
12607 # 10000 chars as input seems more than enough
12608 test $lt_ac_count -gt 10 && break
12609 lt_ac_count=`expr $lt_ac_count + 1`
12610 if test $lt_ac_count -gt $lt_ac_max; then
12611 lt_ac_max=$lt_ac_count
12612 lt_cv_path_SED=$lt_ac_sed
12613 fi
12614 done
12615done
12616
12617fi
12618
12619SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012620{ echo "$as_me:$LINENO: result: $SED" >&5
12621echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012622
12623
Reid Spencera773bd52006-08-04 18:18:08 +000012624# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012626 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627else
12628 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012629fi
12630
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012631ac_prog=ld
12632if test "$GCC" = yes; then
12633 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012634 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12635echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012636 case $host in
12637 *-*-mingw*)
12638 # gcc leaves a trailing carriage return which upsets mingw
12639 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12640 *)
12641 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12642 esac
12643 case $ac_prog in
12644 # Accept absolute paths.
12645 [\\/]* | ?:[\\/]*)
12646 re_direlt='/[^/][^/]*/\.\./'
12647 # Canonicalize the pathname of ld
12648 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12649 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12650 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12651 done
12652 test -z "$LD" && LD="$ac_prog"
12653 ;;
12654 "")
12655 # If it fails, then pretend we aren't using GCC.
12656 ac_prog=ld
12657 ;;
12658 *)
12659 # If it is relative, then search for the first ld in PATH.
12660 with_gnu_ld=unknown
12661 ;;
12662 esac
12663elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012664 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12665echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012666else
Reid Spencera773bd52006-08-04 18:18:08 +000012667 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12668echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012669fi
12670if test "${lt_cv_path_LD+set}" = set; then
12671 echo $ECHO_N "(cached) $ECHO_C" >&6
12672else
12673 if test -z "$LD"; then
12674 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12675 for ac_dir in $PATH; do
12676 IFS="$lt_save_ifs"
12677 test -z "$ac_dir" && ac_dir=.
12678 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12679 lt_cv_path_LD="$ac_dir/$ac_prog"
12680 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012681 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012682 # Break only if it was the GNU/non-GNU ld that we prefer.
12683 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12684 *GNU* | *'with BFD'*)
12685 test "$with_gnu_ld" != no && break
12686 ;;
12687 *)
12688 test "$with_gnu_ld" != yes && break
12689 ;;
12690 esac
12691 fi
12692 done
12693 IFS="$lt_save_ifs"
12694else
12695 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12696fi
12697fi
12698
12699LD="$lt_cv_path_LD"
12700if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012701 { echo "$as_me:$LINENO: result: $LD" >&5
12702echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012703else
Reid Spencera773bd52006-08-04 18:18:08 +000012704 { echo "$as_me:$LINENO: result: no" >&5
12705echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012706fi
12707test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12708echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12709 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012710{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12711echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012712if test "${lt_cv_prog_gnu_ld+set}" = set; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12714else
Reid Spencera773bd52006-08-04 18:18:08 +000012715 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012716case `$LD -v 2>&1 </dev/null` in
12717*GNU* | *'with BFD'*)
12718 lt_cv_prog_gnu_ld=yes
12719 ;;
12720*)
12721 lt_cv_prog_gnu_ld=no
12722 ;;
12723esac
12724fi
Reid Spencera773bd52006-08-04 18:18:08 +000012725{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12726echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012727with_gnu_ld=$lt_cv_prog_gnu_ld
12728
12729
Reid Spencera773bd52006-08-04 18:18:08 +000012730{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12731echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012732if test "${lt_cv_ld_reload_flag+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734else
12735 lt_cv_ld_reload_flag='-r'
12736fi
Reid Spencera773bd52006-08-04 18:18:08 +000012737{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12738echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012739reload_flag=$lt_cv_ld_reload_flag
12740case $reload_flag in
12741"" | " "*) ;;
12742*) reload_flag=" $reload_flag" ;;
12743esac
12744reload_cmds='$LD$reload_flag -o $output$reload_objs'
12745case $host_os in
12746 darwin*)
12747 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012748 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012749 else
12750 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12751 fi
12752 ;;
12753esac
12754
Reid Spencera773bd52006-08-04 18:18:08 +000012755{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12756echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012757if test "${lt_cv_deplibs_check_method+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 lt_cv_file_magic_cmd='$MAGIC_CMD'
12761lt_cv_file_magic_test_file=
12762lt_cv_deplibs_check_method='unknown'
12763# Need to set the preceding variable on all platforms that support
12764# interlibrary dependencies.
12765# 'none' -- dependencies not supported.
12766# `unknown' -- same as none, but documents that we really don't know.
12767# 'pass_all' -- all dependencies passed with no checks.
12768# 'test_compile' -- check by making test program.
12769# 'file_magic [[regex]]' -- check by looking for files in library path
12770# which responds to the $file_magic_cmd with a given extended regex.
12771# If you have `file' or equivalent on your system and you're not sure
12772# whether `pass_all' will *always* work, you probably want this one.
12773
12774case $host_os in
12775aix4* | aix5*)
12776 lt_cv_deplibs_check_method=pass_all
12777 ;;
12778
12779beos*)
12780 lt_cv_deplibs_check_method=pass_all
12781 ;;
12782
12783bsdi[45]*)
12784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12785 lt_cv_file_magic_cmd='/usr/bin/file -L'
12786 lt_cv_file_magic_test_file=/shlib/libc.so
12787 ;;
12788
12789cygwin*)
12790 # func_win32_libid is a shell function defined in ltmain.sh
12791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12792 lt_cv_file_magic_cmd='func_win32_libid'
12793 ;;
12794
12795mingw* | pw32*)
12796 # Base MSYS/MinGW do not provide the 'file' command needed by
12797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12799 lt_cv_file_magic_cmd='$OBJDUMP -f'
12800 ;;
12801
12802darwin* | rhapsody*)
12803 lt_cv_deplibs_check_method=pass_all
12804 ;;
12805
Reid Spencera773bd52006-08-04 18:18:08 +000012806freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12808 case $host_cpu in
12809 i*86 )
12810 # Not sure whether the presence of OpenBSD here was a mistake.
12811 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012813 lt_cv_file_magic_cmd=/usr/bin/file
12814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12815 ;;
12816 esac
12817 else
12818 lt_cv_deplibs_check_method=pass_all
12819 fi
12820 ;;
12821
12822gnu*)
12823 lt_cv_deplibs_check_method=pass_all
12824 ;;
12825
12826hpux10.20* | hpux11*)
12827 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012828 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012829 ia64*)
12830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12832 ;;
12833 hppa*64*)
12834 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
12835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12836 ;;
12837 *)
12838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12840 ;;
12841 esac
12842 ;;
12843
Reid Spencera773bd52006-08-04 18:18:08 +000012844interix3*)
12845 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12847 ;;
12848
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012849irix5* | irix6* | nonstopux*)
12850 case $LD in
12851 *-32|*"-32 ") libmagic=32-bit;;
12852 *-n32|*"-n32 ") libmagic=N32;;
12853 *-64|*"-64 ") libmagic=64-bit;;
12854 *) libmagic=never-match;;
12855 esac
12856 lt_cv_deplibs_check_method=pass_all
12857 ;;
12858
12859# This must be Linux ELF.
12860linux*)
12861 lt_cv_deplibs_check_method=pass_all
12862 ;;
12863
12864netbsd*)
12865 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12866 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12867 else
12868 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12869 fi
12870 ;;
12871
12872newos6*)
12873 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12874 lt_cv_file_magic_cmd=/usr/bin/file
12875 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12876 ;;
12877
12878nto-qnx*)
12879 lt_cv_deplibs_check_method=unknown
12880 ;;
12881
12882openbsd*)
12883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12884 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12885 else
12886 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12887 fi
12888 ;;
12889
12890osf3* | osf4* | osf5*)
12891 lt_cv_deplibs_check_method=pass_all
12892 ;;
12893
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012894solaris*)
12895 lt_cv_deplibs_check_method=pass_all
12896 ;;
12897
Reid Spencera773bd52006-08-04 18:18:08 +000012898sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012899 case $host_vendor in
12900 motorola)
12901 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
12902 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12903 ;;
12904 ncr)
12905 lt_cv_deplibs_check_method=pass_all
12906 ;;
12907 sequent)
12908 lt_cv_file_magic_cmd='/bin/file'
12909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12910 ;;
12911 sni)
12912 lt_cv_file_magic_cmd='/bin/file'
12913 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12914 lt_cv_file_magic_test_file=/lib/libc.so
12915 ;;
12916 siemens)
12917 lt_cv_deplibs_check_method=pass_all
12918 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012919 pc)
12920 lt_cv_deplibs_check_method=pass_all
12921 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012922 esac
12923 ;;
12924
Reid Spencera773bd52006-08-04 18:18:08 +000012925sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012926 lt_cv_deplibs_check_method=pass_all
12927 ;;
12928esac
12929
12930fi
Reid Spencera773bd52006-08-04 18:18:08 +000012931{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12932echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012933file_magic_cmd=$lt_cv_file_magic_cmd
12934deplibs_check_method=$lt_cv_deplibs_check_method
12935test -z "$deplibs_check_method" && deplibs_check_method=unknown
12936
12937
12938
12939# If no C compiler was specified, use CC.
12940LTCC=${LTCC-"$CC"}
12941
Reid Spencera773bd52006-08-04 18:18:08 +000012942# If no C compiler flags were specified, use CFLAGS.
12943LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12944
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012945# Allow CC to be a program name with arguments.
12946compiler=$CC
12947
Reid Spencera773bd52006-08-04 18:18:08 +000012948# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012949if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012950 enableval=$enable_libtool_lock;
12951fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012952
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012953test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12954
12955# Some flags need to be propagated to the compiler or linker for good
12956# libtool support.
12957case $host in
12958ia64-*-hpux*)
12959 # Find out which ABI we are using.
12960 echo 'int i;' > conftest.$ac_ext
12961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12962 (eval $ac_compile) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; then
12966 case `/usr/bin/file conftest.$ac_objext` in
12967 *ELF-32*)
12968 HPUX_IA64_MODE="32"
12969 ;;
12970 *ELF-64*)
12971 HPUX_IA64_MODE="64"
12972 ;;
12973 esac
12974 fi
12975 rm -rf conftest*
12976 ;;
12977*-*-irix6*)
12978 # Find out which ABI we are using.
Richard Osborneb25baef2008-11-07 10:59:00 +000012979 echo '#line 12979 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; then
12985 if test "$lt_cv_prog_gnu_ld" = yes; then
12986 case `/usr/bin/file conftest.$ac_objext` in
12987 *32-bit*)
12988 LD="${LD-ld} -melf32bsmip"
12989 ;;
12990 *N32*)
12991 LD="${LD-ld} -melf32bmipn32"
12992 ;;
12993 *64-bit*)
12994 LD="${LD-ld} -melf64bmip"
12995 ;;
12996 esac
12997 else
12998 case `/usr/bin/file conftest.$ac_objext` in
12999 *32-bit*)
13000 LD="${LD-ld} -32"
13001 ;;
13002 *N32*)
13003 LD="${LD-ld} -n32"
13004 ;;
13005 *64-bit*)
13006 LD="${LD-ld} -64"
13007 ;;
13008 esac
13009 fi
13010 fi
13011 rm -rf conftest*
13012 ;;
13013
13014x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
13015 # Find out which ABI we are using.
13016 echo 'int i;' > conftest.$ac_ext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13019 ac_status=$?
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000013022 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013023 *32-bit*)
13024 case $host in
13025 x86_64-*linux*)
13026 LD="${LD-ld} -m elf_i386"
13027 ;;
13028 ppc64-*linux*|powerpc64-*linux*)
13029 LD="${LD-ld} -m elf32ppclinux"
13030 ;;
13031 s390x-*linux*)
13032 LD="${LD-ld} -m elf_s390"
13033 ;;
13034 sparc64-*linux*)
13035 LD="${LD-ld} -m elf32_sparc"
13036 ;;
13037 esac
13038 ;;
13039 *64-bit*)
13040 case $host in
13041 x86_64-*linux*)
13042 LD="${LD-ld} -m elf_x86_64"
13043 ;;
13044 ppc*-*linux*|powerpc*-*linux*)
13045 LD="${LD-ld} -m elf64ppc"
13046 ;;
13047 s390*-*linux*)
13048 LD="${LD-ld} -m elf64_s390"
13049 ;;
13050 sparc*-*linux*)
13051 LD="${LD-ld} -m elf64_sparc"
13052 ;;
13053 esac
13054 ;;
13055 esac
13056 fi
13057 rm -rf conftest*
13058 ;;
13059
13060*-*-sco3.2v5*)
13061 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13062 SAVE_CFLAGS="$CFLAGS"
13063 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000013064 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
13065echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013066if test "${lt_cv_cc_needs_belf+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 ac_ext=c
13070ac_cpp='$CPP $CPPFLAGS'
13071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073ac_compiler_gnu=$ac_cv_c_compiler_gnu
13074
13075 cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
13080/* end confdefs.h. */
13081
Reid Spencera773bd52006-08-04 18:18:08 +000013082int
13083main ()
13084{
13085
13086 ;
13087 return 0;
13088}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013089_ACEOF
13090rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000013091if { (ac_try="$ac_link"
13092case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13105 { (case "(($ac_try" in
13106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13107 *) ac_try_echo=$ac_try;;
13108esac
13109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13110 (eval "$ac_try") 2>&5
13111 ac_status=$?
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); }; } &&
13114 { ac_try='test -s conftest$ac_exeext'
13115 { (case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13118esac
13119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_try") 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013124 lt_cv_cc_needs_belf=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
Reid Spencera773bd52006-08-04 18:18:08 +000013129 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013130fi
Reid Spencera773bd52006-08-04 18:18:08 +000013131
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013132rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013133 conftest$ac_exeext conftest.$ac_ext
13134 ac_ext=c
13135ac_cpp='$CPP $CPPFLAGS'
13136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139
13140fi
Reid Spencera773bd52006-08-04 18:18:08 +000013141{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
13142echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013143 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13144 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13145 CFLAGS="$SAVE_CFLAGS"
13146 fi
13147 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013148sparc*-*solaris*)
13149 # Find out which ABI we are using.
13150 echo 'int i;' > conftest.$ac_ext
13151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13152 (eval $ac_compile) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; then
13156 case `/usr/bin/file conftest.o` in
13157 *64-bit*)
13158 case $lt_cv_prog_gnu_ld in
13159 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13160 *) LD="${LD-ld} -64" ;;
13161 esac
13162 ;;
13163 esac
13164 fi
13165 rm -rf conftest*
13166 ;;
13167
Reid Spencer2bc7bd52004-11-29 12:29:58 +000013168
13169esac
13170
13171need_locks="$enable_libtool_lock"
13172
13173
Reid Spencer2706f8c2004-09-19 23:53:36 +000013174
13175
13176if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13177 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13178 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013179 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013180ac_cpp='$CXXCPP $CPPFLAGS'
13181ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000013184{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
13185echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013186if test -z "$CXXCPP"; then
13187 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000013188 echo $ECHO_N "(cached) $ECHO_C" >&6
13189else
John Criswell47fdd832003-07-14 16:52:07 +000013190 # Double quotes because CXXCPP needs to be expanded
13191 for CXXCPP in "$CXX -E" "/lib/cpp"
13192 do
13193 ac_preproc_ok=false
13194for ac_cxx_preproc_warn_flag in '' yes
13195do
13196 # Use a header file that comes with gcc, so configuring glibc
13197 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13199 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013200 # On the NeXT, cc -E runs the code through the compiler's parser,
13201 # not just through cpp. "Syntax error" is here to catch this case.
13202 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208#ifdef __STDC__
13209# include <limits.h>
13210#else
13211# include <assert.h>
13212#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013213 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013214_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013215if { (ac_try="$ac_cpp conftest.$ac_ext"
13216case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219esac
13220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013222 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013223 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_cxx_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13231 else
13232 ac_cpp_err=
13233 fi
13234else
13235 ac_cpp_err=yes
13236fi
13237if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013238 :
13239else
13240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013241sed 's/^/| /' conftest.$ac_ext >&5
13242
John Criswell47fdd832003-07-14 16:52:07 +000013243 # Broken: fails on valid input.
13244continue
13245fi
Reid Spencera773bd52006-08-04 18:18:08 +000013246
John Criswell47fdd832003-07-14 16:52:07 +000013247rm -f conftest.err conftest.$ac_ext
13248
Reid Spencera773bd52006-08-04 18:18:08 +000013249 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013250 # can be detected and how.
13251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013252/* confdefs.h. */
13253_ACEOF
13254cat confdefs.h >>conftest.$ac_ext
13255cat >>conftest.$ac_ext <<_ACEOF
13256/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013257#include <ac_nonexistent.h>
13258_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013259if { (ac_try="$ac_cpp conftest.$ac_ext"
13260case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263esac
13264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013266 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013267 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013271 (exit $ac_status); } >/dev/null; then
13272 if test -s conftest.err; then
13273 ac_cpp_err=$ac_cxx_preproc_warn_flag
13274 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13275 else
13276 ac_cpp_err=
13277 fi
13278else
13279 ac_cpp_err=yes
13280fi
13281if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013282 # Broken: success on invalid input.
13283continue
13284else
13285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013286sed 's/^/| /' conftest.$ac_ext >&5
13287
John Criswell47fdd832003-07-14 16:52:07 +000013288 # Passes both tests.
13289ac_preproc_ok=:
13290break
13291fi
Reid Spencera773bd52006-08-04 18:18:08 +000013292
John Criswell47fdd832003-07-14 16:52:07 +000013293rm -f conftest.err conftest.$ac_ext
13294
13295done
13296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13297rm -f conftest.err conftest.$ac_ext
13298if $ac_preproc_ok; then
13299 break
John Criswell7a73b802003-06-30 21:59:07 +000013300fi
13301
John Criswell47fdd832003-07-14 16:52:07 +000013302 done
13303 ac_cv_prog_CXXCPP=$CXXCPP
13304
13305fi
13306 CXXCPP=$ac_cv_prog_CXXCPP
13307else
13308 ac_cv_prog_CXXCPP=$CXXCPP
13309fi
Reid Spencera773bd52006-08-04 18:18:08 +000013310{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
13311echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013312ac_preproc_ok=false
13313for ac_cxx_preproc_warn_flag in '' yes
13314do
13315 # Use a header file that comes with gcc, so configuring glibc
13316 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000013317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13318 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000013319 # On the NeXT, cc -E runs the code through the compiler's parser,
13320 # not just through cpp. "Syntax error" is here to catch this case.
13321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */
13327#ifdef __STDC__
13328# include <limits.h>
13329#else
13330# include <assert.h>
13331#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013332 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000013333_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013334if { (ac_try="$ac_cpp conftest.$ac_ext"
13335case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338esac
13339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013341 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013342 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013346 (exit $ac_status); } >/dev/null; then
13347 if test -s conftest.err; then
13348 ac_cpp_err=$ac_cxx_preproc_warn_flag
13349 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13350 else
13351 ac_cpp_err=
13352 fi
13353else
13354 ac_cpp_err=yes
13355fi
13356if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013357 :
13358else
13359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013360sed 's/^/| /' conftest.$ac_ext >&5
13361
John Criswell47fdd832003-07-14 16:52:07 +000013362 # Broken: fails on valid input.
13363continue
13364fi
Reid Spencera773bd52006-08-04 18:18:08 +000013365
John Criswell47fdd832003-07-14 16:52:07 +000013366rm -f conftest.err conftest.$ac_ext
13367
Reid Spencera773bd52006-08-04 18:18:08 +000013368 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000013369 # can be detected and how.
13370 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013371/* confdefs.h. */
13372_ACEOF
13373cat confdefs.h >>conftest.$ac_ext
13374cat >>conftest.$ac_ext <<_ACEOF
13375/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013376#include <ac_nonexistent.h>
13377_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000013378if { (ac_try="$ac_cpp conftest.$ac_ext"
13379case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13382esac
13383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013385 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000013386 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000013387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013390 (exit $ac_status); } >/dev/null; then
13391 if test -s conftest.err; then
13392 ac_cpp_err=$ac_cxx_preproc_warn_flag
13393 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
13394 else
13395 ac_cpp_err=
13396 fi
13397else
13398 ac_cpp_err=yes
13399fi
13400if test -z "$ac_cpp_err"; then
John Criswell47fdd832003-07-14 16:52:07 +000013401 # Broken: success on invalid input.
13402continue
13403else
13404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013405sed 's/^/| /' conftest.$ac_ext >&5
13406
John Criswell47fdd832003-07-14 16:52:07 +000013407 # Passes both tests.
13408ac_preproc_ok=:
13409break
13410fi
Reid Spencera773bd52006-08-04 18:18:08 +000013411
John Criswell47fdd832003-07-14 16:52:07 +000013412rm -f conftest.err conftest.$ac_ext
13413
13414done
13415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13416rm -f conftest.err conftest.$ac_ext
13417if $ac_preproc_ok; then
13418 :
13419else
John Criswell0c38eaf2003-09-10 15:17:25 +000013420 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13421See \`config.log' for more details." >&5
13422echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
13423See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000013424 { (exit 1); exit 1; }; }
13425fi
13426
Reid Spencera773bd52006-08-04 18:18:08 +000013427ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000013428ac_cpp='$CXXCPP $CPPFLAGS'
13429ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13430ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13431ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13432
Reid Spencer2706f8c2004-09-19 23:53:36 +000013433fi
13434
John Criswell47fdd832003-07-14 16:52:07 +000013435
13436ac_ext=f
13437ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13438ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13440if test -n "$ac_tool_prefix"; then
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013441 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000013442 do
13443 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13444set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013445{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013447if test "${ac_cv_prog_F77+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13449else
13450 if test -n "$F77"; then
13451 ac_cv_prog_F77="$F77" # Let the user override the test.
13452else
13453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454for as_dir in $PATH
13455do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
13458 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013460 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
13461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 break 2
13463 fi
13464done
13465done
Reid Spencera773bd52006-08-04 18:18:08 +000013466IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013467
13468fi
13469fi
13470F77=$ac_cv_prog_F77
13471if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013472 { echo "$as_me:$LINENO: result: $F77" >&5
13473echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013474else
Reid Spencera773bd52006-08-04 18:18:08 +000013475 { echo "$as_me:$LINENO: result: no" >&5
13476echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013477fi
13478
Reid Spencera773bd52006-08-04 18:18:08 +000013479
John Criswell47fdd832003-07-14 16:52:07 +000013480 test -n "$F77" && break
13481 done
13482fi
13483if test -z "$F77"; then
13484 ac_ct_F77=$F77
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013485 for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
John Criswell47fdd832003-07-14 16:52:07 +000013486do
13487 # Extract the first word of "$ac_prog", so it can be a program name with args.
13488set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013489{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013491if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13493else
13494 if test -n "$ac_ct_F77"; then
13495 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
13496else
13497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13498for as_dir in $PATH
13499do
13500 IFS=$as_save_IFS
13501 test -z "$as_dir" && as_dir=.
13502 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013504 ac_cv_prog_ac_ct_F77="$ac_prog"
13505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13506 break 2
13507 fi
13508done
13509done
Reid Spencera773bd52006-08-04 18:18:08 +000013510IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013511
13512fi
13513fi
13514ac_ct_F77=$ac_cv_prog_ac_ct_F77
13515if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013516 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13517echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013518else
Reid Spencera773bd52006-08-04 18:18:08 +000013519 { echo "$as_me:$LINENO: result: no" >&5
13520echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013521fi
13522
Reid Spencera773bd52006-08-04 18:18:08 +000013523
John Criswell47fdd832003-07-14 16:52:07 +000013524 test -n "$ac_ct_F77" && break
13525done
13526
Reid Spencera773bd52006-08-04 18:18:08 +000013527 if test "x$ac_ct_F77" = x; then
13528 F77=""
13529 else
13530 case $cross_compiling:$ac_tool_warned in
13531yes:)
13532{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13533whose name does not start with the host triplet. If you think this
13534configuration is useful to you, please write to autoconf@gnu.org." >&5
13535echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13536whose name does not start with the host triplet. If you think this
13537configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13538ac_tool_warned=yes ;;
13539esac
13540 F77=$ac_ct_F77
13541 fi
John Criswell47fdd832003-07-14 16:52:07 +000013542fi
13543
13544
13545# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013546echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013547ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013548{ (ac_try="$ac_compiler --version >&5"
13549case "(($ac_try" in
13550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13551 *) ac_try_echo=$ac_try;;
13552esac
13553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13554 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013558{ (ac_try="$ac_compiler -v >&5"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013565 ac_status=$?
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013568{ (ac_try="$ac_compiler -V >&5"
13569case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572esac
13573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013578rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013579
13580# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013581# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013582ac_save_ext=$ac_ext
13583ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013584{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13585echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013586if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
13589 cat >conftest.$ac_ext <<_ACEOF
13590 program main
13591#ifndef __GNUC__
13592 choke me
13593#endif
13594
13595 end
13596_ACEOF
13597rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013598if { (ac_try="$ac_compile"
13599case "(($ac_try" in
13600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13601 *) ac_try_echo=$ac_try;;
13602esac
13603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13604 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013605 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013606 grep -v '^ *+' conftest.er1 >conftest.err
13607 rm -f conftest.er1
13608 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013610 (exit $ac_status); } &&
13611 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
13622 { (case "(($ac_try" in
13623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13624 *) ac_try_echo=$ac_try;;
13625esac
13626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13627 (eval "$ac_try") 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013631 ac_compiler_gnu=yes
13632else
13633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013634sed 's/^/| /' conftest.$ac_ext >&5
13635
Reid Spencera773bd52006-08-04 18:18:08 +000013636 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013637fi
Reid Spencera773bd52006-08-04 18:18:08 +000013638
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013640ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13641
13642fi
Reid Spencera773bd52006-08-04 18:18:08 +000013643{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13644echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013645ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013646ac_test_FFLAGS=${FFLAGS+set}
13647ac_save_FFLAGS=$FFLAGS
13648FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013649{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13650echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013651if test "${ac_cv_prog_f77_g+set}" = set; then
13652 echo $ECHO_N "(cached) $ECHO_C" >&6
13653else
13654 FFLAGS=-g
13655cat >conftest.$ac_ext <<_ACEOF
13656 program main
13657
13658 end
13659_ACEOF
13660rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013661if { (ac_try="$ac_compile"
13662case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013668 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013669 grep -v '^ *+' conftest.er1 >conftest.err
13670 rm -f conftest.er1
13671 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000013673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13678esac
13679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13688esac
13689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13691 ac_status=$?
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000013694 ac_cv_prog_f77_g=yes
13695else
13696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013697sed 's/^/| /' conftest.$ac_ext >&5
13698
Reid Spencera773bd52006-08-04 18:18:08 +000013699 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013700fi
Reid Spencera773bd52006-08-04 18:18:08 +000013701
13702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013703
13704fi
Reid Spencera773bd52006-08-04 18:18:08 +000013705{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13706echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013707if test "$ac_test_FFLAGS" = set; then
13708 FFLAGS=$ac_save_FFLAGS
13709elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013710 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013711 FFLAGS="-g -O2"
13712 else
13713 FFLAGS="-g"
13714 fi
13715else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013716 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013717 FFLAGS="-O2"
13718 else
13719 FFLAGS=
13720 fi
13721fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722
13723G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013724ac_ext=c
13725ac_cpp='$CPP $CPPFLAGS'
13726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13728ac_compiler_gnu=$ac_cv_c_compiler_gnu
13729
13730
13731
13732# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13733
13734# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013735{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13736echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013737if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739else
13740 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013741 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013742
13743 case $build_os in
13744 msdosdjgpp*)
13745 # On DJGPP, this test can blow up pretty badly due to problems in libc
13746 # (any single argument exceeding 2000 bytes causes a buffer overrun
13747 # during glob expansion). Even if it were fixed, the result of this
13748 # check would be larger than it should be.
13749 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13750 ;;
13751
13752 gnu*)
13753 # Under GNU Hurd, this test is not required because there is
13754 # no limit to the length of command line arguments.
13755 # Libtool will interpret -1 as no limit whatsoever
13756 lt_cv_sys_max_cmd_len=-1;
13757 ;;
13758
13759 cygwin* | mingw*)
13760 # On Win9x/ME, this test blows up -- it succeeds, but takes
13761 # about 5 minutes as the teststring grows exponentially.
13762 # Worse, since 9x/ME are not pre-emptively multitasking,
13763 # you end up with a "frozen" computer, even though with patience
13764 # the test eventually succeeds (with a max line length of 256k).
13765 # Instead, let's just punt: use the minimum linelength reported by
13766 # all of the supported platforms: 8192 (on NT/2K/XP).
13767 lt_cv_sys_max_cmd_len=8192;
13768 ;;
13769
Reid Spencer2706f8c2004-09-19 23:53:36 +000013770 amigaos*)
13771 # On AmigaOS with pdksh, this test takes hours, literally.
13772 # So we just punt and use a minimum line length of 8192.
13773 lt_cv_sys_max_cmd_len=8192;
13774 ;;
13775
Reid Spencera773bd52006-08-04 18:18:08 +000013776 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013777 # This has been around since 386BSD, at least. Likely further.
13778 if test -x /sbin/sysctl; then
13779 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13780 elif test -x /usr/sbin/sysctl; then
13781 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13782 else
Reid Spencera773bd52006-08-04 18:18:08 +000013783 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013784 fi
13785 # And add a safety zone
13786 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013787 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013788 ;;
13789
Reid Spencera773bd52006-08-04 18:18:08 +000013790 interix*)
13791 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13792 lt_cv_sys_max_cmd_len=196608
13793 ;;
13794
13795 osf*)
13796 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13797 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13798 # nice to cause kernel panics so lets avoid the loop below.
13799 # First set a reasonable default.
13800 lt_cv_sys_max_cmd_len=16384
13801 #
13802 if test -x /sbin/sysconfig; then
13803 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13804 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13805 esac
13806 fi
13807 ;;
13808 sco3.2v5*)
13809 lt_cv_sys_max_cmd_len=102400
13810 ;;
13811 sysv5* | sco5v6* | sysv4.2uw2*)
13812 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13813 if test -n "$kargmax"; then
13814 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13815 else
13816 lt_cv_sys_max_cmd_len=32768
13817 fi
13818 ;;
13819 *)
John Criswell47fdd832003-07-14 16:52:07 +000013820 # If test is not a shell built-in, we'll probably end up computing a
13821 # maximum length that is only half of the actual maximum length, but
13822 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13824 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13825 = "XX$teststring") >/dev/null 2>&1 &&
13826 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013827 lt_cv_sys_max_cmd_len=$new_result &&
13828 test $i != 17 # 1/2 MB should be enough
13829 do
13830 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013831 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013832 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013833 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013834 # Add a significant safety factor because C++ compilers can tack on massive
13835 # amounts of additional arguments before passing them to the linker.
13836 # It appears as though 1/2 is a usable value.
13837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13838 ;;
13839 esac
13840
13841fi
13842
13843if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013844 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13845echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013846else
Reid Spencera773bd52006-08-04 18:18:08 +000013847 { echo "$as_me:$LINENO: result: none" >&5
13848echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013849fi
13850
13851
13852
13853
13854# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013855{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13856echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013857if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859else
13860
13861# These are sane defaults that work on at least a few old systems.
13862# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13863
13864# Character class describing NM global symbol codes.
13865symcode='[BCDEGRST]'
13866
13867# Regexp to match symbols that can be accessed directly from C.
13868sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13869
John Criswell47fdd832003-07-14 16:52:07 +000013870# Transform an extracted symbol line into a proper C declaration
13871lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13872
13873# Transform an extracted symbol line into symbol name and symbol address
13874lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13875
13876# Define system-specific variables.
13877case $host_os in
13878aix*)
13879 symcode='[BCDT]'
13880 ;;
13881cygwin* | mingw* | pw32*)
13882 symcode='[ABCDGISTW]'
13883 ;;
13884hpux*) # Its linker distinguishes data from code symbols
13885 if test "$host_cpu" = ia64; then
13886 symcode='[ABCDEGRST]'
13887 fi
13888 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13889 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13890 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013891linux*)
13892 if test "$host_cpu" = ia64; then
13893 symcode='[ABCDGIRSTW]'
13894 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13895 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
13896 fi
13897 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013898irix* | nonstopux*)
13899 symcode='[BCDEGRST]'
13900 ;;
13901osf*)
13902 symcode='[BCDEGQRST]'
13903 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013904solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013905 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013906 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013907sco3.2v5*)
13908 symcode='[DT]'
13909 ;;
13910sysv4.2uw2*)
13911 symcode='[DT]'
13912 ;;
13913sysv5* | sco5v6* | unixware* | OpenUNIX*)
13914 symcode='[ABDT]'
13915 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013916sysv4)
13917 symcode='[DFNSTU]'
13918 ;;
13919esac
13920
13921# Handle CRLF in mingw tool chain
13922opt_cr=
13923case $build_os in
13924mingw*)
13925 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13926 ;;
13927esac
13928
13929# If we're using GNU nm, then use its standard symbol codes.
13930case `$NM -V 2>&1` in
13931*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013932 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013933esac
13934
13935# Try without a prefix undercore, then with it.
13936for ac_symprfx in "" "_"; do
13937
Reid Spencera773bd52006-08-04 18:18:08 +000013938 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13939 symxfrm="\\1 $ac_symprfx\\2 \\2"
13940
John Criswell47fdd832003-07-14 16:52:07 +000013941 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013942 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
John Criswell47fdd832003-07-14 16:52:07 +000013943
13944 # Check to see that the pipe works correctly.
13945 pipe_works=no
13946
13947 rm -f conftest*
13948 cat > conftest.$ac_ext <<EOF
13949#ifdef __cplusplus
13950extern "C" {
13951#endif
13952char nm_test_var;
13953void nm_test_func(){}
13954#ifdef __cplusplus
13955}
13956#endif
13957int main(){nm_test_var='a';nm_test_func();return(0);}
13958EOF
13959
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; then
13965 # Now try to grab the symbols.
13966 nlist=conftest.nm
13967 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13968 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13969 ac_status=$?
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } && test -s "$nlist"; then
13972 # Try sorting and uniquifying the output.
13973 if sort "$nlist" | uniq > "$nlist"T; then
13974 mv -f "$nlist"T "$nlist"
13975 else
13976 rm -f "$nlist"T
13977 fi
13978
13979 # Make sure that we snagged all the symbols we need.
13980 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13981 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13982 cat <<EOF > conftest.$ac_ext
13983#ifdef __cplusplus
13984extern "C" {
13985#endif
13986
13987EOF
13988 # Now generate the symbol file.
13989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13990
13991 cat <<EOF >> conftest.$ac_ext
13992#if defined (__STDC__) && __STDC__
13993# define lt_ptr_t void *
13994#else
13995# define lt_ptr_t char *
13996# define const
13997#endif
13998
13999/* The mapping between symbol names and symbols. */
14000const struct {
14001 const char *name;
14002 lt_ptr_t address;
14003}
14004lt_preloaded_symbols[] =
14005{
14006EOF
14007 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
14008 cat <<\EOF >> conftest.$ac_ext
14009 {0, (lt_ptr_t) 0}
14010};
14011
14012#ifdef __cplusplus
14013}
14014#endif
14015EOF
14016 # Now try linking the two files.
14017 mv conftest.$ac_objext conftstm.$ac_objext
14018 lt_save_LIBS="$LIBS"
14019 lt_save_CFLAGS="$CFLAGS"
14020 LIBS="conftstm.$ac_objext"
14021 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14023 (eval $ac_link) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } && test -s conftest${ac_exeext}; then
14027 pipe_works=yes
14028 fi
14029 LIBS="$lt_save_LIBS"
14030 CFLAGS="$lt_save_CFLAGS"
14031 else
14032 echo "cannot find nm_test_func in $nlist" >&5
14033 fi
14034 else
14035 echo "cannot find nm_test_var in $nlist" >&5
14036 fi
14037 else
14038 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14039 fi
14040 else
14041 echo "$progname: failed program was:" >&5
14042 cat conftest.$ac_ext >&5
14043 fi
14044 rm -f conftest* conftst*
14045
14046 # Do not use the global_symbol_pipe unless it works.
14047 if test "$pipe_works" = yes; then
14048 break
14049 else
14050 lt_cv_sys_global_symbol_pipe=
14051 fi
14052done
14053
14054fi
14055
14056if test -z "$lt_cv_sys_global_symbol_pipe"; then
14057 lt_cv_sys_global_symbol_to_cdecl=
14058fi
14059if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014060 { echo "$as_me:$LINENO: result: failed" >&5
14061echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014062else
Reid Spencera773bd52006-08-04 18:18:08 +000014063 { echo "$as_me:$LINENO: result: ok" >&5
14064echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014065fi
14066
Reid Spencera773bd52006-08-04 18:18:08 +000014067{ echo "$as_me:$LINENO: checking for objdir" >&5
14068echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014069if test "${lt_cv_objdir+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14071else
14072 rm -f .libs 2>/dev/null
14073mkdir .libs 2>/dev/null
14074if test -d .libs; then
14075 lt_cv_objdir=.libs
14076else
14077 # MS-DOS does not allow filenames that begin with a dot.
14078 lt_cv_objdir=_libs
14079fi
14080rmdir .libs 2>/dev/null
14081fi
Reid Spencera773bd52006-08-04 18:18:08 +000014082{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
14083echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014084objdir=$lt_cv_objdir
14085
14086
14087
14088
14089
14090case $host_os in
14091aix3*)
14092 # AIX sometimes has problems with the GCC collect2 program. For some
14093 # reason, if we set the COLLECT_NAMES environment variable, the problems
14094 # vanish in a puff of smoke.
14095 if test "X${COLLECT_NAMES+set}" != Xset; then
14096 COLLECT_NAMES=
14097 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000014098 fi
14099 ;;
14100esac
14101
John Criswell47fdd832003-07-14 16:52:07 +000014102# Sed substitution that helps us do robust quoting. It backslashifies
14103# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000014104Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000014105sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
14106
14107# Same as above, but do not quote variable references.
14108double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
14109
14110# Sed substitution to delay expansion of an escaped shell variable in a
14111# double_quote_subst'ed string.
14112delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14113
14114# Sed substitution to avoid accidental globbing in evaled expressions
14115no_glob_subst='s/\*/\\\*/g'
14116
14117# Constants:
14118rm="rm -f"
14119
14120# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000014121default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000014122can_build_shared=yes
14123
Reid Spencera773bd52006-08-04 18:18:08 +000014124# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000014125# which needs '.lib').
14126libext=a
14127ltmain="$ac_aux_dir/ltmain.sh"
14128ofile="$default_ofile"
14129with_gnu_ld="$lt_cv_prog_gnu_ld"
14130
14131if test -n "$ac_tool_prefix"; then
14132 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14133set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014136if test "${ac_cv_prog_AR+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 if test -n "$AR"; then
14140 ac_cv_prog_AR="$AR" # Let the user override the test.
14141else
14142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14143for as_dir in $PATH
14144do
14145 IFS=$as_save_IFS
14146 test -z "$as_dir" && as_dir=.
14147 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000014149 ac_cv_prog_AR="${ac_tool_prefix}ar"
14150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14151 break 2
14152 fi
14153done
14154done
Reid Spencera773bd52006-08-04 18:18:08 +000014155IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014156
14157fi
14158fi
14159AR=$ac_cv_prog_AR
14160if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014161 { echo "$as_me:$LINENO: result: $AR" >&5
14162echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014163else
Reid Spencera773bd52006-08-04 18:18:08 +000014164 { echo "$as_me:$LINENO: result: no" >&5
14165echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014166fi
14167
Reid Spencera773bd52006-08-04 18:18:08 +000014168
John Criswell47fdd832003-07-14 16:52:07 +000014169fi
14170if test -z "$ac_cv_prog_AR"; then
14171 ac_ct_AR=$AR
14172 # Extract the first word of "ar", so it can be a program name with args.
14173set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014176if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178else
14179 if test -n "$ac_ct_AR"; then
14180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14181else
14182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183for as_dir in $PATH
14184do
14185 IFS=$as_save_IFS
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell47fdd832003-07-14 16:52:07 +000014189 ac_cv_prog_ac_ct_AR="ar"
14190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14191 break 2
14192 fi
14193done
14194done
Reid Spencera773bd52006-08-04 18:18:08 +000014195IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000014196
John Criswell47fdd832003-07-14 16:52:07 +000014197fi
14198fi
14199ac_ct_AR=$ac_cv_prog_ac_ct_AR
14200if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014201 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14202echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014203else
Reid Spencera773bd52006-08-04 18:18:08 +000014204 { echo "$as_me:$LINENO: result: no" >&5
14205echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014206fi
14207
Reid Spencera773bd52006-08-04 18:18:08 +000014208 if test "x$ac_ct_AR" = x; then
14209 AR="false"
14210 else
14211 case $cross_compiling:$ac_tool_warned in
14212yes:)
14213{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14214whose name does not start with the host triplet. If you think this
14215configuration is useful to you, please write to autoconf@gnu.org." >&5
14216echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14217whose name does not start with the host triplet. If you think this
14218configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14219ac_tool_warned=yes ;;
14220esac
14221 AR=$ac_ct_AR
14222 fi
John Criswell47fdd832003-07-14 16:52:07 +000014223else
14224 AR="$ac_cv_prog_AR"
14225fi
14226
John Criswell7a73b802003-06-30 21:59:07 +000014227if test -n "$ac_tool_prefix"; then
14228 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14229set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014232if test "${ac_cv_prog_RANLIB+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234else
14235 if test -n "$RANLIB"; then
14236 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14237else
14238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14239for as_dir in $PATH
14240do
14241 IFS=$as_save_IFS
14242 test -z "$as_dir" && as_dir=.
14243 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014245 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14247 break 2
14248 fi
14249done
14250done
Reid Spencera773bd52006-08-04 18:18:08 +000014251IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014252
14253fi
14254fi
14255RANLIB=$ac_cv_prog_RANLIB
14256if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014257 { echo "$as_me:$LINENO: result: $RANLIB" >&5
14258echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014259else
Reid Spencera773bd52006-08-04 18:18:08 +000014260 { echo "$as_me:$LINENO: result: no" >&5
14261echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014262fi
14263
Reid Spencera773bd52006-08-04 18:18:08 +000014264
John Criswell7a73b802003-06-30 21:59:07 +000014265fi
14266if test -z "$ac_cv_prog_RANLIB"; then
14267 ac_ct_RANLIB=$RANLIB
14268 # Extract the first word of "ranlib", so it can be a program name with args.
14269set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014272if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14274else
14275 if test -n "$ac_ct_RANLIB"; then
14276 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14277else
14278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279for as_dir in $PATH
14280do
14281 IFS=$as_save_IFS
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014285 ac_cv_prog_ac_ct_RANLIB="ranlib"
14286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14287 break 2
14288 fi
14289done
14290done
Reid Spencera773bd52006-08-04 18:18:08 +000014291IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014292
John Criswell7a73b802003-06-30 21:59:07 +000014293fi
14294fi
14295ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14296if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014297 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14298echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014299else
Reid Spencera773bd52006-08-04 18:18:08 +000014300 { echo "$as_me:$LINENO: result: no" >&5
14301echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014302fi
14303
Reid Spencera773bd52006-08-04 18:18:08 +000014304 if test "x$ac_ct_RANLIB" = x; then
14305 RANLIB=":"
14306 else
14307 case $cross_compiling:$ac_tool_warned in
14308yes:)
14309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14310whose name does not start with the host triplet. If you think this
14311configuration is useful to you, please write to autoconf@gnu.org." >&5
14312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14313whose name does not start with the host triplet. If you think this
14314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14315ac_tool_warned=yes ;;
14316esac
14317 RANLIB=$ac_ct_RANLIB
14318 fi
John Criswell7a73b802003-06-30 21:59:07 +000014319else
14320 RANLIB="$ac_cv_prog_RANLIB"
14321fi
14322
14323if test -n "$ac_tool_prefix"; then
14324 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14325set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014326{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014328if test "${ac_cv_prog_STRIP+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330else
14331 if test -n "$STRIP"; then
14332 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14333else
14334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14335for as_dir in $PATH
14336do
14337 IFS=$as_save_IFS
14338 test -z "$as_dir" && as_dir=.
14339 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014341 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14343 break 2
14344 fi
14345done
14346done
Reid Spencera773bd52006-08-04 18:18:08 +000014347IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014348
14349fi
14350fi
14351STRIP=$ac_cv_prog_STRIP
14352if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014353 { echo "$as_me:$LINENO: result: $STRIP" >&5
14354echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014355else
Reid Spencera773bd52006-08-04 18:18:08 +000014356 { echo "$as_me:$LINENO: result: no" >&5
14357echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014358fi
14359
Reid Spencera773bd52006-08-04 18:18:08 +000014360
John Criswell7a73b802003-06-30 21:59:07 +000014361fi
14362if test -z "$ac_cv_prog_STRIP"; then
14363 ac_ct_STRIP=$STRIP
14364 # Extract the first word of "strip", so it can be a program name with args.
14365set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000014366{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014368if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14370else
14371 if test -n "$ac_ct_STRIP"; then
14372 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14373else
14374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375for as_dir in $PATH
14376do
14377 IFS=$as_save_IFS
14378 test -z "$as_dir" && as_dir=.
14379 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000014380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000014381 ac_cv_prog_ac_ct_STRIP="strip"
14382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14383 break 2
14384 fi
14385done
14386done
Reid Spencera773bd52006-08-04 18:18:08 +000014387IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000014388
John Criswell7a73b802003-06-30 21:59:07 +000014389fi
14390fi
14391ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14392if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014393 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14394echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014395else
Reid Spencera773bd52006-08-04 18:18:08 +000014396 { echo "$as_me:$LINENO: result: no" >&5
14397echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014398fi
14399
Reid Spencera773bd52006-08-04 18:18:08 +000014400 if test "x$ac_ct_STRIP" = x; then
14401 STRIP=":"
14402 else
14403 case $cross_compiling:$ac_tool_warned in
14404yes:)
14405{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
14406whose name does not start with the host triplet. If you think this
14407configuration is useful to you, please write to autoconf@gnu.org." >&5
14408echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
14409whose name does not start with the host triplet. If you think this
14410configuration is useful to you, please write to autoconf@gnu.org." >&2;}
14411ac_tool_warned=yes ;;
14412esac
14413 STRIP=$ac_ct_STRIP
14414 fi
John Criswell7a73b802003-06-30 21:59:07 +000014415else
14416 STRIP="$ac_cv_prog_STRIP"
14417fi
14418
14419
John Criswell7a73b802003-06-30 21:59:07 +000014420old_CC="$CC"
14421old_CFLAGS="$CFLAGS"
14422
14423# Set sane defaults for various variables
14424test -z "$AR" && AR=ar
14425test -z "$AR_FLAGS" && AR_FLAGS=cru
14426test -z "$AS" && AS=as
14427test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000014428test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000014429test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000014430test -z "$DLLTOOL" && DLLTOOL=dlltool
14431test -z "$LD" && LD=ld
14432test -z "$LN_S" && LN_S="ln -s"
14433test -z "$MAGIC_CMD" && MAGIC_CMD=file
14434test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000014435test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000014436test -z "$OBJDUMP" && OBJDUMP=objdump
14437test -z "$RANLIB" && RANLIB=:
14438test -z "$STRIP" && STRIP=:
14439test -z "$ac_objext" && ac_objext=o
14440
John Criswell7a73b802003-06-30 21:59:07 +000014441# Determine commands to create old-style static archives.
14442old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
14443old_postinstall_cmds='chmod 644 $oldlib'
14444old_postuninstall_cmds=
14445
14446if test -n "$RANLIB"; then
14447 case $host_os in
14448 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000014449 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014450 ;;
14451 *)
Reid Spencera773bd52006-08-04 18:18:08 +000014452 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014453 ;;
14454 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000014455 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000014456fi
14457
Reid Spencera773bd52006-08-04 18:18:08 +000014458for cc_temp in $compiler""; do
14459 case $cc_temp in
14460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14462 \-*) ;;
14463 *) break;;
14464 esac
14465done
14466cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14467
Reid Spencer2706f8c2004-09-19 23:53:36 +000014468
John Criswell47fdd832003-07-14 16:52:07 +000014469# Only perform the check for file, if the check method requires it
14470case $deplibs_check_method in
14471file_magic*)
14472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000014473 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
14474echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014475if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014477else
John Criswell47fdd832003-07-14 16:52:07 +000014478 case $MAGIC_CMD in
14479[\\/*] | ?:[\\/]*)
14480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14481 ;;
14482*)
14483 lt_save_MAGIC_CMD="$MAGIC_CMD"
14484 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14485 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14486 for ac_dir in $ac_dummy; do
14487 IFS="$lt_save_ifs"
14488 test -z "$ac_dir" && ac_dir=.
14489 if test -f $ac_dir/${ac_tool_prefix}file; then
14490 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
14491 if test -n "$file_magic_test_file"; then
14492 case $deplibs_check_method in
14493 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014494 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14496 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14497 $EGREP "$file_magic_regex" > /dev/null; then
14498 :
14499 else
14500 cat <<EOF 1>&2
14501
14502*** Warning: the command libtool uses to detect shared libraries,
14503*** $file_magic_cmd, produces output that libtool cannot recognize.
14504*** The result is that libtool may fail to recognize shared libraries
14505*** as such. This will affect the creation of libtool libraries that
14506*** depend on shared libraries, but programs linked with such libtool
14507*** libraries will work regardless of this problem. Nevertheless, you
14508*** may want to report the problem to your system manager and/or to
14509*** bug-libtool@gnu.org
14510
14511EOF
14512 fi ;;
14513 esac
14514 fi
14515 break
14516 fi
14517 done
14518 IFS="$lt_save_ifs"
14519 MAGIC_CMD="$lt_save_MAGIC_CMD"
14520 ;;
14521esac
John Criswell7a73b802003-06-30 21:59:07 +000014522fi
John Criswell7a73b802003-06-30 21:59:07 +000014523
John Criswell47fdd832003-07-14 16:52:07 +000014524MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14525if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014526 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14527echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014528else
Reid Spencera773bd52006-08-04 18:18:08 +000014529 { echo "$as_me:$LINENO: result: no" >&5
14530echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014531fi
John Criswell7a73b802003-06-30 21:59:07 +000014532
John Criswell47fdd832003-07-14 16:52:07 +000014533if test -z "$lt_cv_path_MAGIC_CMD"; then
14534 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014535 { echo "$as_me:$LINENO: checking for file" >&5
14536echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014537if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539else
14540 case $MAGIC_CMD in
14541[\\/*] | ?:[\\/]*)
14542 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14543 ;;
14544*)
14545 lt_save_MAGIC_CMD="$MAGIC_CMD"
14546 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14547 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14548 for ac_dir in $ac_dummy; do
14549 IFS="$lt_save_ifs"
14550 test -z "$ac_dir" && ac_dir=.
14551 if test -f $ac_dir/file; then
14552 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14553 if test -n "$file_magic_test_file"; then
14554 case $deplibs_check_method in
14555 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014556 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14558 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14559 $EGREP "$file_magic_regex" > /dev/null; then
14560 :
14561 else
14562 cat <<EOF 1>&2
14563
14564*** Warning: the command libtool uses to detect shared libraries,
14565*** $file_magic_cmd, produces output that libtool cannot recognize.
14566*** The result is that libtool may fail to recognize shared libraries
14567*** as such. This will affect the creation of libtool libraries that
14568*** depend on shared libraries, but programs linked with such libtool
14569*** libraries will work regardless of this problem. Nevertheless, you
14570*** may want to report the problem to your system manager and/or to
14571*** bug-libtool@gnu.org
14572
14573EOF
14574 fi ;;
14575 esac
14576 fi
14577 break
14578 fi
14579 done
14580 IFS="$lt_save_ifs"
14581 MAGIC_CMD="$lt_save_MAGIC_CMD"
14582 ;;
14583esac
14584fi
14585
14586MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14587if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014588 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14589echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014590else
Reid Spencera773bd52006-08-04 18:18:08 +000014591 { echo "$as_me:$LINENO: result: no" >&5
14592echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014593fi
14594
14595 else
14596 MAGIC_CMD=:
14597 fi
14598fi
14599
14600 fi
14601 ;;
14602esac
14603
Reid Spencer17795972004-11-18 09:47:37 +000014604enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014605enable_win32_dll=no
14606
Reid Spencera773bd52006-08-04 18:18:08 +000014607# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014608if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014609 enableval=$enable_libtool_lock;
14610fi
John Criswell47fdd832003-07-14 16:52:07 +000014611
John Criswell47fdd832003-07-14 16:52:07 +000014612test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14613
John Criswell7a73b802003-06-30 21:59:07 +000014614
Reid Spencera773bd52006-08-04 18:18:08 +000014615# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014616if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014617 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014618else
14619 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014620fi
14621
John Criswell7a73b802003-06-30 21:59:07 +000014622test -z "$pic_mode" && pic_mode=default
14623
John Criswell47fdd832003-07-14 16:52:07 +000014624# Use C for the default configuration in the libtool script
14625tagname=
14626lt_save_CC="$CC"
14627ac_ext=c
14628ac_cpp='$CPP $CPPFLAGS'
14629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14631ac_compiler_gnu=$ac_cv_c_compiler_gnu
14632
14633
14634# Source file extension for C test sources.
14635ac_ext=c
14636
14637# Object file extension for compiled C test sources.
14638objext=o
14639objext=$objext
14640
14641# Code to be used in simple compile tests
14642lt_simple_compile_test_code="int some_variable = 0;\n"
14643
14644# Code to be used in simple link tests
14645lt_simple_link_test_code='int main(){return(0);}\n'
14646
14647
14648# If no C compiler was specified, use CC.
14649LTCC=${LTCC-"$CC"}
14650
Reid Spencera773bd52006-08-04 18:18:08 +000014651# If no C compiler flags were specified, use CFLAGS.
14652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14653
John Criswell47fdd832003-07-14 16:52:07 +000014654# Allow CC to be a program name with arguments.
14655compiler=$CC
14656
14657
Reid Spencera773bd52006-08-04 18:18:08 +000014658# save warnings/boilerplate of simple test code
14659ac_outfile=conftest.$ac_objext
14660printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14661eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14662_lt_compiler_boilerplate=`cat conftest.err`
14663$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014664
Reid Spencera773bd52006-08-04 18:18:08 +000014665ac_outfile=conftest.$ac_objext
14666printf "$lt_simple_link_test_code" >conftest.$ac_ext
14667eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14668_lt_linker_boilerplate=`cat conftest.err`
14669$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014670
14671
John Criswell47fdd832003-07-14 16:52:07 +000014672
14673lt_prog_compiler_no_builtin_flag=
14674
14675if test "$GCC" = yes; then
14676 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14677
Reid Spencer2706f8c2004-09-19 23:53:36 +000014678
Reid Spencera773bd52006-08-04 18:18:08 +000014679{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14680echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014681if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683else
14684 lt_cv_prog_compiler_rtti_exceptions=no
14685 ac_outfile=conftest.$ac_objext
14686 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14687 lt_compiler_flag="-fno-rtti -fno-exceptions"
14688 # Insert the option either (1) after the last *FLAGS variable, or
14689 # (2) before a word containing "conftest.", or (3) at the end.
14690 # Note that $ac_compile itself does not contain backslashes and begins
14691 # with a dollar sign (not a hyphen), so the echo should work correctly.
14692 # The option is referenced via a variable to avoid confusing sed.
14693 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14696 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000014697 (eval echo "\"\$as_me:14697: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014698 (eval "$lt_compile" 2>conftest.err)
14699 ac_status=$?
14700 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000014701 echo "$as_me:14701: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014702 if (exit $ac_status) && test -s "$ac_outfile"; then
14703 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014704 # So say no if there are warnings other than the usual output.
14705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014708 lt_cv_prog_compiler_rtti_exceptions=yes
14709 fi
14710 fi
14711 $rm conftest*
14712
14713fi
Reid Spencera773bd52006-08-04 18:18:08 +000014714{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14715echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014716
14717if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14718 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14719else
14720 :
14721fi
14722
14723fi
14724
14725lt_prog_compiler_wl=
14726lt_prog_compiler_pic=
14727lt_prog_compiler_static=
14728
Reid Spencera773bd52006-08-04 18:18:08 +000014729{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14730echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014731
14732 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014733 lt_prog_compiler_wl='-Wl,'
14734 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014735
14736 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014737 aix*)
14738 # All AIX code is PIC.
14739 if test "$host_cpu" = ia64; then
14740 # AIX 5 now supports IA64 processor
14741 lt_prog_compiler_static='-Bstatic'
14742 fi
John Criswell7a73b802003-06-30 21:59:07 +000014743 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014744
John Criswell7a73b802003-06-30 21:59:07 +000014745 amigaos*)
14746 # FIXME: we need at least 68020 code to build shared libraries, but
14747 # adding the `-m68020' flag to GCC prevents building anything better,
14748 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014749 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014750 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014751
14752 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014753 # PIC is the default for these OSes.
14754 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014755
14756 mingw* | pw32* | os2*)
14757 # This hack is so that the source file can tell whether it is being
14758 # built for inclusion in a dll (and should export symbols for example).
14759 lt_prog_compiler_pic='-DDLL_EXPORT'
14760 ;;
14761
John Criswell7a73b802003-06-30 21:59:07 +000014762 darwin* | rhapsody*)
14763 # PIC is the default on this platform
14764 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014765 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014766 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014767
Reid Spencera773bd52006-08-04 18:18:08 +000014768 interix3*)
14769 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14770 # Instead, we relocate shared libraries at runtime.
14771 ;;
14772
John Criswell47fdd832003-07-14 16:52:07 +000014773 msdosdjgpp*)
14774 # Just because we use GCC doesn't mean we suddenly get shared libraries
14775 # on systems that don't support them.
14776 lt_prog_compiler_can_build_shared=no
14777 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014778 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014779
John Criswell7a73b802003-06-30 21:59:07 +000014780 sysv4*MP*)
14781 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014782 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014783 fi
14784 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014785
14786 hpux*)
14787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14788 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014789 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014790 hppa*64*|ia64*)
14791 # +Z the default
14792 ;;
14793 *)
14794 lt_prog_compiler_pic='-fPIC'
14795 ;;
14796 esac
14797 ;;
14798
John Criswell7a73b802003-06-30 21:59:07 +000014799 *)
John Criswell47fdd832003-07-14 16:52:07 +000014800 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014801 ;;
14802 esac
14803 else
John Criswell47fdd832003-07-14 16:52:07 +000014804 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014805 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014806 aix*)
14807 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014808 if test "$host_cpu" = ia64; then
14809 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014810 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014811 else
John Criswell47fdd832003-07-14 16:52:07 +000014812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014813 fi
14814 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014815 darwin*)
14816 # PIC is the default on this platform
14817 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014818 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014819 xlc*)
14820 lt_prog_compiler_pic='-qnocommon'
14821 lt_prog_compiler_wl='-Wl,'
14822 ;;
14823 esac
14824 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014825
John Criswell47fdd832003-07-14 16:52:07 +000014826 mingw* | pw32* | os2*)
14827 # This hack is so that the source file can tell whether it is being
14828 # built for inclusion in a dll (and should export symbols for example).
14829 lt_prog_compiler_pic='-DDLL_EXPORT'
14830 ;;
14831
John Criswell7a73b802003-06-30 21:59:07 +000014832 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014833 lt_prog_compiler_wl='-Wl,'
14834 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14835 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014836 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014837 hppa*64*|ia64*)
14838 # +Z the default
14839 ;;
14840 *)
14841 lt_prog_compiler_pic='+Z'
14842 ;;
14843 esac
14844 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14845 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014846 ;;
14847
John Criswell47fdd832003-07-14 16:52:07 +000014848 irix5* | irix6* | nonstopux*)
14849 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014850 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014851 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014852 ;;
14853
14854 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014855 lt_prog_compiler_pic='-KPIC'
14856 lt_prog_compiler_static='-Bstatic'
14857 ;;
14858
14859 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014860 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014861 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014862 lt_prog_compiler_wl='-Wl,'
14863 lt_prog_compiler_pic='-KPIC'
14864 lt_prog_compiler_static='-static'
14865 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014866 pgcc* | pgf77* | pgf90* | pgf95*)
14867 # Portland Group compilers (*not* the Pentium gcc compiler,
14868 # which looks to be a dead project)
14869 lt_prog_compiler_wl='-Wl,'
14870 lt_prog_compiler_pic='-fpic'
14871 lt_prog_compiler_static='-Bstatic'
14872 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014873 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014874 lt_prog_compiler_wl='-Wl,'
14875 # All Alpha code is PIC.
14876 lt_prog_compiler_static='-non_shared'
14877 ;;
14878 esac
John Criswell7a73b802003-06-30 21:59:07 +000014879 ;;
14880
14881 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014882 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014883 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014884 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014885 ;;
14886
John Criswell7a73b802003-06-30 21:59:07 +000014887 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014888 lt_prog_compiler_pic='-KPIC'
14889 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014890 case $cc_basename in
14891 f77* | f90* | f95*)
14892 lt_prog_compiler_wl='-Qoption ld ';;
14893 *)
14894 lt_prog_compiler_wl='-Wl,';;
14895 esac
John Criswell7a73b802003-06-30 21:59:07 +000014896 ;;
14897
14898 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014899 lt_prog_compiler_wl='-Qoption ld '
14900 lt_prog_compiler_pic='-PIC'
14901 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014902 ;;
14903
Reid Spencera773bd52006-08-04 18:18:08 +000014904 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014905 lt_prog_compiler_wl='-Wl,'
14906 lt_prog_compiler_pic='-KPIC'
14907 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014908 ;;
14909
14910 sysv4*MP*)
14911 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014912 lt_prog_compiler_pic='-Kconform_pic'
14913 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014914 fi
14915 ;;
14916
Reid Spencera773bd52006-08-04 18:18:08 +000014917 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14918 lt_prog_compiler_wl='-Wl,'
14919 lt_prog_compiler_pic='-KPIC'
14920 lt_prog_compiler_static='-Bstatic'
14921 ;;
14922
14923 unicos*)
14924 lt_prog_compiler_wl='-Wl,'
14925 lt_prog_compiler_can_build_shared=no
14926 ;;
14927
John Criswell47fdd832003-07-14 16:52:07 +000014928 uts4*)
14929 lt_prog_compiler_pic='-pic'
14930 lt_prog_compiler_static='-Bstatic'
14931 ;;
14932
John Criswell7a73b802003-06-30 21:59:07 +000014933 *)
John Criswell47fdd832003-07-14 16:52:07 +000014934 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014935 ;;
14936 esac
14937 fi
14938
Reid Spencera773bd52006-08-04 18:18:08 +000014939{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14940echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014941
John Criswell47fdd832003-07-14 16:52:07 +000014942#
14943# Check to make sure the PIC flag actually works.
14944#
14945if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014946
Reid Spencera773bd52006-08-04 18:18:08 +000014947{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14948echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014949if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014950 echo $ECHO_N "(cached) $ECHO_C" >&6
14951else
John Criswell47fdd832003-07-14 16:52:07 +000014952 lt_prog_compiler_pic_works=no
14953 ac_outfile=conftest.$ac_objext
14954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14955 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14956 # Insert the option either (1) after the last *FLAGS variable, or
14957 # (2) before a word containing "conftest.", or (3) at the end.
14958 # Note that $ac_compile itself does not contain backslashes and begins
14959 # with a dollar sign (not a hyphen), so the echo should work correctly.
14960 # The option is referenced via a variable to avoid confusing sed.
14961 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14964 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000014965 (eval echo "\"\$as_me:14965: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014966 (eval "$lt_compile" 2>conftest.err)
14967 ac_status=$?
14968 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000014969 echo "$as_me:14969: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014970 if (exit $ac_status) && test -s "$ac_outfile"; then
14971 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014972 # So say no if there are warnings other than the usual output.
14973 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14974 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14975 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014976 lt_prog_compiler_pic_works=yes
14977 fi
14978 fi
14979 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014980
John Criswell47fdd832003-07-14 16:52:07 +000014981fi
Reid Spencera773bd52006-08-04 18:18:08 +000014982{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14983echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014984
John Criswell47fdd832003-07-14 16:52:07 +000014985if test x"$lt_prog_compiler_pic_works" = xyes; then
14986 case $lt_prog_compiler_pic in
14987 "" | " "*) ;;
14988 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14989 esac
John Criswell7a73b802003-06-30 21:59:07 +000014990else
John Criswell47fdd832003-07-14 16:52:07 +000014991 lt_prog_compiler_pic=
14992 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014993fi
14994
John Criswell7a73b802003-06-30 21:59:07 +000014995fi
Reid Spencera773bd52006-08-04 18:18:08 +000014996case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014997 # For platforms which do not support PIC, -DPIC is meaningless:
14998 *djgpp*)
14999 lt_prog_compiler_pic=
15000 ;;
15001 *)
15002 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15003 ;;
15004esac
John Criswell7a73b802003-06-30 21:59:07 +000015005
Reid Spencera773bd52006-08-04 18:18:08 +000015006#
15007# Check to make sure the static flag actually works.
15008#
15009wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15010{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15011echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
15012if test "${lt_prog_compiler_static_works+set}" = set; then
15013 echo $ECHO_N "(cached) $ECHO_C" >&6
15014else
15015 lt_prog_compiler_static_works=no
15016 save_LDFLAGS="$LDFLAGS"
15017 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15018 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15019 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15020 # The linker can only warn and ignore the option if not recognized
15021 # So say no if there are warnings
15022 if test -s conftest.err; then
15023 # Append any errors to the config.log.
15024 cat conftest.err 1>&5
15025 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15026 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15027 if diff conftest.exp conftest.er2 >/dev/null; then
15028 lt_prog_compiler_static_works=yes
15029 fi
15030 else
15031 lt_prog_compiler_static_works=yes
15032 fi
15033 fi
15034 $rm conftest*
15035 LDFLAGS="$save_LDFLAGS"
15036
15037fi
15038{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
15039echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
15040
15041if test x"$lt_prog_compiler_static_works" = xyes; then
15042 :
15043else
15044 lt_prog_compiler_static=
15045fi
15046
15047
15048{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15049echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015050if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000015051 echo $ECHO_N "(cached) $ECHO_C" >&6
15052else
John Criswell47fdd832003-07-14 16:52:07 +000015053 lt_cv_prog_compiler_c_o=no
15054 $rm -r conftest 2>/dev/null
15055 mkdir conftest
15056 cd conftest
15057 mkdir out
15058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000015059
John Criswell47fdd832003-07-14 16:52:07 +000015060 lt_compiler_flag="-o out/conftest2.$ac_objext"
15061 # Insert the option either (1) after the last *FLAGS variable, or
15062 # (2) before a word containing "conftest.", or (3) at the end.
15063 # Note that $ac_compile itself does not contain backslashes and begins
15064 # with a dollar sign (not a hyphen), so the echo should work correctly.
15065 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000015066 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000015067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15068 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000015069 (eval echo "\"\$as_me:15069: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015070 (eval "$lt_compile" 2>out/conftest.err)
15071 ac_status=$?
15072 cat out/conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000015073 echo "$as_me:15073: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15075 then
15076 # The compiler can only warn and ignore the option if not recognized
15077 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000015078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15079 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15080 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000015081 lt_cv_prog_compiler_c_o=yes
15082 fi
15083 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015084 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015085 $rm conftest*
15086 # SGI C++ compiler will create directory out/ii_files/ for
15087 # template instantiation
15088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15089 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015090 cd ..
15091 rmdir conftest
15092 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000015093
15094fi
Reid Spencera773bd52006-08-04 18:18:08 +000015095{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
15096echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015097
John Criswell7a73b802003-06-30 21:59:07 +000015098
John Criswell7a73b802003-06-30 21:59:07 +000015099hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000015100if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000015101 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000015102 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15103echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015104 hard_links=yes
15105 $rm conftest*
15106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15107 touch conftest.a
15108 ln conftest.a conftest.b 2>&5 || hard_links=no
15109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000015110 { echo "$as_me:$LINENO: result: $hard_links" >&5
15111echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015112 if test "$hard_links" = no; then
15113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15114echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15115 need_locks=warn
15116 fi
15117else
15118 need_locks=no
15119fi
John Criswell7a73b802003-06-30 21:59:07 +000015120
Reid Spencera773bd52006-08-04 18:18:08 +000015121{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15122echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015123
15124 runpath_var=
15125 allow_undefined_flag=
15126 enable_shared_with_static_runtimes=no
15127 archive_cmds=
15128 archive_expsym_cmds=
15129 old_archive_From_new_cmds=
15130 old_archive_from_expsyms_cmds=
15131 export_dynamic_flag_spec=
15132 whole_archive_flag_spec=
15133 thread_safe_flag_spec=
15134 hardcode_libdir_flag_spec=
15135 hardcode_libdir_flag_spec_ld=
15136 hardcode_libdir_separator=
15137 hardcode_direct=no
15138 hardcode_minus_L=no
15139 hardcode_shlibpath_var=unsupported
15140 link_all_deplibs=unknown
15141 hardcode_automatic=no
15142 module_cmds=
15143 module_expsym_cmds=
15144 always_export_symbols=no
15145 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15146 # include_expsyms should be a list of space-separated symbols to be *always*
15147 # included in the symbol list
15148 include_expsyms=
15149 # exclude_expsyms can be an extended regexp of symbols to exclude
15150 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15151 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15152 # as well as any symbol that contains `d'.
15153 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
15154 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15155 # platforms (ab)use it in PIC code, but their linkers get confused if
15156 # the symbol is explicitly referenced. Since portable code cannot
15157 # rely on this symbol name, it's probably fine to never include it in
15158 # preloaded symbol tables.
15159 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000015160 # Just being paranoid about ensuring that cc_basename is set.
15161 for cc_temp in $compiler""; do
15162 case $cc_temp in
15163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15165 \-*) ;;
15166 *) break;;
15167 esac
15168done
15169cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000015170
15171 case $host_os in
15172 cygwin* | mingw* | pw32*)
15173 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15174 # When not using gcc, we currently assume that we are using
15175 # Microsoft Visual C++.
15176 if test "$GCC" != yes; then
15177 with_gnu_ld=no
15178 fi
15179 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015180 interix*)
15181 # we just hope/assume this is gcc and not c89 (= MSVC++)
15182 with_gnu_ld=yes
15183 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015184 openbsd*)
15185 with_gnu_ld=no
15186 ;;
15187 esac
15188
15189 ld_shlibs=yes
15190 if test "$with_gnu_ld" = yes; then
15191 # If archive_cmds runs LD, not CC, wlarc should be empty
15192 wlarc='${wl}'
15193
Reid Spencera773bd52006-08-04 18:18:08 +000015194 # Set some defaults for GNU ld with shared library support. These
15195 # are reset later if shared libraries are not supported. Putting them
15196 # here allows them to be overridden if necessary.
15197 runpath_var=LD_RUN_PATH
15198 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
15199 export_dynamic_flag_spec='${wl}--export-dynamic'
15200 # ancient GNU ld didn't support --whole-archive et. al.
15201 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15202 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15203 else
15204 whole_archive_flag_spec=
15205 fi
15206 supports_anon_versioning=no
15207 case `$LD -v 2>/dev/null` in
15208 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15209 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15210 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15211 *\ 2.11.*) ;; # other 2.11 versions
15212 *) supports_anon_versioning=yes ;;
15213 esac
15214
John Criswell47fdd832003-07-14 16:52:07 +000015215 # See if GNU ld supports shared libraries.
15216 case $host_os in
15217 aix3* | aix4* | aix5*)
15218 # On AIX/PPC, the GNU linker is very broken
15219 if test "$host_cpu" != ia64; then
15220 ld_shlibs=no
15221 cat <<EOF 1>&2
15222
15223*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15224*** to be unable to reliably create shared libraries on AIX.
15225*** Therefore, libtool is disabling shared libraries support. If you
15226*** really care for shared libraries, you may want to modify your PATH
15227*** so that a non-GNU linker is found, and then restart.
15228
15229EOF
15230 fi
15231 ;;
15232
15233 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015234 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000015235 hardcode_libdir_flag_spec='-L$libdir'
15236 hardcode_minus_L=yes
15237
15238 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15239 # that the semantics of dynamic libraries on AmigaOS, at least up
15240 # to version 4, is to share data among multiple programs linked
15241 # with the same dynamic library. Since this doesn't match the
15242 # behavior of shared libraries on other platforms, we can't use
15243 # them.
15244 ld_shlibs=no
15245 ;;
15246
15247 beos*)
15248 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15249 allow_undefined_flag=unsupported
15250 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15251 # support --undefined. This deserves some investigation. FIXME
15252 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15253 else
15254 ld_shlibs=no
15255 fi
15256 ;;
15257
15258 cygwin* | mingw* | pw32*)
15259 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15260 # as there is no search path for DLLs.
15261 hardcode_libdir_flag_spec='-L$libdir'
15262 allow_undefined_flag=unsupported
15263 always_export_symbols=no
15264 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015265 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000015266
15267 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000015268 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015269 # If the export-symbols file already is a .def file (1st line
15270 # is EXPORTS), use it as is; otherwise, prepend...
15271 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15272 cp $export_symbols $output_objdir/$soname.def;
15273 else
15274 echo EXPORTS > $output_objdir/$soname.def;
15275 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015276 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000015277 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15278 else
15279 ld_shlibs=no
15280 fi
15281 ;;
15282
15283 interix3*)
15284 hardcode_direct=no
15285 hardcode_shlibpath_var=no
15286 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15287 export_dynamic_flag_spec='${wl}-E'
15288 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15289 # Instead, shared libraries are loaded at an image base (0x10000000 by
15290 # default) and relocated if they conflict, which is a slow very memory
15291 # consuming and fragmenting process. To avoid this, we pick a random,
15292 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15293 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15294 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15295 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15296 ;;
15297
15298 linux*)
15299 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15300 tmp_addflag=
15301 case $cc_basename,$host_cpu in
15302 pgcc*) # Portland Group C compiler
15303 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15304 tmp_addflag=' $pic_flag'
15305 ;;
15306 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15307 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15308 tmp_addflag=' $pic_flag -Mnomain' ;;
15309 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15310 tmp_addflag=' -i_dynamic' ;;
15311 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15312 tmp_addflag=' -i_dynamic -nofor_main' ;;
15313 ifc* | ifort*) # Intel Fortran compiler
15314 tmp_addflag=' -nofor_main' ;;
15315 esac
15316 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15317
15318 if test $supports_anon_versioning = yes; then
15319 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
15320 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15321 $echo "local: *; };" >> $output_objdir/$libname.ver~
15322 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15323 fi
John Criswell47fdd832003-07-14 16:52:07 +000015324 else
15325 ld_shlibs=no
15326 fi
15327 ;;
15328
15329 netbsd*)
15330 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15331 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15332 wlarc=
15333 else
15334 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15335 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15336 fi
15337 ;;
15338
Reid Spencera773bd52006-08-04 18:18:08 +000015339 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000015340 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15341 ld_shlibs=no
15342 cat <<EOF 1>&2
15343
15344*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15345*** create shared libraries on Solaris systems. Therefore, libtool
15346*** is disabling shared libraries support. We urge you to upgrade GNU
15347*** binutils to release 2.9.1 or newer. Another option is to modify
15348*** your PATH or compiler configuration so that the native linker is
15349*** used, and then restart.
15350
15351EOF
15352 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15353 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15354 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15355 else
15356 ld_shlibs=no
15357 fi
15358 ;;
15359
Reid Spencera773bd52006-08-04 18:18:08 +000015360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15361 case `$LD -v 2>&1` in
15362 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15363 ld_shlibs=no
15364 cat <<_LT_EOF 1>&2
15365
15366*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15367*** reliably create shared libraries on SCO systems. Therefore, libtool
15368*** is disabling shared libraries support. We urge you to upgrade GNU
15369*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15370*** your PATH or compiler configuration so that the native linker is
15371*** used, and then restart.
15372
15373_LT_EOF
15374 ;;
15375 *)
15376 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15377 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15378 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15379 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15380 else
15381 ld_shlibs=no
15382 fi
15383 ;;
15384 esac
15385 ;;
15386
John Criswell47fdd832003-07-14 16:52:07 +000015387 sunos4*)
15388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389 wlarc=
15390 hardcode_direct=yes
15391 hardcode_shlibpath_var=no
15392 ;;
15393
15394 *)
15395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15398 else
15399 ld_shlibs=no
15400 fi
15401 ;;
15402 esac
15403
Reid Spencera773bd52006-08-04 18:18:08 +000015404 if test "$ld_shlibs" = no; then
15405 runpath_var=
15406 hardcode_libdir_flag_spec=
15407 export_dynamic_flag_spec=
15408 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000015409 fi
15410 else
15411 # PORTME fill in a description of your system's linker (not GNU ld)
15412 case $host_os in
15413 aix3*)
15414 allow_undefined_flag=unsupported
15415 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015416 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000015417 # Note: this linker hardcodes the directories in LIBPATH if there
15418 # are no directories specified by -L.
15419 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015420 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000015421 # Neither direct hardcoding nor static linking is supported with a
15422 # broken collect2.
15423 hardcode_direct=unsupported
15424 fi
15425 ;;
15426
15427 aix4* | aix5*)
15428 if test "$host_cpu" = ia64; then
15429 # On IA64, the linker does run time linking by default, so we don't
15430 # have to do anything special.
15431 aix_use_runtimelinking=no
15432 exp_sym_flag='-Bexport'
15433 no_entry_flag=""
15434 else
15435 # If we're using GNU nm, then we don't want the "-C" option.
15436 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15437 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15438 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15439 else
15440 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15441 fi
15442 aix_use_runtimelinking=no
15443
15444 # Test if we are trying to use run time linking or normal
15445 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15446 # need to do runtime linking.
15447 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15448 for ld_flag in $LDFLAGS; do
15449 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15450 aix_use_runtimelinking=yes
15451 break
15452 fi
15453 done
Reid Spencera773bd52006-08-04 18:18:08 +000015454 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015455 esac
15456
15457 exp_sym_flag='-bexport'
15458 no_entry_flag='-bnoentry'
15459 fi
15460
15461 # When large executables or shared objects are built, AIX ld can
15462 # have problems creating the table of contents. If linking a library
15463 # or program results in "error TOC overflow" add -mminimal-toc to
15464 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15465 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15466
15467 archive_cmds=''
15468 hardcode_direct=yes
15469 hardcode_libdir_separator=':'
15470 link_all_deplibs=yes
15471
15472 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015473 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000015474 # We only want to do this on AIX 4.2 and lower, the check
15475 # below for broken collect2 doesn't work under 4.3+
15476 collect2name=`${CC} -print-prog-name=collect2`
15477 if test -f "$collect2name" && \
15478 strings "$collect2name" | grep resolve_lib_name >/dev/null
15479 then
15480 # We have reworked collect2
15481 hardcode_direct=yes
15482 else
15483 # We have old collect2
15484 hardcode_direct=unsupported
15485 # It fails to find uninstalled libraries when the uninstalled
15486 # path is not listed in the libpath. Setting hardcode_minus_L
15487 # to unsupported forces relinking
15488 hardcode_minus_L=yes
15489 hardcode_libdir_flag_spec='-L$libdir'
15490 hardcode_libdir_separator=
15491 fi
Reid Spencera773bd52006-08-04 18:18:08 +000015492 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015493 esac
15494 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000015495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag="$shared_flag "'${wl}-G'
15497 fi
John Criswell47fdd832003-07-14 16:52:07 +000015498 else
15499 # not using gcc
15500 if test "$host_cpu" = ia64; then
15501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15502 # chokes on -Wl,-G. The following line is correct:
15503 shared_flag='-G'
15504 else
Reid Spencera773bd52006-08-04 18:18:08 +000015505 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015506 shared_flag='${wl}-G'
15507 else
15508 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015509 fi
John Criswell47fdd832003-07-14 16:52:07 +000015510 fi
15511 fi
15512
15513 # It seems that -bexpall does not export symbols beginning with
15514 # underscore (_), so it is better to generate a list of symbols to export.
15515 always_export_symbols=yes
15516 if test "$aix_use_runtimelinking" = yes; then
15517 # Warning - without using the other runtime loading flags (-brtl),
15518 # -berok will link without error, but may produce a broken library.
15519 allow_undefined_flag='-berok'
15520 # Determine the default libpath from the value encoded in an empty executable.
15521 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015522/* confdefs.h. */
15523_ACEOF
15524cat confdefs.h >>conftest.$ac_ext
15525cat >>conftest.$ac_ext <<_ACEOF
15526/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015527
John Criswell7a73b802003-06-30 21:59:07 +000015528int
15529main ()
15530{
John Criswell47fdd832003-07-14 16:52:07 +000015531
John Criswell7a73b802003-06-30 21:59:07 +000015532 ;
15533 return 0;
15534}
15535_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015536rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015537if { (ac_try="$ac_link"
15538case "(($ac_try" in
15539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540 *) ac_try_echo=$ac_try;;
15541esac
15542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015544 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015545 grep -v '^ *+' conftest.er1 >conftest.err
15546 rm -f conftest.er1
15547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15554esac
15555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_try") 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; } &&
15560 { ac_try='test -s conftest$ac_exeext'
15561 { (case "(($ac_try" in
15562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15563 *) ac_try_echo=$ac_try;;
15564esac
15565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15566 (eval "$ac_try") 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015570
John Criswell47fdd832003-07-14 16:52:07 +000015571aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15572}'`
15573# Check for a 64-bit object if we didn't find anything.
15574if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15575}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015576else
15577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015578sed 's/^/| /' conftest.$ac_ext >&5
15579
Reid Spencera773bd52006-08-04 18:18:08 +000015580
John Criswell7a73b802003-06-30 21:59:07 +000015581fi
Reid Spencera773bd52006-08-04 18:18:08 +000015582
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015583rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015584 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015585if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015586
John Criswell47fdd832003-07-14 16:52:07 +000015587 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015588 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000015589 else
15590 if test "$host_cpu" = ia64; then
15591 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15592 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015593 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000015594 else
15595 # Determine the default libpath from the value encoded in an empty executable.
15596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015602
John Criswell47fdd832003-07-14 16:52:07 +000015603int
15604main ()
15605{
John Criswell7a73b802003-06-30 21:59:07 +000015606
John Criswell47fdd832003-07-14 16:52:07 +000015607 ;
15608 return 0;
15609}
15610_ACEOF
15611rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015612if { (ac_try="$ac_link"
15613case "(($ac_try" in
15614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15615 *) ac_try_echo=$ac_try;;
15616esac
15617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15618 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (case "(($ac_try" in
15627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15628 *) ac_try_echo=$ac_try;;
15629esac
15630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15631 (eval "$ac_try") 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); }; } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639esac
15640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015645
John Criswell47fdd832003-07-14 16:52:07 +000015646aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15647}'`
15648# Check for a 64-bit object if we didn't find anything.
15649if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15650}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015651else
John Criswell47fdd832003-07-14 16:52:07 +000015652 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015653sed 's/^/| /' conftest.$ac_ext >&5
15654
Reid Spencera773bd52006-08-04 18:18:08 +000015655
John Criswell47fdd832003-07-14 16:52:07 +000015656fi
Reid Spencera773bd52006-08-04 18:18:08 +000015657
Gordon Henriksen40e7f192008-10-22 12:40:55 +000015658rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015659 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015660if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015661
John Criswell47fdd832003-07-14 16:52:07 +000015662 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15663 # Warning - without using the other run time loading flags,
15664 # -berok will link without error, but may produce a broken library.
15665 no_undefined_flag=' ${wl}-bernotok'
15666 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015667 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015668 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015669 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015670 # This is similar to how AIX traditionally builds its shared libraries.
15671 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +000015672 fi
15673 fi
John Criswell7a73b802003-06-30 21:59:07 +000015674 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015675
15676 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015677 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000015678 hardcode_libdir_flag_spec='-L$libdir'
15679 hardcode_minus_L=yes
15680 # see comment about different semantics on the GNU ld section
15681 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015682 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015683
Reid Spencer2706f8c2004-09-19 23:53:36 +000015684 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015685 export_dynamic_flag_spec=-rdynamic
15686 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015687
John Criswell47fdd832003-07-14 16:52:07 +000015688 cygwin* | mingw* | pw32*)
15689 # When not using gcc, we currently assume that we are using
15690 # Microsoft Visual C++.
15691 # hardcode_libdir_flag_spec is actually meaningless, as there is
15692 # no search path for DLLs.
15693 hardcode_libdir_flag_spec=' '
15694 allow_undefined_flag=unsupported
15695 # Tell ltmain to make .lib files, not .a files.
15696 libext=lib
15697 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015698 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015699 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015700 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015701 # The linker will automatically build a .lib file if we build a DLL.
15702 old_archive_From_new_cmds='true'
15703 # FIXME: Should let the user specify the lib program.
15704 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15705 fix_srcfile_path='`cygpath -w "$srcfile"`'
15706 enable_shared_with_static_runtimes=yes
15707 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015708
John Criswell47fdd832003-07-14 16:52:07 +000015709 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015710 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015711 rhapsody* | darwin1.[012])
15712 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15713 ;;
15714 *) # Darwin 1.3 on
15715 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15716 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15717 else
15718 case ${MACOSX_DEPLOYMENT_TARGET} in
15719 10.[012])
15720 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15721 ;;
15722 10.*)
15723 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15724 ;;
15725 esac
15726 fi
15727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015728 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015729 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015730 hardcode_direct=no
15731 hardcode_automatic=yes
15732 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015733 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015734 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015735 if test "$GCC" = yes ; then
15736 output_verbose_link_cmd='echo'
15737 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15738 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015739 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015740 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15741 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015742 else
Reid Spencera773bd52006-08-04 18:18:08 +000015743 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015744 xlc*)
15745 output_verbose_link_cmd='echo'
15746 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15747 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015748 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000015749 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15750 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015751 ;;
15752 *)
15753 ld_shlibs=no
15754 ;;
15755 esac
John Criswell7a73b802003-06-30 21:59:07 +000015756 fi
John Criswell47fdd832003-07-14 16:52:07 +000015757 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015758
John Criswell47fdd832003-07-14 16:52:07 +000015759 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015761 hardcode_libdir_flag_spec='-L$libdir'
15762 hardcode_shlibpath_var=no
15763 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015764
John Criswell47fdd832003-07-14 16:52:07 +000015765 freebsd1*)
15766 ld_shlibs=no
15767 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015768
John Criswell47fdd832003-07-14 16:52:07 +000015769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15770 # support. Future versions do this automatically, but an explicit c++rt0.o
15771 # does not break anything, and helps significantly (at the cost of a little
15772 # extra space).
15773 freebsd2.2*)
15774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15775 hardcode_libdir_flag_spec='-R$libdir'
15776 hardcode_direct=yes
15777 hardcode_shlibpath_var=no
15778 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015779
John Criswell47fdd832003-07-14 16:52:07 +000015780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15781 freebsd2*)
15782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15783 hardcode_direct=yes
15784 hardcode_minus_L=yes
15785 hardcode_shlibpath_var=no
15786 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015787
John Criswell47fdd832003-07-14 16:52:07 +000015788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015789 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15791 hardcode_libdir_flag_spec='-R$libdir'
15792 hardcode_direct=yes
15793 hardcode_shlibpath_var=no
15794 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015795
John Criswell47fdd832003-07-14 16:52:07 +000015796 hpux9*)
15797 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015798 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015799 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015800 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015801 fi
15802 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15803 hardcode_libdir_separator=:
15804 hardcode_direct=yes
15805
15806 # hardcode_minus_L: Not really in the search PATH,
15807 # but as the default location of the library.
15808 hardcode_minus_L=yes
15809 export_dynamic_flag_spec='${wl}-E'
15810 ;;
15811
Reid Spencera773bd52006-08-04 18:18:08 +000015812 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015813 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015814 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15815 else
15816 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15817 fi
15818 if test "$with_gnu_ld" = no; then
15819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15820 hardcode_libdir_separator=:
15821
15822 hardcode_direct=yes
15823 export_dynamic_flag_spec='${wl}-E'
15824
15825 # hardcode_minus_L: Not really in the search PATH,
15826 # but as the default location of the library.
15827 hardcode_minus_L=yes
15828 fi
15829 ;;
15830
15831 hpux11*)
15832 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15833 case $host_cpu in
15834 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015835 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015837 ia64*)
15838 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015840 *)
15841 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15842 ;;
15843 esac
15844 else
Reid Spencera773bd52006-08-04 18:18:08 +000015845 case $host_cpu in
15846 hppa*64*)
15847 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15848 ;;
15849 ia64*)
15850 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015851 ;;
15852 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015853 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015854 ;;
15855 esac
15856 fi
15857 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015858 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15859 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015860
Reid Spencera773bd52006-08-04 18:18:08 +000015861 case $host_cpu in
15862 hppa*64*|ia64*)
15863 hardcode_libdir_flag_spec_ld='+b $libdir'
15864 hardcode_direct=no
15865 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015866 ;;
15867 *)
John Criswell47fdd832003-07-14 16:52:07 +000015868 hardcode_direct=yes
15869 export_dynamic_flag_spec='${wl}-E'
15870
15871 # hardcode_minus_L: Not really in the search PATH,
15872 # but as the default location of the library.
15873 hardcode_minus_L=yes
15874 ;;
15875 esac
15876 fi
15877 ;;
15878
15879 irix5* | irix6* | nonstopux*)
15880 if test "$GCC" = yes; then
15881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15882 else
15883 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15884 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15885 fi
15886 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15887 hardcode_libdir_separator=:
15888 link_all_deplibs=yes
15889 ;;
15890
15891 netbsd*)
15892 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15893 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15894 else
15895 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15896 fi
15897 hardcode_libdir_flag_spec='-R$libdir'
15898 hardcode_direct=yes
15899 hardcode_shlibpath_var=no
15900 ;;
15901
15902 newsos6)
15903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904 hardcode_direct=yes
15905 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15906 hardcode_libdir_separator=:
15907 hardcode_shlibpath_var=no
15908 ;;
15909
15910 openbsd*)
15911 hardcode_direct=yes
15912 hardcode_shlibpath_var=no
15913 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015915 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000015916 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15917 export_dynamic_flag_spec='${wl}-E'
15918 else
15919 case $host_os in
15920 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_libdir_flag_spec='-R$libdir'
15923 ;;
15924 *)
15925 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15926 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15927 ;;
15928 esac
15929 fi
15930 ;;
15931
15932 os2*)
15933 hardcode_libdir_flag_spec='-L$libdir'
15934 hardcode_minus_L=yes
15935 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015936 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000015937 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15938 ;;
15939
15940 osf3*)
15941 if test "$GCC" = yes; then
15942 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15943 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15944 else
15945 allow_undefined_flag=' -expect_unresolved \*'
15946 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15947 fi
15948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15949 hardcode_libdir_separator=:
15950 ;;
15951
15952 osf4* | osf5*) # as osf3* with the addition of -msym flag
15953 if test "$GCC" = yes; then
15954 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15955 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15957 else
15958 allow_undefined_flag=' -expect_unresolved \*'
15959 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000015960 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000015961 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000015962
John Criswell47fdd832003-07-14 16:52:07 +000015963 # Both c and cxx compiler support -rpath directly
15964 hardcode_libdir_flag_spec='-rpath $libdir'
15965 fi
15966 hardcode_libdir_separator=:
15967 ;;
15968
John Criswell47fdd832003-07-14 16:52:07 +000015969 solaris*)
15970 no_undefined_flag=' -z text'
15971 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015972 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015973 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015974 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15975 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015976 else
Reid Spencera773bd52006-08-04 18:18:08 +000015977 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015978 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015979 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15980 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015981 fi
15982 hardcode_libdir_flag_spec='-R$libdir'
15983 hardcode_shlibpath_var=no
15984 case $host_os in
15985 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015986 *)
15987 # The compiler driver will combine linker options so we
15988 # cannot just pass the convience library names through
15989 # without $wl, iff we do not link with $LD.
15990 # Luckily, gcc supports the same syntax we need for Sun Studio.
15991 # Supported since Solaris 2.6 (maybe 2.5.1?)
15992 case $wlarc in
15993 '')
15994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15995 *)
15996 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15997 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015998 esac
15999 link_all_deplibs=yes
16000 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016001
John Criswell47fdd832003-07-14 16:52:07 +000016002 sunos4*)
16003 if test "x$host_vendor" = xsequent; then
16004 # Use $CC to link under sequent, because it throws in some extra .o
16005 # files that make .init and .fini sections work.
16006 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16007 else
16008 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16009 fi
16010 hardcode_libdir_flag_spec='-L$libdir'
16011 hardcode_direct=yes
16012 hardcode_minus_L=yes
16013 hardcode_shlibpath_var=no
16014 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016015
John Criswell47fdd832003-07-14 16:52:07 +000016016 sysv4)
16017 case $host_vendor in
16018 sni)
16019 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_direct=yes # is this really true???
16021 ;;
16022 siemens)
16023 ## LD is ld it makes a PLAMLIB
16024 ## CC just makes a GrossModule.
16025 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16026 reload_cmds='$CC -r -o $output$reload_objs'
16027 hardcode_direct=no
16028 ;;
16029 motorola)
16030 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16031 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16032 ;;
16033 esac
16034 runpath_var='LD_RUN_PATH'
16035 hardcode_shlibpath_var=no
16036 ;;
16037
16038 sysv4.3*)
16039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_shlibpath_var=no
16041 export_dynamic_flag_spec='-Bexport'
16042 ;;
16043
16044 sysv4*MP*)
16045 if test -d /usr/nec; then
16046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16047 hardcode_shlibpath_var=no
16048 runpath_var=LD_RUN_PATH
16049 hardcode_runpath_var=yes
16050 ld_shlibs=yes
16051 fi
16052 ;;
16053
Reid Spencera773bd52006-08-04 18:18:08 +000016054 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16055 no_undefined_flag='${wl}-z,text'
16056 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016057 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016058 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000016059
John Criswell47fdd832003-07-14 16:52:07 +000016060 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000016061 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16062 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016063 else
Reid Spencera773bd52006-08-04 18:18:08 +000016064 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16065 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000016066 fi
John Criswell47fdd832003-07-14 16:52:07 +000016067 ;;
16068
Reid Spencera773bd52006-08-04 18:18:08 +000016069 sysv5* | sco3.2v5* | sco5v6*)
16070 # Note: We can NOT use -z defs as we might desire, because we do not
16071 # link with -lc, and that would cause any symbols used from libc to
16072 # always be unresolved, which means just about no library would
16073 # ever link correctly. If we're not using GNU ld we use -z text
16074 # though, which does catch some bad symbols but isn't as heavy-handed
16075 # as -z defs.
16076 no_undefined_flag='${wl}-z,text'
16077 allow_undefined_flag='${wl}-z,nodefs'
16078 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000016079 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000016080 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16081 hardcode_libdir_separator=':'
16082 link_all_deplibs=yes
16083 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000016084 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000016085
16086 if test "$GCC" = yes; then
16087 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16088 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16089 else
16090 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16091 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16092 fi
John Criswell47fdd832003-07-14 16:52:07 +000016093 ;;
16094
16095 uts4*)
16096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16097 hardcode_libdir_flag_spec='-L$libdir'
16098 hardcode_shlibpath_var=no
16099 ;;
16100
16101 *)
16102 ld_shlibs=no
16103 ;;
16104 esac
16105 fi
16106
Reid Spencera773bd52006-08-04 18:18:08 +000016107{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
16108echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016109test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016110
John Criswell47fdd832003-07-14 16:52:07 +000016111#
16112# Do we need to explicitly link libc?
16113#
16114case "x$archive_cmds_need_lc" in
16115x|xyes)
16116 # Assume -lc should be added
16117 archive_cmds_need_lc=yes
16118
16119 if test "$enable_shared" = yes && test "$GCC" = yes; then
16120 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016121 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016122 # FIXME: we may have to deal with multi-command sequences.
16123 ;;
16124 '$CC '*)
16125 # Test whether the compiler implicitly links with -lc since on some
16126 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16127 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000016128 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16129echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016130 $rm conftest*
16131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16132
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>&5
16135 ac_status=$?
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); } 2>conftest.err; then
16138 soname=conftest
16139 lib=conftest
16140 libobjs=conftest.$ac_objext
16141 deplibs=
16142 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000016143 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000016144 compiler_flags=-v
16145 linker_flags=-v
16146 verstring=
16147 output_objdir=.
16148 libname=conftest
16149 lt_save_allow_undefined_flag=$allow_undefined_flag
16150 allow_undefined_flag=
16151 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16152 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }
16156 then
16157 archive_cmds_need_lc=no
16158 else
16159 archive_cmds_need_lc=yes
16160 fi
16161 allow_undefined_flag=$lt_save_allow_undefined_flag
16162 else
16163 cat conftest.err 1>&5
16164 fi
16165 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000016166 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
16167echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016168 ;;
16169 esac
16170 fi
16171 ;;
16172esac
16173
Reid Spencera773bd52006-08-04 18:18:08 +000016174{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16175echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016176library_names_spec=
16177libname_spec='lib$name'
16178soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016179shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000016180postinstall_cmds=
16181postuninstall_cmds=
16182finish_cmds=
16183finish_eval=
16184shlibpath_var=
16185shlibpath_overrides_runpath=unknown
16186version_type=none
16187dynamic_linker="$host_os ld.so"
16188sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016189if test "$GCC" = yes; then
16190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16192 # if the path contains ";" then we assume it to be the separator
16193 # otherwise default to the standard path separator (i.e. ":") - it is
16194 # assumed that no part of a normal pathname contains ";" but that should
16195 # okay in the real world where ";" in dirpaths is itself problematic.
16196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16197 else
16198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16199 fi
16200else
16201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16202fi
16203need_lib_prefix=unknown
16204hardcode_into_libs=no
16205
16206# when you set need_version to no, make sure it does not cause -set_version
16207# flags to be left without arguments
16208need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000016209
16210case $host_os in
16211aix3*)
16212 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016214 shlibpath_var=LIBPATH
16215
John Criswell47fdd832003-07-14 16:52:07 +000016216 # AIX 3 has no versioning support, so we append a major version to the name.
16217 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016218 ;;
16219
16220aix4* | aix5*)
16221 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016222 need_lib_prefix=no
16223 need_version=no
16224 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016225 if test "$host_cpu" = ia64; then
16226 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000016227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016228 shlibpath_var=LD_LIBRARY_PATH
16229 else
16230 # With GCC up to 2.95.x, collect2 would create an import file
16231 # for dependence libraries. The import file would start with
16232 # the line `#! .'. This would cause the generated library to
16233 # depend on `.', always an invalid library. This was fixed in
16234 # development snapshots of GCC prior to 3.0.
16235 case $host_os in
16236 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000016237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16238 echo ' yes '
16239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16240 :
16241 else
16242 can_build_shared=no
16243 fi
16244 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016245 esac
John Criswell47fdd832003-07-14 16:52:07 +000016246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16247 # soname into executable. Probably we can add versioning support to
16248 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000016249 if test "$aix_use_runtimelinking" = yes; then
16250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16251 # instead of lib<name>.a to let people know that these are not
16252 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000016253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016254 else
16255 # We preserve .a as extension for shared libraries through AIX4.2
16256 # and later when we are not doing run time linking.
16257 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000016258 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016259 fi
16260 shlibpath_var=LIBPATH
16261 fi
16262 ;;
16263
16264amigaos*)
16265 library_names_spec='$libname.ixlibrary $libname.a'
16266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016267 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
John Criswell7a73b802003-06-30 21:59:07 +000016268 ;;
16269
16270beos*)
John Criswell47fdd832003-07-14 16:52:07 +000016271 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016272 dynamic_linker="$host_os ld.so"
16273 shlibpath_var=LIBRARY_PATH
16274 ;;
16275
Reid Spencer2706f8c2004-09-19 23:53:36 +000016276bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000016277 version_type=linux
16278 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16280 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16282 shlibpath_var=LD_LIBRARY_PATH
16283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016285 # the default ld.so.conf also contains /usr/contrib/lib and
16286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16287 # libtool to hard-code these into programs
16288 ;;
16289
16290cygwin* | mingw* | pw32*)
16291 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016292 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016293 need_version=no
16294 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016295
John Criswell7a73b802003-06-30 21:59:07 +000016296 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016297 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016298 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000016299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016300 postinstall_cmds='base_file=`basename \${file}`~
16301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16302 dldir=$destdir/`dirname \$dlpath`~
16303 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000016304 $install_prog $dir/$dlname \$dldir/$dlname~
16305 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16307 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000016308 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000016309 shlibpath_overrides_runpath=yes
16310
16311 case $host_os in
16312 cygwin*)
16313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016315 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016316 ;;
16317 mingw*)
16318 # MinGW DLLs use traditional 'lib' prefix
16319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16320 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16321 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16322 # It is most probably a Windows format PATH printed by
16323 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16324 # path with ; separators, and with drive letters. We can handle the
16325 # drive letters (cygwin fileutils understands them), so leave them,
16326 # especially as we might pass files found there to a mingw objdump,
16327 # which wouldn't understand a cygwinified path. Ahh.
16328 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16329 else
16330 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16331 fi
16332 ;;
16333 pw32*)
16334 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000016335 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016336 ;;
16337 esac
John Criswell7a73b802003-06-30 21:59:07 +000016338 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016339
John Criswell7a73b802003-06-30 21:59:07 +000016340 *)
John Criswell47fdd832003-07-14 16:52:07 +000016341 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000016342 ;;
16343 esac
16344 dynamic_linker='Win32 ld.exe'
16345 # FIXME: first we should search . and the directory the executable is in
16346 shlibpath_var=PATH
16347 ;;
16348
16349darwin* | rhapsody*)
16350 dynamic_linker="$host_os dyld"
16351 version_type=darwin
16352 need_lib_prefix=no
16353 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016354 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016355 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000016356 shlibpath_overrides_runpath=yes
16357 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000016358 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000016359 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016360 if test "$GCC" = yes; then
16361 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16362 else
16363 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016364 fi
16365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16366 ;;
16367
16368dgux*)
16369 version_type=linux
16370 need_lib_prefix=no
16371 need_version=no
16372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016375 ;;
16376
16377freebsd1*)
16378 dynamic_linker=no
16379 ;;
16380
Reid Spencer2706f8c2004-09-19 23:53:36 +000016381kfreebsd*-gnu)
16382 version_type=linux
16383 need_lib_prefix=no
16384 need_version=no
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 shlibpath_var=LD_LIBRARY_PATH
16388 shlibpath_overrides_runpath=no
16389 hardcode_into_libs=yes
16390 dynamic_linker='GNU ld.so'
16391 ;;
16392
Reid Spencera773bd52006-08-04 18:18:08 +000016393freebsd* | dragonfly*)
16394 # DragonFly does not have aout. When/if they implement a new
16395 # versioning mechanism, adjust this.
16396 if test -x /usr/bin/objformat; then
16397 objformat=`/usr/bin/objformat`
16398 else
16399 case $host_os in
16400 freebsd[123]*) objformat=aout ;;
16401 *) objformat=elf ;;
16402 esac
16403 fi
John Criswell7a73b802003-06-30 21:59:07 +000016404 version_type=freebsd-$objformat
16405 case $version_type in
16406 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000016407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016408 need_version=no
16409 need_lib_prefix=no
16410 ;;
16411 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000016412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016413 need_version=yes
16414 ;;
16415 esac
16416 shlibpath_var=LD_LIBRARY_PATH
16417 case $host_os in
16418 freebsd2*)
16419 shlibpath_overrides_runpath=yes
16420 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016421 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000016422 shlibpath_overrides_runpath=yes
16423 hardcode_into_libs=yes
16424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016425 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16426 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000016427 shlibpath_overrides_runpath=no
16428 hardcode_into_libs=yes
16429 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000016430 freebsd*) # from 4.6 on
16431 shlibpath_overrides_runpath=yes
16432 hardcode_into_libs=yes
16433 ;;
John Criswell7a73b802003-06-30 21:59:07 +000016434 esac
16435 ;;
16436
16437gnu*)
16438 version_type=linux
16439 need_lib_prefix=no
16440 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016443 shlibpath_var=LD_LIBRARY_PATH
16444 hardcode_into_libs=yes
16445 ;;
16446
16447hpux9* | hpux10* | hpux11*)
16448 # Give a soname corresponding to the major version so that dld.sl refuses to
16449 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000016450 version_type=sunos
16451 need_lib_prefix=no
16452 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000016453 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000016454 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016455 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016456 hardcode_into_libs=yes
16457 dynamic_linker="$host_os dld.so"
16458 shlibpath_var=LD_LIBRARY_PATH
16459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16461 soname_spec='${libname}${release}${shared_ext}$major'
16462 if test "X$HPUX_IA64_MODE" = X32; then
16463 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16464 else
16465 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16466 fi
16467 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16468 ;;
16469 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016470 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016471 hardcode_into_libs=yes
16472 dynamic_linker="$host_os dld.sl"
16473 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16474 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16476 soname_spec='${libname}${release}${shared_ext}$major'
16477 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16478 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16479 ;;
16480 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016481 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016482 dynamic_linker="$host_os dld.sl"
16483 shlibpath_var=SHLIB_PATH
16484 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 ;;
16488 esac
John Criswell7a73b802003-06-30 21:59:07 +000016489 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16490 postinstall_cmds='chmod 555 $lib'
16491 ;;
16492
Reid Spencera773bd52006-08-04 18:18:08 +000016493interix3*)
16494 version_type=linux
16495 need_lib_prefix=no
16496 need_version=no
16497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16498 soname_spec='${libname}${release}${shared_ext}$major'
16499 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=no
16502 hardcode_into_libs=yes
16503 ;;
16504
John Criswell47fdd832003-07-14 16:52:07 +000016505irix5* | irix6* | nonstopux*)
16506 case $host_os in
16507 nonstopux*) version_type=nonstopux ;;
16508 *)
16509 if test "$lt_cv_prog_gnu_ld" = yes; then
16510 version_type=linux
16511 else
16512 version_type=irix
16513 fi ;;
16514 esac
John Criswell7a73b802003-06-30 21:59:07 +000016515 need_lib_prefix=no
16516 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016517 soname_spec='${libname}${release}${shared_ext}$major'
16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016519 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016520 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016521 libsuff= shlibsuff=
16522 ;;
16523 *)
16524 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016525 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16526 libsuff= shlibsuff= libmagic=32-bit;;
16527 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16528 libsuff=32 shlibsuff=N32 libmagic=N32;;
16529 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16530 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016531 *) libsuff= shlibsuff= libmagic=never-match;;
16532 esac
16533 ;;
16534 esac
16535 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16536 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16538 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016539 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016540 ;;
16541
16542# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016543linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016544 dynamic_linker=no
16545 ;;
16546
16547# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016548linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016549 version_type=linux
16550 need_lib_prefix=no
16551 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 shlibpath_overrides_runpath=no
16557 # This implies no fast_install, which is unacceptable.
16558 # Some rework will be needed to allow for fast_install
16559 # before this can be enabled.
16560 hardcode_into_libs=yes
16561
Reid Spencer2706f8c2004-09-19 23:53:36 +000016562 # Append ld.so.conf contents to the search path
16563 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016564 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000016565 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16566 fi
16567
John Criswell7a73b802003-06-30 21:59:07 +000016568 # We used to test for /lib/ld.so.1 and disable shared libraries on
16569 # powerpc, because MkLinux only supported shared libraries with the
16570 # GNU dynamic linker. Since this was broken with cross compilers,
16571 # most powerpc-linux boxes support dynamic linking these days and
16572 # people can always --disable-shared, the test was removed, and we
16573 # assume the GNU/Linux dynamic linker is in use.
16574 dynamic_linker='GNU/Linux ld.so'
16575 ;;
16576
Reid Spencer2706f8c2004-09-19 23:53:36 +000016577knetbsd*-gnu)
16578 version_type=linux
16579 need_lib_prefix=no
16580 need_version=no
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16582 soname_spec='${libname}${release}${shared_ext}$major'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=no
16585 hardcode_into_libs=yes
16586 dynamic_linker='GNU ld.so'
16587 ;;
16588
John Criswell7a73b802003-06-30 21:59:07 +000016589netbsd*)
16590 version_type=sunos
16591 need_lib_prefix=no
16592 need_version=no
16593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016595 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16596 dynamic_linker='NetBSD (a.out) ld.so'
16597 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016599 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016600 dynamic_linker='NetBSD ld.elf_so'
16601 fi
16602 shlibpath_var=LD_LIBRARY_PATH
16603 shlibpath_overrides_runpath=yes
16604 hardcode_into_libs=yes
16605 ;;
16606
16607newsos6)
16608 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16610 shlibpath_var=LD_LIBRARY_PATH
16611 shlibpath_overrides_runpath=yes
16612 ;;
16613
Reid Spencer2706f8c2004-09-19 23:53:36 +000016614nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016615 version_type=linux
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=yes
16622 ;;
16623
16624openbsd*)
16625 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016626 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016627 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016628 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16629 case $host_os in
16630 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16631 *) need_version=no ;;
16632 esac
John Criswell47fdd832003-07-14 16:52:07 +000016633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16635 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
John Criswell47fdd832003-07-14 16:52:07 +000016637 case $host_os in
16638 openbsd2.[89] | openbsd2.[89].*)
16639 shlibpath_overrides_runpath=no
16640 ;;
16641 *)
16642 shlibpath_overrides_runpath=yes
16643 ;;
16644 esac
John Criswell7a73b802003-06-30 21:59:07 +000016645 else
16646 shlibpath_overrides_runpath=yes
16647 fi
John Criswell7a73b802003-06-30 21:59:07 +000016648 ;;
16649
16650os2*)
16651 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016652 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016653 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016654 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016655 dynamic_linker='OS/2 ld.exe'
16656 shlibpath_var=LIBPATH
16657 ;;
16658
16659osf3* | osf4* | osf5*)
16660 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016661 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016662 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016663 soname_spec='${libname}${release}${shared_ext}$major'
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016665 shlibpath_var=LD_LIBRARY_PATH
16666 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16667 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16668 ;;
16669
John Criswell7a73b802003-06-30 21:59:07 +000016670solaris*)
16671 version_type=linux
16672 need_lib_prefix=no
16673 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16675 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016676 shlibpath_var=LD_LIBRARY_PATH
16677 shlibpath_overrides_runpath=yes
16678 hardcode_into_libs=yes
16679 # ldd complains unless libraries are executable
16680 postinstall_cmds='chmod +x $lib'
16681 ;;
16682
16683sunos4*)
16684 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016686 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16687 shlibpath_var=LD_LIBRARY_PATH
16688 shlibpath_overrides_runpath=yes
16689 if test "$with_gnu_ld" = yes; then
16690 need_lib_prefix=no
16691 fi
16692 need_version=yes
16693 ;;
16694
Reid Spencera773bd52006-08-04 18:18:08 +000016695sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016696 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016699 shlibpath_var=LD_LIBRARY_PATH
16700 case $host_vendor in
16701 sni)
16702 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016703 need_lib_prefix=no
16704 export_dynamic_flag_spec='${wl}-Blargedynsym'
16705 runpath_var=LD_RUN_PATH
16706 ;;
16707 siemens)
16708 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016709 ;;
16710 motorola)
16711 need_lib_prefix=no
16712 need_version=no
16713 shlibpath_overrides_runpath=no
16714 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16715 ;;
16716 esac
16717 ;;
16718
John Criswell7a73b802003-06-30 21:59:07 +000016719sysv4*MP*)
16720 if test -d /usr/nec ;then
16721 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016722 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16723 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016724 shlibpath_var=LD_LIBRARY_PATH
16725 fi
16726 ;;
16727
Reid Spencera773bd52006-08-04 18:18:08 +000016728sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16729 version_type=freebsd-elf
16730 need_lib_prefix=no
16731 need_version=no
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 shlibpath_var=LD_LIBRARY_PATH
16735 hardcode_into_libs=yes
16736 if test "$with_gnu_ld" = yes; then
16737 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16738 shlibpath_overrides_runpath=no
16739 else
16740 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16741 shlibpath_overrides_runpath=yes
16742 case $host_os in
16743 sco3.2v5*)
16744 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16745 ;;
16746 esac
16747 fi
16748 sys_lib_dlsearch_path_spec='/usr/lib'
16749 ;;
16750
John Criswell47fdd832003-07-14 16:52:07 +000016751uts4*)
16752 version_type=linux
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16754 soname_spec='${libname}${release}${shared_ext}$major'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 ;;
16757
John Criswell7a73b802003-06-30 21:59:07 +000016758*)
16759 dynamic_linker=no
16760 ;;
16761esac
Reid Spencera773bd52006-08-04 18:18:08 +000016762{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16763echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016764test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016765
Reid Spencera773bd52006-08-04 18:18:08 +000016766variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16767if test "$GCC" = yes; then
16768 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16769fi
16770
16771{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16772echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016773hardcode_action=
16774if test -n "$hardcode_libdir_flag_spec" || \
16775 test -n "$runpath_var" || \
16776 test "X$hardcode_automatic" = "Xyes" ; then
16777
16778 # We can hardcode non-existant directories.
16779 if test "$hardcode_direct" != no &&
16780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16781 # have to relink, otherwise we might link with an installed library
16782 # when we should be linking with a yet-to-be-installed one
16783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16784 test "$hardcode_minus_L" != no; then
16785 # Linking always hardcodes the temporary library directory.
16786 hardcode_action=relink
16787 else
16788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16789 hardcode_action=immediate
16790 fi
16791else
16792 # We cannot hardcode anything, or else we can only hardcode existing
16793 # directories.
16794 hardcode_action=unsupported
16795fi
Reid Spencera773bd52006-08-04 18:18:08 +000016796{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16797echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016798
16799if test "$hardcode_action" = relink; then
16800 # Fast installation is not supported
16801 enable_fast_install=no
16802elif test "$shlibpath_overrides_runpath" = yes ||
16803 test "$enable_shared" = no; then
16804 # Fast installation is not necessary
16805 enable_fast_install=needless
16806fi
16807
16808striplib=
16809old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016810{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16811echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016812if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016815 { echo "$as_me:$LINENO: result: yes" >&5
16816echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016817else
16818# FIXME - insert some real tests, host_os isn't really good enough
16819 case $host_os in
16820 darwin*)
16821 if test -n "$STRIP" ; then
16822 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016823 { echo "$as_me:$LINENO: result: yes" >&5
16824echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016825 else
Reid Spencera773bd52006-08-04 18:18:08 +000016826 { echo "$as_me:$LINENO: result: no" >&5
16827echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828fi
16829 ;;
16830 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016831 { echo "$as_me:$LINENO: result: no" >&5
16832echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016833 ;;
16834 esac
16835fi
16836
John Criswell7a73b802003-06-30 21:59:07 +000016837if test "x$enable_dlopen" != xyes; then
16838 enable_dlopen=unknown
16839 enable_dlopen_self=unknown
16840 enable_dlopen_self_static=unknown
16841else
16842 lt_cv_dlopen=no
16843 lt_cv_dlopen_libs=
16844
16845 case $host_os in
16846 beos*)
16847 lt_cv_dlopen="load_add_on"
16848 lt_cv_dlopen_libs=
16849 lt_cv_dlopen_self=yes
16850 ;;
16851
John Criswell47fdd832003-07-14 16:52:07 +000016852 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016853 lt_cv_dlopen="LoadLibrary"
16854 lt_cv_dlopen_libs=
16855 ;;
16856
John Criswell47fdd832003-07-14 16:52:07 +000016857 cygwin*)
16858 lt_cv_dlopen="dlopen"
16859 lt_cv_dlopen_libs=
16860 ;;
16861
16862 darwin*)
16863 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016864 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16865echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868else
16869 ac_check_lib_save_LIBS=$LIBS
16870LIBS="-ldl $LIBS"
16871cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016872/* confdefs.h. */
16873_ACEOF
16874cat confdefs.h >>conftest.$ac_ext
16875cat >>conftest.$ac_ext <<_ACEOF
16876/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016877
Reid Spencera773bd52006-08-04 18:18:08 +000016878/* Override any GCC internal prototype to avoid an error.
16879 Use char because int might match the return type of a GCC
16880 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016881#ifdef __cplusplus
16882extern "C"
16883#endif
John Criswell47fdd832003-07-14 16:52:07 +000016884char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016885int
16886main ()
16887{
Reid Spencera773bd52006-08-04 18:18:08 +000016888return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016889 ;
16890 return 0;
16891}
16892_ACEOF
16893rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016894if { (ac_try="$ac_link"
16895case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16898esac
16899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016901 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902 grep -v '^ *+' conftest.er1 >conftest.err
16903 rm -f conftest.er1
16904 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000016906 (exit $ac_status); } &&
16907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16908 { (case "(($ac_try" in
16909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910 *) ac_try_echo=$ac_try;;
16911esac
16912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16913 (eval "$ac_try") 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; } &&
16917 { ac_try='test -s conftest$ac_exeext'
16918 { (case "(($ac_try" in
16919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16920 *) ac_try_echo=$ac_try;;
16921esac
16922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16923 (eval "$ac_try") 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000016927 ac_cv_lib_dl_dlopen=yes
16928else
16929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016930sed 's/^/| /' conftest.$ac_ext >&5
16931
Reid Spencera773bd52006-08-04 18:18:08 +000016932 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016933fi
Reid Spencera773bd52006-08-04 18:18:08 +000016934
Gordon Henriksen40e7f192008-10-22 12:40:55 +000016935rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016936 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016937LIBS=$ac_check_lib_save_LIBS
16938fi
Reid Spencera773bd52006-08-04 18:18:08 +000016939{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16940echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016941if test $ac_cv_lib_dl_dlopen = yes; then
16942 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16943else
16944
16945 lt_cv_dlopen="dyld"
16946 lt_cv_dlopen_libs=
16947 lt_cv_dlopen_self=yes
16948
16949fi
16950
16951 ;;
16952
John Criswell7a73b802003-06-30 21:59:07 +000016953 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016954 { echo "$as_me:$LINENO: checking for shl_load" >&5
16955echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016956if test "${ac_cv_func_shl_load+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
16959 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016960/* confdefs.h. */
16961_ACEOF
16962cat confdefs.h >>conftest.$ac_ext
16963cat >>conftest.$ac_ext <<_ACEOF
16964/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16967#define shl_load innocuous_shl_load
16968
John Criswell7a73b802003-06-30 21:59:07 +000016969/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016970 which can conflict with char shl_load (); below.
16971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16972 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016973
John Criswell0c38eaf2003-09-10 15:17:25 +000016974#ifdef __STDC__
16975# include <limits.h>
16976#else
16977# include <assert.h>
16978#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016979
16980#undef shl_load
16981
Reid Spencera773bd52006-08-04 18:18:08 +000016982/* Override any GCC internal prototype to avoid an error.
16983 Use char because int might match the return type of a GCC
16984 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016985#ifdef __cplusplus
16986extern "C"
16987#endif
John Criswell7a73b802003-06-30 21:59:07 +000016988char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016989/* The GNU C library defines this for functions which it implements
16990 to always fail with ENOSYS. Some functions are actually named
16991 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016992#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016993choke me
John Criswell7a73b802003-06-30 21:59:07 +000016994#endif
16995
John Criswell0c38eaf2003-09-10 15:17:25 +000016996int
16997main ()
16998{
Reid Spencera773bd52006-08-04 18:18:08 +000016999return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017000 ;
17001 return 0;
17002}
17003_ACEOF
17004rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017005if { (ac_try="$ac_link"
17006case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17009esac
17010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017013 grep -v '^ *+' conftest.er1 >conftest.err
17014 rm -f conftest.er1
17015 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017017 (exit $ac_status); } &&
17018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17019 { (case "(($ac_try" in
17020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17021 *) ac_try_echo=$ac_try;;
17022esac
17023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17024 (eval "$ac_try") 2>&5
17025 ac_status=$?
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; } &&
17028 { ac_try='test -s conftest$ac_exeext'
17029 { (case "(($ac_try" in
17030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17031 *) ac_try_echo=$ac_try;;
17032esac
17033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17034 (eval "$ac_try") 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017038 ac_cv_func_shl_load=yes
17039else
17040 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017041sed 's/^/| /' conftest.$ac_ext >&5
17042
Reid Spencera773bd52006-08-04 18:18:08 +000017043 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017044fi
Reid Spencera773bd52006-08-04 18:18:08 +000017045
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017046rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017047 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017048fi
Reid Spencera773bd52006-08-04 18:18:08 +000017049{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17050echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017051if test $ac_cv_func_shl_load = yes; then
17052 lt_cv_dlopen="shl_load"
17053else
Reid Spencera773bd52006-08-04 18:18:08 +000017054 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17055echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017056if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058else
17059 ac_check_lib_save_LIBS=$LIBS
17060LIBS="-ldld $LIBS"
17061cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017062/* confdefs.h. */
17063_ACEOF
17064cat confdefs.h >>conftest.$ac_ext
17065cat >>conftest.$ac_ext <<_ACEOF
17066/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017067
Reid Spencera773bd52006-08-04 18:18:08 +000017068/* Override any GCC internal prototype to avoid an error.
17069 Use char because int might match the return type of a GCC
17070 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017071#ifdef __cplusplus
17072extern "C"
17073#endif
John Criswell7a73b802003-06-30 21:59:07 +000017074char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017075int
17076main ()
17077{
Reid Spencera773bd52006-08-04 18:18:08 +000017078return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000017079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017084if { (ac_try="$ac_link"
17085case "(($ac_try" in
17086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17087 *) ac_try_echo=$ac_try;;
17088esac
17089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17090 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017091 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017092 grep -v '^ *+' conftest.er1 >conftest.err
17093 rm -f conftest.er1
17094 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017096 (exit $ac_status); } &&
17097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17098 { (case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101esac
17102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_try") 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest$ac_exeext'
17108 { (case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17111esac
17112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_try") 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017117 ac_cv_lib_dld_shl_load=yes
17118else
17119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017120sed 's/^/| /' conftest.$ac_ext >&5
17121
Reid Spencera773bd52006-08-04 18:18:08 +000017122 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000017123fi
Reid Spencera773bd52006-08-04 18:18:08 +000017124
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017126 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017127LIBS=$ac_check_lib_save_LIBS
17128fi
Reid Spencera773bd52006-08-04 18:18:08 +000017129{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17130echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017131if test $ac_cv_lib_dld_shl_load = yes; then
17132 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17133else
Reid Spencera773bd52006-08-04 18:18:08 +000017134 { echo "$as_me:$LINENO: checking for dlopen" >&5
17135echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017136if test "${ac_cv_func_dlopen+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138else
17139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017145/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17147#define dlopen innocuous_dlopen
17148
John Criswell7a73b802003-06-30 21:59:07 +000017149/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017150 which can conflict with char dlopen (); below.
17151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17152 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017153
John Criswell0c38eaf2003-09-10 15:17:25 +000017154#ifdef __STDC__
17155# include <limits.h>
17156#else
17157# include <assert.h>
17158#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017159
17160#undef dlopen
17161
Reid Spencera773bd52006-08-04 18:18:08 +000017162/* Override any GCC internal prototype to avoid an error.
17163 Use char because int might match the return type of a GCC
17164 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017165#ifdef __cplusplus
17166extern "C"
17167#endif
John Criswell7a73b802003-06-30 21:59:07 +000017168char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017169/* The GNU C library defines this for functions which it implements
17170 to always fail with ENOSYS. Some functions are actually named
17171 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000017172#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000017173choke me
John Criswell7a73b802003-06-30 21:59:07 +000017174#endif
17175
John Criswell0c38eaf2003-09-10 15:17:25 +000017176int
17177main ()
17178{
Reid Spencera773bd52006-08-04 18:18:08 +000017179return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017180 ;
17181 return 0;
17182}
17183_ACEOF
17184rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017185if { (ac_try="$ac_link"
17186case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189esac
17190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017197 (exit $ac_status); } &&
17198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17199 { (case "(($ac_try" in
17200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17201 *) ac_try_echo=$ac_try;;
17202esac
17203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17204 (eval "$ac_try") 2>&5
17205 ac_status=$?
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); }; } &&
17208 { ac_try='test -s conftest$ac_exeext'
17209 { (case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17212esac
17213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_try") 2>&5
17215 ac_status=$?
17216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017218 ac_cv_func_dlopen=yes
17219else
17220 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017221sed 's/^/| /' conftest.$ac_ext >&5
17222
Reid Spencera773bd52006-08-04 18:18:08 +000017223 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017224fi
Reid Spencera773bd52006-08-04 18:18:08 +000017225
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017226rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017227 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017228fi
Reid Spencera773bd52006-08-04 18:18:08 +000017229{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17230echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017231if test $ac_cv_func_dlopen = yes; then
17232 lt_cv_dlopen="dlopen"
17233else
Reid Spencera773bd52006-08-04 18:18:08 +000017234 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17235echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017236if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238else
17239 ac_check_lib_save_LIBS=$LIBS
17240LIBS="-ldl $LIBS"
17241cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017242/* confdefs.h. */
17243_ACEOF
17244cat confdefs.h >>conftest.$ac_ext
17245cat >>conftest.$ac_ext <<_ACEOF
17246/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017247
Reid Spencera773bd52006-08-04 18:18:08 +000017248/* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017251#ifdef __cplusplus
17252extern "C"
17253#endif
John Criswell7a73b802003-06-30 21:59:07 +000017254char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017255int
17256main ()
17257{
Reid Spencera773bd52006-08-04 18:18:08 +000017258return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017259 ;
17260 return 0;
17261}
17262_ACEOF
17263rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017264if { (ac_try="$ac_link"
17265case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268esac
17269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017271 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17278 { (case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17281esac
17282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_try") 2>&5
17284 ac_status=$?
17285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } &&
17287 { ac_try='test -s conftest$ac_exeext'
17288 { (case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17291esac
17292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_try") 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017297 ac_cv_lib_dl_dlopen=yes
17298else
17299 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017300sed 's/^/| /' conftest.$ac_ext >&5
17301
Reid Spencera773bd52006-08-04 18:18:08 +000017302 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017303fi
Reid Spencera773bd52006-08-04 18:18:08 +000017304
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017305rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017306 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017307LIBS=$ac_check_lib_save_LIBS
17308fi
Reid Spencera773bd52006-08-04 18:18:08 +000017309{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17310echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017311if test $ac_cv_lib_dl_dlopen = yes; then
17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17313else
Reid Spencera773bd52006-08-04 18:18:08 +000017314 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17315echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017316if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17317 echo $ECHO_N "(cached) $ECHO_C" >&6
17318else
17319 ac_check_lib_save_LIBS=$LIBS
17320LIBS="-lsvld $LIBS"
17321cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017322/* confdefs.h. */
17323_ACEOF
17324cat confdefs.h >>conftest.$ac_ext
17325cat >>conftest.$ac_ext <<_ACEOF
17326/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017327
Reid Spencera773bd52006-08-04 18:18:08 +000017328/* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017331#ifdef __cplusplus
17332extern "C"
17333#endif
John Criswell7a73b802003-06-30 21:59:07 +000017334char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017335int
17336main ()
17337{
Reid Spencera773bd52006-08-04 18:18:08 +000017338return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000017339 ;
17340 return 0;
17341}
17342_ACEOF
17343rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017344if { (ac_try="$ac_link"
17345case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17348esac
17349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017356 (exit $ac_status); } &&
17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17358 { (case "(($ac_try" in
17359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360 *) ac_try_echo=$ac_try;;
17361esac
17362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363 (eval "$ac_try") 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest$ac_exeext'
17368 { (case "(($ac_try" in
17369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370 *) ac_try_echo=$ac_try;;
17371esac
17372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373 (eval "$ac_try") 2>&5
17374 ac_status=$?
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017377 ac_cv_lib_svld_dlopen=yes
17378else
17379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017380sed 's/^/| /' conftest.$ac_ext >&5
17381
Reid Spencera773bd52006-08-04 18:18:08 +000017382 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000017383fi
Reid Spencera773bd52006-08-04 18:18:08 +000017384
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017385rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017386 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017387LIBS=$ac_check_lib_save_LIBS
17388fi
Reid Spencera773bd52006-08-04 18:18:08 +000017389{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17390echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017391if test $ac_cv_lib_svld_dlopen = yes; then
17392 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17393else
Reid Spencera773bd52006-08-04 18:18:08 +000017394 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17395echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017396if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398else
17399 ac_check_lib_save_LIBS=$LIBS
17400LIBS="-ldld $LIBS"
17401cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000017407
Reid Spencera773bd52006-08-04 18:18:08 +000017408/* Override any GCC internal prototype to avoid an error.
17409 Use char because int might match the return type of a GCC
17410 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000017411#ifdef __cplusplus
17412extern "C"
17413#endif
John Criswell7a73b802003-06-30 21:59:07 +000017414char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017415int
17416main ()
17417{
Reid Spencera773bd52006-08-04 18:18:08 +000017418return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000017419 ;
17420 return 0;
17421}
17422_ACEOF
17423rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000017424if { (ac_try="$ac_link"
17425case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17428esac
17429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000017431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000017435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017436 (exit $ac_status); } &&
17437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17438 { (case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17441esac
17442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_try") 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; } &&
17447 { ac_try='test -s conftest$ac_exeext'
17448 { (case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17453 (eval "$ac_try") 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000017457 ac_cv_lib_dld_dld_link=yes
17458else
17459 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017460sed 's/^/| /' conftest.$ac_ext >&5
17461
Reid Spencera773bd52006-08-04 18:18:08 +000017462 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000017463fi
Reid Spencera773bd52006-08-04 18:18:08 +000017464
Gordon Henriksen40e7f192008-10-22 12:40:55 +000017465rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017466 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000017467LIBS=$ac_check_lib_save_LIBS
17468fi
Reid Spencera773bd52006-08-04 18:18:08 +000017469{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17470echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017471if test $ac_cv_lib_dld_dld_link = yes; then
17472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17473fi
17474
17475
17476fi
17477
17478
17479fi
17480
17481
17482fi
17483
17484
17485fi
17486
17487
17488fi
17489
17490 ;;
17491 esac
17492
17493 if test "x$lt_cv_dlopen" != xno; then
17494 enable_dlopen=yes
17495 else
17496 enable_dlopen=no
17497 fi
17498
17499 case $lt_cv_dlopen in
17500 dlopen)
17501 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000017502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017503
17504 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017506
17507 save_LIBS="$LIBS"
17508 LIBS="$lt_cv_dlopen_libs $LIBS"
17509
Reid Spencera773bd52006-08-04 18:18:08 +000017510 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17511echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017512if test "${lt_cv_dlopen_self+set}" = set; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514else
17515 if test "$cross_compiling" = yes; then :
17516 lt_cv_dlopen_self=cross
17517else
John Criswell47fdd832003-07-14 16:52:07 +000017518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017519 lt_status=$lt_dlunknown
17520 cat > conftest.$ac_ext <<EOF
Richard Osborneb25baef2008-11-07 10:59:00 +000017521#line 17521 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017522#include "confdefs.h"
17523
17524#if HAVE_DLFCN_H
17525#include <dlfcn.h>
17526#endif
17527
17528#include <stdio.h>
17529
17530#ifdef RTLD_GLOBAL
17531# define LT_DLGLOBAL RTLD_GLOBAL
17532#else
17533# ifdef DL_GLOBAL
17534# define LT_DLGLOBAL DL_GLOBAL
17535# else
17536# define LT_DLGLOBAL 0
17537# endif
17538#endif
17539
17540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17541 find out it does not work in some platform. */
17542#ifndef LT_DLLAZY_OR_NOW
17543# ifdef RTLD_LAZY
17544# define LT_DLLAZY_OR_NOW RTLD_LAZY
17545# else
17546# ifdef DL_LAZY
17547# define LT_DLLAZY_OR_NOW DL_LAZY
17548# else
17549# ifdef RTLD_NOW
17550# define LT_DLLAZY_OR_NOW RTLD_NOW
17551# else
17552# ifdef DL_NOW
17553# define LT_DLLAZY_OR_NOW DL_NOW
17554# else
17555# define LT_DLLAZY_OR_NOW 0
17556# endif
17557# endif
17558# endif
17559# endif
17560#endif
17561
17562#ifdef __cplusplus
17563extern "C" void exit (int);
17564#endif
17565
17566void fnord() { int i=42;}
17567int main ()
17568{
17569 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17570 int status = $lt_dlunknown;
17571
17572 if (self)
17573 {
17574 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17575 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17576 /* dlclose (self); */
17577 }
Reid Spencera773bd52006-08-04 18:18:08 +000017578 else
17579 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017580
17581 exit (status);
17582}
17583EOF
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017589 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017590 lt_status=$?
17591 case x$lt_status in
17592 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17593 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017594 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017595 esac
17596 else :
17597 # compilation failed
17598 lt_cv_dlopen_self=no
17599 fi
17600fi
17601rm -fr conftest*
17602
17603
17604fi
Reid Spencera773bd52006-08-04 18:18:08 +000017605{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17606echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017607
17608 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017609 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17610 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17611echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017612if test "${lt_cv_dlopen_self_static+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17614else
17615 if test "$cross_compiling" = yes; then :
17616 lt_cv_dlopen_self_static=cross
17617else
John Criswell47fdd832003-07-14 16:52:07 +000017618 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017619 lt_status=$lt_dlunknown
17620 cat > conftest.$ac_ext <<EOF
Richard Osborneb25baef2008-11-07 10:59:00 +000017621#line 17621 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017622#include "confdefs.h"
17623
17624#if HAVE_DLFCN_H
17625#include <dlfcn.h>
17626#endif
17627
17628#include <stdio.h>
17629
17630#ifdef RTLD_GLOBAL
17631# define LT_DLGLOBAL RTLD_GLOBAL
17632#else
17633# ifdef DL_GLOBAL
17634# define LT_DLGLOBAL DL_GLOBAL
17635# else
17636# define LT_DLGLOBAL 0
17637# endif
17638#endif
17639
17640/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17641 find out it does not work in some platform. */
17642#ifndef LT_DLLAZY_OR_NOW
17643# ifdef RTLD_LAZY
17644# define LT_DLLAZY_OR_NOW RTLD_LAZY
17645# else
17646# ifdef DL_LAZY
17647# define LT_DLLAZY_OR_NOW DL_LAZY
17648# else
17649# ifdef RTLD_NOW
17650# define LT_DLLAZY_OR_NOW RTLD_NOW
17651# else
17652# ifdef DL_NOW
17653# define LT_DLLAZY_OR_NOW DL_NOW
17654# else
17655# define LT_DLLAZY_OR_NOW 0
17656# endif
17657# endif
17658# endif
17659# endif
17660#endif
17661
17662#ifdef __cplusplus
17663extern "C" void exit (int);
17664#endif
17665
17666void fnord() { int i=42;}
17667int main ()
17668{
17669 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17670 int status = $lt_dlunknown;
17671
17672 if (self)
17673 {
17674 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17675 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17676 /* dlclose (self); */
17677 }
Reid Spencera773bd52006-08-04 18:18:08 +000017678 else
17679 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017680
17681 exit (status);
17682}
17683EOF
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017689 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017690 lt_status=$?
17691 case x$lt_status in
17692 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17693 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017694 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017695 esac
17696 else :
17697 # compilation failed
17698 lt_cv_dlopen_self_static=no
17699 fi
17700fi
17701rm -fr conftest*
17702
17703
17704fi
Reid Spencera773bd52006-08-04 18:18:08 +000017705{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17706echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017707 fi
17708
17709 CPPFLAGS="$save_CPPFLAGS"
17710 LDFLAGS="$save_LDFLAGS"
17711 LIBS="$save_LIBS"
17712 ;;
17713 esac
17714
17715 case $lt_cv_dlopen_self in
17716 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17717 *) enable_dlopen_self=unknown ;;
17718 esac
17719
17720 case $lt_cv_dlopen_self_static in
17721 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17722 *) enable_dlopen_self_static=unknown ;;
17723 esac
17724fi
17725
17726
Reid Spencera773bd52006-08-04 18:18:08 +000017727# Report which library types will actually be built
17728{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17729echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17730{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17731echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017732
Reid Spencera773bd52006-08-04 18:18:08 +000017733{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17734echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017735test "$can_build_shared" = "no" && enable_shared=no
17736
17737# On AIX, shared libraries and static libraries use the same namespace, and
17738# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017739case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017740aix3*)
17741 test "$enable_shared" = yes && enable_static=no
17742 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017743 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017744 postinstall_cmds='$RANLIB $lib'
17745 fi
17746 ;;
17747
Reid Spencer2706f8c2004-09-19 23:53:36 +000017748aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017749 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17750 test "$enable_shared" = yes && enable_static=no
17751 fi
John Criswell7a73b802003-06-30 21:59:07 +000017752 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017753esac
Reid Spencera773bd52006-08-04 18:18:08 +000017754{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17755echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017756
Reid Spencera773bd52006-08-04 18:18:08 +000017757{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17758echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017759# Make sure either enable_shared or enable_static is yes.
17760test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017761{ echo "$as_me:$LINENO: result: $enable_static" >&5
17762echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017763
17764# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017765# libtool distribution, otherwise you forgot to ship ltmain.sh
17766# with your package, and you will get complaints that there are
17767# no rules to generate ltmain.sh.
17768if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017769 # See if we are running on zsh, and set the options which allow our commands through
17770 # without removal of \ escapes.
17771 if test -n "${ZSH_VERSION+set}" ; then
17772 setopt NO_GLOB_SUBST
17773 fi
John Criswell7a73b802003-06-30 21:59:07 +000017774 # Now quote all the things that may contain metacharacters while being
17775 # careful not to overquote the AC_SUBSTed values. We take copies of the
17776 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017777 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000017778 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017779 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17780 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17781 deplibs_check_method reload_flag reload_cmds need_locks \
17782 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17783 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017784 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017785 old_postinstall_cmds old_postuninstall_cmds \
17786 compiler \
17787 CC \
17788 LD \
17789 lt_prog_compiler_wl \
17790 lt_prog_compiler_pic \
17791 lt_prog_compiler_static \
17792 lt_prog_compiler_no_builtin_flag \
17793 export_dynamic_flag_spec \
17794 thread_safe_flag_spec \
17795 whole_archive_flag_spec \
17796 enable_shared_with_static_runtimes \
17797 old_archive_cmds \
17798 old_archive_from_new_cmds \
17799 predep_objects \
17800 postdep_objects \
17801 predeps \
17802 postdeps \
17803 compiler_lib_search_path \
17804 archive_cmds \
17805 archive_expsym_cmds \
17806 postinstall_cmds \
17807 postuninstall_cmds \
17808 old_archive_from_expsyms_cmds \
17809 allow_undefined_flag \
17810 no_undefined_flag \
17811 export_symbols_cmds \
17812 hardcode_libdir_flag_spec \
17813 hardcode_libdir_flag_spec_ld \
17814 hardcode_libdir_separator \
17815 hardcode_automatic \
17816 module_cmds \
17817 module_expsym_cmds \
17818 lt_cv_prog_compiler_c_o \
17819 exclude_expsyms \
17820 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017821
17822 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017823 old_archive_cmds | \
17824 old_archive_from_new_cmds | \
17825 archive_cmds | \
17826 archive_expsym_cmds | \
17827 module_cmds | \
17828 module_expsym_cmds | \
17829 old_archive_from_expsyms_cmds | \
17830 export_symbols_cmds | \
17831 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017832 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017833 old_postinstall_cmds | old_postuninstall_cmds | \
17834 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017835 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017836 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +000017837 ;;
17838 *)
17839 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17840 ;;
17841 esac
17842 done
17843
John Criswell47fdd832003-07-14 16:52:07 +000017844 case $lt_echo in
17845 *'\$0 --fallback-echo"')
17846 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17847 ;;
17848 esac
17849
17850cfgfile="${ofile}T"
17851 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17852 $rm -f "$cfgfile"
17853 { echo "$as_me:$LINENO: creating $ofile" >&5
17854echo "$as_me: creating $ofile" >&6;}
17855
17856 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017857#! $SHELL
17858
John Criswell47fdd832003-07-14 16:52:07 +000017859# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017860# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17861# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17862#
John Criswell47fdd832003-07-14 16:52:07 +000017863# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17864# Free Software Foundation, Inc.
17865#
17866# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017867# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17868#
17869# This program is free software; you can redistribute it and/or modify
17870# it under the terms of the GNU General Public License as published by
17871# the Free Software Foundation; either version 2 of the License, or
17872# (at your option) any later version.
17873#
17874# This program is distributed in the hope that it will be useful, but
17875# WITHOUT ANY WARRANTY; without even the implied warranty of
17876# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17877# General Public License for more details.
17878#
17879# You should have received a copy of the GNU General Public License
17880# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017881# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017882#
17883# As a special exception to the GNU General Public License, if you
17884# distribute this file as part of a program that contains a
17885# configuration script generated by Autoconf, you may include it under
17886# the same distribution terms that you use for the rest of that program.
17887
John Criswell47fdd832003-07-14 16:52:07 +000017888# A sed program that does not truncate output.
17889SED=$lt_SED
17890
John Criswell7a73b802003-06-30 21:59:07 +000017891# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017892Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017893
17894# The HP-UX ksh and POSIX shell print the target directory to stdout
17895# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017896(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017897
John Criswell47fdd832003-07-14 16:52:07 +000017898# The names of the tagged configurations supported by this script.
17899available_tags=
17900
John Criswell7a73b802003-06-30 21:59:07 +000017901# ### BEGIN LIBTOOL CONFIG
17902
17903# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17904
17905# Shell to use when invoking shell scripts.
17906SHELL=$lt_SHELL
17907
17908# Whether or not to build shared libraries.
17909build_libtool_libs=$enable_shared
17910
17911# Whether or not to build static libraries.
17912build_old_libs=$enable_static
17913
17914# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017915build_libtool_need_lc=$archive_cmds_need_lc
17916
17917# Whether or not to disallow shared libs when runtime libs are static
17918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017919
17920# Whether or not to optimize for fast installation.
17921fast_install=$enable_fast_install
17922
17923# The host system.
17924host_alias=$host_alias
17925host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017926host_os=$host_os
17927
17928# The build system.
17929build_alias=$build_alias
17930build=$build
17931build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017932
17933# An echo program that does not interpret backslashes.
17934echo=$lt_echo
17935
17936# The archiver.
17937AR=$lt_AR
17938AR_FLAGS=$lt_AR_FLAGS
17939
John Criswell47fdd832003-07-14 16:52:07 +000017940# A C compiler.
17941LTCC=$lt_LTCC
17942
Reid Spencera773bd52006-08-04 18:18:08 +000017943# LTCC compiler flags.
17944LTCFLAGS=$lt_LTCFLAGS
17945
John Criswell47fdd832003-07-14 16:52:07 +000017946# A language-specific compiler.
17947CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017948
17949# Is the compiler the GNU C compiler?
17950with_gcc=$GCC
17951
John Criswell47fdd832003-07-14 16:52:07 +000017952# An ERE matcher.
17953EGREP=$lt_EGREP
17954
John Criswell7a73b802003-06-30 21:59:07 +000017955# The linker used to build libraries.
17956LD=$lt_LD
17957
17958# Whether we need hard or soft links.
17959LN_S=$lt_LN_S
17960
17961# A BSD-compatible nm program.
17962NM=$lt_NM
17963
17964# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017965STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017966
17967# Used to examine libraries when file_magic_cmd begins "file"
17968MAGIC_CMD=$MAGIC_CMD
17969
17970# Used on cygwin: DLL creation program.
17971DLLTOOL="$DLLTOOL"
17972
17973# Used on cygwin: object dumper.
17974OBJDUMP="$OBJDUMP"
17975
17976# Used on cygwin: assembler.
17977AS="$AS"
17978
17979# The name of the directory that contains temporary libtool files.
17980objdir=$objdir
17981
17982# How to create reloadable object files.
17983reload_flag=$lt_reload_flag
17984reload_cmds=$lt_reload_cmds
17985
17986# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017987wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017988
17989# Object file suffix (normally "o").
17990objext="$ac_objext"
17991
17992# Old archive suffix (normally "a").
17993libext="$libext"
17994
John Criswell47fdd832003-07-14 16:52:07 +000017995# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017996shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017997
John Criswell7a73b802003-06-30 21:59:07 +000017998# Executable file suffix (normally "").
17999exeext="$exeext"
18000
18001# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000018002pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000018003pic_mode=$pic_mode
18004
John Criswell47fdd832003-07-14 16:52:07 +000018005# What is the maximum length of a command?
18006max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000018007
John Criswell47fdd832003-07-14 16:52:07 +000018008# Does compiler simultaneously support -c and -o options?
18009compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000018010
Reid Spencera773bd52006-08-04 18:18:08 +000018011# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000018012need_locks=$lt_need_locks
18013
18014# Do we need the lib prefix for modules?
18015need_lib_prefix=$need_lib_prefix
18016
18017# Do we need a version for libraries?
18018need_version=$need_version
18019
18020# Whether dlopen is supported.
18021dlopen_support=$enable_dlopen
18022
18023# Whether dlopen of programs is supported.
18024dlopen_self=$enable_dlopen_self
18025
18026# Whether dlopen of statically linked programs is supported.
18027dlopen_self_static=$enable_dlopen_self_static
18028
18029# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000018030link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000018031
18032# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000018033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000018034
18035# Compiler flag to allow reflexive dlopens.
18036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18037
18038# Compiler flag to generate shared objects directly from archives.
18039whole_archive_flag_spec=$lt_whole_archive_flag_spec
18040
18041# Compiler flag to generate thread-safe objects.
18042thread_safe_flag_spec=$lt_thread_safe_flag_spec
18043
18044# Library versioning type.
18045version_type=$version_type
18046
18047# Format of library name prefix.
18048libname_spec=$lt_libname_spec
18049
18050# List of archive names. First name is the real one, the rest are links.
18051# The last name is the one that the linker finds with -lNAME.
18052library_names_spec=$lt_library_names_spec
18053
18054# The coded name of the library, if different from the real name.
18055soname_spec=$lt_soname_spec
18056
18057# Commands used to build and install an old-style archive.
18058RANLIB=$lt_RANLIB
18059old_archive_cmds=$lt_old_archive_cmds
18060old_postinstall_cmds=$lt_old_postinstall_cmds
18061old_postuninstall_cmds=$lt_old_postuninstall_cmds
18062
18063# Create an old-style archive from a shared archive.
18064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18065
18066# Create a temporary old-style archive to link instead of a shared archive.
18067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18068
18069# Commands used to build and install a shared archive.
18070archive_cmds=$lt_archive_cmds
18071archive_expsym_cmds=$lt_archive_expsym_cmds
18072postinstall_cmds=$lt_postinstall_cmds
18073postuninstall_cmds=$lt_postuninstall_cmds
18074
John Criswell47fdd832003-07-14 16:52:07 +000018075# Commands used to build a loadable module (assumed same as above if empty)
18076module_cmds=$lt_module_cmds
18077module_expsym_cmds=$lt_module_expsym_cmds
18078
John Criswell7a73b802003-06-30 21:59:07 +000018079# Commands to strip libraries.
18080old_striplib=$lt_old_striplib
18081striplib=$lt_striplib
18082
John Criswell47fdd832003-07-14 16:52:07 +000018083# Dependencies to place before the objects being linked to create a
18084# shared library.
18085predep_objects=$lt_predep_objects
18086
18087# Dependencies to place after the objects being linked to create a
18088# shared library.
18089postdep_objects=$lt_postdep_objects
18090
18091# Dependencies to place before the objects being linked to create a
18092# shared library.
18093predeps=$lt_predeps
18094
18095# Dependencies to place after the objects being linked to create a
18096# shared library.
18097postdeps=$lt_postdeps
18098
18099# The library search path used internally by the compiler when linking
18100# a shared library.
18101compiler_lib_search_path=$lt_compiler_lib_search_path
18102
John Criswell7a73b802003-06-30 21:59:07 +000018103# Method to check whether dependent libraries are shared objects.
18104deplibs_check_method=$lt_deplibs_check_method
18105
18106# Command to use when deplibs_check_method == file_magic.
18107file_magic_cmd=$lt_file_magic_cmd
18108
18109# Flag that allows shared libraries with undefined symbols to be built.
18110allow_undefined_flag=$lt_allow_undefined_flag
18111
18112# Flag that forces no undefined symbols.
18113no_undefined_flag=$lt_no_undefined_flag
18114
18115# Commands used to finish a libtool library installation in a directory.
18116finish_cmds=$lt_finish_cmds
18117
18118# Same as above, but a single script fragment to be evaled but not shown.
18119finish_eval=$lt_finish_eval
18120
18121# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000018122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000018123
18124# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000018125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000018126
18127# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000018128global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000018129
18130# This is the shared library runtime path variable.
18131runpath_var=$runpath_var
18132
18133# This is the shared library path variable.
18134shlibpath_var=$shlibpath_var
18135
18136# Is shlibpath searched before the hard-coded library search path?
18137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18138
18139# How to hardcode a shared library path into an executable.
18140hardcode_action=$hardcode_action
18141
18142# Whether we should hardcode library paths into libraries.
18143hardcode_into_libs=$hardcode_into_libs
18144
18145# Flag to hardcode \$libdir into a binary during linking.
18146# This must work even if \$libdir does not exist.
18147hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18148
John Criswell47fdd832003-07-14 16:52:07 +000018149# If ld is used when linking, flag to hardcode \$libdir into
18150# a binary during linking. This must work even if \$libdir does
18151# not exist.
18152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18153
John Criswell7a73b802003-06-30 21:59:07 +000018154# Whether we need a single -rpath flag with a separated argument.
18155hardcode_libdir_separator=$lt_hardcode_libdir_separator
18156
John Criswell47fdd832003-07-14 16:52:07 +000018157# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000018158# resulting binary.
18159hardcode_direct=$hardcode_direct
18160
18161# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18162# resulting binary.
18163hardcode_minus_L=$hardcode_minus_L
18164
18165# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18166# the resulting binary.
18167hardcode_shlibpath_var=$hardcode_shlibpath_var
18168
John Criswell47fdd832003-07-14 16:52:07 +000018169# Set to yes if building a shared library automatically hardcodes DIR into the library
18170# and all subsequent libraries and executables linked against it.
18171hardcode_automatic=$hardcode_automatic
18172
John Criswell7a73b802003-06-30 21:59:07 +000018173# Variables whose values should be saved in libtool wrapper scripts and
18174# restored at relink time.
18175variables_saved_for_relink="$variables_saved_for_relink"
18176
18177# Whether libtool must link a program against all its dependency libraries.
18178link_all_deplibs=$link_all_deplibs
18179
18180# Compile-time system search path for libraries
18181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18182
18183# Run-time system search path for libraries
18184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18185
18186# Fix the shell variable \$srcfile for the compiler.
18187fix_srcfile_path="$fix_srcfile_path"
18188
18189# Set to yes if exported symbols are required.
18190always_export_symbols=$always_export_symbols
18191
18192# The commands to list exported symbols.
18193export_symbols_cmds=$lt_export_symbols_cmds
18194
18195# The commands to extract the exported symbol list from a shared archive.
18196extract_expsyms_cmds=$lt_extract_expsyms_cmds
18197
18198# Symbols that should not be listed in the preloaded symbols.
18199exclude_expsyms=$lt_exclude_expsyms
18200
18201# Symbols that must always be exported.
18202include_expsyms=$lt_include_expsyms
18203
18204# ### END LIBTOOL CONFIG
18205
18206__EOF__
18207
John Criswell47fdd832003-07-14 16:52:07 +000018208
John Criswell7a73b802003-06-30 21:59:07 +000018209 case $host_os in
18210 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000018211 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000018212
18213# AIX sometimes has problems with the GCC collect2 program. For some
18214# reason, if we set the COLLECT_NAMES environment variable, the problems
18215# vanish in a puff of smoke.
18216if test "X${COLLECT_NAMES+set}" != Xset; then
18217 COLLECT_NAMES=
18218 export COLLECT_NAMES
18219fi
18220EOF
18221 ;;
18222 esac
18223
John Criswell7a73b802003-06-30 21:59:07 +000018224 # We use sed instead of cat because bash on DJGPP gets confused if
18225 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18226 # text mode, it properly converts lines to CR/LF. This bash problem
18227 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000018228 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000018229
John Criswell47fdd832003-07-14 16:52:07 +000018230 mv -f "$cfgfile" "$ofile" || \
18231 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000018232 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000018233
18234else
18235 # If there is no Makefile yet, we rely on a make rule to execute
18236 # `config.status --recheck' to rerun these tests and create the
18237 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018238 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18239 if test -f "$ltmain_in"; then
18240 test -f Makefile && make "$ltmain"
18241 fi
John Criswell7a73b802003-06-30 21:59:07 +000018242fi
John Criswell7a73b802003-06-30 21:59:07 +000018243
18244
John Criswell47fdd832003-07-14 16:52:07 +000018245ac_ext=c
18246ac_cpp='$CPP $CPPFLAGS'
18247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18249ac_compiler_gnu=$ac_cv_c_compiler_gnu
18250
18251CC="$lt_save_CC"
18252
18253
Reid Spencera773bd52006-08-04 18:18:08 +000018254# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000018255if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018256 withval=$with_tags; tagnames="$withval"
18257fi
18258
John Criswell47fdd832003-07-14 16:52:07 +000018259
18260if test -f "$ltmain" && test -n "$tagnames"; then
18261 if test ! -f "${ofile}"; then
18262 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
18263echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
18264 fi
18265
18266 if test -z "$LTCC"; then
18267 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
18268 if test -z "$LTCC"; then
18269 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
18270echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
18271 else
18272 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
18273echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
18274 fi
18275 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018276 if test -z "$LTCFLAGS"; then
18277 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
18278 fi
John Criswell47fdd832003-07-14 16:52:07 +000018279
18280 # Extract list of available tagged configurations in $ofile.
18281 # Note that this assumes the entire list is on one line.
18282 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
18283
18284 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
18285 for tagname in $tagnames; do
18286 IFS="$lt_save_ifs"
18287 # Check whether tagname contains only valid characters
18288 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
18289 "") ;;
18290 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
18291echo "$as_me: error: invalid tag name: $tagname" >&2;}
18292 { (exit 1); exit 1; }; }
18293 ;;
18294 esac
18295
18296 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
18297 then
18298 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
18299echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
18300 { (exit 1); exit 1; }; }
18301 fi
18302
18303 # Update the list of available tags.
18304 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018305 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000018306
18307 case $tagname in
18308 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018309 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
18310 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
18311 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000018312 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018313ac_cpp='$CXXCPP $CPPFLAGS'
18314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18317
18318
18319
18320
18321archive_cmds_need_lc_CXX=no
18322allow_undefined_flag_CXX=
18323always_export_symbols_CXX=no
18324archive_expsym_cmds_CXX=
18325export_dynamic_flag_spec_CXX=
18326hardcode_direct_CXX=no
18327hardcode_libdir_flag_spec_CXX=
18328hardcode_libdir_flag_spec_ld_CXX=
18329hardcode_libdir_separator_CXX=
18330hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018331hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000018332hardcode_automatic_CXX=no
18333module_cmds_CXX=
18334module_expsym_cmds_CXX=
18335link_all_deplibs_CXX=unknown
18336old_archive_cmds_CXX=$old_archive_cmds
18337no_undefined_flag_CXX=
18338whole_archive_flag_spec_CXX=
18339enable_shared_with_static_runtimes_CXX=no
18340
18341# Dependencies to place before and after the object being linked:
18342predep_objects_CXX=
18343postdep_objects_CXX=
18344predeps_CXX=
18345postdeps_CXX=
18346compiler_lib_search_path_CXX=
18347
18348# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000018349ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000018350
18351# Object file extension for compiled C++ test sources.
18352objext=o
18353objext_CXX=$objext
18354
18355# Code to be used in simple compile tests
18356lt_simple_compile_test_code="int some_variable = 0;\n"
18357
18358# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000018359lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000018360
18361# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18362
18363# If no C compiler was specified, use CC.
18364LTCC=${LTCC-"$CC"}
18365
Reid Spencera773bd52006-08-04 18:18:08 +000018366# If no C compiler flags were specified, use CFLAGS.
18367LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18368
John Criswell47fdd832003-07-14 16:52:07 +000018369# Allow CC to be a program name with arguments.
18370compiler=$CC
18371
18372
Reid Spencera773bd52006-08-04 18:18:08 +000018373# save warnings/boilerplate of simple test code
18374ac_outfile=conftest.$ac_objext
18375printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18376eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18377_lt_compiler_boilerplate=`cat conftest.err`
18378$rm conftest*
18379
18380ac_outfile=conftest.$ac_objext
18381printf "$lt_simple_link_test_code" >conftest.$ac_ext
18382eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18383_lt_linker_boilerplate=`cat conftest.err`
18384$rm conftest*
18385
18386
John Criswell47fdd832003-07-14 16:52:07 +000018387# Allow CC to be a program name with arguments.
18388lt_save_CC=$CC
18389lt_save_LD=$LD
18390lt_save_GCC=$GCC
18391GCC=$GXX
18392lt_save_with_gnu_ld=$with_gnu_ld
18393lt_save_path_LD=$lt_cv_path_LD
18394if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18395 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18396else
Reid Spencera773bd52006-08-04 18:18:08 +000018397 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000018398fi
18399if test -n "${lt_cv_path_LDCXX+set}"; then
18400 lt_cv_path_LD=$lt_cv_path_LDCXX
18401else
Reid Spencera773bd52006-08-04 18:18:08 +000018402 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000018403fi
18404test -z "${LDCXX+set}" || LD=$LDCXX
18405CC=${CXX-"c++"}
18406compiler=$CC
18407compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000018408for cc_temp in $compiler""; do
18409 case $cc_temp in
18410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18412 \-*) ;;
18413 *) break;;
18414 esac
18415done
18416cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18417
John Criswell47fdd832003-07-14 16:52:07 +000018418
18419# We don't want -fno-exception wen compiling C++ code, so set the
18420# no_builtin_flag separately
18421if test "$GXX" = yes; then
18422 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18423else
18424 lt_prog_compiler_no_builtin_flag_CXX=
18425fi
18426
18427if test "$GXX" = yes; then
18428 # Set up default GNU C++ configuration
18429
18430
Reid Spencera773bd52006-08-04 18:18:08 +000018431# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000018432if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000018433 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000018434else
18435 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000018436fi
18437
John Criswell47fdd832003-07-14 16:52:07 +000018438ac_prog=ld
18439if test "$GCC" = yes; then
18440 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000018441 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18442echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018443 case $host in
18444 *-*-mingw*)
18445 # gcc leaves a trailing carriage return which upsets mingw
18446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18447 *)
18448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18449 esac
18450 case $ac_prog in
18451 # Accept absolute paths.
18452 [\\/]* | ?:[\\/]*)
18453 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018454 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000018455 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
18456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18457 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
18458 done
18459 test -z "$LD" && LD="$ac_prog"
18460 ;;
18461 "")
18462 # If it fails, then pretend we aren't using GCC.
18463 ac_prog=ld
18464 ;;
18465 *)
18466 # If it is relative, then search for the first ld in PATH.
18467 with_gnu_ld=unknown
18468 ;;
18469 esac
18470elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018471 { echo "$as_me:$LINENO: checking for GNU ld" >&5
18472echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018473else
Reid Spencera773bd52006-08-04 18:18:08 +000018474 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18475echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018476fi
18477if test "${lt_cv_path_LD+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479else
18480 if test -z "$LD"; then
18481 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18482 for ac_dir in $PATH; do
18483 IFS="$lt_save_ifs"
18484 test -z "$ac_dir" && ac_dir=.
18485 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18486 lt_cv_path_LD="$ac_dir/$ac_prog"
18487 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000018488 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000018489 # Break only if it was the GNU/non-GNU ld that we prefer.
18490 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18491 *GNU* | *'with BFD'*)
18492 test "$with_gnu_ld" != no && break
18493 ;;
18494 *)
18495 test "$with_gnu_ld" != yes && break
18496 ;;
18497 esac
18498 fi
18499 done
18500 IFS="$lt_save_ifs"
18501else
18502 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18503fi
18504fi
18505
18506LD="$lt_cv_path_LD"
18507if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018508 { echo "$as_me:$LINENO: result: $LD" >&5
18509echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018510else
Reid Spencera773bd52006-08-04 18:18:08 +000018511 { echo "$as_me:$LINENO: result: no" >&5
18512echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018513fi
18514test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18515echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18516 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018517{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18518echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018519if test "${lt_cv_prog_gnu_ld+set}" = set; then
18520 echo $ECHO_N "(cached) $ECHO_C" >&6
18521else
Reid Spencera773bd52006-08-04 18:18:08 +000018522 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018523case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018524*GNU* | *'with BFD'*)
18525 lt_cv_prog_gnu_ld=yes
18526 ;;
18527*)
18528 lt_cv_prog_gnu_ld=no
18529 ;;
18530esac
18531fi
Reid Spencera773bd52006-08-04 18:18:08 +000018532{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18533echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018534with_gnu_ld=$lt_cv_prog_gnu_ld
18535
18536
18537
18538 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18539 # archiving commands below assume that GNU ld is being used.
18540 if test "$with_gnu_ld" = yes; then
18541 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18542 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18543
18544 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18546
18547 # If archive_cmds runs LD, not CC, wlarc should be empty
18548 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18549 # investigate it a little bit more. (MM)
18550 wlarc='${wl}'
18551
18552 # ancient GNU ld didn't support --whole-archive et. al.
18553 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18554 grep 'no-whole-archive' > /dev/null; then
18555 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18556 else
18557 whole_archive_flag_spec_CXX=
18558 fi
18559 else
18560 with_gnu_ld=no
18561 wlarc=
18562
18563 # A generic and very simple default shared library creation
18564 # command for GNU C++ for the case where it uses the native
18565 # linker, instead of GNU ld. If possible, this setting should
18566 # overridden to take advantage of the native linker features on
18567 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018568 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018569 fi
18570
18571 # Commands to make compiler produce verbose output that lists
18572 # what "hidden" libraries, object files and flags are used when
18573 # linking a shared library.
18574 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18575
18576else
18577 GXX=no
18578 with_gnu_ld=no
18579 wlarc=
18580fi
18581
18582# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018583{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018585ld_shlibs_CXX=yes
18586case $host_os in
18587 aix3*)
18588 # FIXME: insert proper C++ library support
18589 ld_shlibs_CXX=no
18590 ;;
18591 aix4* | aix5*)
18592 if test "$host_cpu" = ia64; then
18593 # On IA64, the linker does run time linking by default, so we don't
18594 # have to do anything special.
18595 aix_use_runtimelinking=no
18596 exp_sym_flag='-Bexport'
18597 no_entry_flag=""
18598 else
18599 aix_use_runtimelinking=no
18600
18601 # Test if we are trying to use run time linking or normal
18602 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18603 # need to do runtime linking.
18604 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18605 for ld_flag in $LDFLAGS; do
18606 case $ld_flag in
18607 *-brtl*)
18608 aix_use_runtimelinking=yes
18609 break
18610 ;;
18611 esac
18612 done
Reid Spencera773bd52006-08-04 18:18:08 +000018613 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018614 esac
18615
18616 exp_sym_flag='-bexport'
18617 no_entry_flag='-bnoentry'
18618 fi
18619
18620 # When large executables or shared objects are built, AIX ld can
18621 # have problems creating the table of contents. If linking a library
18622 # or program results in "error TOC overflow" add -mminimal-toc to
18623 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18624 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18625
18626 archive_cmds_CXX=''
18627 hardcode_direct_CXX=yes
18628 hardcode_libdir_separator_CXX=':'
18629 link_all_deplibs_CXX=yes
18630
18631 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018632 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018633 # We only want to do this on AIX 4.2 and lower, the check
18634 # below for broken collect2 doesn't work under 4.3+
18635 collect2name=`${CC} -print-prog-name=collect2`
18636 if test -f "$collect2name" && \
18637 strings "$collect2name" | grep resolve_lib_name >/dev/null
18638 then
18639 # We have reworked collect2
18640 hardcode_direct_CXX=yes
18641 else
18642 # We have old collect2
18643 hardcode_direct_CXX=unsupported
18644 # It fails to find uninstalled libraries when the uninstalled
18645 # path is not listed in the libpath. Setting hardcode_minus_L
18646 # to unsupported forces relinking
18647 hardcode_minus_L_CXX=yes
18648 hardcode_libdir_flag_spec_CXX='-L$libdir'
18649 hardcode_libdir_separator_CXX=
18650 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018651 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018652 esac
18653 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018654 if test "$aix_use_runtimelinking" = yes; then
18655 shared_flag="$shared_flag "'${wl}-G'
18656 fi
John Criswell47fdd832003-07-14 16:52:07 +000018657 else
18658 # not using gcc
18659 if test "$host_cpu" = ia64; then
18660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18661 # chokes on -Wl,-G. The following line is correct:
18662 shared_flag='-G'
18663 else
18664 if test "$aix_use_runtimelinking" = yes; then
18665 shared_flag='${wl}-G'
18666 else
18667 shared_flag='${wl}-bM:SRE'
18668 fi
18669 fi
18670 fi
18671
18672 # It seems that -bexpall does not export symbols beginning with
18673 # underscore (_), so it is better to generate a list of symbols to export.
18674 always_export_symbols_CXX=yes
18675 if test "$aix_use_runtimelinking" = yes; then
18676 # Warning - without using the other runtime loading flags (-brtl),
18677 # -berok will link without error, but may produce a broken library.
18678 allow_undefined_flag_CXX='-berok'
18679 # Determine the default libpath from the value encoded in an empty executable.
18680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018681/* confdefs.h. */
18682_ACEOF
18683cat confdefs.h >>conftest.$ac_ext
18684cat >>conftest.$ac_ext <<_ACEOF
18685/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018686
John Criswell47fdd832003-07-14 16:52:07 +000018687int
18688main ()
18689{
18690
18691 ;
18692 return 0;
18693}
18694_ACEOF
18695rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018696if { (ac_try="$ac_link"
18697case "(($ac_try" in
18698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699 *) ac_try_echo=$ac_try;;
18700esac
18701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018704 grep -v '^ *+' conftest.er1 >conftest.err
18705 rm -f conftest.er1
18706 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018708 (exit $ac_status); } &&
18709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18710 { (case "(($ac_try" in
18711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18712 *) ac_try_echo=$ac_try;;
18713esac
18714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18715 (eval "$ac_try") 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; } &&
18719 { ac_try='test -s conftest$ac_exeext'
18720 { (case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18723esac
18724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_try") 2>&5
18726 ac_status=$?
18727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018729
18730aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18731}'`
18732# Check for a 64-bit object if we didn't find anything.
18733if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18734}'`; fi
18735else
18736 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018737sed 's/^/| /' conftest.$ac_ext >&5
18738
Reid Spencera773bd52006-08-04 18:18:08 +000018739
John Criswell47fdd832003-07-14 16:52:07 +000018740fi
Reid Spencera773bd52006-08-04 18:18:08 +000018741
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018742rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018743 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18745
18746 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18747
Reid Spencera773bd52006-08-04 18:18:08 +000018748 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000018749 else
18750 if test "$host_cpu" = ia64; then
18751 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18752 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018753 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000018754 else
18755 # Determine the default libpath from the value encoded in an empty executable.
18756 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018757/* confdefs.h. */
18758_ACEOF
18759cat confdefs.h >>conftest.$ac_ext
18760cat >>conftest.$ac_ext <<_ACEOF
18761/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018762
John Criswell47fdd832003-07-14 16:52:07 +000018763int
18764main ()
18765{
18766
18767 ;
18768 return 0;
18769}
18770_ACEOF
18771rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018772if { (ac_try="$ac_link"
18773case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18776esac
18777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018779 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018780 grep -v '^ *+' conftest.er1 >conftest.err
18781 rm -f conftest.er1
18782 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018784 (exit $ac_status); } &&
18785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18789esac
18790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18792 ac_status=$?
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; } &&
18795 { ac_try='test -s conftest$ac_exeext'
18796 { (case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18799esac
18800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_try") 2>&5
18802 ac_status=$?
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000018805
18806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18807}'`
18808# Check for a 64-bit object if we didn't find anything.
18809if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18810}'`; fi
18811else
18812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018813sed 's/^/| /' conftest.$ac_ext >&5
18814
Reid Spencera773bd52006-08-04 18:18:08 +000018815
John Criswell47fdd832003-07-14 16:52:07 +000018816fi
Reid Spencera773bd52006-08-04 18:18:08 +000018817
Gordon Henriksen40e7f192008-10-22 12:40:55 +000018818rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018819 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18821
18822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18823 # Warning - without using the other run time loading flags,
18824 # -berok will link without error, but may produce a broken library.
18825 no_undefined_flag_CXX=' ${wl}-bernotok'
18826 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018827 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018828 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018829 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018830 # This is similar to how AIX traditionally builds its shared libraries.
18831 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000018832 fi
18833 fi
18834 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018835
18836 beos*)
18837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18838 allow_undefined_flag_CXX=unsupported
18839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18840 # support --undefined. This deserves some investigation. FIXME
18841 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18842 else
18843 ld_shlibs_CXX=no
18844 fi
18845 ;;
18846
John Criswell47fdd832003-07-14 16:52:07 +000018847 chorus*)
18848 case $cc_basename in
18849 *)
18850 # FIXME: insert proper C++ library support
18851 ld_shlibs_CXX=no
18852 ;;
18853 esac
18854 ;;
18855
18856 cygwin* | mingw* | pw32*)
18857 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18858 # as there is no search path for DLLs.
18859 hardcode_libdir_flag_spec_CXX='-L$libdir'
18860 allow_undefined_flag_CXX=unsupported
18861 always_export_symbols_CXX=no
18862 enable_shared_with_static_runtimes_CXX=yes
18863
18864 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018865 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018866 # If the export-symbols file already is a .def file (1st line
18867 # is EXPORTS), use it as is; otherwise, prepend...
18868 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18869 cp $export_symbols $output_objdir/$soname.def;
18870 else
18871 echo EXPORTS > $output_objdir/$soname.def;
18872 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018873 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018874 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018875 else
18876 ld_shlibs_CXX=no
18877 fi
18878 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018879 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018880 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018881 rhapsody* | darwin1.[012])
18882 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18883 ;;
18884 *) # Darwin 1.3 on
18885 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18886 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18887 else
18888 case ${MACOSX_DEPLOYMENT_TARGET} in
18889 10.[012])
18890 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18891 ;;
18892 10.*)
18893 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18894 ;;
18895 esac
18896 fi
18897 ;;
18898 esac
18899 archive_cmds_need_lc_CXX=no
18900 hardcode_direct_CXX=no
18901 hardcode_automatic_CXX=yes
18902 hardcode_shlibpath_var_CXX=unsupported
18903 whole_archive_flag_spec_CXX=''
18904 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018905
Reid Spencer2706f8c2004-09-19 23:53:36 +000018906 if test "$GXX" = yes ; then
18907 lt_int_apple_cc_single_mod=no
18908 output_verbose_link_cmd='echo'
18909 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18910 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018911 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018912 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018913 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Brian Gaeke0a621332004-09-08 20:38:05 +000018914 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018915 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018916 fi
18917 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018918 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer2706f8c2004-09-19 23:53:36 +000018919 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018920 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018921 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018922 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018923 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018924 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018925 else
Reid Spencera773bd52006-08-04 18:18:08 +000018926 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018927 xlc*)
18928 output_verbose_link_cmd='echo'
18929 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18930 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018931 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000018932 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18933 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000018934 ;;
18935 *)
18936 ld_shlibs_CXX=no
18937 ;;
18938 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018939 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018940 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018941
18942 dgux*)
18943 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018944 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018945 # FIXME: insert proper C++ library support
18946 ld_shlibs_CXX=no
18947 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018948 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018949 # Green Hills C++ Compiler
18950 # FIXME: insert proper C++ library support
18951 ld_shlibs_CXX=no
18952 ;;
18953 *)
18954 # FIXME: insert proper C++ library support
18955 ld_shlibs_CXX=no
18956 ;;
18957 esac
18958 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018959 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018960 # C++ shared libraries reported to be fairly broken before switch to ELF
18961 ld_shlibs_CXX=no
18962 ;;
18963 freebsd-elf*)
18964 archive_cmds_need_lc_CXX=no
18965 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018966 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18968 # conventions
18969 ld_shlibs_CXX=yes
18970 ;;
18971 gnu*)
18972 ;;
18973 hpux9*)
18974 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18975 hardcode_libdir_separator_CXX=:
18976 export_dynamic_flag_spec_CXX='${wl}-E'
18977 hardcode_direct_CXX=yes
18978 hardcode_minus_L_CXX=yes # Not in the search PATH,
18979 # but as the default
18980 # location of the library.
18981
18982 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018983 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018984 # FIXME: insert proper C++ library support
18985 ld_shlibs_CXX=no
18986 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018987 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018988 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018989 # Commands to make compiler produce verbose output that lists
18990 # what "hidden" libraries, object files and flags are used when
18991 # linking a shared library.
18992 #
18993 # There doesn't appear to be a way to prevent this compiler from
18994 # explicitly linking system object files so we need to strip them
18995 # from the output so that they don't get included in the library
18996 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018997 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
John Criswell47fdd832003-07-14 16:52:07 +000018998 ;;
18999 *)
19000 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019001 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019002 else
19003 # FIXME: insert proper C++ library support
19004 ld_shlibs_CXX=no
19005 fi
19006 ;;
19007 esac
19008 ;;
19009 hpux10*|hpux11*)
19010 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19012 hardcode_libdir_separator_CXX=:
19013
19014 case $host_cpu in
19015 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019016 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000019017 ;;
19018 *)
John Criswell47fdd832003-07-14 16:52:07 +000019019 export_dynamic_flag_spec_CXX='${wl}-E'
19020 ;;
19021 esac
19022 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019023 case $host_cpu in
19024 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 hardcode_direct_CXX=no
19026 hardcode_shlibpath_var_CXX=no
19027 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019028 *)
19029 hardcode_direct_CXX=yes
19030 hardcode_minus_L_CXX=yes # Not in the search PATH,
19031 # but as the default
19032 # location of the library.
19033 ;;
19034 esac
19035
19036 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019037 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019041 aCC*)
19042 case $host_cpu in
19043 hppa*64*)
19044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19045 ;;
19046 ia64*)
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000019048 ;;
19049 *)
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19051 ;;
19052 esac
19053 # Commands to make compiler produce verbose output that lists
19054 # what "hidden" libraries, object files and flags are used when
19055 # linking a shared library.
19056 #
19057 # There doesn't appear to be a way to prevent this compiler from
19058 # explicitly linking system object files so we need to strip them
19059 # from the output so that they don't get included in the library
19060 # dependencies.
19061 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19062 ;;
19063 *)
19064 if test "$GXX" = yes; then
19065 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019066 case $host_cpu in
19067 hppa*64*)
19068 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19069 ;;
19070 ia64*)
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000019072 ;;
19073 *)
19074 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19075 ;;
19076 esac
19077 fi
19078 else
19079 # FIXME: insert proper C++ library support
19080 ld_shlibs_CXX=no
19081 fi
19082 ;;
19083 esac
19084 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019085 interix3*)
19086 hardcode_direct_CXX=no
19087 hardcode_shlibpath_var_CXX=no
19088 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19089 export_dynamic_flag_spec_CXX='${wl}-E'
19090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19091 # Instead, shared libraries are loaded at an image base (0x10000000 by
19092 # default) and relocated if they conflict, which is a slow very memory
19093 # consuming and fragmenting process. To avoid this, we pick a random,
19094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19096 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19097 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19098 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019099 irix5* | irix6*)
19100 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019101 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019102 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000019103 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019104
19105 # Archives containing C++ object files must be created using
19106 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19107 # necessary to make sure instantiated templates are included
19108 # in the archive.
19109 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19110 ;;
19111 *)
19112 if test "$GXX" = yes; then
19113 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000019114 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019115 else
19116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
19117 fi
19118 fi
19119 link_all_deplibs_CXX=yes
19120 ;;
19121 esac
19122 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19123 hardcode_libdir_separator_CXX=:
19124 ;;
19125 linux*)
19126 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019127 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019128 # Kuck and Associates, Inc. (KAI) C++ Compiler
19129
19130 # KCC will only create a shared library if the output file
19131 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19132 # to its proper name (with version) after linking.
19133 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19134 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19135 # Commands to make compiler produce verbose output that lists
19136 # what "hidden" libraries, object files and flags are used when
19137 # linking a shared library.
19138 #
19139 # There doesn't appear to be a way to prevent this compiler from
19140 # explicitly linking system object files so we need to strip them
19141 # from the output so that they don't get included in the library
19142 # dependencies.
19143 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19144
19145 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
19146 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19147
19148 # Archives containing C++ object files must be created using
19149 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19150 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19151 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019152 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019153 # Intel C++
19154 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019155 # version 8.0 and above of icpc choke on multiply defined symbols
19156 # if we add $predep_objects and $postdep_objects, however 7.1 and
19157 # earlier do not add the objects themselves.
19158 case `$CC -V 2>&1` in
19159 *"Version 7."*)
19160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19161 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19162 ;;
19163 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000019164 tmp_idyn=
19165 case $host_cpu in
19166 ia64*) tmp_idyn=' -i_dynamic';;
19167 esac
19168 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019170 ;;
19171 esac
John Criswell47fdd832003-07-14 16:52:07 +000019172 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000019173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19174 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19175 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19176 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019177 pgCC*)
19178 # Portland Group C++ compiler
19179 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19180 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19181
19182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19184 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
19185 ;;
19186 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019187 # Compaq C++
19188 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19189 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19190
19191 runpath_var=LD_RUN_PATH
19192 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19193 hardcode_libdir_separator_CXX=:
19194
19195 # Commands to make compiler produce verbose output that lists
19196 # what "hidden" libraries, object files and flags are used when
19197 # linking a shared library.
19198 #
19199 # There doesn't appear to be a way to prevent this compiler from
19200 # explicitly linking system object files so we need to strip them
19201 # from the output so that they don't get included in the library
19202 # dependencies.
19203 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19204 ;;
19205 esac
19206 ;;
19207 lynxos*)
19208 # FIXME: insert proper C++ library support
19209 ld_shlibs_CXX=no
19210 ;;
19211 m88k*)
19212 # FIXME: insert proper C++ library support
19213 ld_shlibs_CXX=no
19214 ;;
19215 mvs*)
19216 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019217 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019218 # FIXME: insert proper C++ library support
19219 ld_shlibs_CXX=no
19220 ;;
19221 *)
19222 # FIXME: insert proper C++ library support
19223 ld_shlibs_CXX=no
19224 ;;
19225 esac
19226 ;;
19227 netbsd*)
19228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19229 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19230 wlarc=
19231 hardcode_libdir_flag_spec_CXX='-R$libdir'
19232 hardcode_direct_CXX=yes
19233 hardcode_shlibpath_var_CXX=no
19234 fi
19235 # Workaround some broken pre-1.5 toolchains
19236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19237 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019238 openbsd2*)
19239 # C++ shared libraries are fairly broken
19240 ld_shlibs_CXX=no
19241 ;;
19242 openbsd*)
19243 hardcode_direct_CXX=yes
19244 hardcode_shlibpath_var_CXX=no
19245 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19246 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19247 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19248 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19249 export_dynamic_flag_spec_CXX='${wl}-E'
19250 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19251 fi
19252 output_verbose_link_cmd='echo'
19253 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019254 osf3*)
19255 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019256 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019257 # Kuck and Associates, Inc. (KAI) C++ Compiler
19258
19259 # KCC will only create a shared library if the output file
19260 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19261 # to its proper name (with version) after linking.
19262 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19263
19264 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19265 hardcode_libdir_separator_CXX=:
19266
19267 # Archives containing C++ object files must be created using
19268 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19269 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19270
19271 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019272 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019273 # Rational C++ 2.4.1
19274 # FIXME: insert proper C++ library support
19275 ld_shlibs_CXX=no
19276 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019277 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019278 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019279 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019280
19281 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19282 hardcode_libdir_separator_CXX=:
19283
19284 # Commands to make compiler produce verbose output that lists
19285 # what "hidden" libraries, object files and flags are used when
19286 # linking a shared library.
19287 #
19288 # There doesn't appear to be a way to prevent this compiler from
19289 # explicitly linking system object files so we need to strip them
19290 # from the output so that they don't get included in the library
19291 # dependencies.
19292 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19293 ;;
19294 *)
19295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19296 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019297 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019298
19299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19300 hardcode_libdir_separator_CXX=:
19301
19302 # Commands to make compiler produce verbose output that lists
19303 # what "hidden" libraries, object files and flags are used when
19304 # linking a shared library.
19305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19306
19307 else
19308 # FIXME: insert proper C++ library support
19309 ld_shlibs_CXX=no
19310 fi
19311 ;;
19312 esac
19313 ;;
19314 osf4* | osf5*)
19315 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019316 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019317 # Kuck and Associates, Inc. (KAI) C++ Compiler
19318
19319 # KCC will only create a shared library if the output file
19320 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19321 # to its proper name (with version) after linking.
19322 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19323
19324 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19325 hardcode_libdir_separator_CXX=:
19326
19327 # Archives containing C++ object files must be created using
19328 # the KAI C++ compiler.
19329 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
19330 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019331 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019332 # Rational C++ 2.4.1
19333 # FIXME: insert proper C++ library support
19334 ld_shlibs_CXX=no
19335 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019336 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000019338 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019339 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19340 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019341 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
Reid Spencer177dbe22004-10-13 01:01:03 +000019342 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019343
19344 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19345 hardcode_libdir_separator_CXX=:
19346
19347 # Commands to make compiler produce verbose output that lists
19348 # what "hidden" libraries, object files and flags are used when
19349 # linking a shared library.
19350 #
19351 # There doesn't appear to be a way to prevent this compiler from
19352 # explicitly linking system object files so we need to strip them
19353 # from the output so that they don't get included in the library
19354 # dependencies.
19355 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
19356 ;;
19357 *)
19358 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19359 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000019360 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000019361
19362 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19363 hardcode_libdir_separator_CXX=:
19364
19365 # Commands to make compiler produce verbose output that lists
19366 # what "hidden" libraries, object files and flags are used when
19367 # linking a shared library.
19368 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
19369
19370 else
19371 # FIXME: insert proper C++ library support
19372 ld_shlibs_CXX=no
19373 fi
19374 ;;
19375 esac
19376 ;;
19377 psos*)
19378 # FIXME: insert proper C++ library support
19379 ld_shlibs_CXX=no
19380 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019381 sunos4*)
19382 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019383 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019384 # Sun C++ 4.x
19385 # FIXME: insert proper C++ library support
19386 ld_shlibs_CXX=no
19387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019388 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019389 # Lucid
19390 # FIXME: insert proper C++ library support
19391 ld_shlibs_CXX=no
19392 ;;
19393 *)
19394 # FIXME: insert proper C++ library support
19395 ld_shlibs_CXX=no
19396 ;;
19397 esac
19398 ;;
19399 solaris*)
19400 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019401 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019402 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000019403 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000019404 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000019405 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019406 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000019407 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019408
19409 hardcode_libdir_flag_spec_CXX='-R$libdir'
19410 hardcode_shlibpath_var_CXX=no
19411 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000019412 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000019413 *)
19414 # The C++ compiler is used as linker so we must use $wl
19415 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000019416 # linker. We must also pass each convience library through
19417 # to the system linker between allextract/defaultextract.
19418 # The C++ compiler will combine linker options so we
19419 # cannot just pass the convience library names through
19420 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000019421 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000019422 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
John Criswell47fdd832003-07-14 16:52:07 +000019423 ;;
19424 esac
19425 link_all_deplibs_CXX=yes
19426
Reid Spencera773bd52006-08-04 18:18:08 +000019427 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000019428
19429 # Archives containing C++ object files must be created using
19430 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19431 # necessary to make sure instantiated templates are included
19432 # in the archive.
19433 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19434 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019435 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019436 # Green Hills C++ Compiler
19437 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19438
19439 # The C++ compiler must be used to create the archive.
19440 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19441 ;;
19442 *)
19443 # GNU C++ compiler with Solaris linker
19444 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19445 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19446 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000019447 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019448 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19449 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
19450
John Criswell47fdd832003-07-14 16:52:07 +000019451 # Commands to make compiler produce verbose output that lists
19452 # what "hidden" libraries, object files and flags are used when
19453 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000019454 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000019455 else
19456 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19457 # platform.
19458 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000019459 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19460 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000019461
19462 # Commands to make compiler produce verbose output that lists
19463 # what "hidden" libraries, object files and flags are used when
19464 # linking a shared library.
19465 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
19466 fi
19467
19468 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19469 fi
19470 ;;
19471 esac
19472 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19474 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000019475 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000019476 hardcode_shlibpath_var_CXX=no
19477 runpath_var='LD_RUN_PATH'
19478
19479 case $cc_basename in
19480 CC*)
19481 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19482 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19483 ;;
19484 *)
19485 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19486 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19487 ;;
19488 esac
19489 ;;
19490 sysv5* | sco3.2v5* | sco5v6*)
19491 # Note: We can NOT use -z defs as we might desire, because we do not
19492 # link with -lc, and that would cause any symbols used from libc to
19493 # always be unresolved, which means just about no library would
19494 # ever link correctly. If we're not using GNU ld we use -z text
19495 # though, which does catch some bad symbols but isn't as heavy-handed
19496 # as -z defs.
19497 # For security reasons, it is highly recommended that you always
19498 # use absolute paths for naming shared libraries, and exclude the
19499 # DT_RUNPATH tag from executables and libraries. But doing so
19500 # requires that you compile everything twice, which is a pain.
19501 # So that behaviour is only enabled if SCOABSPATH is set to a
19502 # non-empty value in the environment. Most likely only useful for
19503 # creating official distributions of packages.
19504 # This is a hack until libtool officially supports absolute path
19505 # names for shared libraries.
19506 no_undefined_flag_CXX='${wl}-z,text'
19507 allow_undefined_flag_CXX='${wl}-z,nodefs'
19508 archive_cmds_need_lc_CXX=no
19509 hardcode_shlibpath_var_CXX=no
19510 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19511 hardcode_libdir_separator_CXX=':'
19512 link_all_deplibs_CXX=yes
19513 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19514 runpath_var='LD_RUN_PATH'
19515
19516 case $cc_basename in
19517 CC*)
19518 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19519 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19520 ;;
19521 *)
19522 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19523 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19524 ;;
19525 esac
John Criswell47fdd832003-07-14 16:52:07 +000019526 ;;
19527 tandem*)
19528 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019529 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019530 # NonStop-UX NCC 3.20
19531 # FIXME: insert proper C++ library support
19532 ld_shlibs_CXX=no
19533 ;;
19534 *)
19535 # FIXME: insert proper C++ library support
19536 ld_shlibs_CXX=no
19537 ;;
19538 esac
19539 ;;
19540 vxworks*)
19541 # FIXME: insert proper C++ library support
19542 ld_shlibs_CXX=no
19543 ;;
19544 *)
19545 # FIXME: insert proper C++ library support
19546 ld_shlibs_CXX=no
19547 ;;
19548esac
Reid Spencera773bd52006-08-04 18:18:08 +000019549{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19550echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019551test "$ld_shlibs_CXX" = no && can_build_shared=no
19552
19553GCC_CXX="$GXX"
19554LD_CXX="$LD"
19555
John Criswell47fdd832003-07-14 16:52:07 +000019556
19557cat > conftest.$ac_ext <<EOF
19558class Foo
19559{
19560public:
19561 Foo (void) { a = 0; }
19562private:
19563 int a;
19564};
19565EOF
19566
19567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568 (eval $ac_compile) 2>&5
19569 ac_status=$?
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; then
19572 # Parse the compiler output and extract the necessary
19573 # objects, libraries and library flags.
19574
19575 # Sentinel used to keep track of whether or not we are before
19576 # the conftest object file.
19577 pre_test_object_deps_done=no
19578
19579 # The `*' in the case matches for architectures that use `case' in
19580 # $output_verbose_cmd can trigger glob expansion during the loop
19581 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019582 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019583
19584 for p in `eval $output_verbose_link_cmd`; do
19585 case $p in
19586
19587 -L* | -R* | -l*)
19588 # Some compilers place space between "-{L,R}" and the path.
19589 # Remove the space.
19590 if test $p = "-L" \
19591 || test $p = "-R"; then
19592 prev=$p
19593 continue
19594 else
19595 prev=
19596 fi
19597
19598 if test "$pre_test_object_deps_done" = no; then
19599 case $p in
19600 -L* | -R*)
19601 # Internal compiler library paths should come after those
19602 # provided the user. The postdeps already come after the
19603 # user supplied libs so there is no need to process them.
19604 if test -z "$compiler_lib_search_path_CXX"; then
19605 compiler_lib_search_path_CXX="${prev}${p}"
19606 else
19607 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19608 fi
19609 ;;
19610 # The "-l" case would never come before the object being
19611 # linked, so don't bother handling this case.
19612 esac
19613 else
19614 if test -z "$postdeps_CXX"; then
19615 postdeps_CXX="${prev}${p}"
19616 else
19617 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19618 fi
19619 fi
19620 ;;
19621
19622 *.$objext)
19623 # This assumes that the test object file only shows up
19624 # once in the compiler output.
19625 if test "$p" = "conftest.$objext"; then
19626 pre_test_object_deps_done=yes
19627 continue
19628 fi
19629
19630 if test "$pre_test_object_deps_done" = no; then
19631 if test -z "$predep_objects_CXX"; then
19632 predep_objects_CXX="$p"
19633 else
19634 predep_objects_CXX="$predep_objects_CXX $p"
19635 fi
19636 else
19637 if test -z "$postdep_objects_CXX"; then
19638 postdep_objects_CXX="$p"
19639 else
19640 postdep_objects_CXX="$postdep_objects_CXX $p"
19641 fi
19642 fi
19643 ;;
19644
19645 *) ;; # Ignore the rest.
19646
19647 esac
19648 done
19649
19650 # Clean up.
19651 rm -f a.out a.exe
19652else
19653 echo "libtool.m4: error: problem compiling CXX test program"
19654fi
19655
19656$rm -f confest.$objext
19657
Reid Spencera773bd52006-08-04 18:18:08 +000019658# PORTME: override above test on systems where it is broken
19659case $host_os in
19660interix3*)
19661 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19662 # hack all around it, let's just trust "g++" to DTRT.
19663 predep_objects_CXX=
19664 postdep_objects_CXX=
19665 postdeps_CXX=
19666 ;;
19667
19668solaris*)
19669 case $cc_basename in
19670 CC*)
19671 # Adding this requires a known-good setup of shared libraries for
19672 # Sun compiler versions before 5.6, else PIC objects from an old
19673 # archive will be linked into the output, leading to subtle bugs.
19674 postdeps_CXX='-lCstd -lCrun'
19675 ;;
19676 esac
19677 ;;
19678esac
19679
19680
John Criswell47fdd832003-07-14 16:52:07 +000019681case " $postdeps_CXX " in
19682*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19683esac
19684
19685lt_prog_compiler_wl_CXX=
19686lt_prog_compiler_pic_CXX=
19687lt_prog_compiler_static_CXX=
19688
Reid Spencera773bd52006-08-04 18:18:08 +000019689{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19690echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019691
19692 # C++ specific cases for pic, static, wl, etc.
19693 if test "$GXX" = yes; then
19694 lt_prog_compiler_wl_CXX='-Wl,'
19695 lt_prog_compiler_static_CXX='-static'
19696
19697 case $host_os in
19698 aix*)
19699 # All AIX code is PIC.
19700 if test "$host_cpu" = ia64; then
19701 # AIX 5 now supports IA64 processor
19702 lt_prog_compiler_static_CXX='-Bstatic'
19703 fi
19704 ;;
19705 amigaos*)
19706 # FIXME: we need at least 68020 code to build shared libraries, but
19707 # adding the `-m68020' flag to GCC prevents building anything better,
19708 # like `-m68040'.
19709 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19710 ;;
19711 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19712 # PIC is the default for these OSes.
19713 ;;
19714 mingw* | os2* | pw32*)
19715 # This hack is so that the source file can tell whether it is being
19716 # built for inclusion in a dll (and should export symbols for example).
19717 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19718 ;;
19719 darwin* | rhapsody*)
19720 # PIC is the default on this platform
19721 # Common symbols not allowed in MH_DYLIB files
19722 lt_prog_compiler_pic_CXX='-fno-common'
19723 ;;
19724 *djgpp*)
19725 # DJGPP does not support shared libraries at all
19726 lt_prog_compiler_pic_CXX=
19727 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019728 interix3*)
19729 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19730 # Instead, we relocate shared libraries at runtime.
19731 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019732 sysv4*MP*)
19733 if test -d /usr/nec; then
19734 lt_prog_compiler_pic_CXX=-Kconform_pic
19735 fi
19736 ;;
19737 hpux*)
19738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19739 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019740 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019741 hppa*64*|ia64*)
19742 ;;
19743 *)
19744 lt_prog_compiler_pic_CXX='-fPIC'
19745 ;;
19746 esac
19747 ;;
19748 *)
19749 lt_prog_compiler_pic_CXX='-fPIC'
19750 ;;
19751 esac
19752 else
19753 case $host_os in
19754 aix4* | aix5*)
19755 # All AIX code is PIC.
19756 if test "$host_cpu" = ia64; then
19757 # AIX 5 now supports IA64 processor
19758 lt_prog_compiler_static_CXX='-Bstatic'
19759 else
19760 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19761 fi
19762 ;;
19763 chorus*)
19764 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019765 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019766 # Green Hills C++ Compiler
19767 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19768 ;;
19769 esac
19770 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019771 darwin*)
19772 # PIC is the default on this platform
19773 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019774 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019775 xlc*)
19776 lt_prog_compiler_pic_CXX='-qnocommon'
19777 lt_prog_compiler_wl_CXX='-Wl,'
19778 ;;
19779 esac
19780 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019781 dgux*)
19782 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019783 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019784 lt_prog_compiler_pic_CXX='-KPIC'
19785 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019786 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019787 # Green Hills C++ Compiler
19788 lt_prog_compiler_pic_CXX='-pic'
19789 ;;
19790 *)
19791 ;;
19792 esac
19793 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019794 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019795 # FreeBSD uses GNU C++
19796 ;;
19797 hpux9* | hpux10* | hpux11*)
19798 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019799 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019800 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019801 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019802 if test "$host_cpu" != ia64; then
19803 lt_prog_compiler_pic_CXX='+Z'
19804 fi
19805 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019806 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019807 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019808 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19809 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019810 hppa*64*|ia64*)
19811 # +Z the default
19812 ;;
19813 *)
19814 lt_prog_compiler_pic_CXX='+Z'
19815 ;;
19816 esac
19817 ;;
19818 *)
19819 ;;
19820 esac
19821 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019822 interix*)
19823 # This is c89, which is MS Visual C++ (no shared libs)
19824 # Anyone wants to do a port?
19825 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019826 irix5* | irix6* | nonstopux*)
19827 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019828 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019829 lt_prog_compiler_wl_CXX='-Wl,'
19830 lt_prog_compiler_static_CXX='-non_shared'
19831 # CC pic flag -KPIC is the default.
19832 ;;
19833 *)
19834 ;;
19835 esac
19836 ;;
19837 linux*)
19838 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019839 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019840 # KAI C++ Compiler
19841 lt_prog_compiler_wl_CXX='--backend -Wl,'
19842 lt_prog_compiler_pic_CXX='-fPIC'
19843 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019844 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019845 # Intel C++
19846 lt_prog_compiler_wl_CXX='-Wl,'
19847 lt_prog_compiler_pic_CXX='-KPIC'
19848 lt_prog_compiler_static_CXX='-static'
19849 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019850 pgCC*)
19851 # Portland Group C++ compiler.
19852 lt_prog_compiler_wl_CXX='-Wl,'
19853 lt_prog_compiler_pic_CXX='-fpic'
19854 lt_prog_compiler_static_CXX='-Bstatic'
19855 ;;
19856 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019857 # Compaq C++
19858 # Make sure the PIC flag is empty. It appears that all Alpha
19859 # Linux and Compaq Tru64 Unix objects are PIC.
19860 lt_prog_compiler_pic_CXX=
19861 lt_prog_compiler_static_CXX='-non_shared'
19862 ;;
19863 *)
19864 ;;
19865 esac
19866 ;;
19867 lynxos*)
19868 ;;
19869 m88k*)
19870 ;;
19871 mvs*)
19872 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019873 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019874 lt_prog_compiler_pic_CXX='-W c,exportall'
19875 ;;
19876 *)
19877 ;;
19878 esac
19879 ;;
19880 netbsd*)
19881 ;;
19882 osf3* | osf4* | osf5*)
19883 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019884 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019885 lt_prog_compiler_wl_CXX='--backend -Wl,'
19886 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019887 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019888 # Rational C++ 2.4.1
19889 lt_prog_compiler_pic_CXX='-pic'
19890 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019891 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019892 # Digital/Compaq C++
19893 lt_prog_compiler_wl_CXX='-Wl,'
19894 # Make sure the PIC flag is empty. It appears that all Alpha
19895 # Linux and Compaq Tru64 Unix objects are PIC.
19896 lt_prog_compiler_pic_CXX=
19897 lt_prog_compiler_static_CXX='-non_shared'
19898 ;;
19899 *)
19900 ;;
19901 esac
19902 ;;
19903 psos*)
19904 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019905 solaris*)
19906 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019907 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019908 # Sun C++ 4.2, 5.x and Centerline C++
19909 lt_prog_compiler_pic_CXX='-KPIC'
19910 lt_prog_compiler_static_CXX='-Bstatic'
19911 lt_prog_compiler_wl_CXX='-Qoption ld '
19912 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019913 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019914 # Green Hills C++ Compiler
19915 lt_prog_compiler_pic_CXX='-PIC'
19916 ;;
19917 *)
19918 ;;
19919 esac
19920 ;;
19921 sunos4*)
19922 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019923 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019924 # Sun C++ 4.x
19925 lt_prog_compiler_pic_CXX='-pic'
19926 lt_prog_compiler_static_CXX='-Bstatic'
19927 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019928 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019929 # Lucid
19930 lt_prog_compiler_pic_CXX='-pic'
19931 ;;
19932 *)
19933 ;;
19934 esac
19935 ;;
19936 tandem*)
19937 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019938 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019939 # NonStop-UX NCC 3.20
19940 lt_prog_compiler_pic_CXX='-KPIC'
19941 ;;
19942 *)
19943 ;;
19944 esac
19945 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019946 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19947 case $cc_basename in
19948 CC*)
19949 lt_prog_compiler_wl_CXX='-Wl,'
19950 lt_prog_compiler_pic_CXX='-KPIC'
19951 lt_prog_compiler_static_CXX='-Bstatic'
19952 ;;
19953 esac
John Criswell47fdd832003-07-14 16:52:07 +000019954 ;;
19955 vxworks*)
19956 ;;
19957 *)
19958 lt_prog_compiler_can_build_shared_CXX=no
19959 ;;
19960 esac
19961 fi
19962
Reid Spencera773bd52006-08-04 18:18:08 +000019963{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19964echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019965
19966#
19967# Check to make sure the PIC flag actually works.
19968#
19969if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970
Reid Spencera773bd52006-08-04 18:18:08 +000019971{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19972echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019973if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
19976 lt_prog_compiler_pic_works_CXX=no
19977 ac_outfile=conftest.$ac_objext
19978 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19979 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19980 # Insert the option either (1) after the last *FLAGS variable, or
19981 # (2) before a word containing "conftest.", or (3) at the end.
19982 # Note that $ac_compile itself does not contain backslashes and begins
19983 # with a dollar sign (not a hyphen), so the echo should work correctly.
19984 # The option is referenced via a variable to avoid confusing sed.
19985 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019986 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019987 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19988 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000019989 (eval echo "\"\$as_me:19989: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019990 (eval "$lt_compile" 2>conftest.err)
19991 ac_status=$?
19992 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000019993 echo "$as_me:19993: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019994 if (exit $ac_status) && test -s "$ac_outfile"; then
19995 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019996 # So say no if there are warnings other than the usual output.
19997 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19998 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19999 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020000 lt_prog_compiler_pic_works_CXX=yes
20001 fi
20002 fi
20003 $rm conftest*
20004
20005fi
Reid Spencera773bd52006-08-04 18:18:08 +000020006{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
20007echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020008
20009if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
20010 case $lt_prog_compiler_pic_CXX in
20011 "" | " "*) ;;
20012 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20013 esac
20014else
20015 lt_prog_compiler_pic_CXX=
20016 lt_prog_compiler_can_build_shared_CXX=no
20017fi
20018
20019fi
Reid Spencera773bd52006-08-04 18:18:08 +000020020case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020021 # For platforms which do not support PIC, -DPIC is meaningless:
20022 *djgpp*)
20023 lt_prog_compiler_pic_CXX=
20024 ;;
20025 *)
20026 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20027 ;;
20028esac
20029
Reid Spencera773bd52006-08-04 18:18:08 +000020030#
20031# Check to make sure the static flag actually works.
20032#
20033wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20034{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20035echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
20036if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
20037 echo $ECHO_N "(cached) $ECHO_C" >&6
20038else
20039 lt_prog_compiler_static_works_CXX=no
20040 save_LDFLAGS="$LDFLAGS"
20041 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20042 printf "$lt_simple_link_test_code" > conftest.$ac_ext
20043 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20044 # The linker can only warn and ignore the option if not recognized
20045 # So say no if there are warnings
20046 if test -s conftest.err; then
20047 # Append any errors to the config.log.
20048 cat conftest.err 1>&5
20049 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20051 if diff conftest.exp conftest.er2 >/dev/null; then
20052 lt_prog_compiler_static_works_CXX=yes
20053 fi
20054 else
20055 lt_prog_compiler_static_works_CXX=yes
20056 fi
20057 fi
20058 $rm conftest*
20059 LDFLAGS="$save_LDFLAGS"
20060
20061fi
20062{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
20063echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
20064
20065if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
20066 :
20067else
20068 lt_prog_compiler_static_CXX=
20069fi
20070
20071
20072{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20073echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020074if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
20076else
20077 lt_cv_prog_compiler_c_o_CXX=no
20078 $rm -r conftest 2>/dev/null
20079 mkdir conftest
20080 cd conftest
20081 mkdir out
20082 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20083
John Criswell47fdd832003-07-14 16:52:07 +000020084 lt_compiler_flag="-o out/conftest2.$ac_objext"
20085 # Insert the option either (1) after the last *FLAGS variable, or
20086 # (2) before a word containing "conftest.", or (3) at the end.
20087 # Note that $ac_compile itself does not contain backslashes and begins
20088 # with a dollar sign (not a hyphen), so the echo should work correctly.
20089 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000020090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000020091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20092 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000020093 (eval echo "\"\$as_me:20093: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020094 (eval "$lt_compile" 2>out/conftest.err)
20095 ac_status=$?
20096 cat out/conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000020097 echo "$as_me:20097: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020098 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20099 then
20100 # The compiler can only warn and ignore the option if not recognized
20101 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000020102 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20103 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20104 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000020105 lt_cv_prog_compiler_c_o_CXX=yes
20106 fi
20107 fi
Reid Spencera773bd52006-08-04 18:18:08 +000020108 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020109 $rm conftest*
20110 # SGI C++ compiler will create directory out/ii_files/ for
20111 # template instantiation
20112 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
20113 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000020114 cd ..
20115 rmdir conftest
20116 $rm conftest*
20117
20118fi
Reid Spencera773bd52006-08-04 18:18:08 +000020119{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20120echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020121
20122
20123hard_links="nottested"
20124if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20125 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000020126 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20127echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020128 hard_links=yes
20129 $rm conftest*
20130 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20131 touch conftest.a
20132 ln conftest.a conftest.b 2>&5 || hard_links=no
20133 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000020134 { echo "$as_me:$LINENO: result: $hard_links" >&5
20135echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020136 if test "$hard_links" = no; then
20137 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20138echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20139 need_locks=warn
20140 fi
20141else
20142 need_locks=no
20143fi
20144
Reid Spencera773bd52006-08-04 18:18:08 +000020145{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20146echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020147
20148 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20149 case $host_os in
20150 aix4* | aix5*)
20151 # If we're using GNU nm, then we don't want the "-C" option.
20152 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20153 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
20154 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20155 else
20156 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
20157 fi
20158 ;;
20159 pw32*)
20160 export_symbols_cmds_CXX="$ltdll_cmds"
20161 ;;
20162 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000020163 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000020164 ;;
20165 *)
20166 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20167 ;;
20168 esac
20169
Reid Spencera773bd52006-08-04 18:18:08 +000020170{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20171echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020172test "$ld_shlibs_CXX" = no && can_build_shared=no
20173
John Criswell47fdd832003-07-14 16:52:07 +000020174#
20175# Do we need to explicitly link libc?
20176#
20177case "x$archive_cmds_need_lc_CXX" in
20178x|xyes)
20179 # Assume -lc should be added
20180 archive_cmds_need_lc_CXX=yes
20181
20182 if test "$enable_shared" = yes && test "$GCC" = yes; then
20183 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020184 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020185 # FIXME: we may have to deal with multi-command sequences.
20186 ;;
20187 '$CC '*)
20188 # Test whether the compiler implicitly links with -lc since on some
20189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20190 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000020191 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20192echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020193 $rm conftest*
20194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20195
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>&5
20198 ac_status=$?
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } 2>conftest.err; then
20201 soname=conftest
20202 lib=conftest
20203 libobjs=conftest.$ac_objext
20204 deplibs=
20205 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000020206 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000020207 compiler_flags=-v
20208 linker_flags=-v
20209 verstring=
20210 output_objdir=.
20211 libname=conftest
20212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20213 allow_undefined_flag_CXX=
20214 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20215 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20216 ac_status=$?
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); }
20219 then
20220 archive_cmds_need_lc_CXX=no
20221 else
20222 archive_cmds_need_lc_CXX=yes
20223 fi
20224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20225 else
20226 cat conftest.err 1>&5
20227 fi
20228 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000020229 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20230echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020231 ;;
20232 esac
20233 fi
20234 ;;
20235esac
20236
Reid Spencera773bd52006-08-04 18:18:08 +000020237{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20238echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020239library_names_spec=
20240libname_spec='lib$name'
20241soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020242shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020243postinstall_cmds=
20244postuninstall_cmds=
20245finish_cmds=
20246finish_eval=
20247shlibpath_var=
20248shlibpath_overrides_runpath=unknown
20249version_type=none
20250dynamic_linker="$host_os ld.so"
20251sys_lib_dlsearch_path_spec="/lib /usr/lib"
20252if test "$GCC" = yes; then
20253 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20254 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20255 # if the path contains ";" then we assume it to be the separator
20256 # otherwise default to the standard path separator (i.e. ":") - it is
20257 # assumed that no part of a normal pathname contains ";" but that should
20258 # okay in the real world where ";" in dirpaths is itself problematic.
20259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20260 else
20261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20262 fi
20263else
20264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20265fi
20266need_lib_prefix=unknown
20267hardcode_into_libs=no
20268
20269# when you set need_version to no, make sure it does not cause -set_version
20270# flags to be left without arguments
20271need_version=unknown
20272
20273case $host_os in
20274aix3*)
20275 version_type=linux
20276 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20277 shlibpath_var=LIBPATH
20278
20279 # AIX 3 has no versioning support, so we append a major version to the name.
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 ;;
20282
20283aix4* | aix5*)
20284 version_type=linux
20285 need_lib_prefix=no
20286 need_version=no
20287 hardcode_into_libs=yes
20288 if test "$host_cpu" = ia64; then
20289 # AIX 5 supports IA64
20290 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 else
20293 # With GCC up to 2.95.x, collect2 would create an import file
20294 # for dependence libraries. The import file would start with
20295 # the line `#! .'. This would cause the generated library to
20296 # depend on `.', always an invalid library. This was fixed in
20297 # development snapshots of GCC prior to 3.0.
20298 case $host_os in
20299 aix4 | aix4.[01] | aix4.[01].*)
20300 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20301 echo ' yes '
20302 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20303 :
20304 else
20305 can_build_shared=no
20306 fi
20307 ;;
20308 esac
20309 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20310 # soname into executable. Probably we can add versioning support to
20311 # collect2, so additional links can be useful in future.
20312 if test "$aix_use_runtimelinking" = yes; then
20313 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20314 # instead of lib<name>.a to let people know that these are not
20315 # typical AIX shared libraries.
20316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20317 else
20318 # We preserve .a as extension for shared libraries through AIX4.2
20319 # and later when we are not doing run time linking.
20320 library_names_spec='${libname}${release}.a $libname.a'
20321 soname_spec='${libname}${release}${shared_ext}$major'
20322 fi
20323 shlibpath_var=LIBPATH
20324 fi
20325 ;;
20326
20327amigaos*)
20328 library_names_spec='$libname.ixlibrary $libname.a'
20329 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020330 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000020331 ;;
20332
20333beos*)
20334 library_names_spec='${libname}${shared_ext}'
20335 dynamic_linker="$host_os ld.so"
20336 shlibpath_var=LIBRARY_PATH
20337 ;;
20338
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020340 version_type=linux
20341 need_version=no
20342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20343 soname_spec='${libname}${release}${shared_ext}$major'
20344 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20347 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20348 # the default ld.so.conf also contains /usr/contrib/lib and
20349 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20350 # libtool to hard-code these into programs
20351 ;;
20352
20353cygwin* | mingw* | pw32*)
20354 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020355 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020356 need_version=no
20357 need_lib_prefix=no
20358
20359 case $GCC,$host_os in
20360 yes,cygwin* | yes,mingw* | yes,pw32*)
20361 library_names_spec='$libname.dll.a'
20362 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020363 postinstall_cmds='base_file=`basename \${file}`~
20364 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20365 dldir=$destdir/`dirname \$dlpath`~
20366 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000020367 $install_prog $dir/$dlname \$dldir/$dlname~
20368 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020369 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20370 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020371 $rm \$dlpath'
20372 shlibpath_overrides_runpath=yes
20373
20374 case $host_os in
20375 cygwin*)
20376 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20377 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020378 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020379 ;;
20380 mingw*)
20381 # MinGW DLLs use traditional 'lib' prefix
20382 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20384 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20385 # It is most probably a Windows format PATH printed by
20386 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20387 # path with ; separators, and with drive letters. We can handle the
20388 # drive letters (cygwin fileutils understands them), so leave them,
20389 # especially as we might pass files found there to a mingw objdump,
20390 # which wouldn't understand a cygwinified path. Ahh.
20391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20392 else
20393 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20394 fi
20395 ;;
20396 pw32*)
20397 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000020398 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020399 ;;
20400 esac
20401 ;;
20402
20403 *)
20404 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20405 ;;
20406 esac
20407 dynamic_linker='Win32 ld.exe'
20408 # FIXME: first we should search . and the directory the executable is in
20409 shlibpath_var=PATH
20410 ;;
20411
20412darwin* | rhapsody*)
20413 dynamic_linker="$host_os dyld"
20414 version_type=darwin
20415 need_lib_prefix=no
20416 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020417 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020418 soname_spec='${libname}${release}${major}$shared_ext'
20419 shlibpath_overrides_runpath=yes
20420 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000020421 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000020422 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020423 if test "$GCC" = yes; then
20424 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20425 else
20426 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020427 fi
20428 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20429 ;;
20430
20431dgux*)
20432 version_type=linux
20433 need_lib_prefix=no
20434 need_version=no
20435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 shlibpath_var=LD_LIBRARY_PATH
20438 ;;
20439
20440freebsd1*)
20441 dynamic_linker=no
20442 ;;
20443
Reid Spencer2706f8c2004-09-19 23:53:36 +000020444kfreebsd*-gnu)
20445 version_type=linux
20446 need_lib_prefix=no
20447 need_version=no
20448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20449 soname_spec='${libname}${release}${shared_ext}$major'
20450 shlibpath_var=LD_LIBRARY_PATH
20451 shlibpath_overrides_runpath=no
20452 hardcode_into_libs=yes
20453 dynamic_linker='GNU ld.so'
20454 ;;
20455
Reid Spencera773bd52006-08-04 18:18:08 +000020456freebsd* | dragonfly*)
20457 # DragonFly does not have aout. When/if they implement a new
20458 # versioning mechanism, adjust this.
20459 if test -x /usr/bin/objformat; then
20460 objformat=`/usr/bin/objformat`
20461 else
20462 case $host_os in
20463 freebsd[123]*) objformat=aout ;;
20464 *) objformat=elf ;;
20465 esac
20466 fi
John Criswell47fdd832003-07-14 16:52:07 +000020467 version_type=freebsd-$objformat
20468 case $version_type in
20469 freebsd-elf*)
20470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20471 need_version=no
20472 need_lib_prefix=no
20473 ;;
20474 freebsd-*)
20475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20476 need_version=yes
20477 ;;
20478 esac
20479 shlibpath_var=LD_LIBRARY_PATH
20480 case $host_os in
20481 freebsd2*)
20482 shlibpath_overrides_runpath=yes
20483 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020484 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000020485 shlibpath_overrides_runpath=yes
20486 hardcode_into_libs=yes
20487 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020488 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20489 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000020490 shlibpath_overrides_runpath=no
20491 hardcode_into_libs=yes
20492 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000020493 freebsd*) # from 4.6 on
20494 shlibpath_overrides_runpath=yes
20495 hardcode_into_libs=yes
20496 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020497 esac
20498 ;;
20499
20500gnu*)
20501 version_type=linux
20502 need_lib_prefix=no
20503 need_version=no
20504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20505 soname_spec='${libname}${release}${shared_ext}$major'
20506 shlibpath_var=LD_LIBRARY_PATH
20507 hardcode_into_libs=yes
20508 ;;
20509
20510hpux9* | hpux10* | hpux11*)
20511 # Give a soname corresponding to the major version so that dld.sl refuses to
20512 # link against other versions.
20513 version_type=sunos
20514 need_lib_prefix=no
20515 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020516 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020517 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020518 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020519 hardcode_into_libs=yes
20520 dynamic_linker="$host_os dld.so"
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20524 soname_spec='${libname}${release}${shared_ext}$major'
20525 if test "X$HPUX_IA64_MODE" = X32; then
20526 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20527 else
20528 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20529 fi
20530 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20531 ;;
20532 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020533 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020534 hardcode_into_libs=yes
20535 dynamic_linker="$host_os dld.sl"
20536 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20537 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20539 soname_spec='${libname}${release}${shared_ext}$major'
20540 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20542 ;;
20543 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020544 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020545 dynamic_linker="$host_os dld.sl"
20546 shlibpath_var=SHLIB_PATH
20547 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20549 soname_spec='${libname}${release}${shared_ext}$major'
20550 ;;
20551 esac
20552 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20553 postinstall_cmds='chmod 555 $lib'
20554 ;;
20555
Reid Spencera773bd52006-08-04 18:18:08 +000020556interix3*)
20557 version_type=linux
20558 need_lib_prefix=no
20559 need_version=no
20560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20561 soname_spec='${libname}${release}${shared_ext}$major'
20562 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20563 shlibpath_var=LD_LIBRARY_PATH
20564 shlibpath_overrides_runpath=no
20565 hardcode_into_libs=yes
20566 ;;
20567
John Criswell47fdd832003-07-14 16:52:07 +000020568irix5* | irix6* | nonstopux*)
20569 case $host_os in
20570 nonstopux*) version_type=nonstopux ;;
20571 *)
20572 if test "$lt_cv_prog_gnu_ld" = yes; then
20573 version_type=linux
20574 else
20575 version_type=irix
20576 fi ;;
20577 esac
20578 need_lib_prefix=no
20579 need_version=no
20580 soname_spec='${libname}${release}${shared_ext}$major'
20581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20582 case $host_os in
20583 irix5* | nonstopux*)
20584 libsuff= shlibsuff=
20585 ;;
20586 *)
20587 case $LD in # libtool.m4 will add one of these switches to LD
20588 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20589 libsuff= shlibsuff= libmagic=32-bit;;
20590 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20591 libsuff=32 shlibsuff=N32 libmagic=N32;;
20592 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20593 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20594 *) libsuff= shlibsuff= libmagic=never-match;;
20595 esac
20596 ;;
20597 esac
20598 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20599 shlibpath_overrides_runpath=no
20600 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20601 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20602 hardcode_into_libs=yes
20603 ;;
20604
20605# No shared lib support for Linux oldld, aout, or coff.
20606linux*oldld* | linux*aout* | linux*coff*)
20607 dynamic_linker=no
20608 ;;
20609
20610# This must be Linux ELF.
20611linux*)
20612 version_type=linux
20613 need_lib_prefix=no
20614 need_version=no
20615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616 soname_spec='${libname}${release}${shared_ext}$major'
20617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20618 shlibpath_var=LD_LIBRARY_PATH
20619 shlibpath_overrides_runpath=no
20620 # This implies no fast_install, which is unacceptable.
20621 # Some rework will be needed to allow for fast_install
20622 # before this can be enabled.
20623 hardcode_into_libs=yes
20624
Reid Spencer2706f8c2004-09-19 23:53:36 +000020625 # Append ld.so.conf contents to the search path
20626 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020627 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000020628 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20629 fi
20630
John Criswell47fdd832003-07-14 16:52:07 +000020631 # We used to test for /lib/ld.so.1 and disable shared libraries on
20632 # powerpc, because MkLinux only supported shared libraries with the
20633 # GNU dynamic linker. Since this was broken with cross compilers,
20634 # most powerpc-linux boxes support dynamic linking these days and
20635 # people can always --disable-shared, the test was removed, and we
20636 # assume the GNU/Linux dynamic linker is in use.
20637 dynamic_linker='GNU/Linux ld.so'
20638 ;;
20639
Reid Spencer2706f8c2004-09-19 23:53:36 +000020640knetbsd*-gnu)
20641 version_type=linux
20642 need_lib_prefix=no
20643 need_version=no
20644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20645 soname_spec='${libname}${release}${shared_ext}$major'
20646 shlibpath_var=LD_LIBRARY_PATH
20647 shlibpath_overrides_runpath=no
20648 hardcode_into_libs=yes
20649 dynamic_linker='GNU ld.so'
20650 ;;
20651
John Criswell47fdd832003-07-14 16:52:07 +000020652netbsd*)
20653 version_type=sunos
20654 need_lib_prefix=no
20655 need_version=no
20656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20659 dynamic_linker='NetBSD (a.out) ld.so'
20660 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020662 soname_spec='${libname}${release}${shared_ext}$major'
20663 dynamic_linker='NetBSD ld.elf_so'
20664 fi
20665 shlibpath_var=LD_LIBRARY_PATH
20666 shlibpath_overrides_runpath=yes
20667 hardcode_into_libs=yes
20668 ;;
20669
20670newsos6)
20671 version_type=linux
20672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20673 shlibpath_var=LD_LIBRARY_PATH
20674 shlibpath_overrides_runpath=yes
20675 ;;
20676
Reid Spencer2706f8c2004-09-19 23:53:36 +000020677nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020678 version_type=linux
20679 need_lib_prefix=no
20680 need_version=no
20681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20682 soname_spec='${libname}${release}${shared_ext}$major'
20683 shlibpath_var=LD_LIBRARY_PATH
20684 shlibpath_overrides_runpath=yes
20685 ;;
20686
20687openbsd*)
20688 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020689 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020690 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020691 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20692 case $host_os in
20693 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20694 *) need_version=no ;;
20695 esac
John Criswell47fdd832003-07-14 16:52:07 +000020696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20697 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20698 shlibpath_var=LD_LIBRARY_PATH
20699 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20700 case $host_os in
20701 openbsd2.[89] | openbsd2.[89].*)
20702 shlibpath_overrides_runpath=no
20703 ;;
20704 *)
20705 shlibpath_overrides_runpath=yes
20706 ;;
20707 esac
20708 else
20709 shlibpath_overrides_runpath=yes
20710 fi
20711 ;;
20712
20713os2*)
20714 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020715 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020716 need_lib_prefix=no
20717 library_names_spec='$libname${shared_ext} $libname.a'
20718 dynamic_linker='OS/2 ld.exe'
20719 shlibpath_var=LIBPATH
20720 ;;
20721
20722osf3* | osf4* | osf5*)
20723 version_type=osf
20724 need_lib_prefix=no
20725 need_version=no
20726 soname_spec='${libname}${release}${shared_ext}$major'
20727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20728 shlibpath_var=LD_LIBRARY_PATH
20729 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20730 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20731 ;;
20732
John Criswell47fdd832003-07-14 16:52:07 +000020733solaris*)
20734 version_type=linux
20735 need_lib_prefix=no
20736 need_version=no
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20738 soname_spec='${libname}${release}${shared_ext}$major'
20739 shlibpath_var=LD_LIBRARY_PATH
20740 shlibpath_overrides_runpath=yes
20741 hardcode_into_libs=yes
20742 # ldd complains unless libraries are executable
20743 postinstall_cmds='chmod +x $lib'
20744 ;;
20745
20746sunos4*)
20747 version_type=sunos
20748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20750 shlibpath_var=LD_LIBRARY_PATH
20751 shlibpath_overrides_runpath=yes
20752 if test "$with_gnu_ld" = yes; then
20753 need_lib_prefix=no
20754 fi
20755 need_version=yes
20756 ;;
20757
Reid Spencera773bd52006-08-04 18:18:08 +000020758sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020759 version_type=linux
20760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20761 soname_spec='${libname}${release}${shared_ext}$major'
20762 shlibpath_var=LD_LIBRARY_PATH
20763 case $host_vendor in
20764 sni)
20765 shlibpath_overrides_runpath=no
20766 need_lib_prefix=no
20767 export_dynamic_flag_spec='${wl}-Blargedynsym'
20768 runpath_var=LD_RUN_PATH
20769 ;;
20770 siemens)
20771 need_lib_prefix=no
20772 ;;
20773 motorola)
20774 need_lib_prefix=no
20775 need_version=no
20776 shlibpath_overrides_runpath=no
20777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20778 ;;
20779 esac
20780 ;;
20781
20782sysv4*MP*)
20783 if test -d /usr/nec ;then
20784 version_type=linux
20785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20786 soname_spec='$libname${shared_ext}.$major'
20787 shlibpath_var=LD_LIBRARY_PATH
20788 fi
20789 ;;
20790
Reid Spencera773bd52006-08-04 18:18:08 +000020791sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20792 version_type=freebsd-elf
20793 need_lib_prefix=no
20794 need_version=no
20795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20796 soname_spec='${libname}${release}${shared_ext}$major'
20797 shlibpath_var=LD_LIBRARY_PATH
20798 hardcode_into_libs=yes
20799 if test "$with_gnu_ld" = yes; then
20800 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20801 shlibpath_overrides_runpath=no
20802 else
20803 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20804 shlibpath_overrides_runpath=yes
20805 case $host_os in
20806 sco3.2v5*)
20807 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20808 ;;
20809 esac
20810 fi
20811 sys_lib_dlsearch_path_spec='/usr/lib'
20812 ;;
20813
John Criswell47fdd832003-07-14 16:52:07 +000020814uts4*)
20815 version_type=linux
20816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20817 soname_spec='${libname}${release}${shared_ext}$major'
20818 shlibpath_var=LD_LIBRARY_PATH
20819 ;;
20820
20821*)
20822 dynamic_linker=no
20823 ;;
20824esac
Reid Spencera773bd52006-08-04 18:18:08 +000020825{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20826echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020827test "$dynamic_linker" = no && can_build_shared=no
20828
Reid Spencera773bd52006-08-04 18:18:08 +000020829variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20830if test "$GCC" = yes; then
20831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20832fi
20833
20834{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20835echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020836hardcode_action_CXX=
20837if test -n "$hardcode_libdir_flag_spec_CXX" || \
20838 test -n "$runpath_var_CXX" || \
20839 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20840
20841 # We can hardcode non-existant directories.
20842 if test "$hardcode_direct_CXX" != no &&
20843 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20844 # have to relink, otherwise we might link with an installed library
20845 # when we should be linking with a yet-to-be-installed one
20846 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20847 test "$hardcode_minus_L_CXX" != no; then
20848 # Linking always hardcodes the temporary library directory.
20849 hardcode_action_CXX=relink
20850 else
20851 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20852 hardcode_action_CXX=immediate
20853 fi
20854else
20855 # We cannot hardcode anything, or else we can only hardcode existing
20856 # directories.
20857 hardcode_action_CXX=unsupported
20858fi
Reid Spencera773bd52006-08-04 18:18:08 +000020859{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20860echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020861
20862if test "$hardcode_action_CXX" = relink; then
20863 # Fast installation is not supported
20864 enable_fast_install=no
20865elif test "$shlibpath_overrides_runpath" = yes ||
20866 test "$enable_shared" = no; then
20867 # Fast installation is not necessary
20868 enable_fast_install=needless
20869fi
20870
John Criswell47fdd832003-07-14 16:52:07 +000020871
20872# The else clause should only fire when bootstrapping the
20873# libtool distribution, otherwise you forgot to ship ltmain.sh
20874# with your package, and you will get complaints that there are
20875# no rules to generate ltmain.sh.
20876if test -f "$ltmain"; then
20877 # See if we are running on zsh, and set the options which allow our commands through
20878 # without removal of \ escapes.
20879 if test -n "${ZSH_VERSION+set}" ; then
20880 setopt NO_GLOB_SUBST
20881 fi
20882 # Now quote all the things that may contain metacharacters while being
20883 # careful not to overquote the AC_SUBSTed values. We take copies of the
20884 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020885 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020886 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020887 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20888 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20889 deplibs_check_method reload_flag reload_cmds need_locks \
20890 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20891 lt_cv_sys_global_symbol_to_c_name_address \
20892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20893 old_postinstall_cmds old_postuninstall_cmds \
20894 compiler_CXX \
20895 CC_CXX \
20896 LD_CXX \
20897 lt_prog_compiler_wl_CXX \
20898 lt_prog_compiler_pic_CXX \
20899 lt_prog_compiler_static_CXX \
20900 lt_prog_compiler_no_builtin_flag_CXX \
20901 export_dynamic_flag_spec_CXX \
20902 thread_safe_flag_spec_CXX \
20903 whole_archive_flag_spec_CXX \
20904 enable_shared_with_static_runtimes_CXX \
20905 old_archive_cmds_CXX \
20906 old_archive_from_new_cmds_CXX \
20907 predep_objects_CXX \
20908 postdep_objects_CXX \
20909 predeps_CXX \
20910 postdeps_CXX \
20911 compiler_lib_search_path_CXX \
20912 archive_cmds_CXX \
20913 archive_expsym_cmds_CXX \
20914 postinstall_cmds_CXX \
20915 postuninstall_cmds_CXX \
20916 old_archive_from_expsyms_cmds_CXX \
20917 allow_undefined_flag_CXX \
20918 no_undefined_flag_CXX \
20919 export_symbols_cmds_CXX \
20920 hardcode_libdir_flag_spec_CXX \
20921 hardcode_libdir_flag_spec_ld_CXX \
20922 hardcode_libdir_separator_CXX \
20923 hardcode_automatic_CXX \
20924 module_cmds_CXX \
20925 module_expsym_cmds_CXX \
20926 lt_cv_prog_compiler_c_o_CXX \
20927 exclude_expsyms_CXX \
20928 include_expsyms_CXX; do
20929
20930 case $var in
20931 old_archive_cmds_CXX | \
20932 old_archive_from_new_cmds_CXX | \
20933 archive_cmds_CXX | \
20934 archive_expsym_cmds_CXX | \
20935 module_cmds_CXX | \
20936 module_expsym_cmds_CXX | \
20937 old_archive_from_expsyms_cmds_CXX | \
20938 export_symbols_cmds_CXX | \
20939 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20940 postinstall_cmds | postuninstall_cmds | \
20941 old_postinstall_cmds | old_postuninstall_cmds | \
20942 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20943 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020944 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000020945 ;;
20946 *)
20947 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20948 ;;
20949 esac
20950 done
20951
20952 case $lt_echo in
20953 *'\$0 --fallback-echo"')
20954 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20955 ;;
20956 esac
20957
20958cfgfile="$ofile"
20959
20960 cat <<__EOF__ >> "$cfgfile"
20961# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20962
20963# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20964
20965# Shell to use when invoking shell scripts.
20966SHELL=$lt_SHELL
20967
20968# Whether or not to build shared libraries.
20969build_libtool_libs=$enable_shared
20970
20971# Whether or not to build static libraries.
20972build_old_libs=$enable_static
20973
20974# Whether or not to add -lc for building shared libraries.
20975build_libtool_need_lc=$archive_cmds_need_lc_CXX
20976
20977# Whether or not to disallow shared libs when runtime libs are static
20978allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20979
20980# Whether or not to optimize for fast installation.
20981fast_install=$enable_fast_install
20982
20983# The host system.
20984host_alias=$host_alias
20985host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020986host_os=$host_os
20987
20988# The build system.
20989build_alias=$build_alias
20990build=$build
20991build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020992
20993# An echo program that does not interpret backslashes.
20994echo=$lt_echo
20995
20996# The archiver.
20997AR=$lt_AR
20998AR_FLAGS=$lt_AR_FLAGS
20999
21000# A C compiler.
21001LTCC=$lt_LTCC
21002
Reid Spencera773bd52006-08-04 18:18:08 +000021003# LTCC compiler flags.
21004LTCFLAGS=$lt_LTCFLAGS
21005
John Criswell47fdd832003-07-14 16:52:07 +000021006# A language-specific compiler.
21007CC=$lt_compiler_CXX
21008
21009# Is the compiler the GNU C compiler?
21010with_gcc=$GCC_CXX
21011
21012# An ERE matcher.
21013EGREP=$lt_EGREP
21014
21015# The linker used to build libraries.
21016LD=$lt_LD_CXX
21017
21018# Whether we need hard or soft links.
21019LN_S=$lt_LN_S
21020
21021# A BSD-compatible nm program.
21022NM=$lt_NM
21023
21024# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000021026
21027# Used to examine libraries when file_magic_cmd begins "file"
21028MAGIC_CMD=$MAGIC_CMD
21029
21030# Used on cygwin: DLL creation program.
21031DLLTOOL="$DLLTOOL"
21032
21033# Used on cygwin: object dumper.
21034OBJDUMP="$OBJDUMP"
21035
21036# Used on cygwin: assembler.
21037AS="$AS"
21038
21039# The name of the directory that contains temporary libtool files.
21040objdir=$objdir
21041
21042# How to create reloadable object files.
21043reload_flag=$lt_reload_flag
21044reload_cmds=$lt_reload_cmds
21045
21046# How to pass a linker flag through the compiler.
21047wl=$lt_lt_prog_compiler_wl_CXX
21048
21049# Object file suffix (normally "o").
21050objext="$ac_objext"
21051
21052# Old archive suffix (normally "a").
21053libext="$libext"
21054
21055# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000021056shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000021057
21058# Executable file suffix (normally "").
21059exeext="$exeext"
21060
21061# Additional compiler flags for building library objects.
21062pic_flag=$lt_lt_prog_compiler_pic_CXX
21063pic_mode=$pic_mode
21064
21065# What is the maximum length of a command?
21066max_cmd_len=$lt_cv_sys_max_cmd_len
21067
21068# Does compiler simultaneously support -c and -o options?
21069compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21070
Reid Spencera773bd52006-08-04 18:18:08 +000021071# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000021072need_locks=$lt_need_locks
21073
21074# Do we need the lib prefix for modules?
21075need_lib_prefix=$need_lib_prefix
21076
21077# Do we need a version for libraries?
21078need_version=$need_version
21079
21080# Whether dlopen is supported.
21081dlopen_support=$enable_dlopen
21082
21083# Whether dlopen of programs is supported.
21084dlopen_self=$enable_dlopen_self
21085
21086# Whether dlopen of statically linked programs is supported.
21087dlopen_self_static=$enable_dlopen_self_static
21088
21089# Compiler flag to prevent dynamic linking.
21090link_static_flag=$lt_lt_prog_compiler_static_CXX
21091
21092# Compiler flag to turn off builtin functions.
21093no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21094
21095# Compiler flag to allow reflexive dlopens.
21096export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21097
21098# Compiler flag to generate shared objects directly from archives.
21099whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21100
21101# Compiler flag to generate thread-safe objects.
21102thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
21103
21104# Library versioning type.
21105version_type=$version_type
21106
21107# Format of library name prefix.
21108libname_spec=$lt_libname_spec
21109
21110# List of archive names. First name is the real one, the rest are links.
21111# The last name is the one that the linker finds with -lNAME.
21112library_names_spec=$lt_library_names_spec
21113
21114# The coded name of the library, if different from the real name.
21115soname_spec=$lt_soname_spec
21116
21117# Commands used to build and install an old-style archive.
21118RANLIB=$lt_RANLIB
21119old_archive_cmds=$lt_old_archive_cmds_CXX
21120old_postinstall_cmds=$lt_old_postinstall_cmds
21121old_postuninstall_cmds=$lt_old_postuninstall_cmds
21122
21123# Create an old-style archive from a shared archive.
21124old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21125
21126# Create a temporary old-style archive to link instead of a shared archive.
21127old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21128
21129# Commands used to build and install a shared archive.
21130archive_cmds=$lt_archive_cmds_CXX
21131archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21132postinstall_cmds=$lt_postinstall_cmds
21133postuninstall_cmds=$lt_postuninstall_cmds
21134
21135# Commands used to build a loadable module (assumed same as above if empty)
21136module_cmds=$lt_module_cmds_CXX
21137module_expsym_cmds=$lt_module_expsym_cmds_CXX
21138
21139# Commands to strip libraries.
21140old_striplib=$lt_old_striplib
21141striplib=$lt_striplib
21142
21143# Dependencies to place before the objects being linked to create a
21144# shared library.
21145predep_objects=$lt_predep_objects_CXX
21146
21147# Dependencies to place after the objects being linked to create a
21148# shared library.
21149postdep_objects=$lt_postdep_objects_CXX
21150
21151# Dependencies to place before the objects being linked to create a
21152# shared library.
21153predeps=$lt_predeps_CXX
21154
21155# Dependencies to place after the objects being linked to create a
21156# shared library.
21157postdeps=$lt_postdeps_CXX
21158
21159# The library search path used internally by the compiler when linking
21160# a shared library.
21161compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21162
21163# Method to check whether dependent libraries are shared objects.
21164deplibs_check_method=$lt_deplibs_check_method
21165
21166# Command to use when deplibs_check_method == file_magic.
21167file_magic_cmd=$lt_file_magic_cmd
21168
21169# Flag that allows shared libraries with undefined symbols to be built.
21170allow_undefined_flag=$lt_allow_undefined_flag_CXX
21171
21172# Flag that forces no undefined symbols.
21173no_undefined_flag=$lt_no_undefined_flag_CXX
21174
21175# Commands used to finish a libtool library installation in a directory.
21176finish_cmds=$lt_finish_cmds
21177
21178# Same as above, but a single script fragment to be evaled but not shown.
21179finish_eval=$lt_finish_eval
21180
21181# Take the output of nm and produce a listing of raw symbols and C names.
21182global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21183
21184# Transform the output of nm in a proper C declaration
21185global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21186
21187# Transform the output of nm in a C name address pair
21188global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21189
21190# This is the shared library runtime path variable.
21191runpath_var=$runpath_var
21192
21193# This is the shared library path variable.
21194shlibpath_var=$shlibpath_var
21195
21196# Is shlibpath searched before the hard-coded library search path?
21197shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21198
21199# How to hardcode a shared library path into an executable.
21200hardcode_action=$hardcode_action_CXX
21201
21202# Whether we should hardcode library paths into libraries.
21203hardcode_into_libs=$hardcode_into_libs
21204
21205# Flag to hardcode \$libdir into a binary during linking.
21206# This must work even if \$libdir does not exist.
21207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21208
21209# If ld is used when linking, flag to hardcode \$libdir into
21210# a binary during linking. This must work even if \$libdir does
21211# not exist.
21212hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
21213
21214# Whether we need a single -rpath flag with a separated argument.
21215hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21216
21217# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21218# resulting binary.
21219hardcode_direct=$hardcode_direct_CXX
21220
21221# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21222# resulting binary.
21223hardcode_minus_L=$hardcode_minus_L_CXX
21224
21225# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21226# the resulting binary.
21227hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21228
21229# Set to yes if building a shared library automatically hardcodes DIR into the library
21230# and all subsequent libraries and executables linked against it.
21231hardcode_automatic=$hardcode_automatic_CXX
21232
21233# Variables whose values should be saved in libtool wrapper scripts and
21234# restored at relink time.
21235variables_saved_for_relink="$variables_saved_for_relink"
21236
21237# Whether libtool must link a program against all its dependency libraries.
21238link_all_deplibs=$link_all_deplibs_CXX
21239
21240# Compile-time system search path for libraries
21241sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21242
21243# Run-time system search path for libraries
21244sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21245
21246# Fix the shell variable \$srcfile for the compiler.
21247fix_srcfile_path="$fix_srcfile_path_CXX"
21248
21249# Set to yes if exported symbols are required.
21250always_export_symbols=$always_export_symbols_CXX
21251
21252# The commands to list exported symbols.
21253export_symbols_cmds=$lt_export_symbols_cmds_CXX
21254
21255# The commands to extract the exported symbol list from a shared archive.
21256extract_expsyms_cmds=$lt_extract_expsyms_cmds
21257
21258# Symbols that should not be listed in the preloaded symbols.
21259exclude_expsyms=$lt_exclude_expsyms_CXX
21260
21261# Symbols that must always be exported.
21262include_expsyms=$lt_include_expsyms_CXX
21263
21264# ### END LIBTOOL TAG CONFIG: $tagname
21265
21266__EOF__
21267
21268
21269else
21270 # If there is no Makefile yet, we rely on a make rule to execute
21271 # `config.status --recheck' to rerun these tests and create the
21272 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021273 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21274 if test -f "$ltmain_in"; then
21275 test -f Makefile && make "$ltmain"
21276 fi
John Criswell47fdd832003-07-14 16:52:07 +000021277fi
21278
21279
21280ac_ext=c
21281ac_cpp='$CPP $CPPFLAGS'
21282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21284ac_compiler_gnu=$ac_cv_c_compiler_gnu
21285
21286CC=$lt_save_CC
21287LDCXX=$LD
21288LD=$lt_save_LD
21289GCC=$lt_save_GCC
21290with_gnu_ldcxx=$with_gnu_ld
21291with_gnu_ld=$lt_save_with_gnu_ld
21292lt_cv_path_LDCXX=$lt_cv_path_LD
21293lt_cv_path_LD=$lt_save_path_LD
21294lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21295lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21296
21297 else
21298 tagname=""
21299 fi
21300 ;;
21301
21302 F77)
21303 if test -n "$F77" && test "X$F77" != "Xno"; then
21304
21305ac_ext=f
21306ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21307ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21308ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21309
21310
21311archive_cmds_need_lc_F77=no
21312allow_undefined_flag_F77=
21313always_export_symbols_F77=no
21314archive_expsym_cmds_F77=
21315export_dynamic_flag_spec_F77=
21316hardcode_direct_F77=no
21317hardcode_libdir_flag_spec_F77=
21318hardcode_libdir_flag_spec_ld_F77=
21319hardcode_libdir_separator_F77=
21320hardcode_minus_L_F77=no
21321hardcode_automatic_F77=no
21322module_cmds_F77=
21323module_expsym_cmds_F77=
21324link_all_deplibs_F77=unknown
21325old_archive_cmds_F77=$old_archive_cmds
21326no_undefined_flag_F77=
21327whole_archive_flag_spec_F77=
21328enable_shared_with_static_runtimes_F77=no
21329
21330# Source file extension for f77 test sources.
21331ac_ext=f
21332
21333# Object file extension for compiled f77 test sources.
21334objext=o
21335objext_F77=$objext
21336
21337# Code to be used in simple compile tests
21338lt_simple_compile_test_code=" subroutine t\n return\n end\n"
21339
21340# Code to be used in simple link tests
21341lt_simple_link_test_code=" program t\n end\n"
21342
21343# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21344
21345# If no C compiler was specified, use CC.
21346LTCC=${LTCC-"$CC"}
21347
Reid Spencera773bd52006-08-04 18:18:08 +000021348# If no C compiler flags were specified, use CFLAGS.
21349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21350
John Criswell47fdd832003-07-14 16:52:07 +000021351# Allow CC to be a program name with arguments.
21352compiler=$CC
21353
21354
Reid Spencera773bd52006-08-04 18:18:08 +000021355# save warnings/boilerplate of simple test code
21356ac_outfile=conftest.$ac_objext
21357printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21359_lt_compiler_boilerplate=`cat conftest.err`
21360$rm conftest*
21361
21362ac_outfile=conftest.$ac_objext
21363printf "$lt_simple_link_test_code" >conftest.$ac_ext
21364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21365_lt_linker_boilerplate=`cat conftest.err`
21366$rm conftest*
21367
21368
John Criswell47fdd832003-07-14 16:52:07 +000021369# Allow CC to be a program name with arguments.
21370lt_save_CC="$CC"
21371CC=${F77-"f77"}
21372compiler=$CC
21373compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000021374for cc_temp in $compiler""; do
21375 case $cc_temp in
21376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21378 \-*) ;;
21379 *) break;;
21380 esac
21381done
21382cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021383
John Criswell47fdd832003-07-14 16:52:07 +000021384
Reid Spencera773bd52006-08-04 18:18:08 +000021385{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21386echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
21387{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
21388echo "${ECHO_T}$can_build_shared" >&6; }
21389
21390{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21391echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021392test "$can_build_shared" = "no" && enable_shared=no
21393
21394# On AIX, shared libraries and static libraries use the same namespace, and
21395# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000021396case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021397aix3*)
21398 test "$enable_shared" = yes && enable_static=no
21399 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000021401 postinstall_cmds='$RANLIB $lib'
21402 fi
21403 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021404aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000021405 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21406 test "$enable_shared" = yes && enable_static=no
21407 fi
John Criswell47fdd832003-07-14 16:52:07 +000021408 ;;
21409esac
Reid Spencera773bd52006-08-04 18:18:08 +000021410{ echo "$as_me:$LINENO: result: $enable_shared" >&5
21411echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021412
Reid Spencera773bd52006-08-04 18:18:08 +000021413{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21414echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021415# Make sure either enable_shared or enable_static is yes.
21416test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021417{ echo "$as_me:$LINENO: result: $enable_static" >&5
21418echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021419
21420GCC_F77="$G77"
21421LD_F77="$LD"
21422
21423lt_prog_compiler_wl_F77=
21424lt_prog_compiler_pic_F77=
21425lt_prog_compiler_static_F77=
21426
Reid Spencera773bd52006-08-04 18:18:08 +000021427{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21428echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021429
21430 if test "$GCC" = yes; then
21431 lt_prog_compiler_wl_F77='-Wl,'
21432 lt_prog_compiler_static_F77='-static'
21433
21434 case $host_os in
21435 aix*)
21436 # All AIX code is PIC.
21437 if test "$host_cpu" = ia64; then
21438 # AIX 5 now supports IA64 processor
21439 lt_prog_compiler_static_F77='-Bstatic'
21440 fi
21441 ;;
21442
21443 amigaos*)
21444 # FIXME: we need at least 68020 code to build shared libraries, but
21445 # adding the `-m68020' flag to GCC prevents building anything better,
21446 # like `-m68040'.
21447 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21448 ;;
21449
21450 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21451 # PIC is the default for these OSes.
21452 ;;
21453
21454 mingw* | pw32* | os2*)
21455 # This hack is so that the source file can tell whether it is being
21456 # built for inclusion in a dll (and should export symbols for example).
21457 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21458 ;;
21459
21460 darwin* | rhapsody*)
21461 # PIC is the default on this platform
21462 # Common symbols not allowed in MH_DYLIB files
21463 lt_prog_compiler_pic_F77='-fno-common'
21464 ;;
21465
Reid Spencera773bd52006-08-04 18:18:08 +000021466 interix3*)
21467 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21468 # Instead, we relocate shared libraries at runtime.
21469 ;;
21470
John Criswell47fdd832003-07-14 16:52:07 +000021471 msdosdjgpp*)
21472 # Just because we use GCC doesn't mean we suddenly get shared libraries
21473 # on systems that don't support them.
21474 lt_prog_compiler_can_build_shared_F77=no
21475 enable_shared=no
21476 ;;
21477
21478 sysv4*MP*)
21479 if test -d /usr/nec; then
21480 lt_prog_compiler_pic_F77=-Kconform_pic
21481 fi
21482 ;;
21483
21484 hpux*)
21485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21486 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021487 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021488 hppa*64*|ia64*)
21489 # +Z the default
21490 ;;
21491 *)
21492 lt_prog_compiler_pic_F77='-fPIC'
21493 ;;
21494 esac
21495 ;;
21496
21497 *)
21498 lt_prog_compiler_pic_F77='-fPIC'
21499 ;;
21500 esac
21501 else
21502 # PORTME Check for flag to pass linker flags through the system compiler.
21503 case $host_os in
21504 aix*)
21505 lt_prog_compiler_wl_F77='-Wl,'
21506 if test "$host_cpu" = ia64; then
21507 # AIX 5 now supports IA64 processor
21508 lt_prog_compiler_static_F77='-Bstatic'
21509 else
21510 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21511 fi
21512 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021513 darwin*)
21514 # PIC is the default on this platform
21515 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021516 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021517 xlc*)
21518 lt_prog_compiler_pic_F77='-qnocommon'
21519 lt_prog_compiler_wl_F77='-Wl,'
21520 ;;
21521 esac
21522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021523
21524 mingw* | pw32* | os2*)
21525 # This hack is so that the source file can tell whether it is being
21526 # built for inclusion in a dll (and should export symbols for example).
21527 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21528 ;;
21529
21530 hpux9* | hpux10* | hpux11*)
21531 lt_prog_compiler_wl_F77='-Wl,'
21532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21533 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021534 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021535 hppa*64*|ia64*)
21536 # +Z the default
21537 ;;
21538 *)
21539 lt_prog_compiler_pic_F77='+Z'
21540 ;;
21541 esac
21542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21543 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21544 ;;
21545
21546 irix5* | irix6* | nonstopux*)
21547 lt_prog_compiler_wl_F77='-Wl,'
21548 # PIC (with -KPIC) is the default.
21549 lt_prog_compiler_static_F77='-non_shared'
21550 ;;
21551
21552 newsos6)
21553 lt_prog_compiler_pic_F77='-KPIC'
21554 lt_prog_compiler_static_F77='-Bstatic'
21555 ;;
21556
21557 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021558 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021559 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021560 lt_prog_compiler_wl_F77='-Wl,'
21561 lt_prog_compiler_pic_F77='-KPIC'
21562 lt_prog_compiler_static_F77='-static'
21563 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021564 pgcc* | pgf77* | pgf90* | pgf95*)
21565 # Portland Group compilers (*not* the Pentium gcc compiler,
21566 # which looks to be a dead project)
21567 lt_prog_compiler_wl_F77='-Wl,'
21568 lt_prog_compiler_pic_F77='-fpic'
21569 lt_prog_compiler_static_F77='-Bstatic'
21570 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021571 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021572 lt_prog_compiler_wl_F77='-Wl,'
21573 # All Alpha code is PIC.
21574 lt_prog_compiler_static_F77='-non_shared'
21575 ;;
21576 esac
21577 ;;
21578
21579 osf3* | osf4* | osf5*)
21580 lt_prog_compiler_wl_F77='-Wl,'
21581 # All OSF/1 code is PIC.
21582 lt_prog_compiler_static_F77='-non_shared'
21583 ;;
21584
John Criswell47fdd832003-07-14 16:52:07 +000021585 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021586 lt_prog_compiler_pic_F77='-KPIC'
21587 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021588 case $cc_basename in
21589 f77* | f90* | f95*)
21590 lt_prog_compiler_wl_F77='-Qoption ld ';;
21591 *)
21592 lt_prog_compiler_wl_F77='-Wl,';;
21593 esac
John Criswell47fdd832003-07-14 16:52:07 +000021594 ;;
21595
21596 sunos4*)
21597 lt_prog_compiler_wl_F77='-Qoption ld '
21598 lt_prog_compiler_pic_F77='-PIC'
21599 lt_prog_compiler_static_F77='-Bstatic'
21600 ;;
21601
Reid Spencera773bd52006-08-04 18:18:08 +000021602 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021603 lt_prog_compiler_wl_F77='-Wl,'
21604 lt_prog_compiler_pic_F77='-KPIC'
21605 lt_prog_compiler_static_F77='-Bstatic'
21606 ;;
21607
21608 sysv4*MP*)
21609 if test -d /usr/nec ;then
21610 lt_prog_compiler_pic_F77='-Kconform_pic'
21611 lt_prog_compiler_static_F77='-Bstatic'
21612 fi
21613 ;;
21614
Reid Spencera773bd52006-08-04 18:18:08 +000021615 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21616 lt_prog_compiler_wl_F77='-Wl,'
21617 lt_prog_compiler_pic_F77='-KPIC'
21618 lt_prog_compiler_static_F77='-Bstatic'
21619 ;;
21620
21621 unicos*)
21622 lt_prog_compiler_wl_F77='-Wl,'
21623 lt_prog_compiler_can_build_shared_F77=no
21624 ;;
21625
John Criswell47fdd832003-07-14 16:52:07 +000021626 uts4*)
21627 lt_prog_compiler_pic_F77='-pic'
21628 lt_prog_compiler_static_F77='-Bstatic'
21629 ;;
21630
21631 *)
21632 lt_prog_compiler_can_build_shared_F77=no
21633 ;;
21634 esac
21635 fi
21636
Reid Spencera773bd52006-08-04 18:18:08 +000021637{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21638echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021639
21640#
21641# Check to make sure the PIC flag actually works.
21642#
21643if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021644
Reid Spencera773bd52006-08-04 18:18:08 +000021645{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21646echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021647if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21649else
21650 lt_prog_compiler_pic_works_F77=no
21651 ac_outfile=conftest.$ac_objext
21652 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21653 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21654 # Insert the option either (1) after the last *FLAGS variable, or
21655 # (2) before a word containing "conftest.", or (3) at the end.
21656 # Note that $ac_compile itself does not contain backslashes and begins
21657 # with a dollar sign (not a hyphen), so the echo should work correctly.
21658 # The option is referenced via a variable to avoid confusing sed.
21659 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21662 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000021663 (eval echo "\"\$as_me:21663: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021664 (eval "$lt_compile" 2>conftest.err)
21665 ac_status=$?
21666 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000021667 echo "$as_me:21667: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021668 if (exit $ac_status) && test -s "$ac_outfile"; then
21669 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021670 # So say no if there are warnings other than the usual output.
21671 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21672 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21673 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021674 lt_prog_compiler_pic_works_F77=yes
21675 fi
21676 fi
21677 $rm conftest*
21678
21679fi
Reid Spencera773bd52006-08-04 18:18:08 +000021680{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21681echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021682
21683if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21684 case $lt_prog_compiler_pic_F77 in
21685 "" | " "*) ;;
21686 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21687 esac
21688else
21689 lt_prog_compiler_pic_F77=
21690 lt_prog_compiler_can_build_shared_F77=no
21691fi
21692
21693fi
Reid Spencera773bd52006-08-04 18:18:08 +000021694case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021695 # For platforms which do not support PIC, -DPIC is meaningless:
21696 *djgpp*)
21697 lt_prog_compiler_pic_F77=
21698 ;;
21699 *)
21700 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21701 ;;
21702esac
21703
Reid Spencera773bd52006-08-04 18:18:08 +000021704#
21705# Check to make sure the static flag actually works.
21706#
21707wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21708{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21709echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21710if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21711 echo $ECHO_N "(cached) $ECHO_C" >&6
21712else
21713 lt_prog_compiler_static_works_F77=no
21714 save_LDFLAGS="$LDFLAGS"
21715 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21716 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21717 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21718 # The linker can only warn and ignore the option if not recognized
21719 # So say no if there are warnings
21720 if test -s conftest.err; then
21721 # Append any errors to the config.log.
21722 cat conftest.err 1>&5
21723 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21724 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21725 if diff conftest.exp conftest.er2 >/dev/null; then
21726 lt_prog_compiler_static_works_F77=yes
21727 fi
21728 else
21729 lt_prog_compiler_static_works_F77=yes
21730 fi
21731 fi
21732 $rm conftest*
21733 LDFLAGS="$save_LDFLAGS"
21734
21735fi
21736{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21737echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21738
21739if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21740 :
21741else
21742 lt_prog_compiler_static_F77=
21743fi
21744
21745
21746{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21747echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021748if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21749 echo $ECHO_N "(cached) $ECHO_C" >&6
21750else
21751 lt_cv_prog_compiler_c_o_F77=no
21752 $rm -r conftest 2>/dev/null
21753 mkdir conftest
21754 cd conftest
21755 mkdir out
21756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21757
John Criswell47fdd832003-07-14 16:52:07 +000021758 lt_compiler_flag="-o out/conftest2.$ac_objext"
21759 # Insert the option either (1) after the last *FLAGS variable, or
21760 # (2) before a word containing "conftest.", or (3) at the end.
21761 # Note that $ac_compile itself does not contain backslashes and begins
21762 # with a dollar sign (not a hyphen), so the echo should work correctly.
21763 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21766 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000021767 (eval echo "\"\$as_me:21767: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021768 (eval "$lt_compile" 2>out/conftest.err)
21769 ac_status=$?
21770 cat out/conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000021771 echo "$as_me:21771: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21773 then
21774 # The compiler can only warn and ignore the option if not recognized
21775 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021776 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021779 lt_cv_prog_compiler_c_o_F77=yes
21780 fi
21781 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021782 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021783 $rm conftest*
21784 # SGI C++ compiler will create directory out/ii_files/ for
21785 # template instantiation
21786 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21787 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021788 cd ..
21789 rmdir conftest
21790 $rm conftest*
21791
21792fi
Reid Spencera773bd52006-08-04 18:18:08 +000021793{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21794echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021795
21796
21797hard_links="nottested"
21798if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21799 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021800 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21801echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021802 hard_links=yes
21803 $rm conftest*
21804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21805 touch conftest.a
21806 ln conftest.a conftest.b 2>&5 || hard_links=no
21807 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021808 { echo "$as_me:$LINENO: result: $hard_links" >&5
21809echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021810 if test "$hard_links" = no; then
21811 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21812echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21813 need_locks=warn
21814 fi
21815else
21816 need_locks=no
21817fi
21818
Reid Spencera773bd52006-08-04 18:18:08 +000021819{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21820echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021821
21822 runpath_var=
21823 allow_undefined_flag_F77=
21824 enable_shared_with_static_runtimes_F77=no
21825 archive_cmds_F77=
21826 archive_expsym_cmds_F77=
21827 old_archive_From_new_cmds_F77=
21828 old_archive_from_expsyms_cmds_F77=
21829 export_dynamic_flag_spec_F77=
21830 whole_archive_flag_spec_F77=
21831 thread_safe_flag_spec_F77=
21832 hardcode_libdir_flag_spec_F77=
21833 hardcode_libdir_flag_spec_ld_F77=
21834 hardcode_libdir_separator_F77=
21835 hardcode_direct_F77=no
21836 hardcode_minus_L_F77=no
21837 hardcode_shlibpath_var_F77=unsupported
21838 link_all_deplibs_F77=unknown
21839 hardcode_automatic_F77=no
21840 module_cmds_F77=
21841 module_expsym_cmds_F77=
21842 always_export_symbols_F77=no
21843 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21844 # include_expsyms should be a list of space-separated symbols to be *always*
21845 # included in the symbol list
21846 include_expsyms_F77=
21847 # exclude_expsyms can be an extended regexp of symbols to exclude
21848 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21849 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21850 # as well as any symbol that contains `d'.
21851 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21852 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21853 # platforms (ab)use it in PIC code, but their linkers get confused if
21854 # the symbol is explicitly referenced. Since portable code cannot
21855 # rely on this symbol name, it's probably fine to never include it in
21856 # preloaded symbol tables.
21857 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021858 # Just being paranoid about ensuring that cc_basename is set.
21859 for cc_temp in $compiler""; do
21860 case $cc_temp in
21861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21863 \-*) ;;
21864 *) break;;
21865 esac
21866done
21867cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021868
21869 case $host_os in
21870 cygwin* | mingw* | pw32*)
21871 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21872 # When not using gcc, we currently assume that we are using
21873 # Microsoft Visual C++.
21874 if test "$GCC" != yes; then
21875 with_gnu_ld=no
21876 fi
21877 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021878 interix*)
21879 # we just hope/assume this is gcc and not c89 (= MSVC++)
21880 with_gnu_ld=yes
21881 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021882 openbsd*)
21883 with_gnu_ld=no
21884 ;;
21885 esac
21886
21887 ld_shlibs_F77=yes
21888 if test "$with_gnu_ld" = yes; then
21889 # If archive_cmds runs LD, not CC, wlarc should be empty
21890 wlarc='${wl}'
21891
Reid Spencera773bd52006-08-04 18:18:08 +000021892 # Set some defaults for GNU ld with shared library support. These
21893 # are reset later if shared libraries are not supported. Putting them
21894 # here allows them to be overridden if necessary.
21895 runpath_var=LD_RUN_PATH
21896 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21897 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21898 # ancient GNU ld didn't support --whole-archive et. al.
21899 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21900 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21901 else
21902 whole_archive_flag_spec_F77=
21903 fi
21904 supports_anon_versioning=no
21905 case `$LD -v 2>/dev/null` in
21906 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21907 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21908 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21909 *\ 2.11.*) ;; # other 2.11 versions
21910 *) supports_anon_versioning=yes ;;
21911 esac
21912
John Criswell47fdd832003-07-14 16:52:07 +000021913 # See if GNU ld supports shared libraries.
21914 case $host_os in
21915 aix3* | aix4* | aix5*)
21916 # On AIX/PPC, the GNU linker is very broken
21917 if test "$host_cpu" != ia64; then
21918 ld_shlibs_F77=no
21919 cat <<EOF 1>&2
21920
21921*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21922*** to be unable to reliably create shared libraries on AIX.
21923*** Therefore, libtool is disabling shared libraries support. If you
21924*** really care for shared libraries, you may want to modify your PATH
21925*** so that a non-GNU linker is found, and then restart.
21926
21927EOF
21928 fi
21929 ;;
21930
21931 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021932 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000021933 hardcode_libdir_flag_spec_F77='-L$libdir'
21934 hardcode_minus_L_F77=yes
21935
21936 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21937 # that the semantics of dynamic libraries on AmigaOS, at least up
21938 # to version 4, is to share data among multiple programs linked
21939 # with the same dynamic library. Since this doesn't match the
21940 # behavior of shared libraries on other platforms, we can't use
21941 # them.
21942 ld_shlibs_F77=no
21943 ;;
21944
21945 beos*)
21946 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21947 allow_undefined_flag_F77=unsupported
21948 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21949 # support --undefined. This deserves some investigation. FIXME
21950 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21951 else
21952 ld_shlibs_F77=no
21953 fi
21954 ;;
21955
21956 cygwin* | mingw* | pw32*)
21957 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21958 # as there is no search path for DLLs.
21959 hardcode_libdir_flag_spec_F77='-L$libdir'
21960 allow_undefined_flag_F77=unsupported
21961 always_export_symbols_F77=no
21962 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021963 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000021964
21965 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021967 # If the export-symbols file already is a .def file (1st line
21968 # is EXPORTS), use it as is; otherwise, prepend...
21969 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21970 cp $export_symbols $output_objdir/$soname.def;
21971 else
21972 echo EXPORTS > $output_objdir/$soname.def;
21973 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021974 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021975 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000021976 else
Reid Spencera773bd52006-08-04 18:18:08 +000021977 ld_shlibs_F77=no
21978 fi
21979 ;;
21980
21981 interix3*)
21982 hardcode_direct_F77=no
21983 hardcode_shlibpath_var_F77=no
21984 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21985 export_dynamic_flag_spec_F77='${wl}-E'
21986 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21987 # Instead, shared libraries are loaded at an image base (0x10000000 by
21988 # default) and relocated if they conflict, which is a slow very memory
21989 # consuming and fragmenting process. To avoid this, we pick a random,
21990 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21991 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21992 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21993 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21994 ;;
21995
21996 linux*)
21997 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21998 tmp_addflag=
21999 case $cc_basename,$host_cpu in
22000 pgcc*) # Portland Group C compiler
22001 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22002 tmp_addflag=' $pic_flag'
22003 ;;
22004 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22005 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22006 tmp_addflag=' $pic_flag -Mnomain' ;;
22007 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22008 tmp_addflag=' -i_dynamic' ;;
22009 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22010 tmp_addflag=' -i_dynamic -nofor_main' ;;
22011 ifc* | ifort*) # Intel Fortran compiler
22012 tmp_addflag=' -nofor_main' ;;
22013 esac
22014 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22015
22016 if test $supports_anon_versioning = yes; then
22017 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
22018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22019 $echo "local: *; };" >> $output_objdir/$libname.ver~
22020 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22021 fi
22022 else
22023 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022024 fi
22025 ;;
22026
22027 netbsd*)
22028 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22029 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22030 wlarc=
22031 else
22032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22034 fi
22035 ;;
22036
Reid Spencera773bd52006-08-04 18:18:08 +000022037 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000022038 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
22039 ld_shlibs_F77=no
22040 cat <<EOF 1>&2
22041
22042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
22043*** create shared libraries on Solaris systems. Therefore, libtool
22044*** is disabling shared libraries support. We urge you to upgrade GNU
22045*** binutils to release 2.9.1 or newer. Another option is to modify
22046*** your PATH or compiler configuration so that the native linker is
22047*** used, and then restart.
22048
22049EOF
22050 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22051 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22052 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22053 else
22054 ld_shlibs_F77=no
22055 fi
22056 ;;
22057
Reid Spencera773bd52006-08-04 18:18:08 +000022058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22059 case `$LD -v 2>&1` in
22060 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22061 ld_shlibs_F77=no
22062 cat <<_LT_EOF 1>&2
22063
22064*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22065*** reliably create shared libraries on SCO systems. Therefore, libtool
22066*** is disabling shared libraries support. We urge you to upgrade GNU
22067*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22068*** your PATH or compiler configuration so that the native linker is
22069*** used, and then restart.
22070
22071_LT_EOF
22072 ;;
22073 *)
22074 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22075 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22076 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22077 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22078 else
22079 ld_shlibs_F77=no
22080 fi
22081 ;;
22082 esac
22083 ;;
22084
John Criswell47fdd832003-07-14 16:52:07 +000022085 sunos4*)
22086 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22087 wlarc=
22088 hardcode_direct_F77=yes
22089 hardcode_shlibpath_var_F77=no
22090 ;;
22091
22092 *)
22093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
22094 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22095 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22096 else
22097 ld_shlibs_F77=no
22098 fi
22099 ;;
22100 esac
22101
Reid Spencera773bd52006-08-04 18:18:08 +000022102 if test "$ld_shlibs_F77" = no; then
22103 runpath_var=
22104 hardcode_libdir_flag_spec_F77=
22105 export_dynamic_flag_spec_F77=
22106 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000022107 fi
22108 else
22109 # PORTME fill in a description of your system's linker (not GNU ld)
22110 case $host_os in
22111 aix3*)
22112 allow_undefined_flag_F77=unsupported
22113 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000022114 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000022115 # Note: this linker hardcodes the directories in LIBPATH if there
22116 # are no directories specified by -L.
22117 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022118 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000022119 # Neither direct hardcoding nor static linking is supported with a
22120 # broken collect2.
22121 hardcode_direct_F77=unsupported
22122 fi
22123 ;;
22124
22125 aix4* | aix5*)
22126 if test "$host_cpu" = ia64; then
22127 # On IA64, the linker does run time linking by default, so we don't
22128 # have to do anything special.
22129 aix_use_runtimelinking=no
22130 exp_sym_flag='-Bexport'
22131 no_entry_flag=""
22132 else
22133 # If we're using GNU nm, then we don't want the "-C" option.
22134 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22135 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
22136 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22137 else
22138 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22139 fi
22140 aix_use_runtimelinking=no
22141
22142 # Test if we are trying to use run time linking or normal
22143 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22144 # need to do runtime linking.
22145 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22146 for ld_flag in $LDFLAGS; do
22147 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22148 aix_use_runtimelinking=yes
22149 break
22150 fi
22151 done
Reid Spencera773bd52006-08-04 18:18:08 +000022152 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022153 esac
22154
22155 exp_sym_flag='-bexport'
22156 no_entry_flag='-bnoentry'
22157 fi
22158
22159 # When large executables or shared objects are built, AIX ld can
22160 # have problems creating the table of contents. If linking a library
22161 # or program results in "error TOC overflow" add -mminimal-toc to
22162 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22163 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22164
22165 archive_cmds_F77=''
22166 hardcode_direct_F77=yes
22167 hardcode_libdir_separator_F77=':'
22168 link_all_deplibs_F77=yes
22169
22170 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022171 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000022172 # We only want to do this on AIX 4.2 and lower, the check
22173 # below for broken collect2 doesn't work under 4.3+
22174 collect2name=`${CC} -print-prog-name=collect2`
22175 if test -f "$collect2name" && \
22176 strings "$collect2name" | grep resolve_lib_name >/dev/null
22177 then
22178 # We have reworked collect2
22179 hardcode_direct_F77=yes
22180 else
22181 # We have old collect2
22182 hardcode_direct_F77=unsupported
22183 # It fails to find uninstalled libraries when the uninstalled
22184 # path is not listed in the libpath. Setting hardcode_minus_L
22185 # to unsupported forces relinking
22186 hardcode_minus_L_F77=yes
22187 hardcode_libdir_flag_spec_F77='-L$libdir'
22188 hardcode_libdir_separator_F77=
22189 fi
Reid Spencera773bd52006-08-04 18:18:08 +000022190 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022191 esac
22192 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000022193 if test "$aix_use_runtimelinking" = yes; then
22194 shared_flag="$shared_flag "'${wl}-G'
22195 fi
John Criswell47fdd832003-07-14 16:52:07 +000022196 else
22197 # not using gcc
22198 if test "$host_cpu" = ia64; then
22199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22200 # chokes on -Wl,-G. The following line is correct:
22201 shared_flag='-G'
22202 else
Reid Spencera773bd52006-08-04 18:18:08 +000022203 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000022204 shared_flag='${wl}-G'
22205 else
22206 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000022207 fi
John Criswell47fdd832003-07-14 16:52:07 +000022208 fi
22209 fi
22210
22211 # It seems that -bexpall does not export symbols beginning with
22212 # underscore (_), so it is better to generate a list of symbols to export.
22213 always_export_symbols_F77=yes
22214 if test "$aix_use_runtimelinking" = yes; then
22215 # Warning - without using the other runtime loading flags (-brtl),
22216 # -berok will link without error, but may produce a broken library.
22217 allow_undefined_flag_F77='-berok'
22218 # Determine the default libpath from the value encoded in an empty executable.
22219 cat >conftest.$ac_ext <<_ACEOF
22220 program main
22221
22222 end
22223_ACEOF
22224rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022225if { (ac_try="$ac_link"
22226case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229esac
22230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022232 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022233 grep -v '^ *+' conftest.er1 >conftest.err
22234 rm -f conftest.er1
22235 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022237 (exit $ac_status); } &&
22238 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22239 { (case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242esac
22243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_try") 2>&5
22245 ac_status=$?
22246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247 (exit $ac_status); }; } &&
22248 { ac_try='test -s conftest$ac_exeext'
22249 { (case "(($ac_try" in
22250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251 *) ac_try_echo=$ac_try;;
22252esac
22253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254 (eval "$ac_try") 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022258
22259aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22260}'`
22261# Check for a 64-bit object if we didn't find anything.
22262if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22263}'`; fi
22264else
22265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022266sed 's/^/| /' conftest.$ac_ext >&5
22267
Reid Spencera773bd52006-08-04 18:18:08 +000022268
John Criswell47fdd832003-07-14 16:52:07 +000022269fi
Reid Spencera773bd52006-08-04 18:18:08 +000022270
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022271rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022273if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22274
22275 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000022276 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000022277 else
22278 if test "$host_cpu" = ia64; then
22279 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22280 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000022281 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000022282 else
22283 # Determine the default libpath from the value encoded in an empty executable.
22284 cat >conftest.$ac_ext <<_ACEOF
22285 program main
22286
22287 end
22288_ACEOF
22289rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000022290if { (ac_try="$ac_link"
22291case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294esac
22295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022297 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022302 (exit $ac_status); } &&
22303 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
22304 { (case "(($ac_try" in
22305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22306 *) ac_try_echo=$ac_try;;
22307esac
22308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22309 (eval "$ac_try") 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); }; } &&
22313 { ac_try='test -s conftest$ac_exeext'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317esac
22318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22320 ac_status=$?
22321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000022323
22324aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22325}'`
22326# Check for a 64-bit object if we didn't find anything.
22327if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22328}'`; fi
22329else
22330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022331sed 's/^/| /' conftest.$ac_ext >&5
22332
Reid Spencera773bd52006-08-04 18:18:08 +000022333
John Criswell47fdd832003-07-14 16:52:07 +000022334fi
Reid Spencera773bd52006-08-04 18:18:08 +000022335
Gordon Henriksen40e7f192008-10-22 12:40:55 +000022336rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000022337 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22339
22340 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22341 # Warning - without using the other run time loading flags,
22342 # -berok will link without error, but may produce a broken library.
22343 no_undefined_flag_F77=' ${wl}-bernotok'
22344 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000022345 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000022346 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000022347 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000022348 # This is similar to how AIX traditionally builds its shared libraries.
22349 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000022350 fi
22351 fi
22352 ;;
22353
22354 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022355 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000022356 hardcode_libdir_flag_spec_F77='-L$libdir'
22357 hardcode_minus_L_F77=yes
22358 # see comment about different semantics on the GNU ld section
22359 ld_shlibs_F77=no
22360 ;;
22361
Reid Spencer2706f8c2004-09-19 23:53:36 +000022362 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022363 export_dynamic_flag_spec_F77=-rdynamic
22364 ;;
22365
22366 cygwin* | mingw* | pw32*)
22367 # When not using gcc, we currently assume that we are using
22368 # Microsoft Visual C++.
22369 # hardcode_libdir_flag_spec is actually meaningless, as there is
22370 # no search path for DLLs.
22371 hardcode_libdir_flag_spec_F77=' '
22372 allow_undefined_flag_F77=unsupported
22373 # Tell ltmain to make .lib files, not .a files.
22374 libext=lib
22375 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022376 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022377 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022378 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000022379 # The linker will automatically build a .lib file if we build a DLL.
22380 old_archive_From_new_cmds_F77='true'
22381 # FIXME: Should let the user specify the lib program.
22382 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000022383 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000022384 enable_shared_with_static_runtimes_F77=yes
22385 ;;
22386
22387 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000022388 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022389 rhapsody* | darwin1.[012])
22390 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
22391 ;;
22392 *) # Darwin 1.3 on
22393 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22394 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22395 else
22396 case ${MACOSX_DEPLOYMENT_TARGET} in
22397 10.[012])
22398 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22399 ;;
22400 10.*)
22401 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
22402 ;;
22403 esac
22404 fi
22405 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022406 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022407 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022408 hardcode_direct_F77=no
22409 hardcode_automatic_F77=yes
22410 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022411 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000022412 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022413 if test "$GCC" = yes ; then
22414 output_verbose_link_cmd='echo'
22415 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22416 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022417 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000022418 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22419 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022420 else
Reid Spencera773bd52006-08-04 18:18:08 +000022421 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022422 xlc*)
22423 output_verbose_link_cmd='echo'
22424 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22425 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000022426 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000022427 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22428 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022429 ;;
22430 *)
22431 ld_shlibs_F77=no
22432 ;;
22433 esac
John Criswell47fdd832003-07-14 16:52:07 +000022434 fi
22435 ;;
22436
22437 dgux*)
22438 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22439 hardcode_libdir_flag_spec_F77='-L$libdir'
22440 hardcode_shlibpath_var_F77=no
22441 ;;
22442
22443 freebsd1*)
22444 ld_shlibs_F77=no
22445 ;;
22446
22447 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22448 # support. Future versions do this automatically, but an explicit c++rt0.o
22449 # does not break anything, and helps significantly (at the cost of a little
22450 # extra space).
22451 freebsd2.2*)
22452 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22453 hardcode_libdir_flag_spec_F77='-R$libdir'
22454 hardcode_direct_F77=yes
22455 hardcode_shlibpath_var_F77=no
22456 ;;
22457
22458 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22459 freebsd2*)
22460 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22461 hardcode_direct_F77=yes
22462 hardcode_minus_L_F77=yes
22463 hardcode_shlibpath_var_F77=no
22464 ;;
22465
22466 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000022467 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000022468 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22469 hardcode_libdir_flag_spec_F77='-R$libdir'
22470 hardcode_direct_F77=yes
22471 hardcode_shlibpath_var_F77=no
22472 ;;
22473
22474 hpux9*)
22475 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022476 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000022477 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022478 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000022479 fi
22480 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22481 hardcode_libdir_separator_F77=:
22482 hardcode_direct_F77=yes
22483
22484 # hardcode_minus_L: Not really in the search PATH,
22485 # but as the default location of the library.
22486 hardcode_minus_L_F77=yes
22487 export_dynamic_flag_spec_F77='${wl}-E'
22488 ;;
22489
Reid Spencera773bd52006-08-04 18:18:08 +000022490 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000022491 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022492 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22493 else
22494 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22495 fi
22496 if test "$with_gnu_ld" = no; then
22497 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22498 hardcode_libdir_separator_F77=:
22499
22500 hardcode_direct_F77=yes
22501 export_dynamic_flag_spec_F77='${wl}-E'
22502
22503 # hardcode_minus_L: Not really in the search PATH,
22504 # but as the default location of the library.
22505 hardcode_minus_L_F77=yes
22506 fi
22507 ;;
22508
22509 hpux11*)
22510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22511 case $host_cpu in
22512 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022513 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22514 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022515 ia64*)
22516 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22517 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022518 *)
22519 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22520 ;;
22521 esac
22522 else
Reid Spencera773bd52006-08-04 18:18:08 +000022523 case $host_cpu in
22524 hppa*64*)
22525 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22526 ;;
22527 ia64*)
22528 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022529 ;;
22530 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022531 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022532 ;;
22533 esac
22534 fi
22535 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022536 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22537 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022538
Reid Spencera773bd52006-08-04 18:18:08 +000022539 case $host_cpu in
22540 hppa*64*|ia64*)
22541 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22542 hardcode_direct_F77=no
22543 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022544 ;;
22545 *)
John Criswell47fdd832003-07-14 16:52:07 +000022546 hardcode_direct_F77=yes
22547 export_dynamic_flag_spec_F77='${wl}-E'
22548
22549 # hardcode_minus_L: Not really in the search PATH,
22550 # but as the default location of the library.
22551 hardcode_minus_L_F77=yes
22552 ;;
22553 esac
22554 fi
22555 ;;
22556
22557 irix5* | irix6* | nonstopux*)
22558 if test "$GCC" = yes; then
22559 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22560 else
22561 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22562 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22563 fi
22564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22565 hardcode_libdir_separator_F77=:
22566 link_all_deplibs_F77=yes
22567 ;;
22568
22569 netbsd*)
22570 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22571 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22572 else
22573 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22574 fi
22575 hardcode_libdir_flag_spec_F77='-R$libdir'
22576 hardcode_direct_F77=yes
22577 hardcode_shlibpath_var_F77=no
22578 ;;
22579
22580 newsos6)
22581 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22582 hardcode_direct_F77=yes
22583 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22584 hardcode_libdir_separator_F77=:
22585 hardcode_shlibpath_var_F77=no
22586 ;;
22587
22588 openbsd*)
22589 hardcode_direct_F77=yes
22590 hardcode_shlibpath_var_F77=no
22591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22592 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022593 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000022594 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22595 export_dynamic_flag_spec_F77='${wl}-E'
22596 else
22597 case $host_os in
22598 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22599 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22600 hardcode_libdir_flag_spec_F77='-R$libdir'
22601 ;;
22602 *)
22603 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22604 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22605 ;;
22606 esac
22607 fi
22608 ;;
22609
22610 os2*)
22611 hardcode_libdir_flag_spec_F77='-L$libdir'
22612 hardcode_minus_L_F77=yes
22613 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022614 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000022615 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22616 ;;
22617
22618 osf3*)
22619 if test "$GCC" = yes; then
22620 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22621 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22622 else
22623 allow_undefined_flag_F77=' -expect_unresolved \*'
22624 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22625 fi
22626 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22627 hardcode_libdir_separator_F77=:
22628 ;;
22629
22630 osf4* | osf5*) # as osf3* with the addition of -msym flag
22631 if test "$GCC" = yes; then
22632 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22633 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22634 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22635 else
22636 allow_undefined_flag_F77=' -expect_unresolved \*'
22637 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000022638 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000022639 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000022640
John Criswell47fdd832003-07-14 16:52:07 +000022641 # Both c and cxx compiler support -rpath directly
22642 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22643 fi
22644 hardcode_libdir_separator_F77=:
22645 ;;
22646
John Criswell47fdd832003-07-14 16:52:07 +000022647 solaris*)
22648 no_undefined_flag_F77=' -z text'
22649 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022650 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022651 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022654 else
Reid Spencera773bd52006-08-04 18:18:08 +000022655 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022656 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022657 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000022659 fi
22660 hardcode_libdir_flag_spec_F77='-R$libdir'
22661 hardcode_shlibpath_var_F77=no
22662 case $host_os in
22663 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022664 *)
22665 # The compiler driver will combine linker options so we
22666 # cannot just pass the convience library names through
22667 # without $wl, iff we do not link with $LD.
22668 # Luckily, gcc supports the same syntax we need for Sun Studio.
22669 # Supported since Solaris 2.6 (maybe 2.5.1?)
22670 case $wlarc in
22671 '')
22672 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22673 *)
22674 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
22675 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022676 esac
22677 link_all_deplibs_F77=yes
22678 ;;
22679
22680 sunos4*)
22681 if test "x$host_vendor" = xsequent; then
22682 # Use $CC to link under sequent, because it throws in some extra .o
22683 # files that make .init and .fini sections work.
22684 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22685 else
22686 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22687 fi
22688 hardcode_libdir_flag_spec_F77='-L$libdir'
22689 hardcode_direct_F77=yes
22690 hardcode_minus_L_F77=yes
22691 hardcode_shlibpath_var_F77=no
22692 ;;
22693
22694 sysv4)
22695 case $host_vendor in
22696 sni)
22697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22698 hardcode_direct_F77=yes # is this really true???
22699 ;;
22700 siemens)
22701 ## LD is ld it makes a PLAMLIB
22702 ## CC just makes a GrossModule.
22703 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22704 reload_cmds_F77='$CC -r -o $output$reload_objs'
22705 hardcode_direct_F77=no
22706 ;;
22707 motorola)
22708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22709 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22710 ;;
22711 esac
22712 runpath_var='LD_RUN_PATH'
22713 hardcode_shlibpath_var_F77=no
22714 ;;
22715
22716 sysv4.3*)
22717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22718 hardcode_shlibpath_var_F77=no
22719 export_dynamic_flag_spec_F77='-Bexport'
22720 ;;
22721
22722 sysv4*MP*)
22723 if test -d /usr/nec; then
22724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22725 hardcode_shlibpath_var_F77=no
22726 runpath_var=LD_RUN_PATH
22727 hardcode_runpath_var=yes
22728 ld_shlibs_F77=yes
22729 fi
22730 ;;
22731
Reid Spencera773bd52006-08-04 18:18:08 +000022732 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22733 no_undefined_flag_F77='${wl}-z,text'
22734 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022735 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022736 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022737
John Criswell47fdd832003-07-14 16:52:07 +000022738 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022739 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22740 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022741 else
Reid Spencera773bd52006-08-04 18:18:08 +000022742 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22743 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022744 fi
John Criswell47fdd832003-07-14 16:52:07 +000022745 ;;
22746
Reid Spencera773bd52006-08-04 18:18:08 +000022747 sysv5* | sco3.2v5* | sco5v6*)
22748 # Note: We can NOT use -z defs as we might desire, because we do not
22749 # link with -lc, and that would cause any symbols used from libc to
22750 # always be unresolved, which means just about no library would
22751 # ever link correctly. If we're not using GNU ld we use -z text
22752 # though, which does catch some bad symbols but isn't as heavy-handed
22753 # as -z defs.
22754 no_undefined_flag_F77='${wl}-z,text'
22755 allow_undefined_flag_F77='${wl}-z,nodefs'
22756 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022757 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022758 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22759 hardcode_libdir_separator_F77=':'
22760 link_all_deplibs_F77=yes
22761 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022762 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022763
22764 if test "$GCC" = yes; then
22765 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22766 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22767 else
22768 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22769 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22770 fi
John Criswell47fdd832003-07-14 16:52:07 +000022771 ;;
22772
22773 uts4*)
22774 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22775 hardcode_libdir_flag_spec_F77='-L$libdir'
22776 hardcode_shlibpath_var_F77=no
22777 ;;
22778
22779 *)
22780 ld_shlibs_F77=no
22781 ;;
22782 esac
22783 fi
22784
Reid Spencera773bd52006-08-04 18:18:08 +000022785{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22786echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022787test "$ld_shlibs_F77" = no && can_build_shared=no
22788
John Criswell47fdd832003-07-14 16:52:07 +000022789#
22790# Do we need to explicitly link libc?
22791#
22792case "x$archive_cmds_need_lc_F77" in
22793x|xyes)
22794 # Assume -lc should be added
22795 archive_cmds_need_lc_F77=yes
22796
22797 if test "$enable_shared" = yes && test "$GCC" = yes; then
22798 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022799 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022800 # FIXME: we may have to deal with multi-command sequences.
22801 ;;
22802 '$CC '*)
22803 # Test whether the compiler implicitly links with -lc since on some
22804 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22805 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022806 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22807echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022808 $rm conftest*
22809 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22810
22811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22812 (eval $ac_compile) 2>&5
22813 ac_status=$?
22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22815 (exit $ac_status); } 2>conftest.err; then
22816 soname=conftest
22817 lib=conftest
22818 libobjs=conftest.$ac_objext
22819 deplibs=
22820 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022821 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022822 compiler_flags=-v
22823 linker_flags=-v
22824 verstring=
22825 output_objdir=.
22826 libname=conftest
22827 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22828 allow_undefined_flag_F77=
22829 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22830 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22831 ac_status=$?
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }
22834 then
22835 archive_cmds_need_lc_F77=no
22836 else
22837 archive_cmds_need_lc_F77=yes
22838 fi
22839 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22840 else
22841 cat conftest.err 1>&5
22842 fi
22843 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022844 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22845echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022846 ;;
22847 esac
22848 fi
22849 ;;
22850esac
22851
Reid Spencera773bd52006-08-04 18:18:08 +000022852{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22853echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022854library_names_spec=
22855libname_spec='lib$name'
22856soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022857shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022858postinstall_cmds=
22859postuninstall_cmds=
22860finish_cmds=
22861finish_eval=
22862shlibpath_var=
22863shlibpath_overrides_runpath=unknown
22864version_type=none
22865dynamic_linker="$host_os ld.so"
22866sys_lib_dlsearch_path_spec="/lib /usr/lib"
22867if test "$GCC" = yes; then
22868 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22869 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22870 # if the path contains ";" then we assume it to be the separator
22871 # otherwise default to the standard path separator (i.e. ":") - it is
22872 # assumed that no part of a normal pathname contains ";" but that should
22873 # okay in the real world where ";" in dirpaths is itself problematic.
22874 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22875 else
22876 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22877 fi
22878else
22879 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22880fi
22881need_lib_prefix=unknown
22882hardcode_into_libs=no
22883
22884# when you set need_version to no, make sure it does not cause -set_version
22885# flags to be left without arguments
22886need_version=unknown
22887
22888case $host_os in
22889aix3*)
22890 version_type=linux
22891 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22892 shlibpath_var=LIBPATH
22893
22894 # AIX 3 has no versioning support, so we append a major version to the name.
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 ;;
22897
22898aix4* | aix5*)
22899 version_type=linux
22900 need_lib_prefix=no
22901 need_version=no
22902 hardcode_into_libs=yes
22903 if test "$host_cpu" = ia64; then
22904 # AIX 5 supports IA64
22905 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22906 shlibpath_var=LD_LIBRARY_PATH
22907 else
22908 # With GCC up to 2.95.x, collect2 would create an import file
22909 # for dependence libraries. The import file would start with
22910 # the line `#! .'. This would cause the generated library to
22911 # depend on `.', always an invalid library. This was fixed in
22912 # development snapshots of GCC prior to 3.0.
22913 case $host_os in
22914 aix4 | aix4.[01] | aix4.[01].*)
22915 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22916 echo ' yes '
22917 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22918 :
22919 else
22920 can_build_shared=no
22921 fi
22922 ;;
22923 esac
22924 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22925 # soname into executable. Probably we can add versioning support to
22926 # collect2, so additional links can be useful in future.
22927 if test "$aix_use_runtimelinking" = yes; then
22928 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22929 # instead of lib<name>.a to let people know that these are not
22930 # typical AIX shared libraries.
22931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22932 else
22933 # We preserve .a as extension for shared libraries through AIX4.2
22934 # and later when we are not doing run time linking.
22935 library_names_spec='${libname}${release}.a $libname.a'
22936 soname_spec='${libname}${release}${shared_ext}$major'
22937 fi
22938 shlibpath_var=LIBPATH
22939 fi
22940 ;;
22941
22942amigaos*)
22943 library_names_spec='$libname.ixlibrary $libname.a'
22944 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022945 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000022946 ;;
22947
22948beos*)
22949 library_names_spec='${libname}${shared_ext}'
22950 dynamic_linker="$host_os ld.so"
22951 shlibpath_var=LIBRARY_PATH
22952 ;;
22953
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022955 version_type=linux
22956 need_version=no
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22960 shlibpath_var=LD_LIBRARY_PATH
22961 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22962 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22963 # the default ld.so.conf also contains /usr/contrib/lib and
22964 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22965 # libtool to hard-code these into programs
22966 ;;
22967
22968cygwin* | mingw* | pw32*)
22969 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022970 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022971 need_version=no
22972 need_lib_prefix=no
22973
22974 case $GCC,$host_os in
22975 yes,cygwin* | yes,mingw* | yes,pw32*)
22976 library_names_spec='$libname.dll.a'
22977 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022978 postinstall_cmds='base_file=`basename \${file}`~
22979 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22980 dldir=$destdir/`dirname \$dlpath`~
22981 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022982 $install_prog $dir/$dlname \$dldir/$dlname~
22983 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022984 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22985 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022986 $rm \$dlpath'
22987 shlibpath_overrides_runpath=yes
22988
22989 case $host_os in
22990 cygwin*)
22991 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22992 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022994 ;;
22995 mingw*)
22996 # MinGW DLLs use traditional 'lib' prefix
22997 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22998 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22999 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23000 # It is most probably a Windows format PATH printed by
23001 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23002 # path with ; separators, and with drive letters. We can handle the
23003 # drive letters (cygwin fileutils understands them), so leave them,
23004 # especially as we might pass files found there to a mingw objdump,
23005 # which wouldn't understand a cygwinified path. Ahh.
23006 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23007 else
23008 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23009 fi
23010 ;;
23011 pw32*)
23012 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000023013 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023014 ;;
23015 esac
23016 ;;
23017
23018 *)
23019 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23020 ;;
23021 esac
23022 dynamic_linker='Win32 ld.exe'
23023 # FIXME: first we should search . and the directory the executable is in
23024 shlibpath_var=PATH
23025 ;;
23026
23027darwin* | rhapsody*)
23028 dynamic_linker="$host_os dyld"
23029 version_type=darwin
23030 need_lib_prefix=no
23031 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000023033 soname_spec='${libname}${release}${major}$shared_ext'
23034 shlibpath_overrides_runpath=yes
23035 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000023036 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000023037 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023038 if test "$GCC" = yes; then
23039 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23040 else
23041 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000023042 fi
23043 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23044 ;;
23045
23046dgux*)
23047 version_type=linux
23048 need_lib_prefix=no
23049 need_version=no
23050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23051 soname_spec='${libname}${release}${shared_ext}$major'
23052 shlibpath_var=LD_LIBRARY_PATH
23053 ;;
23054
23055freebsd1*)
23056 dynamic_linker=no
23057 ;;
23058
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059kfreebsd*-gnu)
23060 version_type=linux
23061 need_lib_prefix=no
23062 need_version=no
23063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23064 soname_spec='${libname}${release}${shared_ext}$major'
23065 shlibpath_var=LD_LIBRARY_PATH
23066 shlibpath_overrides_runpath=no
23067 hardcode_into_libs=yes
23068 dynamic_linker='GNU ld.so'
23069 ;;
23070
Reid Spencera773bd52006-08-04 18:18:08 +000023071freebsd* | dragonfly*)
23072 # DragonFly does not have aout. When/if they implement a new
23073 # versioning mechanism, adjust this.
23074 if test -x /usr/bin/objformat; then
23075 objformat=`/usr/bin/objformat`
23076 else
23077 case $host_os in
23078 freebsd[123]*) objformat=aout ;;
23079 *) objformat=elf ;;
23080 esac
23081 fi
John Criswell47fdd832003-07-14 16:52:07 +000023082 version_type=freebsd-$objformat
23083 case $version_type in
23084 freebsd-elf*)
23085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23086 need_version=no
23087 need_lib_prefix=no
23088 ;;
23089 freebsd-*)
23090 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23091 need_version=yes
23092 ;;
23093 esac
23094 shlibpath_var=LD_LIBRARY_PATH
23095 case $host_os in
23096 freebsd2*)
23097 shlibpath_overrides_runpath=yes
23098 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023099 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000023100 shlibpath_overrides_runpath=yes
23101 hardcode_into_libs=yes
23102 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023103 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23104 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000023105 shlibpath_overrides_runpath=no
23106 hardcode_into_libs=yes
23107 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023108 freebsd*) # from 4.6 on
23109 shlibpath_overrides_runpath=yes
23110 hardcode_into_libs=yes
23111 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023112 esac
23113 ;;
23114
23115gnu*)
23116 version_type=linux
23117 need_lib_prefix=no
23118 need_version=no
23119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23120 soname_spec='${libname}${release}${shared_ext}$major'
23121 shlibpath_var=LD_LIBRARY_PATH
23122 hardcode_into_libs=yes
23123 ;;
23124
23125hpux9* | hpux10* | hpux11*)
23126 # Give a soname corresponding to the major version so that dld.sl refuses to
23127 # link against other versions.
23128 version_type=sunos
23129 need_lib_prefix=no
23130 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000023131 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023132 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023133 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000023134 hardcode_into_libs=yes
23135 dynamic_linker="$host_os dld.so"
23136 shlibpath_var=LD_LIBRARY_PATH
23137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23139 soname_spec='${libname}${release}${shared_ext}$major'
23140 if test "X$HPUX_IA64_MODE" = X32; then
23141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23142 else
23143 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23144 fi
23145 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23146 ;;
23147 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023149 hardcode_into_libs=yes
23150 dynamic_linker="$host_os dld.sl"
23151 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23152 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23154 soname_spec='${libname}${release}${shared_ext}$major'
23155 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23156 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23157 ;;
23158 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023159 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000023160 dynamic_linker="$host_os dld.sl"
23161 shlibpath_var=SHLIB_PATH
23162 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23164 soname_spec='${libname}${release}${shared_ext}$major'
23165 ;;
23166 esac
23167 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23168 postinstall_cmds='chmod 555 $lib'
23169 ;;
23170
Reid Spencera773bd52006-08-04 18:18:08 +000023171interix3*)
23172 version_type=linux
23173 need_lib_prefix=no
23174 need_version=no
23175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23176 soname_spec='${libname}${release}${shared_ext}$major'
23177 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23178 shlibpath_var=LD_LIBRARY_PATH
23179 shlibpath_overrides_runpath=no
23180 hardcode_into_libs=yes
23181 ;;
23182
John Criswell47fdd832003-07-14 16:52:07 +000023183irix5* | irix6* | nonstopux*)
23184 case $host_os in
23185 nonstopux*) version_type=nonstopux ;;
23186 *)
23187 if test "$lt_cv_prog_gnu_ld" = yes; then
23188 version_type=linux
23189 else
23190 version_type=irix
23191 fi ;;
23192 esac
23193 need_lib_prefix=no
23194 need_version=no
23195 soname_spec='${libname}${release}${shared_ext}$major'
23196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23197 case $host_os in
23198 irix5* | nonstopux*)
23199 libsuff= shlibsuff=
23200 ;;
23201 *)
23202 case $LD in # libtool.m4 will add one of these switches to LD
23203 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23204 libsuff= shlibsuff= libmagic=32-bit;;
23205 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23206 libsuff=32 shlibsuff=N32 libmagic=N32;;
23207 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23208 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23209 *) libsuff= shlibsuff= libmagic=never-match;;
23210 esac
23211 ;;
23212 esac
23213 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23214 shlibpath_overrides_runpath=no
23215 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23216 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23217 hardcode_into_libs=yes
23218 ;;
23219
23220# No shared lib support for Linux oldld, aout, or coff.
23221linux*oldld* | linux*aout* | linux*coff*)
23222 dynamic_linker=no
23223 ;;
23224
23225# This must be Linux ELF.
23226linux*)
23227 version_type=linux
23228 need_lib_prefix=no
23229 need_version=no
23230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23231 soname_spec='${libname}${release}${shared_ext}$major'
23232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23233 shlibpath_var=LD_LIBRARY_PATH
23234 shlibpath_overrides_runpath=no
23235 # This implies no fast_install, which is unacceptable.
23236 # Some rework will be needed to allow for fast_install
23237 # before this can be enabled.
23238 hardcode_into_libs=yes
23239
Reid Spencer2706f8c2004-09-19 23:53:36 +000023240 # Append ld.so.conf contents to the search path
23241 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000023242 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000023243 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23244 fi
23245
John Criswell47fdd832003-07-14 16:52:07 +000023246 # We used to test for /lib/ld.so.1 and disable shared libraries on
23247 # powerpc, because MkLinux only supported shared libraries with the
23248 # GNU dynamic linker. Since this was broken with cross compilers,
23249 # most powerpc-linux boxes support dynamic linking these days and
23250 # people can always --disable-shared, the test was removed, and we
23251 # assume the GNU/Linux dynamic linker is in use.
23252 dynamic_linker='GNU/Linux ld.so'
23253 ;;
23254
Reid Spencer2706f8c2004-09-19 23:53:36 +000023255knetbsd*-gnu)
23256 version_type=linux
23257 need_lib_prefix=no
23258 need_version=no
23259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23260 soname_spec='${libname}${release}${shared_ext}$major'
23261 shlibpath_var=LD_LIBRARY_PATH
23262 shlibpath_overrides_runpath=no
23263 hardcode_into_libs=yes
23264 dynamic_linker='GNU ld.so'
23265 ;;
23266
John Criswell47fdd832003-07-14 16:52:07 +000023267netbsd*)
23268 version_type=sunos
23269 need_lib_prefix=no
23270 need_version=no
23271 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
23272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23273 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23274 dynamic_linker='NetBSD (a.out) ld.so'
23275 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000023277 soname_spec='${libname}${release}${shared_ext}$major'
23278 dynamic_linker='NetBSD ld.elf_so'
23279 fi
23280 shlibpath_var=LD_LIBRARY_PATH
23281 shlibpath_overrides_runpath=yes
23282 hardcode_into_libs=yes
23283 ;;
23284
23285newsos6)
23286 version_type=linux
23287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23288 shlibpath_var=LD_LIBRARY_PATH
23289 shlibpath_overrides_runpath=yes
23290 ;;
23291
Reid Spencer2706f8c2004-09-19 23:53:36 +000023292nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000023293 version_type=linux
23294 need_lib_prefix=no
23295 need_version=no
23296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23297 soname_spec='${libname}${release}${shared_ext}$major'
23298 shlibpath_var=LD_LIBRARY_PATH
23299 shlibpath_overrides_runpath=yes
23300 ;;
23301
23302openbsd*)
23303 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000023304 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000023305 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000023306 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23307 case $host_os in
23308 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23309 *) need_version=no ;;
23310 esac
John Criswell47fdd832003-07-14 16:52:07 +000023311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23312 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23313 shlibpath_var=LD_LIBRARY_PATH
23314 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23315 case $host_os in
23316 openbsd2.[89] | openbsd2.[89].*)
23317 shlibpath_overrides_runpath=no
23318 ;;
23319 *)
23320 shlibpath_overrides_runpath=yes
23321 ;;
23322 esac
23323 else
23324 shlibpath_overrides_runpath=yes
23325 fi
23326 ;;
23327
23328os2*)
23329 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000023330 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000023331 need_lib_prefix=no
23332 library_names_spec='$libname${shared_ext} $libname.a'
23333 dynamic_linker='OS/2 ld.exe'
23334 shlibpath_var=LIBPATH
23335 ;;
23336
23337osf3* | osf4* | osf5*)
23338 version_type=osf
23339 need_lib_prefix=no
23340 need_version=no
23341 soname_spec='${libname}${release}${shared_ext}$major'
23342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23343 shlibpath_var=LD_LIBRARY_PATH
23344 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23345 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23346 ;;
23347
John Criswell47fdd832003-07-14 16:52:07 +000023348solaris*)
23349 version_type=linux
23350 need_lib_prefix=no
23351 need_version=no
23352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23353 soname_spec='${libname}${release}${shared_ext}$major'
23354 shlibpath_var=LD_LIBRARY_PATH
23355 shlibpath_overrides_runpath=yes
23356 hardcode_into_libs=yes
23357 # ldd complains unless libraries are executable
23358 postinstall_cmds='chmod +x $lib'
23359 ;;
23360
23361sunos4*)
23362 version_type=sunos
23363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23364 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23365 shlibpath_var=LD_LIBRARY_PATH
23366 shlibpath_overrides_runpath=yes
23367 if test "$with_gnu_ld" = yes; then
23368 need_lib_prefix=no
23369 fi
23370 need_version=yes
23371 ;;
23372
Reid Spencera773bd52006-08-04 18:18:08 +000023373sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023374 version_type=linux
23375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23376 soname_spec='${libname}${release}${shared_ext}$major'
23377 shlibpath_var=LD_LIBRARY_PATH
23378 case $host_vendor in
23379 sni)
23380 shlibpath_overrides_runpath=no
23381 need_lib_prefix=no
23382 export_dynamic_flag_spec='${wl}-Blargedynsym'
23383 runpath_var=LD_RUN_PATH
23384 ;;
23385 siemens)
23386 need_lib_prefix=no
23387 ;;
23388 motorola)
23389 need_lib_prefix=no
23390 need_version=no
23391 shlibpath_overrides_runpath=no
23392 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23393 ;;
23394 esac
23395 ;;
23396
23397sysv4*MP*)
23398 if test -d /usr/nec ;then
23399 version_type=linux
23400 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23401 soname_spec='$libname${shared_ext}.$major'
23402 shlibpath_var=LD_LIBRARY_PATH
23403 fi
23404 ;;
23405
Reid Spencera773bd52006-08-04 18:18:08 +000023406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23407 version_type=freebsd-elf
23408 need_lib_prefix=no
23409 need_version=no
23410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23411 soname_spec='${libname}${release}${shared_ext}$major'
23412 shlibpath_var=LD_LIBRARY_PATH
23413 hardcode_into_libs=yes
23414 if test "$with_gnu_ld" = yes; then
23415 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23416 shlibpath_overrides_runpath=no
23417 else
23418 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23419 shlibpath_overrides_runpath=yes
23420 case $host_os in
23421 sco3.2v5*)
23422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23423 ;;
23424 esac
23425 fi
23426 sys_lib_dlsearch_path_spec='/usr/lib'
23427 ;;
23428
John Criswell47fdd832003-07-14 16:52:07 +000023429uts4*)
23430 version_type=linux
23431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23432 soname_spec='${libname}${release}${shared_ext}$major'
23433 shlibpath_var=LD_LIBRARY_PATH
23434 ;;
23435
23436*)
23437 dynamic_linker=no
23438 ;;
23439esac
Reid Spencera773bd52006-08-04 18:18:08 +000023440{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23441echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023442test "$dynamic_linker" = no && can_build_shared=no
23443
Reid Spencera773bd52006-08-04 18:18:08 +000023444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23445if test "$GCC" = yes; then
23446 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23447fi
23448
23449{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23450echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023451hardcode_action_F77=
23452if test -n "$hardcode_libdir_flag_spec_F77" || \
23453 test -n "$runpath_var_F77" || \
23454 test "X$hardcode_automatic_F77" = "Xyes" ; then
23455
23456 # We can hardcode non-existant directories.
23457 if test "$hardcode_direct_F77" != no &&
23458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23459 # have to relink, otherwise we might link with an installed library
23460 # when we should be linking with a yet-to-be-installed one
23461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23462 test "$hardcode_minus_L_F77" != no; then
23463 # Linking always hardcodes the temporary library directory.
23464 hardcode_action_F77=relink
23465 else
23466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23467 hardcode_action_F77=immediate
23468 fi
23469else
23470 # We cannot hardcode anything, or else we can only hardcode existing
23471 # directories.
23472 hardcode_action_F77=unsupported
23473fi
Reid Spencera773bd52006-08-04 18:18:08 +000023474{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
23475echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000023476
23477if test "$hardcode_action_F77" = relink; then
23478 # Fast installation is not supported
23479 enable_fast_install=no
23480elif test "$shlibpath_overrides_runpath" = yes ||
23481 test "$enable_shared" = no; then
23482 # Fast installation is not necessary
23483 enable_fast_install=needless
23484fi
23485
John Criswell47fdd832003-07-14 16:52:07 +000023486
23487# The else clause should only fire when bootstrapping the
23488# libtool distribution, otherwise you forgot to ship ltmain.sh
23489# with your package, and you will get complaints that there are
23490# no rules to generate ltmain.sh.
23491if test -f "$ltmain"; then
23492 # See if we are running on zsh, and set the options which allow our commands through
23493 # without removal of \ escapes.
23494 if test -n "${ZSH_VERSION+set}" ; then
23495 setopt NO_GLOB_SUBST
23496 fi
23497 # Now quote all the things that may contain metacharacters while being
23498 # careful not to overquote the AC_SUBSTed values. We take copies of the
23499 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000023500 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023501 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023502 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23503 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23504 deplibs_check_method reload_flag reload_cmds need_locks \
23505 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23506 lt_cv_sys_global_symbol_to_c_name_address \
23507 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23508 old_postinstall_cmds old_postuninstall_cmds \
23509 compiler_F77 \
23510 CC_F77 \
23511 LD_F77 \
23512 lt_prog_compiler_wl_F77 \
23513 lt_prog_compiler_pic_F77 \
23514 lt_prog_compiler_static_F77 \
23515 lt_prog_compiler_no_builtin_flag_F77 \
23516 export_dynamic_flag_spec_F77 \
23517 thread_safe_flag_spec_F77 \
23518 whole_archive_flag_spec_F77 \
23519 enable_shared_with_static_runtimes_F77 \
23520 old_archive_cmds_F77 \
23521 old_archive_from_new_cmds_F77 \
23522 predep_objects_F77 \
23523 postdep_objects_F77 \
23524 predeps_F77 \
23525 postdeps_F77 \
23526 compiler_lib_search_path_F77 \
23527 archive_cmds_F77 \
23528 archive_expsym_cmds_F77 \
23529 postinstall_cmds_F77 \
23530 postuninstall_cmds_F77 \
23531 old_archive_from_expsyms_cmds_F77 \
23532 allow_undefined_flag_F77 \
23533 no_undefined_flag_F77 \
23534 export_symbols_cmds_F77 \
23535 hardcode_libdir_flag_spec_F77 \
23536 hardcode_libdir_flag_spec_ld_F77 \
23537 hardcode_libdir_separator_F77 \
23538 hardcode_automatic_F77 \
23539 module_cmds_F77 \
23540 module_expsym_cmds_F77 \
23541 lt_cv_prog_compiler_c_o_F77 \
23542 exclude_expsyms_F77 \
23543 include_expsyms_F77; do
23544
23545 case $var in
23546 old_archive_cmds_F77 | \
23547 old_archive_from_new_cmds_F77 | \
23548 archive_cmds_F77 | \
23549 archive_expsym_cmds_F77 | \
23550 module_cmds_F77 | \
23551 module_expsym_cmds_F77 | \
23552 old_archive_from_expsyms_cmds_F77 | \
23553 export_symbols_cmds_F77 | \
23554 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23555 postinstall_cmds | postuninstall_cmds | \
23556 old_postinstall_cmds | old_postuninstall_cmds | \
23557 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23558 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023559 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000023560 ;;
23561 *)
23562 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23563 ;;
23564 esac
23565 done
23566
23567 case $lt_echo in
23568 *'\$0 --fallback-echo"')
23569 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23570 ;;
23571 esac
23572
23573cfgfile="$ofile"
23574
23575 cat <<__EOF__ >> "$cfgfile"
23576# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23577
23578# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23579
23580# Shell to use when invoking shell scripts.
23581SHELL=$lt_SHELL
23582
23583# Whether or not to build shared libraries.
23584build_libtool_libs=$enable_shared
23585
23586# Whether or not to build static libraries.
23587build_old_libs=$enable_static
23588
23589# Whether or not to add -lc for building shared libraries.
23590build_libtool_need_lc=$archive_cmds_need_lc_F77
23591
23592# Whether or not to disallow shared libs when runtime libs are static
23593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23594
23595# Whether or not to optimize for fast installation.
23596fast_install=$enable_fast_install
23597
23598# The host system.
23599host_alias=$host_alias
23600host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023601host_os=$host_os
23602
23603# The build system.
23604build_alias=$build_alias
23605build=$build
23606build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023607
23608# An echo program that does not interpret backslashes.
23609echo=$lt_echo
23610
23611# The archiver.
23612AR=$lt_AR
23613AR_FLAGS=$lt_AR_FLAGS
23614
23615# A C compiler.
23616LTCC=$lt_LTCC
23617
Reid Spencera773bd52006-08-04 18:18:08 +000023618# LTCC compiler flags.
23619LTCFLAGS=$lt_LTCFLAGS
23620
John Criswell47fdd832003-07-14 16:52:07 +000023621# A language-specific compiler.
23622CC=$lt_compiler_F77
23623
23624# Is the compiler the GNU C compiler?
23625with_gcc=$GCC_F77
23626
23627# An ERE matcher.
23628EGREP=$lt_EGREP
23629
23630# The linker used to build libraries.
23631LD=$lt_LD_F77
23632
23633# Whether we need hard or soft links.
23634LN_S=$lt_LN_S
23635
23636# A BSD-compatible nm program.
23637NM=$lt_NM
23638
23639# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023640STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023641
23642# Used to examine libraries when file_magic_cmd begins "file"
23643MAGIC_CMD=$MAGIC_CMD
23644
23645# Used on cygwin: DLL creation program.
23646DLLTOOL="$DLLTOOL"
23647
23648# Used on cygwin: object dumper.
23649OBJDUMP="$OBJDUMP"
23650
23651# Used on cygwin: assembler.
23652AS="$AS"
23653
23654# The name of the directory that contains temporary libtool files.
23655objdir=$objdir
23656
23657# How to create reloadable object files.
23658reload_flag=$lt_reload_flag
23659reload_cmds=$lt_reload_cmds
23660
23661# How to pass a linker flag through the compiler.
23662wl=$lt_lt_prog_compiler_wl_F77
23663
23664# Object file suffix (normally "o").
23665objext="$ac_objext"
23666
23667# Old archive suffix (normally "a").
23668libext="$libext"
23669
23670# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023671shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023672
23673# Executable file suffix (normally "").
23674exeext="$exeext"
23675
23676# Additional compiler flags for building library objects.
23677pic_flag=$lt_lt_prog_compiler_pic_F77
23678pic_mode=$pic_mode
23679
23680# What is the maximum length of a command?
23681max_cmd_len=$lt_cv_sys_max_cmd_len
23682
23683# Does compiler simultaneously support -c and -o options?
23684compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23685
Reid Spencera773bd52006-08-04 18:18:08 +000023686# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023687need_locks=$lt_need_locks
23688
23689# Do we need the lib prefix for modules?
23690need_lib_prefix=$need_lib_prefix
23691
23692# Do we need a version for libraries?
23693need_version=$need_version
23694
23695# Whether dlopen is supported.
23696dlopen_support=$enable_dlopen
23697
23698# Whether dlopen of programs is supported.
23699dlopen_self=$enable_dlopen_self
23700
23701# Whether dlopen of statically linked programs is supported.
23702dlopen_self_static=$enable_dlopen_self_static
23703
23704# Compiler flag to prevent dynamic linking.
23705link_static_flag=$lt_lt_prog_compiler_static_F77
23706
23707# Compiler flag to turn off builtin functions.
23708no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23709
23710# Compiler flag to allow reflexive dlopens.
23711export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23712
23713# Compiler flag to generate shared objects directly from archives.
23714whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23715
23716# Compiler flag to generate thread-safe objects.
23717thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23718
23719# Library versioning type.
23720version_type=$version_type
23721
23722# Format of library name prefix.
23723libname_spec=$lt_libname_spec
23724
23725# List of archive names. First name is the real one, the rest are links.
23726# The last name is the one that the linker finds with -lNAME.
23727library_names_spec=$lt_library_names_spec
23728
23729# The coded name of the library, if different from the real name.
23730soname_spec=$lt_soname_spec
23731
23732# Commands used to build and install an old-style archive.
23733RANLIB=$lt_RANLIB
23734old_archive_cmds=$lt_old_archive_cmds_F77
23735old_postinstall_cmds=$lt_old_postinstall_cmds
23736old_postuninstall_cmds=$lt_old_postuninstall_cmds
23737
23738# Create an old-style archive from a shared archive.
23739old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23740
23741# Create a temporary old-style archive to link instead of a shared archive.
23742old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23743
23744# Commands used to build and install a shared archive.
23745archive_cmds=$lt_archive_cmds_F77
23746archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23747postinstall_cmds=$lt_postinstall_cmds
23748postuninstall_cmds=$lt_postuninstall_cmds
23749
23750# Commands used to build a loadable module (assumed same as above if empty)
23751module_cmds=$lt_module_cmds_F77
23752module_expsym_cmds=$lt_module_expsym_cmds_F77
23753
23754# Commands to strip libraries.
23755old_striplib=$lt_old_striplib
23756striplib=$lt_striplib
23757
23758# Dependencies to place before the objects being linked to create a
23759# shared library.
23760predep_objects=$lt_predep_objects_F77
23761
23762# Dependencies to place after the objects being linked to create a
23763# shared library.
23764postdep_objects=$lt_postdep_objects_F77
23765
23766# Dependencies to place before the objects being linked to create a
23767# shared library.
23768predeps=$lt_predeps_F77
23769
23770# Dependencies to place after the objects being linked to create a
23771# shared library.
23772postdeps=$lt_postdeps_F77
23773
23774# The library search path used internally by the compiler when linking
23775# a shared library.
23776compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23777
23778# Method to check whether dependent libraries are shared objects.
23779deplibs_check_method=$lt_deplibs_check_method
23780
23781# Command to use when deplibs_check_method == file_magic.
23782file_magic_cmd=$lt_file_magic_cmd
23783
23784# Flag that allows shared libraries with undefined symbols to be built.
23785allow_undefined_flag=$lt_allow_undefined_flag_F77
23786
23787# Flag that forces no undefined symbols.
23788no_undefined_flag=$lt_no_undefined_flag_F77
23789
23790# Commands used to finish a libtool library installation in a directory.
23791finish_cmds=$lt_finish_cmds
23792
23793# Same as above, but a single script fragment to be evaled but not shown.
23794finish_eval=$lt_finish_eval
23795
23796# Take the output of nm and produce a listing of raw symbols and C names.
23797global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23798
23799# Transform the output of nm in a proper C declaration
23800global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23801
23802# Transform the output of nm in a C name address pair
23803global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23804
23805# This is the shared library runtime path variable.
23806runpath_var=$runpath_var
23807
23808# This is the shared library path variable.
23809shlibpath_var=$shlibpath_var
23810
23811# Is shlibpath searched before the hard-coded library search path?
23812shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23813
23814# How to hardcode a shared library path into an executable.
23815hardcode_action=$hardcode_action_F77
23816
23817# Whether we should hardcode library paths into libraries.
23818hardcode_into_libs=$hardcode_into_libs
23819
23820# Flag to hardcode \$libdir into a binary during linking.
23821# This must work even if \$libdir does not exist.
23822hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23823
23824# If ld is used when linking, flag to hardcode \$libdir into
23825# a binary during linking. This must work even if \$libdir does
23826# not exist.
23827hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23828
23829# Whether we need a single -rpath flag with a separated argument.
23830hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23831
23832# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23833# resulting binary.
23834hardcode_direct=$hardcode_direct_F77
23835
23836# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23837# resulting binary.
23838hardcode_minus_L=$hardcode_minus_L_F77
23839
23840# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23841# the resulting binary.
23842hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23843
23844# Set to yes if building a shared library automatically hardcodes DIR into the library
23845# and all subsequent libraries and executables linked against it.
23846hardcode_automatic=$hardcode_automatic_F77
23847
23848# Variables whose values should be saved in libtool wrapper scripts and
23849# restored at relink time.
23850variables_saved_for_relink="$variables_saved_for_relink"
23851
23852# Whether libtool must link a program against all its dependency libraries.
23853link_all_deplibs=$link_all_deplibs_F77
23854
23855# Compile-time system search path for libraries
23856sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23857
23858# Run-time system search path for libraries
23859sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23860
23861# Fix the shell variable \$srcfile for the compiler.
23862fix_srcfile_path="$fix_srcfile_path_F77"
23863
23864# Set to yes if exported symbols are required.
23865always_export_symbols=$always_export_symbols_F77
23866
23867# The commands to list exported symbols.
23868export_symbols_cmds=$lt_export_symbols_cmds_F77
23869
23870# The commands to extract the exported symbol list from a shared archive.
23871extract_expsyms_cmds=$lt_extract_expsyms_cmds
23872
23873# Symbols that should not be listed in the preloaded symbols.
23874exclude_expsyms=$lt_exclude_expsyms_F77
23875
23876# Symbols that must always be exported.
23877include_expsyms=$lt_include_expsyms_F77
23878
23879# ### END LIBTOOL TAG CONFIG: $tagname
23880
23881__EOF__
23882
23883
23884else
23885 # If there is no Makefile yet, we rely on a make rule to execute
23886 # `config.status --recheck' to rerun these tests and create the
23887 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023888 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23889 if test -f "$ltmain_in"; then
23890 test -f Makefile && make "$ltmain"
23891 fi
John Criswell47fdd832003-07-14 16:52:07 +000023892fi
23893
23894
23895ac_ext=c
23896ac_cpp='$CPP $CPPFLAGS'
23897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23899ac_compiler_gnu=$ac_cv_c_compiler_gnu
23900
23901CC="$lt_save_CC"
23902
23903 else
23904 tagname=""
23905 fi
23906 ;;
23907
23908 GCJ)
23909 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023910 ac_ext=c
23911ac_cpp='$CPP $CPPFLAGS'
23912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023915
23916
23917# Source file extension for Java test sources.
23918ac_ext=java
23919
23920# Object file extension for compiled Java test sources.
23921objext=o
23922objext_GCJ=$objext
23923
23924# Code to be used in simple compile tests
23925lt_simple_compile_test_code="class foo {}\n"
23926
23927# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023928lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023929
23930# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23931
23932# If no C compiler was specified, use CC.
23933LTCC=${LTCC-"$CC"}
23934
Reid Spencera773bd52006-08-04 18:18:08 +000023935# If no C compiler flags were specified, use CFLAGS.
23936LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23937
John Criswell47fdd832003-07-14 16:52:07 +000023938# Allow CC to be a program name with arguments.
23939compiler=$CC
23940
23941
Reid Spencera773bd52006-08-04 18:18:08 +000023942# save warnings/boilerplate of simple test code
23943ac_outfile=conftest.$ac_objext
23944printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23945eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23946_lt_compiler_boilerplate=`cat conftest.err`
23947$rm conftest*
23948
23949ac_outfile=conftest.$ac_objext
23950printf "$lt_simple_link_test_code" >conftest.$ac_ext
23951eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23952_lt_linker_boilerplate=`cat conftest.err`
23953$rm conftest*
23954
23955
John Criswell47fdd832003-07-14 16:52:07 +000023956# Allow CC to be a program name with arguments.
23957lt_save_CC="$CC"
23958CC=${GCJ-"gcj"}
23959compiler=$CC
23960compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023961for cc_temp in $compiler""; do
23962 case $cc_temp in
23963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23965 \-*) ;;
23966 *) break;;
23967 esac
23968done
23969cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23970
John Criswell47fdd832003-07-14 16:52:07 +000023971
23972# GCJ did not exist at the time GCC didn't implicitly link libc in.
23973archive_cmds_need_lc_GCJ=no
23974
Reid Spencera773bd52006-08-04 18:18:08 +000023975old_archive_cmds_GCJ=$old_archive_cmds
23976
John Criswell47fdd832003-07-14 16:52:07 +000023977
23978lt_prog_compiler_no_builtin_flag_GCJ=
23979
23980if test "$GCC" = yes; then
23981 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23982
Reid Spencer2706f8c2004-09-19 23:53:36 +000023983
Reid Spencera773bd52006-08-04 18:18:08 +000023984{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23985echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023986if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988else
23989 lt_cv_prog_compiler_rtti_exceptions=no
23990 ac_outfile=conftest.$ac_objext
23991 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23992 lt_compiler_flag="-fno-rtti -fno-exceptions"
23993 # Insert the option either (1) after the last *FLAGS variable, or
23994 # (2) before a word containing "conftest.", or (3) at the end.
23995 # Note that $ac_compile itself does not contain backslashes and begins
23996 # with a dollar sign (not a hyphen), so the echo should work correctly.
23997 # The option is referenced via a variable to avoid confusing sed.
23998 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24001 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000024002 (eval echo "\"\$as_me:24002: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024003 (eval "$lt_compile" 2>conftest.err)
24004 ac_status=$?
24005 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000024006 echo "$as_me:24006: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024007 if (exit $ac_status) && test -s "$ac_outfile"; then
24008 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024009 # So say no if there are warnings other than the usual output.
24010 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24012 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024013 lt_cv_prog_compiler_rtti_exceptions=yes
24014 fi
24015 fi
24016 $rm conftest*
24017
24018fi
Reid Spencera773bd52006-08-04 18:18:08 +000024019{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
24020echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024021
24022if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
24023 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
24024else
24025 :
24026fi
24027
24028fi
24029
24030lt_prog_compiler_wl_GCJ=
24031lt_prog_compiler_pic_GCJ=
24032lt_prog_compiler_static_GCJ=
24033
Reid Spencera773bd52006-08-04 18:18:08 +000024034{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
24035echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024036
24037 if test "$GCC" = yes; then
24038 lt_prog_compiler_wl_GCJ='-Wl,'
24039 lt_prog_compiler_static_GCJ='-static'
24040
24041 case $host_os in
24042 aix*)
24043 # All AIX code is PIC.
24044 if test "$host_cpu" = ia64; then
24045 # AIX 5 now supports IA64 processor
24046 lt_prog_compiler_static_GCJ='-Bstatic'
24047 fi
24048 ;;
24049
24050 amigaos*)
24051 # FIXME: we need at least 68020 code to build shared libraries, but
24052 # adding the `-m68020' flag to GCC prevents building anything better,
24053 # like `-m68040'.
24054 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
24055 ;;
24056
24057 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
24058 # PIC is the default for these OSes.
24059 ;;
24060
24061 mingw* | pw32* | os2*)
24062 # This hack is so that the source file can tell whether it is being
24063 # built for inclusion in a dll (and should export symbols for example).
24064 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24065 ;;
24066
24067 darwin* | rhapsody*)
24068 # PIC is the default on this platform
24069 # Common symbols not allowed in MH_DYLIB files
24070 lt_prog_compiler_pic_GCJ='-fno-common'
24071 ;;
24072
Reid Spencera773bd52006-08-04 18:18:08 +000024073 interix3*)
24074 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
24075 # Instead, we relocate shared libraries at runtime.
24076 ;;
24077
John Criswell47fdd832003-07-14 16:52:07 +000024078 msdosdjgpp*)
24079 # Just because we use GCC doesn't mean we suddenly get shared libraries
24080 # on systems that don't support them.
24081 lt_prog_compiler_can_build_shared_GCJ=no
24082 enable_shared=no
24083 ;;
24084
24085 sysv4*MP*)
24086 if test -d /usr/nec; then
24087 lt_prog_compiler_pic_GCJ=-Kconform_pic
24088 fi
24089 ;;
24090
24091 hpux*)
24092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24093 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024094 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024095 hppa*64*|ia64*)
24096 # +Z the default
24097 ;;
24098 *)
24099 lt_prog_compiler_pic_GCJ='-fPIC'
24100 ;;
24101 esac
24102 ;;
24103
24104 *)
24105 lt_prog_compiler_pic_GCJ='-fPIC'
24106 ;;
24107 esac
24108 else
24109 # PORTME Check for flag to pass linker flags through the system compiler.
24110 case $host_os in
24111 aix*)
24112 lt_prog_compiler_wl_GCJ='-Wl,'
24113 if test "$host_cpu" = ia64; then
24114 # AIX 5 now supports IA64 processor
24115 lt_prog_compiler_static_GCJ='-Bstatic'
24116 else
24117 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
24118 fi
24119 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024120 darwin*)
24121 # PIC is the default on this platform
24122 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000024123 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024124 xlc*)
24125 lt_prog_compiler_pic_GCJ='-qnocommon'
24126 lt_prog_compiler_wl_GCJ='-Wl,'
24127 ;;
24128 esac
24129 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024130
24131 mingw* | pw32* | os2*)
24132 # This hack is so that the source file can tell whether it is being
24133 # built for inclusion in a dll (and should export symbols for example).
24134 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
24135 ;;
24136
24137 hpux9* | hpux10* | hpux11*)
24138 lt_prog_compiler_wl_GCJ='-Wl,'
24139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
24140 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000024141 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000024142 hppa*64*|ia64*)
24143 # +Z the default
24144 ;;
24145 *)
24146 lt_prog_compiler_pic_GCJ='+Z'
24147 ;;
24148 esac
24149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
24150 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
24151 ;;
24152
24153 irix5* | irix6* | nonstopux*)
24154 lt_prog_compiler_wl_GCJ='-Wl,'
24155 # PIC (with -KPIC) is the default.
24156 lt_prog_compiler_static_GCJ='-non_shared'
24157 ;;
24158
24159 newsos6)
24160 lt_prog_compiler_pic_GCJ='-KPIC'
24161 lt_prog_compiler_static_GCJ='-Bstatic'
24162 ;;
24163
24164 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000024165 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024166 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000024167 lt_prog_compiler_wl_GCJ='-Wl,'
24168 lt_prog_compiler_pic_GCJ='-KPIC'
24169 lt_prog_compiler_static_GCJ='-static'
24170 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024171 pgcc* | pgf77* | pgf90* | pgf95*)
24172 # Portland Group compilers (*not* the Pentium gcc compiler,
24173 # which looks to be a dead project)
24174 lt_prog_compiler_wl_GCJ='-Wl,'
24175 lt_prog_compiler_pic_GCJ='-fpic'
24176 lt_prog_compiler_static_GCJ='-Bstatic'
24177 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024178 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000024179 lt_prog_compiler_wl_GCJ='-Wl,'
24180 # All Alpha code is PIC.
24181 lt_prog_compiler_static_GCJ='-non_shared'
24182 ;;
24183 esac
24184 ;;
24185
24186 osf3* | osf4* | osf5*)
24187 lt_prog_compiler_wl_GCJ='-Wl,'
24188 # All OSF/1 code is PIC.
24189 lt_prog_compiler_static_GCJ='-non_shared'
24190 ;;
24191
John Criswell47fdd832003-07-14 16:52:07 +000024192 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024193 lt_prog_compiler_pic_GCJ='-KPIC'
24194 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000024195 case $cc_basename in
24196 f77* | f90* | f95*)
24197 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
24198 *)
24199 lt_prog_compiler_wl_GCJ='-Wl,';;
24200 esac
John Criswell47fdd832003-07-14 16:52:07 +000024201 ;;
24202
24203 sunos4*)
24204 lt_prog_compiler_wl_GCJ='-Qoption ld '
24205 lt_prog_compiler_pic_GCJ='-PIC'
24206 lt_prog_compiler_static_GCJ='-Bstatic'
24207 ;;
24208
Reid Spencera773bd52006-08-04 18:18:08 +000024209 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000024210 lt_prog_compiler_wl_GCJ='-Wl,'
24211 lt_prog_compiler_pic_GCJ='-KPIC'
24212 lt_prog_compiler_static_GCJ='-Bstatic'
24213 ;;
24214
24215 sysv4*MP*)
24216 if test -d /usr/nec ;then
24217 lt_prog_compiler_pic_GCJ='-Kconform_pic'
24218 lt_prog_compiler_static_GCJ='-Bstatic'
24219 fi
24220 ;;
24221
Reid Spencera773bd52006-08-04 18:18:08 +000024222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
24223 lt_prog_compiler_wl_GCJ='-Wl,'
24224 lt_prog_compiler_pic_GCJ='-KPIC'
24225 lt_prog_compiler_static_GCJ='-Bstatic'
24226 ;;
24227
24228 unicos*)
24229 lt_prog_compiler_wl_GCJ='-Wl,'
24230 lt_prog_compiler_can_build_shared_GCJ=no
24231 ;;
24232
John Criswell47fdd832003-07-14 16:52:07 +000024233 uts4*)
24234 lt_prog_compiler_pic_GCJ='-pic'
24235 lt_prog_compiler_static_GCJ='-Bstatic'
24236 ;;
24237
24238 *)
24239 lt_prog_compiler_can_build_shared_GCJ=no
24240 ;;
24241 esac
24242 fi
24243
Reid Spencera773bd52006-08-04 18:18:08 +000024244{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
24245echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024246
24247#
24248# Check to make sure the PIC flag actually works.
24249#
24250if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024251
Reid Spencera773bd52006-08-04 18:18:08 +000024252{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
24253echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024254if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
24255 echo $ECHO_N "(cached) $ECHO_C" >&6
24256else
24257 lt_prog_compiler_pic_works_GCJ=no
24258 ac_outfile=conftest.$ac_objext
24259 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24260 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
24261 # Insert the option either (1) after the last *FLAGS variable, or
24262 # (2) before a word containing "conftest.", or (3) at the end.
24263 # Note that $ac_compile itself does not contain backslashes and begins
24264 # with a dollar sign (not a hyphen), so the echo should work correctly.
24265 # The option is referenced via a variable to avoid confusing sed.
24266 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24269 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000024270 (eval echo "\"\$as_me:24270: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024271 (eval "$lt_compile" 2>conftest.err)
24272 ac_status=$?
24273 cat conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000024274 echo "$as_me:24274: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024275 if (exit $ac_status) && test -s "$ac_outfile"; then
24276 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000024277 # So say no if there are warnings other than the usual output.
24278 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
24279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024281 lt_prog_compiler_pic_works_GCJ=yes
24282 fi
24283 fi
24284 $rm conftest*
24285
24286fi
Reid Spencera773bd52006-08-04 18:18:08 +000024287{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
24288echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024289
24290if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
24291 case $lt_prog_compiler_pic_GCJ in
24292 "" | " "*) ;;
24293 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
24294 esac
24295else
24296 lt_prog_compiler_pic_GCJ=
24297 lt_prog_compiler_can_build_shared_GCJ=no
24298fi
24299
24300fi
Reid Spencera773bd52006-08-04 18:18:08 +000024301case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000024302 # For platforms which do not support PIC, -DPIC is meaningless:
24303 *djgpp*)
24304 lt_prog_compiler_pic_GCJ=
24305 ;;
24306 *)
24307 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
24308 ;;
24309esac
24310
Reid Spencera773bd52006-08-04 18:18:08 +000024311#
24312# Check to make sure the static flag actually works.
24313#
24314wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
24315{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
24316echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
24317if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
24318 echo $ECHO_N "(cached) $ECHO_C" >&6
24319else
24320 lt_prog_compiler_static_works_GCJ=no
24321 save_LDFLAGS="$LDFLAGS"
24322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
24323 printf "$lt_simple_link_test_code" > conftest.$ac_ext
24324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
24325 # The linker can only warn and ignore the option if not recognized
24326 # So say no if there are warnings
24327 if test -s conftest.err; then
24328 # Append any errors to the config.log.
24329 cat conftest.err 1>&5
24330 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
24331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
24332 if diff conftest.exp conftest.er2 >/dev/null; then
24333 lt_prog_compiler_static_works_GCJ=yes
24334 fi
24335 else
24336 lt_prog_compiler_static_works_GCJ=yes
24337 fi
24338 fi
24339 $rm conftest*
24340 LDFLAGS="$save_LDFLAGS"
24341
24342fi
24343{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
24344echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
24345
24346if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
24347 :
24348else
24349 lt_prog_compiler_static_GCJ=
24350fi
24351
24352
24353{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
24354echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024355if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
24356 echo $ECHO_N "(cached) $ECHO_C" >&6
24357else
24358 lt_cv_prog_compiler_c_o_GCJ=no
24359 $rm -r conftest 2>/dev/null
24360 mkdir conftest
24361 cd conftest
24362 mkdir out
24363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24364
John Criswell47fdd832003-07-14 16:52:07 +000024365 lt_compiler_flag="-o out/conftest2.$ac_objext"
24366 # Insert the option either (1) after the last *FLAGS variable, or
24367 # (2) before a word containing "conftest.", or (3) at the end.
24368 # Note that $ac_compile itself does not contain backslashes and begins
24369 # with a dollar sign (not a hyphen), so the echo should work correctly.
24370 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000024371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000024372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
24373 -e 's:$: $lt_compiler_flag:'`
Richard Osborneb25baef2008-11-07 10:59:00 +000024374 (eval echo "\"\$as_me:24374: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000024375 (eval "$lt_compile" 2>out/conftest.err)
24376 ac_status=$?
24377 cat out/conftest.err >&5
Richard Osborneb25baef2008-11-07 10:59:00 +000024378 echo "$as_me:24378: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000024379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
24380 then
24381 # The compiler can only warn and ignore the option if not recognized
24382 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000024383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
24384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
24385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000024386 lt_cv_prog_compiler_c_o_GCJ=yes
24387 fi
24388 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024389 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024390 $rm conftest*
24391 # SGI C++ compiler will create directory out/ii_files/ for
24392 # template instantiation
24393 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
24394 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000024395 cd ..
24396 rmdir conftest
24397 $rm conftest*
24398
24399fi
Reid Spencera773bd52006-08-04 18:18:08 +000024400{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
24401echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024402
24403
24404hard_links="nottested"
24405if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
24406 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000024407 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
24408echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024409 hard_links=yes
24410 $rm conftest*
24411 ln conftest.a conftest.b 2>/dev/null && hard_links=no
24412 touch conftest.a
24413 ln conftest.a conftest.b 2>&5 || hard_links=no
24414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000024415 { echo "$as_me:$LINENO: result: $hard_links" >&5
24416echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024417 if test "$hard_links" = no; then
24418 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
24419echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
24420 need_locks=warn
24421 fi
24422else
24423 need_locks=no
24424fi
24425
Reid Spencera773bd52006-08-04 18:18:08 +000024426{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
24427echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024428
24429 runpath_var=
24430 allow_undefined_flag_GCJ=
24431 enable_shared_with_static_runtimes_GCJ=no
24432 archive_cmds_GCJ=
24433 archive_expsym_cmds_GCJ=
24434 old_archive_From_new_cmds_GCJ=
24435 old_archive_from_expsyms_cmds_GCJ=
24436 export_dynamic_flag_spec_GCJ=
24437 whole_archive_flag_spec_GCJ=
24438 thread_safe_flag_spec_GCJ=
24439 hardcode_libdir_flag_spec_GCJ=
24440 hardcode_libdir_flag_spec_ld_GCJ=
24441 hardcode_libdir_separator_GCJ=
24442 hardcode_direct_GCJ=no
24443 hardcode_minus_L_GCJ=no
24444 hardcode_shlibpath_var_GCJ=unsupported
24445 link_all_deplibs_GCJ=unknown
24446 hardcode_automatic_GCJ=no
24447 module_cmds_GCJ=
24448 module_expsym_cmds_GCJ=
24449 always_export_symbols_GCJ=no
24450 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
24451 # include_expsyms should be a list of space-separated symbols to be *always*
24452 # included in the symbol list
24453 include_expsyms_GCJ=
24454 # exclude_expsyms can be an extended regexp of symbols to exclude
24455 # it will be wrapped by ` (' and `)$', so one must not match beginning or
24456 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
24457 # as well as any symbol that contains `d'.
24458 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
24459 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
24460 # platforms (ab)use it in PIC code, but their linkers get confused if
24461 # the symbol is explicitly referenced. Since portable code cannot
24462 # rely on this symbol name, it's probably fine to never include it in
24463 # preloaded symbol tables.
24464 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000024465 # Just being paranoid about ensuring that cc_basename is set.
24466 for cc_temp in $compiler""; do
24467 case $cc_temp in
24468 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24469 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24470 \-*) ;;
24471 *) break;;
24472 esac
24473done
24474cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000024475
24476 case $host_os in
24477 cygwin* | mingw* | pw32*)
24478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
24479 # When not using gcc, we currently assume that we are using
24480 # Microsoft Visual C++.
24481 if test "$GCC" != yes; then
24482 with_gnu_ld=no
24483 fi
24484 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024485 interix*)
24486 # we just hope/assume this is gcc and not c89 (= MSVC++)
24487 with_gnu_ld=yes
24488 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024489 openbsd*)
24490 with_gnu_ld=no
24491 ;;
24492 esac
24493
24494 ld_shlibs_GCJ=yes
24495 if test "$with_gnu_ld" = yes; then
24496 # If archive_cmds runs LD, not CC, wlarc should be empty
24497 wlarc='${wl}'
24498
Reid Spencera773bd52006-08-04 18:18:08 +000024499 # Set some defaults for GNU ld with shared library support. These
24500 # are reset later if shared libraries are not supported. Putting them
24501 # here allows them to be overridden if necessary.
24502 runpath_var=LD_RUN_PATH
24503 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24504 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24505 # ancient GNU ld didn't support --whole-archive et. al.
24506 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24507 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24508 else
24509 whole_archive_flag_spec_GCJ=
24510 fi
24511 supports_anon_versioning=no
24512 case `$LD -v 2>/dev/null` in
24513 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24516 *\ 2.11.*) ;; # other 2.11 versions
24517 *) supports_anon_versioning=yes ;;
24518 esac
24519
John Criswell47fdd832003-07-14 16:52:07 +000024520 # See if GNU ld supports shared libraries.
24521 case $host_os in
24522 aix3* | aix4* | aix5*)
24523 # On AIX/PPC, the GNU linker is very broken
24524 if test "$host_cpu" != ia64; then
24525 ld_shlibs_GCJ=no
24526 cat <<EOF 1>&2
24527
24528*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24529*** to be unable to reliably create shared libraries on AIX.
24530*** Therefore, libtool is disabling shared libraries support. If you
24531*** really care for shared libraries, you may want to modify your PATH
24532*** so that a non-GNU linker is found, and then restart.
24533
24534EOF
24535 fi
24536 ;;
24537
24538 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024539 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000024540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24541 hardcode_minus_L_GCJ=yes
24542
24543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24544 # that the semantics of dynamic libraries on AmigaOS, at least up
24545 # to version 4, is to share data among multiple programs linked
24546 # with the same dynamic library. Since this doesn't match the
24547 # behavior of shared libraries on other platforms, we can't use
24548 # them.
24549 ld_shlibs_GCJ=no
24550 ;;
24551
24552 beos*)
24553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24554 allow_undefined_flag_GCJ=unsupported
24555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24556 # support --undefined. This deserves some investigation. FIXME
24557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24558 else
24559 ld_shlibs_GCJ=no
24560 fi
24561 ;;
24562
24563 cygwin* | mingw* | pw32*)
24564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24565 # as there is no search path for DLLs.
24566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24567 allow_undefined_flag_GCJ=unsupported
24568 always_export_symbols_GCJ=no
24569 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000024571
24572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024574 # If the export-symbols file already is a .def file (1st line
24575 # is EXPORTS), use it as is; otherwise, prepend...
24576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24577 cp $export_symbols $output_objdir/$soname.def;
24578 else
24579 echo EXPORTS > $output_objdir/$soname.def;
24580 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024581 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
John Criswell47fdd832003-07-14 16:52:07 +000024583 else
Reid Spencera773bd52006-08-04 18:18:08 +000024584 ld_shlibs_GCJ=no
24585 fi
24586 ;;
24587
24588 interix3*)
24589 hardcode_direct_GCJ=no
24590 hardcode_shlibpath_var_GCJ=no
24591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24592 export_dynamic_flag_spec_GCJ='${wl}-E'
24593 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24594 # Instead, shared libraries are loaded at an image base (0x10000000 by
24595 # default) and relocated if they conflict, which is a slow very memory
24596 # consuming and fragmenting process. To avoid this, we pick a random,
24597 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24598 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24599 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24600 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
24601 ;;
24602
24603 linux*)
24604 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24605 tmp_addflag=
24606 case $cc_basename,$host_cpu in
24607 pgcc*) # Portland Group C compiler
24608 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24609 tmp_addflag=' $pic_flag'
24610 ;;
24611 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24612 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
24613 tmp_addflag=' $pic_flag -Mnomain' ;;
24614 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24615 tmp_addflag=' -i_dynamic' ;;
24616 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24617 tmp_addflag=' -i_dynamic -nofor_main' ;;
24618 ifc* | ifort*) # Intel Fortran compiler
24619 tmp_addflag=' -nofor_main' ;;
24620 esac
24621 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24622
24623 if test $supports_anon_versioning = yes; then
24624 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24625 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24626 $echo "local: *; };" >> $output_objdir/$libname.ver~
24627 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24628 fi
24629 else
24630 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024631 fi
24632 ;;
24633
24634 netbsd*)
24635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24636 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24637 wlarc=
24638 else
24639 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24640 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24641 fi
24642 ;;
24643
Reid Spencera773bd52006-08-04 18:18:08 +000024644 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24646 ld_shlibs_GCJ=no
24647 cat <<EOF 1>&2
24648
24649*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24650*** create shared libraries on Solaris systems. Therefore, libtool
24651*** is disabling shared libraries support. We urge you to upgrade GNU
24652*** binutils to release 2.9.1 or newer. Another option is to modify
24653*** your PATH or compiler configuration so that the native linker is
24654*** used, and then restart.
24655
24656EOF
24657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24658 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24659 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24660 else
24661 ld_shlibs_GCJ=no
24662 fi
24663 ;;
24664
Reid Spencera773bd52006-08-04 18:18:08 +000024665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24666 case `$LD -v 2>&1` in
24667 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24668 ld_shlibs_GCJ=no
24669 cat <<_LT_EOF 1>&2
24670
24671*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24672*** reliably create shared libraries on SCO systems. Therefore, libtool
24673*** is disabling shared libraries support. We urge you to upgrade GNU
24674*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24675*** your PATH or compiler configuration so that the native linker is
24676*** used, and then restart.
24677
24678_LT_EOF
24679 ;;
24680 *)
24681 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24682 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24683 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24684 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24685 else
24686 ld_shlibs_GCJ=no
24687 fi
24688 ;;
24689 esac
24690 ;;
24691
John Criswell47fdd832003-07-14 16:52:07 +000024692 sunos4*)
24693 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24694 wlarc=
24695 hardcode_direct_GCJ=yes
24696 hardcode_shlibpath_var_GCJ=no
24697 ;;
24698
24699 *)
24700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24701 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24702 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24703 else
24704 ld_shlibs_GCJ=no
24705 fi
24706 ;;
24707 esac
24708
Reid Spencera773bd52006-08-04 18:18:08 +000024709 if test "$ld_shlibs_GCJ" = no; then
24710 runpath_var=
24711 hardcode_libdir_flag_spec_GCJ=
24712 export_dynamic_flag_spec_GCJ=
24713 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024714 fi
24715 else
24716 # PORTME fill in a description of your system's linker (not GNU ld)
24717 case $host_os in
24718 aix3*)
24719 allow_undefined_flag_GCJ=unsupported
24720 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024721 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000024722 # Note: this linker hardcodes the directories in LIBPATH if there
24723 # are no directories specified by -L.
24724 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024725 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024726 # Neither direct hardcoding nor static linking is supported with a
24727 # broken collect2.
24728 hardcode_direct_GCJ=unsupported
24729 fi
24730 ;;
24731
24732 aix4* | aix5*)
24733 if test "$host_cpu" = ia64; then
24734 # On IA64, the linker does run time linking by default, so we don't
24735 # have to do anything special.
24736 aix_use_runtimelinking=no
24737 exp_sym_flag='-Bexport'
24738 no_entry_flag=""
24739 else
24740 # If we're using GNU nm, then we don't want the "-C" option.
24741 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24742 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24743 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24744 else
24745 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
24746 fi
24747 aix_use_runtimelinking=no
24748
24749 # Test if we are trying to use run time linking or normal
24750 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24751 # need to do runtime linking.
24752 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24753 for ld_flag in $LDFLAGS; do
24754 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24755 aix_use_runtimelinking=yes
24756 break
24757 fi
24758 done
Reid Spencera773bd52006-08-04 18:18:08 +000024759 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024760 esac
24761
24762 exp_sym_flag='-bexport'
24763 no_entry_flag='-bnoentry'
24764 fi
24765
24766 # When large executables or shared objects are built, AIX ld can
24767 # have problems creating the table of contents. If linking a library
24768 # or program results in "error TOC overflow" add -mminimal-toc to
24769 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24770 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24771
24772 archive_cmds_GCJ=''
24773 hardcode_direct_GCJ=yes
24774 hardcode_libdir_separator_GCJ=':'
24775 link_all_deplibs_GCJ=yes
24776
24777 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024778 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024779 # We only want to do this on AIX 4.2 and lower, the check
24780 # below for broken collect2 doesn't work under 4.3+
24781 collect2name=`${CC} -print-prog-name=collect2`
24782 if test -f "$collect2name" && \
24783 strings "$collect2name" | grep resolve_lib_name >/dev/null
24784 then
24785 # We have reworked collect2
24786 hardcode_direct_GCJ=yes
24787 else
24788 # We have old collect2
24789 hardcode_direct_GCJ=unsupported
24790 # It fails to find uninstalled libraries when the uninstalled
24791 # path is not listed in the libpath. Setting hardcode_minus_L
24792 # to unsupported forces relinking
24793 hardcode_minus_L_GCJ=yes
24794 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24795 hardcode_libdir_separator_GCJ=
24796 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024798 esac
24799 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024800 if test "$aix_use_runtimelinking" = yes; then
24801 shared_flag="$shared_flag "'${wl}-G'
24802 fi
John Criswell47fdd832003-07-14 16:52:07 +000024803 else
24804 # not using gcc
24805 if test "$host_cpu" = ia64; then
24806 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24807 # chokes on -Wl,-G. The following line is correct:
24808 shared_flag='-G'
24809 else
Reid Spencera773bd52006-08-04 18:18:08 +000024810 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024811 shared_flag='${wl}-G'
24812 else
24813 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024814 fi
John Criswell47fdd832003-07-14 16:52:07 +000024815 fi
24816 fi
24817
24818 # It seems that -bexpall does not export symbols beginning with
24819 # underscore (_), so it is better to generate a list of symbols to export.
24820 always_export_symbols_GCJ=yes
24821 if test "$aix_use_runtimelinking" = yes; then
24822 # Warning - without using the other runtime loading flags (-brtl),
24823 # -berok will link without error, but may produce a broken library.
24824 allow_undefined_flag_GCJ='-berok'
24825 # Determine the default libpath from the value encoded in an empty executable.
24826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024832
John Criswell47fdd832003-07-14 16:52:07 +000024833int
24834main ()
24835{
24836
24837 ;
24838 return 0;
24839}
24840_ACEOF
24841rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024842if { (ac_try="$ac_link"
24843case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846esac
24847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024849 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024850 grep -v '^ *+' conftest.er1 >conftest.err
24851 rm -f conftest.er1
24852 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024854 (exit $ac_status); } &&
24855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856 { (case "(($ac_try" in
24857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858 *) ac_try_echo=$ac_try;;
24859esac
24860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861 (eval "$ac_try") 2>&5
24862 ac_status=$?
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); }; } &&
24865 { ac_try='test -s conftest$ac_exeext'
24866 { (case "(($ac_try" in
24867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868 *) ac_try_echo=$ac_try;;
24869esac
24870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871 (eval "$ac_try") 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024875
24876aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24877}'`
24878# Check for a 64-bit object if we didn't find anything.
24879if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24880}'`; fi
24881else
24882 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024883sed 's/^/| /' conftest.$ac_ext >&5
24884
Reid Spencera773bd52006-08-04 18:18:08 +000024885
John Criswell47fdd832003-07-14 16:52:07 +000024886fi
Reid Spencera773bd52006-08-04 18:18:08 +000024887
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024888rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024889 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024890if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24891
24892 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024893 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
John Criswell47fdd832003-07-14 16:52:07 +000024894 else
24895 if test "$host_cpu" = ia64; then
24896 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24897 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024898 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
John Criswell47fdd832003-07-14 16:52:07 +000024899 else
24900 # Determine the default libpath from the value encoded in an empty executable.
24901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024907
John Criswell47fdd832003-07-14 16:52:07 +000024908int
24909main ()
24910{
24911
24912 ;
24913 return 0;
24914}
24915_ACEOF
24916rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024917if { (ac_try="$ac_link"
24918case "(($ac_try" in
24919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24920 *) ac_try_echo=$ac_try;;
24921esac
24922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24923 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024924 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024925 grep -v '^ *+' conftest.er1 >conftest.err
24926 rm -f conftest.er1
24927 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024929 (exit $ac_status); } &&
24930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24931 { (case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934esac
24935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936 (eval "$ac_try") 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; } &&
24940 { ac_try='test -s conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24944esac
24945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24946 (eval "$ac_try") 2>&5
24947 ac_status=$?
24948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 (exit $ac_status); }; }; then
John Criswell47fdd832003-07-14 16:52:07 +000024950
24951aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24952}'`
24953# Check for a 64-bit object if we didn't find anything.
24954if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24955}'`; fi
24956else
24957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024958sed 's/^/| /' conftest.$ac_ext >&5
24959
Reid Spencera773bd52006-08-04 18:18:08 +000024960
John Criswell47fdd832003-07-14 16:52:07 +000024961fi
Reid Spencera773bd52006-08-04 18:18:08 +000024962
Gordon Henriksen40e7f192008-10-22 12:40:55 +000024963rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024964 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024965if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24966
24967 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24968 # Warning - without using the other run time loading flags,
24969 # -berok will link without error, but may produce a broken library.
24970 no_undefined_flag_GCJ=' ${wl}-bernotok'
24971 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024972 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024973 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024974 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024975 # This is similar to how AIX traditionally builds its shared libraries.
24976 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000024977 fi
24978 fi
24979 ;;
24980
24981 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024982 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000024983 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24984 hardcode_minus_L_GCJ=yes
24985 # see comment about different semantics on the GNU ld section
24986 ld_shlibs_GCJ=no
24987 ;;
24988
Reid Spencer2706f8c2004-09-19 23:53:36 +000024989 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024990 export_dynamic_flag_spec_GCJ=-rdynamic
24991 ;;
24992
24993 cygwin* | mingw* | pw32*)
24994 # When not using gcc, we currently assume that we are using
24995 # Microsoft Visual C++.
24996 # hardcode_libdir_flag_spec is actually meaningless, as there is
24997 # no search path for DLLs.
24998 hardcode_libdir_flag_spec_GCJ=' '
24999 allow_undefined_flag_GCJ=unsupported
25000 # Tell ltmain to make .lib files, not .a files.
25001 libext=lib
25002 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025003 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025004 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000025005 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000025006 # The linker will automatically build a .lib file if we build a DLL.
25007 old_archive_From_new_cmds_GCJ='true'
25008 # FIXME: Should let the user specify the lib program.
25009 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000025010 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000025011 enable_shared_with_static_runtimes_GCJ=yes
25012 ;;
25013
25014 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000025015 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025016 rhapsody* | darwin1.[012])
25017 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
25018 ;;
25019 *) # Darwin 1.3 on
25020 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
25021 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25022 else
25023 case ${MACOSX_DEPLOYMENT_TARGET} in
25024 10.[012])
25025 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
25026 ;;
25027 10.*)
25028 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
25029 ;;
25030 esac
25031 fi
25032 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025033 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025034 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025035 hardcode_direct_GCJ=no
25036 hardcode_automatic_GCJ=yes
25037 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000025038 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000025039 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000025040 if test "$GCC" = yes ; then
25041 output_verbose_link_cmd='echo'
25042 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
25043 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025044 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000025045 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25046 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025047 else
Reid Spencera773bd52006-08-04 18:18:08 +000025048 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025049 xlc*)
25050 output_verbose_link_cmd='echo'
25051 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
25052 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000025053 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
Reid Spencer177dbe22004-10-13 01:01:03 +000025054 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
25055 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056 ;;
25057 *)
25058 ld_shlibs_GCJ=no
25059 ;;
25060 esac
John Criswell47fdd832003-07-14 16:52:07 +000025061 fi
25062 ;;
25063
25064 dgux*)
25065 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25066 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25067 hardcode_shlibpath_var_GCJ=no
25068 ;;
25069
25070 freebsd1*)
25071 ld_shlibs_GCJ=no
25072 ;;
25073
25074 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
25075 # support. Future versions do this automatically, but an explicit c++rt0.o
25076 # does not break anything, and helps significantly (at the cost of a little
25077 # extra space).
25078 freebsd2.2*)
25079 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
25080 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25081 hardcode_direct_GCJ=yes
25082 hardcode_shlibpath_var_GCJ=no
25083 ;;
25084
25085 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
25086 freebsd2*)
25087 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25088 hardcode_direct_GCJ=yes
25089 hardcode_minus_L_GCJ=yes
25090 hardcode_shlibpath_var_GCJ=no
25091 ;;
25092
25093 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000025094 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000025095 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
25096 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25097 hardcode_direct_GCJ=yes
25098 hardcode_shlibpath_var_GCJ=no
25099 ;;
25100
25101 hpux9*)
25102 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000025103 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000025104 else
Reid Spencer177dbe22004-10-13 01:01:03 +000025105 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000025106 fi
25107 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25108 hardcode_libdir_separator_GCJ=:
25109 hardcode_direct_GCJ=yes
25110
25111 # hardcode_minus_L: Not really in the search PATH,
25112 # but as the default location of the library.
25113 hardcode_minus_L_GCJ=yes
25114 export_dynamic_flag_spec_GCJ='${wl}-E'
25115 ;;
25116
Reid Spencera773bd52006-08-04 18:18:08 +000025117 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000025118 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025119 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25120 else
25121 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
25122 fi
25123 if test "$with_gnu_ld" = no; then
25124 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25125 hardcode_libdir_separator_GCJ=:
25126
25127 hardcode_direct_GCJ=yes
25128 export_dynamic_flag_spec_GCJ='${wl}-E'
25129
25130 # hardcode_minus_L: Not really in the search PATH,
25131 # but as the default location of the library.
25132 hardcode_minus_L_GCJ=yes
25133 fi
25134 ;;
25135
25136 hpux11*)
25137 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
25138 case $host_cpu in
25139 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000025140 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25141 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025142 ia64*)
25143 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
25144 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025145 *)
25146 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
25147 ;;
25148 esac
25149 else
Reid Spencera773bd52006-08-04 18:18:08 +000025150 case $host_cpu in
25151 hppa*64*)
25152 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
25153 ;;
25154 ia64*)
25155 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025156 ;;
25157 *)
Reid Spencera773bd52006-08-04 18:18:08 +000025158 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025159 ;;
25160 esac
25161 fi
25162 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000025163 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
25164 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000025165
Reid Spencera773bd52006-08-04 18:18:08 +000025166 case $host_cpu in
25167 hppa*64*|ia64*)
25168 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
25169 hardcode_direct_GCJ=no
25170 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025171 ;;
25172 *)
John Criswell47fdd832003-07-14 16:52:07 +000025173 hardcode_direct_GCJ=yes
25174 export_dynamic_flag_spec_GCJ='${wl}-E'
25175
25176 # hardcode_minus_L: Not really in the search PATH,
25177 # but as the default location of the library.
25178 hardcode_minus_L_GCJ=yes
25179 ;;
25180 esac
25181 fi
25182 ;;
25183
25184 irix5* | irix6* | nonstopux*)
25185 if test "$GCC" = yes; then
25186 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25187 else
25188 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25189 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
25190 fi
25191 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25192 hardcode_libdir_separator_GCJ=:
25193 link_all_deplibs_GCJ=yes
25194 ;;
25195
25196 netbsd*)
25197 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25198 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
25199 else
25200 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
25201 fi
25202 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25203 hardcode_direct_GCJ=yes
25204 hardcode_shlibpath_var_GCJ=no
25205 ;;
25206
25207 newsos6)
25208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25209 hardcode_direct_GCJ=yes
25210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25211 hardcode_libdir_separator_GCJ=:
25212 hardcode_shlibpath_var_GCJ=no
25213 ;;
25214
25215 openbsd*)
25216 hardcode_direct_GCJ=yes
25217 hardcode_shlibpath_var_GCJ=no
25218 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25219 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025220 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
John Criswell47fdd832003-07-14 16:52:07 +000025221 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25222 export_dynamic_flag_spec_GCJ='${wl}-E'
25223 else
25224 case $host_os in
25225 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
25226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
25227 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25228 ;;
25229 *)
25230 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
25231 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
25232 ;;
25233 esac
25234 fi
25235 ;;
25236
25237 os2*)
25238 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25239 hardcode_minus_L_GCJ=yes
25240 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000025241 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000025242 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
25243 ;;
25244
25245 osf3*)
25246 if test "$GCC" = yes; then
25247 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25248 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25249 else
25250 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25251 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
25252 fi
25253 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25254 hardcode_libdir_separator_GCJ=:
25255 ;;
25256
25257 osf4* | osf5*) # as osf3* with the addition of -msym flag
25258 if test "$GCC" = yes; then
25259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
25260 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
25261 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
25262 else
25263 allow_undefined_flag_GCJ=' -expect_unresolved \*'
25264 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
Reid Spencer177dbe22004-10-13 01:01:03 +000025265 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000025266 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
Reid Spencer177dbe22004-10-13 01:01:03 +000025267
John Criswell47fdd832003-07-14 16:52:07 +000025268 # Both c and cxx compiler support -rpath directly
25269 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
25270 fi
25271 hardcode_libdir_separator_GCJ=:
25272 ;;
25273
John Criswell47fdd832003-07-14 16:52:07 +000025274 solaris*)
25275 no_undefined_flag_GCJ=' -z text'
25276 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025277 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000025278 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25280 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000025281 else
Reid Spencera773bd52006-08-04 18:18:08 +000025282 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000025283 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000025284 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
25285 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000025286 fi
25287 hardcode_libdir_flag_spec_GCJ='-R$libdir'
25288 hardcode_shlibpath_var_GCJ=no
25289 case $host_os in
25290 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025291 *)
25292 # The compiler driver will combine linker options so we
25293 # cannot just pass the convience library names through
25294 # without $wl, iff we do not link with $LD.
25295 # Luckily, gcc supports the same syntax we need for Sun Studio.
25296 # Supported since Solaris 2.6 (maybe 2.5.1?)
25297 case $wlarc in
25298 '')
25299 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
25300 *)
25301 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
25302 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000025303 esac
25304 link_all_deplibs_GCJ=yes
25305 ;;
25306
25307 sunos4*)
25308 if test "x$host_vendor" = xsequent; then
25309 # Use $CC to link under sequent, because it throws in some extra .o
25310 # files that make .init and .fini sections work.
25311 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
25312 else
25313 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
25314 fi
25315 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25316 hardcode_direct_GCJ=yes
25317 hardcode_minus_L_GCJ=yes
25318 hardcode_shlibpath_var_GCJ=no
25319 ;;
25320
25321 sysv4)
25322 case $host_vendor in
25323 sni)
25324 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25325 hardcode_direct_GCJ=yes # is this really true???
25326 ;;
25327 siemens)
25328 ## LD is ld it makes a PLAMLIB
25329 ## CC just makes a GrossModule.
25330 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
25331 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
25332 hardcode_direct_GCJ=no
25333 ;;
25334 motorola)
25335 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25336 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
25337 ;;
25338 esac
25339 runpath_var='LD_RUN_PATH'
25340 hardcode_shlibpath_var_GCJ=no
25341 ;;
25342
25343 sysv4.3*)
25344 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25345 hardcode_shlibpath_var_GCJ=no
25346 export_dynamic_flag_spec_GCJ='-Bexport'
25347 ;;
25348
25349 sysv4*MP*)
25350 if test -d /usr/nec; then
25351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25352 hardcode_shlibpath_var_GCJ=no
25353 runpath_var=LD_RUN_PATH
25354 hardcode_runpath_var=yes
25355 ld_shlibs_GCJ=yes
25356 fi
25357 ;;
25358
Reid Spencera773bd52006-08-04 18:18:08 +000025359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
25360 no_undefined_flag_GCJ='${wl}-z,text'
25361 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025362 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025363 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000025364
John Criswell47fdd832003-07-14 16:52:07 +000025365 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000025366 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25367 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025368 else
Reid Spencera773bd52006-08-04 18:18:08 +000025369 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
25370 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000025371 fi
John Criswell47fdd832003-07-14 16:52:07 +000025372 ;;
25373
Reid Spencera773bd52006-08-04 18:18:08 +000025374 sysv5* | sco3.2v5* | sco5v6*)
25375 # Note: We can NOT use -z defs as we might desire, because we do not
25376 # link with -lc, and that would cause any symbols used from libc to
25377 # always be unresolved, which means just about no library would
25378 # ever link correctly. If we're not using GNU ld we use -z text
25379 # though, which does catch some bad symbols but isn't as heavy-handed
25380 # as -z defs.
25381 no_undefined_flag_GCJ='${wl}-z,text'
25382 allow_undefined_flag_GCJ='${wl}-z,nodefs'
25383 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000025384 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000025385 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
25386 hardcode_libdir_separator_GCJ=':'
25387 link_all_deplibs_GCJ=yes
25388 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000025389 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000025390
25391 if test "$GCC" = yes; then
25392 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25393 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25394 else
25395 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25396 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
25397 fi
John Criswell47fdd832003-07-14 16:52:07 +000025398 ;;
25399
25400 uts4*)
25401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
25402 hardcode_libdir_flag_spec_GCJ='-L$libdir'
25403 hardcode_shlibpath_var_GCJ=no
25404 ;;
25405
25406 *)
25407 ld_shlibs_GCJ=no
25408 ;;
25409 esac
25410 fi
25411
Reid Spencera773bd52006-08-04 18:18:08 +000025412{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
25413echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025414test "$ld_shlibs_GCJ" = no && can_build_shared=no
25415
John Criswell47fdd832003-07-14 16:52:07 +000025416#
25417# Do we need to explicitly link libc?
25418#
25419case "x$archive_cmds_need_lc_GCJ" in
25420x|xyes)
25421 # Assume -lc should be added
25422 archive_cmds_need_lc_GCJ=yes
25423
25424 if test "$enable_shared" = yes && test "$GCC" = yes; then
25425 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000025426 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000025427 # FIXME: we may have to deal with multi-command sequences.
25428 ;;
25429 '$CC '*)
25430 # Test whether the compiler implicitly links with -lc since on some
25431 # systems, -lgcc has to come before -lc. If gcc already passes -lc
25432 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000025433 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
25434echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025435 $rm conftest*
25436 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25437
25438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25439 (eval $ac_compile) 2>&5
25440 ac_status=$?
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } 2>conftest.err; then
25443 soname=conftest
25444 lib=conftest
25445 libobjs=conftest.$ac_objext
25446 deplibs=
25447 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000025448 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000025449 compiler_flags=-v
25450 linker_flags=-v
25451 verstring=
25452 output_objdir=.
25453 libname=conftest
25454 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
25455 allow_undefined_flag_GCJ=
25456 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
25457 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }
25461 then
25462 archive_cmds_need_lc_GCJ=no
25463 else
25464 archive_cmds_need_lc_GCJ=yes
25465 fi
25466 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
25467 else
25468 cat conftest.err 1>&5
25469 fi
25470 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000025471 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
25472echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025473 ;;
25474 esac
25475 fi
25476 ;;
25477esac
25478
Reid Spencera773bd52006-08-04 18:18:08 +000025479{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
25480echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025481library_names_spec=
25482libname_spec='lib$name'
25483soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000025484shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000025485postinstall_cmds=
25486postuninstall_cmds=
25487finish_cmds=
25488finish_eval=
25489shlibpath_var=
25490shlibpath_overrides_runpath=unknown
25491version_type=none
25492dynamic_linker="$host_os ld.so"
25493sys_lib_dlsearch_path_spec="/lib /usr/lib"
25494if test "$GCC" = yes; then
25495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
25497 # if the path contains ";" then we assume it to be the separator
25498 # otherwise default to the standard path separator (i.e. ":") - it is
25499 # assumed that no part of a normal pathname contains ";" but that should
25500 # okay in the real world where ";" in dirpaths is itself problematic.
25501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25502 else
25503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25504 fi
25505else
25506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25507fi
25508need_lib_prefix=unknown
25509hardcode_into_libs=no
25510
25511# when you set need_version to no, make sure it does not cause -set_version
25512# flags to be left without arguments
25513need_version=unknown
25514
25515case $host_os in
25516aix3*)
25517 version_type=linux
25518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25519 shlibpath_var=LIBPATH
25520
25521 # AIX 3 has no versioning support, so we append a major version to the name.
25522 soname_spec='${libname}${release}${shared_ext}$major'
25523 ;;
25524
25525aix4* | aix5*)
25526 version_type=linux
25527 need_lib_prefix=no
25528 need_version=no
25529 hardcode_into_libs=yes
25530 if test "$host_cpu" = ia64; then
25531 # AIX 5 supports IA64
25532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25533 shlibpath_var=LD_LIBRARY_PATH
25534 else
25535 # With GCC up to 2.95.x, collect2 would create an import file
25536 # for dependence libraries. The import file would start with
25537 # the line `#! .'. This would cause the generated library to
25538 # depend on `.', always an invalid library. This was fixed in
25539 # development snapshots of GCC prior to 3.0.
25540 case $host_os in
25541 aix4 | aix4.[01] | aix4.[01].*)
25542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25543 echo ' yes '
25544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25545 :
25546 else
25547 can_build_shared=no
25548 fi
25549 ;;
25550 esac
25551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25552 # soname into executable. Probably we can add versioning support to
25553 # collect2, so additional links can be useful in future.
25554 if test "$aix_use_runtimelinking" = yes; then
25555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25556 # instead of lib<name>.a to let people know that these are not
25557 # typical AIX shared libraries.
25558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25559 else
25560 # We preserve .a as extension for shared libraries through AIX4.2
25561 # and later when we are not doing run time linking.
25562 library_names_spec='${libname}${release}.a $libname.a'
25563 soname_spec='${libname}${release}${shared_ext}$major'
25564 fi
25565 shlibpath_var=LIBPATH
25566 fi
25567 ;;
25568
25569amigaos*)
25570 library_names_spec='$libname.ixlibrary $libname.a'
25571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025572 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000025573 ;;
25574
25575beos*)
25576 library_names_spec='${libname}${shared_ext}'
25577 dynamic_linker="$host_os ld.so"
25578 shlibpath_var=LIBRARY_PATH
25579 ;;
25580
Reid Spencer2706f8c2004-09-19 23:53:36 +000025581bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025582 version_type=linux
25583 need_version=no
25584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25585 soname_spec='${libname}${release}${shared_ext}$major'
25586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25587 shlibpath_var=LD_LIBRARY_PATH
25588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25590 # the default ld.so.conf also contains /usr/contrib/lib and
25591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25592 # libtool to hard-code these into programs
25593 ;;
25594
25595cygwin* | mingw* | pw32*)
25596 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025597 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025598 need_version=no
25599 need_lib_prefix=no
25600
25601 case $GCC,$host_os in
25602 yes,cygwin* | yes,mingw* | yes,pw32*)
25603 library_names_spec='$libname.dll.a'
25604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025605 postinstall_cmds='base_file=`basename \${file}`~
25606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25607 dldir=$destdir/`dirname \$dlpath`~
25608 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025609 $install_prog $dir/$dlname \$dldir/$dlname~
25610 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25612 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025613 $rm \$dlpath'
25614 shlibpath_overrides_runpath=yes
25615
25616 case $host_os in
25617 cygwin*)
25618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025621 ;;
25622 mingw*)
25623 # MinGW DLLs use traditional 'lib' prefix
25624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25627 # It is most probably a Windows format PATH printed by
25628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25629 # path with ; separators, and with drive letters. We can handle the
25630 # drive letters (cygwin fileutils understands them), so leave them,
25631 # especially as we might pass files found there to a mingw objdump,
25632 # which wouldn't understand a cygwinified path. Ahh.
25633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25634 else
25635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25636 fi
25637 ;;
25638 pw32*)
25639 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025641 ;;
25642 esac
25643 ;;
25644
25645 *)
25646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25647 ;;
25648 esac
25649 dynamic_linker='Win32 ld.exe'
25650 # FIXME: first we should search . and the directory the executable is in
25651 shlibpath_var=PATH
25652 ;;
25653
25654darwin* | rhapsody*)
25655 dynamic_linker="$host_os dyld"
25656 version_type=darwin
25657 need_lib_prefix=no
25658 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025660 soname_spec='${libname}${release}${major}$shared_ext'
25661 shlibpath_overrides_runpath=yes
25662 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencerf6390b52007-04-11 00:27:39 +000025663 shrext_cmds='.dylib'
John Criswell47fdd832003-07-14 16:52:07 +000025664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025665 if test "$GCC" = yes; then
25666 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
25667 else
25668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025669 fi
25670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25671 ;;
25672
25673dgux*)
25674 version_type=linux
25675 need_lib_prefix=no
25676 need_version=no
25677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25678 soname_spec='${libname}${release}${shared_ext}$major'
25679 shlibpath_var=LD_LIBRARY_PATH
25680 ;;
25681
25682freebsd1*)
25683 dynamic_linker=no
25684 ;;
25685
Reid Spencer2706f8c2004-09-19 23:53:36 +000025686kfreebsd*-gnu)
25687 version_type=linux
25688 need_lib_prefix=no
25689 need_version=no
25690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25691 soname_spec='${libname}${release}${shared_ext}$major'
25692 shlibpath_var=LD_LIBRARY_PATH
25693 shlibpath_overrides_runpath=no
25694 hardcode_into_libs=yes
25695 dynamic_linker='GNU ld.so'
25696 ;;
25697
Reid Spencera773bd52006-08-04 18:18:08 +000025698freebsd* | dragonfly*)
25699 # DragonFly does not have aout. When/if they implement a new
25700 # versioning mechanism, adjust this.
25701 if test -x /usr/bin/objformat; then
25702 objformat=`/usr/bin/objformat`
25703 else
25704 case $host_os in
25705 freebsd[123]*) objformat=aout ;;
25706 *) objformat=elf ;;
25707 esac
25708 fi
John Criswell47fdd832003-07-14 16:52:07 +000025709 version_type=freebsd-$objformat
25710 case $version_type in
25711 freebsd-elf*)
25712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25713 need_version=no
25714 need_lib_prefix=no
25715 ;;
25716 freebsd-*)
25717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25718 need_version=yes
25719 ;;
25720 esac
25721 shlibpath_var=LD_LIBRARY_PATH
25722 case $host_os in
25723 freebsd2*)
25724 shlibpath_overrides_runpath=yes
25725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025726 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025727 shlibpath_overrides_runpath=yes
25728 hardcode_into_libs=yes
25729 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025732 shlibpath_overrides_runpath=no
25733 hardcode_into_libs=yes
25734 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025735 freebsd*) # from 4.6 on
25736 shlibpath_overrides_runpath=yes
25737 hardcode_into_libs=yes
25738 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025739 esac
25740 ;;
25741
25742gnu*)
25743 version_type=linux
25744 need_lib_prefix=no
25745 need_version=no
25746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25747 soname_spec='${libname}${release}${shared_ext}$major'
25748 shlibpath_var=LD_LIBRARY_PATH
25749 hardcode_into_libs=yes
25750 ;;
25751
25752hpux9* | hpux10* | hpux11*)
25753 # Give a soname corresponding to the major version so that dld.sl refuses to
25754 # link against other versions.
25755 version_type=sunos
25756 need_lib_prefix=no
25757 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025758 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025759 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025760 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025761 hardcode_into_libs=yes
25762 dynamic_linker="$host_os dld.so"
25763 shlibpath_var=LD_LIBRARY_PATH
25764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25766 soname_spec='${libname}${release}${shared_ext}$major'
25767 if test "X$HPUX_IA64_MODE" = X32; then
25768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25769 else
25770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25771 fi
25772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25773 ;;
25774 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025775 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025776 hardcode_into_libs=yes
25777 dynamic_linker="$host_os dld.sl"
25778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25781 soname_spec='${libname}${release}${shared_ext}$major'
25782 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25784 ;;
25785 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025786 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025787 dynamic_linker="$host_os dld.sl"
25788 shlibpath_var=SHLIB_PATH
25789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25791 soname_spec='${libname}${release}${shared_ext}$major'
25792 ;;
25793 esac
25794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25795 postinstall_cmds='chmod 555 $lib'
25796 ;;
25797
Reid Spencera773bd52006-08-04 18:18:08 +000025798interix3*)
25799 version_type=linux
25800 need_lib_prefix=no
25801 need_version=no
25802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25803 soname_spec='${libname}${release}${shared_ext}$major'
25804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25805 shlibpath_var=LD_LIBRARY_PATH
25806 shlibpath_overrides_runpath=no
25807 hardcode_into_libs=yes
25808 ;;
25809
John Criswell47fdd832003-07-14 16:52:07 +000025810irix5* | irix6* | nonstopux*)
25811 case $host_os in
25812 nonstopux*) version_type=nonstopux ;;
25813 *)
25814 if test "$lt_cv_prog_gnu_ld" = yes; then
25815 version_type=linux
25816 else
25817 version_type=irix
25818 fi ;;
25819 esac
25820 need_lib_prefix=no
25821 need_version=no
25822 soname_spec='${libname}${release}${shared_ext}$major'
25823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25824 case $host_os in
25825 irix5* | nonstopux*)
25826 libsuff= shlibsuff=
25827 ;;
25828 *)
25829 case $LD in # libtool.m4 will add one of these switches to LD
25830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25831 libsuff= shlibsuff= libmagic=32-bit;;
25832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25833 libsuff=32 shlibsuff=N32 libmagic=N32;;
25834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25836 *) libsuff= shlibsuff= libmagic=never-match;;
25837 esac
25838 ;;
25839 esac
25840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25841 shlibpath_overrides_runpath=no
25842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25844 hardcode_into_libs=yes
25845 ;;
25846
25847# No shared lib support for Linux oldld, aout, or coff.
25848linux*oldld* | linux*aout* | linux*coff*)
25849 dynamic_linker=no
25850 ;;
25851
25852# This must be Linux ELF.
25853linux*)
25854 version_type=linux
25855 need_lib_prefix=no
25856 need_version=no
25857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25858 soname_spec='${libname}${release}${shared_ext}$major'
25859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25860 shlibpath_var=LD_LIBRARY_PATH
25861 shlibpath_overrides_runpath=no
25862 # This implies no fast_install, which is unacceptable.
25863 # Some rework will be needed to allow for fast_install
25864 # before this can be enabled.
25865 hardcode_into_libs=yes
25866
Reid Spencer2706f8c2004-09-19 23:53:36 +000025867 # Append ld.so.conf contents to the search path
25868 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025869 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25871 fi
25872
John Criswell47fdd832003-07-14 16:52:07 +000025873 # We used to test for /lib/ld.so.1 and disable shared libraries on
25874 # powerpc, because MkLinux only supported shared libraries with the
25875 # GNU dynamic linker. Since this was broken with cross compilers,
25876 # most powerpc-linux boxes support dynamic linking these days and
25877 # people can always --disable-shared, the test was removed, and we
25878 # assume the GNU/Linux dynamic linker is in use.
25879 dynamic_linker='GNU/Linux ld.so'
25880 ;;
25881
Reid Spencer2706f8c2004-09-19 23:53:36 +000025882knetbsd*-gnu)
25883 version_type=linux
25884 need_lib_prefix=no
25885 need_version=no
25886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25887 soname_spec='${libname}${release}${shared_ext}$major'
25888 shlibpath_var=LD_LIBRARY_PATH
25889 shlibpath_overrides_runpath=no
25890 hardcode_into_libs=yes
25891 dynamic_linker='GNU ld.so'
25892 ;;
25893
John Criswell47fdd832003-07-14 16:52:07 +000025894netbsd*)
25895 version_type=sunos
25896 need_lib_prefix=no
25897 need_version=no
25898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25901 dynamic_linker='NetBSD (a.out) ld.so'
25902 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025904 soname_spec='${libname}${release}${shared_ext}$major'
25905 dynamic_linker='NetBSD ld.elf_so'
25906 fi
25907 shlibpath_var=LD_LIBRARY_PATH
25908 shlibpath_overrides_runpath=yes
25909 hardcode_into_libs=yes
25910 ;;
25911
25912newsos6)
25913 version_type=linux
25914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25915 shlibpath_var=LD_LIBRARY_PATH
25916 shlibpath_overrides_runpath=yes
25917 ;;
25918
Reid Spencer2706f8c2004-09-19 23:53:36 +000025919nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025920 version_type=linux
25921 need_lib_prefix=no
25922 need_version=no
25923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25924 soname_spec='${libname}${release}${shared_ext}$major'
25925 shlibpath_var=LD_LIBRARY_PATH
25926 shlibpath_overrides_runpath=yes
25927 ;;
25928
25929openbsd*)
25930 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025931 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025932 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25934 case $host_os in
25935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25936 *) need_version=no ;;
25937 esac
John Criswell47fdd832003-07-14 16:52:07 +000025938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25940 shlibpath_var=LD_LIBRARY_PATH
25941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25942 case $host_os in
25943 openbsd2.[89] | openbsd2.[89].*)
25944 shlibpath_overrides_runpath=no
25945 ;;
25946 *)
25947 shlibpath_overrides_runpath=yes
25948 ;;
25949 esac
25950 else
25951 shlibpath_overrides_runpath=yes
25952 fi
25953 ;;
25954
25955os2*)
25956 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025957 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025958 need_lib_prefix=no
25959 library_names_spec='$libname${shared_ext} $libname.a'
25960 dynamic_linker='OS/2 ld.exe'
25961 shlibpath_var=LIBPATH
25962 ;;
25963
25964osf3* | osf4* | osf5*)
25965 version_type=osf
25966 need_lib_prefix=no
25967 need_version=no
25968 soname_spec='${libname}${release}${shared_ext}$major'
25969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25970 shlibpath_var=LD_LIBRARY_PATH
25971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25973 ;;
25974
John Criswell47fdd832003-07-14 16:52:07 +000025975solaris*)
25976 version_type=linux
25977 need_lib_prefix=no
25978 need_version=no
25979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25980 soname_spec='${libname}${release}${shared_ext}$major'
25981 shlibpath_var=LD_LIBRARY_PATH
25982 shlibpath_overrides_runpath=yes
25983 hardcode_into_libs=yes
25984 # ldd complains unless libraries are executable
25985 postinstall_cmds='chmod +x $lib'
25986 ;;
25987
25988sunos4*)
25989 version_type=sunos
25990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25992 shlibpath_var=LD_LIBRARY_PATH
25993 shlibpath_overrides_runpath=yes
25994 if test "$with_gnu_ld" = yes; then
25995 need_lib_prefix=no
25996 fi
25997 need_version=yes
25998 ;;
25999
Reid Spencera773bd52006-08-04 18:18:08 +000026000sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000026001 version_type=linux
26002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26003 soname_spec='${libname}${release}${shared_ext}$major'
26004 shlibpath_var=LD_LIBRARY_PATH
26005 case $host_vendor in
26006 sni)
26007 shlibpath_overrides_runpath=no
26008 need_lib_prefix=no
26009 export_dynamic_flag_spec='${wl}-Blargedynsym'
26010 runpath_var=LD_RUN_PATH
26011 ;;
26012 siemens)
26013 need_lib_prefix=no
26014 ;;
26015 motorola)
26016 need_lib_prefix=no
26017 need_version=no
26018 shlibpath_overrides_runpath=no
26019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
26020 ;;
26021 esac
26022 ;;
26023
26024sysv4*MP*)
26025 if test -d /usr/nec ;then
26026 version_type=linux
26027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
26028 soname_spec='$libname${shared_ext}.$major'
26029 shlibpath_var=LD_LIBRARY_PATH
26030 fi
26031 ;;
26032
Reid Spencera773bd52006-08-04 18:18:08 +000026033sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
26034 version_type=freebsd-elf
26035 need_lib_prefix=no
26036 need_version=no
26037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
26038 soname_spec='${libname}${release}${shared_ext}$major'
26039 shlibpath_var=LD_LIBRARY_PATH
26040 hardcode_into_libs=yes
26041 if test "$with_gnu_ld" = yes; then
26042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
26043 shlibpath_overrides_runpath=no
26044 else
26045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
26046 shlibpath_overrides_runpath=yes
26047 case $host_os in
26048 sco3.2v5*)
26049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
26050 ;;
26051 esac
26052 fi
26053 sys_lib_dlsearch_path_spec='/usr/lib'
26054 ;;
26055
John Criswell47fdd832003-07-14 16:52:07 +000026056uts4*)
26057 version_type=linux
26058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
26059 soname_spec='${libname}${release}${shared_ext}$major'
26060 shlibpath_var=LD_LIBRARY_PATH
26061 ;;
26062
26063*)
26064 dynamic_linker=no
26065 ;;
26066esac
Reid Spencera773bd52006-08-04 18:18:08 +000026067{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
26068echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000026069test "$dynamic_linker" = no && can_build_shared=no
26070
Reid Spencera773bd52006-08-04 18:18:08 +000026071variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26072if test "$GCC" = yes; then
26073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26074fi
26075
26076{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
26077echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026078hardcode_action_GCJ=
26079if test -n "$hardcode_libdir_flag_spec_GCJ" || \
26080 test -n "$runpath_var_GCJ" || \
26081 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
26082
26083 # We can hardcode non-existant directories.
26084 if test "$hardcode_direct_GCJ" != no &&
26085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
26086 # have to relink, otherwise we might link with an installed library
26087 # when we should be linking with a yet-to-be-installed one
26088 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
26089 test "$hardcode_minus_L_GCJ" != no; then
26090 # Linking always hardcodes the temporary library directory.
26091 hardcode_action_GCJ=relink
26092 else
26093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
26094 hardcode_action_GCJ=immediate
26095 fi
26096else
26097 # We cannot hardcode anything, or else we can only hardcode existing
26098 # directories.
26099 hardcode_action_GCJ=unsupported
26100fi
Reid Spencera773bd52006-08-04 18:18:08 +000026101{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
26102echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000026103
26104if test "$hardcode_action_GCJ" = relink; then
26105 # Fast installation is not supported
26106 enable_fast_install=no
26107elif test "$shlibpath_overrides_runpath" = yes ||
26108 test "$enable_shared" = no; then
26109 # Fast installation is not necessary
26110 enable_fast_install=needless
26111fi
26112
John Criswell47fdd832003-07-14 16:52:07 +000026113
26114# The else clause should only fire when bootstrapping the
26115# libtool distribution, otherwise you forgot to ship ltmain.sh
26116# with your package, and you will get complaints that there are
26117# no rules to generate ltmain.sh.
26118if test -f "$ltmain"; then
26119 # See if we are running on zsh, and set the options which allow our commands through
26120 # without removal of \ escapes.
26121 if test -n "${ZSH_VERSION+set}" ; then
26122 setopt NO_GLOB_SUBST
26123 fi
26124 # Now quote all the things that may contain metacharacters while being
26125 # careful not to overquote the AC_SUBSTed values. We take copies of the
26126 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026127 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026128 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026129 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26130 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26131 deplibs_check_method reload_flag reload_cmds need_locks \
26132 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26133 lt_cv_sys_global_symbol_to_c_name_address \
26134 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26135 old_postinstall_cmds old_postuninstall_cmds \
26136 compiler_GCJ \
26137 CC_GCJ \
26138 LD_GCJ \
26139 lt_prog_compiler_wl_GCJ \
26140 lt_prog_compiler_pic_GCJ \
26141 lt_prog_compiler_static_GCJ \
26142 lt_prog_compiler_no_builtin_flag_GCJ \
26143 export_dynamic_flag_spec_GCJ \
26144 thread_safe_flag_spec_GCJ \
26145 whole_archive_flag_spec_GCJ \
26146 enable_shared_with_static_runtimes_GCJ \
26147 old_archive_cmds_GCJ \
26148 old_archive_from_new_cmds_GCJ \
26149 predep_objects_GCJ \
26150 postdep_objects_GCJ \
26151 predeps_GCJ \
26152 postdeps_GCJ \
26153 compiler_lib_search_path_GCJ \
26154 archive_cmds_GCJ \
26155 archive_expsym_cmds_GCJ \
26156 postinstall_cmds_GCJ \
26157 postuninstall_cmds_GCJ \
26158 old_archive_from_expsyms_cmds_GCJ \
26159 allow_undefined_flag_GCJ \
26160 no_undefined_flag_GCJ \
26161 export_symbols_cmds_GCJ \
26162 hardcode_libdir_flag_spec_GCJ \
26163 hardcode_libdir_flag_spec_ld_GCJ \
26164 hardcode_libdir_separator_GCJ \
26165 hardcode_automatic_GCJ \
26166 module_cmds_GCJ \
26167 module_expsym_cmds_GCJ \
26168 lt_cv_prog_compiler_c_o_GCJ \
26169 exclude_expsyms_GCJ \
26170 include_expsyms_GCJ; do
26171
26172 case $var in
26173 old_archive_cmds_GCJ | \
26174 old_archive_from_new_cmds_GCJ | \
26175 archive_cmds_GCJ | \
26176 archive_expsym_cmds_GCJ | \
26177 module_cmds_GCJ | \
26178 module_expsym_cmds_GCJ | \
26179 old_archive_from_expsyms_cmds_GCJ | \
26180 export_symbols_cmds_GCJ | \
26181 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26182 postinstall_cmds | postuninstall_cmds | \
26183 old_postinstall_cmds | old_postuninstall_cmds | \
26184 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26185 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026186 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000026187 ;;
26188 *)
26189 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26190 ;;
26191 esac
26192 done
26193
26194 case $lt_echo in
26195 *'\$0 --fallback-echo"')
26196 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26197 ;;
26198 esac
26199
26200cfgfile="$ofile"
26201
26202 cat <<__EOF__ >> "$cfgfile"
26203# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26204
26205# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26206
26207# Shell to use when invoking shell scripts.
26208SHELL=$lt_SHELL
26209
26210# Whether or not to build shared libraries.
26211build_libtool_libs=$enable_shared
26212
26213# Whether or not to build static libraries.
26214build_old_libs=$enable_static
26215
26216# Whether or not to add -lc for building shared libraries.
26217build_libtool_need_lc=$archive_cmds_need_lc_GCJ
26218
26219# Whether or not to disallow shared libs when runtime libs are static
26220allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
26221
26222# Whether or not to optimize for fast installation.
26223fast_install=$enable_fast_install
26224
26225# The host system.
26226host_alias=$host_alias
26227host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026228host_os=$host_os
26229
26230# The build system.
26231build_alias=$build_alias
26232build=$build
26233build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026234
26235# An echo program that does not interpret backslashes.
26236echo=$lt_echo
26237
26238# The archiver.
26239AR=$lt_AR
26240AR_FLAGS=$lt_AR_FLAGS
26241
26242# A C compiler.
26243LTCC=$lt_LTCC
26244
Reid Spencera773bd52006-08-04 18:18:08 +000026245# LTCC compiler flags.
26246LTCFLAGS=$lt_LTCFLAGS
26247
John Criswell47fdd832003-07-14 16:52:07 +000026248# A language-specific compiler.
26249CC=$lt_compiler_GCJ
26250
26251# Is the compiler the GNU C compiler?
26252with_gcc=$GCC_GCJ
26253
26254# An ERE matcher.
26255EGREP=$lt_EGREP
26256
26257# The linker used to build libraries.
26258LD=$lt_LD_GCJ
26259
26260# Whether we need hard or soft links.
26261LN_S=$lt_LN_S
26262
26263# A BSD-compatible nm program.
26264NM=$lt_NM
26265
26266# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026267STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026268
26269# Used to examine libraries when file_magic_cmd begins "file"
26270MAGIC_CMD=$MAGIC_CMD
26271
26272# Used on cygwin: DLL creation program.
26273DLLTOOL="$DLLTOOL"
26274
26275# Used on cygwin: object dumper.
26276OBJDUMP="$OBJDUMP"
26277
26278# Used on cygwin: assembler.
26279AS="$AS"
26280
26281# The name of the directory that contains temporary libtool files.
26282objdir=$objdir
26283
26284# How to create reloadable object files.
26285reload_flag=$lt_reload_flag
26286reload_cmds=$lt_reload_cmds
26287
26288# How to pass a linker flag through the compiler.
26289wl=$lt_lt_prog_compiler_wl_GCJ
26290
26291# Object file suffix (normally "o").
26292objext="$ac_objext"
26293
26294# Old archive suffix (normally "a").
26295libext="$libext"
26296
26297# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026298shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026299
26300# Executable file suffix (normally "").
26301exeext="$exeext"
26302
26303# Additional compiler flags for building library objects.
26304pic_flag=$lt_lt_prog_compiler_pic_GCJ
26305pic_mode=$pic_mode
26306
26307# What is the maximum length of a command?
26308max_cmd_len=$lt_cv_sys_max_cmd_len
26309
26310# Does compiler simultaneously support -c and -o options?
26311compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
26312
Reid Spencera773bd52006-08-04 18:18:08 +000026313# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026314need_locks=$lt_need_locks
26315
26316# Do we need the lib prefix for modules?
26317need_lib_prefix=$need_lib_prefix
26318
26319# Do we need a version for libraries?
26320need_version=$need_version
26321
26322# Whether dlopen is supported.
26323dlopen_support=$enable_dlopen
26324
26325# Whether dlopen of programs is supported.
26326dlopen_self=$enable_dlopen_self
26327
26328# Whether dlopen of statically linked programs is supported.
26329dlopen_self_static=$enable_dlopen_self_static
26330
26331# Compiler flag to prevent dynamic linking.
26332link_static_flag=$lt_lt_prog_compiler_static_GCJ
26333
26334# Compiler flag to turn off builtin functions.
26335no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
26336
26337# Compiler flag to allow reflexive dlopens.
26338export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
26339
26340# Compiler flag to generate shared objects directly from archives.
26341whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
26342
26343# Compiler flag to generate thread-safe objects.
26344thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
26345
26346# Library versioning type.
26347version_type=$version_type
26348
26349# Format of library name prefix.
26350libname_spec=$lt_libname_spec
26351
26352# List of archive names. First name is the real one, the rest are links.
26353# The last name is the one that the linker finds with -lNAME.
26354library_names_spec=$lt_library_names_spec
26355
26356# The coded name of the library, if different from the real name.
26357soname_spec=$lt_soname_spec
26358
26359# Commands used to build and install an old-style archive.
26360RANLIB=$lt_RANLIB
26361old_archive_cmds=$lt_old_archive_cmds_GCJ
26362old_postinstall_cmds=$lt_old_postinstall_cmds
26363old_postuninstall_cmds=$lt_old_postuninstall_cmds
26364
26365# Create an old-style archive from a shared archive.
26366old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
26367
26368# Create a temporary old-style archive to link instead of a shared archive.
26369old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
26370
26371# Commands used to build and install a shared archive.
26372archive_cmds=$lt_archive_cmds_GCJ
26373archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
26374postinstall_cmds=$lt_postinstall_cmds
26375postuninstall_cmds=$lt_postuninstall_cmds
26376
26377# Commands used to build a loadable module (assumed same as above if empty)
26378module_cmds=$lt_module_cmds_GCJ
26379module_expsym_cmds=$lt_module_expsym_cmds_GCJ
26380
26381# Commands to strip libraries.
26382old_striplib=$lt_old_striplib
26383striplib=$lt_striplib
26384
26385# Dependencies to place before the objects being linked to create a
26386# shared library.
26387predep_objects=$lt_predep_objects_GCJ
26388
26389# Dependencies to place after the objects being linked to create a
26390# shared library.
26391postdep_objects=$lt_postdep_objects_GCJ
26392
26393# Dependencies to place before the objects being linked to create a
26394# shared library.
26395predeps=$lt_predeps_GCJ
26396
26397# Dependencies to place after the objects being linked to create a
26398# shared library.
26399postdeps=$lt_postdeps_GCJ
26400
26401# The library search path used internally by the compiler when linking
26402# a shared library.
26403compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
26404
26405# Method to check whether dependent libraries are shared objects.
26406deplibs_check_method=$lt_deplibs_check_method
26407
26408# Command to use when deplibs_check_method == file_magic.
26409file_magic_cmd=$lt_file_magic_cmd
26410
26411# Flag that allows shared libraries with undefined symbols to be built.
26412allow_undefined_flag=$lt_allow_undefined_flag_GCJ
26413
26414# Flag that forces no undefined symbols.
26415no_undefined_flag=$lt_no_undefined_flag_GCJ
26416
26417# Commands used to finish a libtool library installation in a directory.
26418finish_cmds=$lt_finish_cmds
26419
26420# Same as above, but a single script fragment to be evaled but not shown.
26421finish_eval=$lt_finish_eval
26422
26423# Take the output of nm and produce a listing of raw symbols and C names.
26424global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26425
26426# Transform the output of nm in a proper C declaration
26427global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26428
26429# Transform the output of nm in a C name address pair
26430global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26431
26432# This is the shared library runtime path variable.
26433runpath_var=$runpath_var
26434
26435# This is the shared library path variable.
26436shlibpath_var=$shlibpath_var
26437
26438# Is shlibpath searched before the hard-coded library search path?
26439shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26440
26441# How to hardcode a shared library path into an executable.
26442hardcode_action=$hardcode_action_GCJ
26443
26444# Whether we should hardcode library paths into libraries.
26445hardcode_into_libs=$hardcode_into_libs
26446
26447# Flag to hardcode \$libdir into a binary during linking.
26448# This must work even if \$libdir does not exist.
26449hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
26450
26451# If ld is used when linking, flag to hardcode \$libdir into
26452# a binary during linking. This must work even if \$libdir does
26453# not exist.
26454hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
26455
26456# Whether we need a single -rpath flag with a separated argument.
26457hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
26458
26459# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26460# resulting binary.
26461hardcode_direct=$hardcode_direct_GCJ
26462
26463# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26464# resulting binary.
26465hardcode_minus_L=$hardcode_minus_L_GCJ
26466
26467# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26468# the resulting binary.
26469hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
26470
26471# Set to yes if building a shared library automatically hardcodes DIR into the library
26472# and all subsequent libraries and executables linked against it.
26473hardcode_automatic=$hardcode_automatic_GCJ
26474
26475# Variables whose values should be saved in libtool wrapper scripts and
26476# restored at relink time.
26477variables_saved_for_relink="$variables_saved_for_relink"
26478
26479# Whether libtool must link a program against all its dependency libraries.
26480link_all_deplibs=$link_all_deplibs_GCJ
26481
26482# Compile-time system search path for libraries
26483sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26484
26485# Run-time system search path for libraries
26486sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26487
26488# Fix the shell variable \$srcfile for the compiler.
26489fix_srcfile_path="$fix_srcfile_path_GCJ"
26490
26491# Set to yes if exported symbols are required.
26492always_export_symbols=$always_export_symbols_GCJ
26493
26494# The commands to list exported symbols.
26495export_symbols_cmds=$lt_export_symbols_cmds_GCJ
26496
26497# The commands to extract the exported symbol list from a shared archive.
26498extract_expsyms_cmds=$lt_extract_expsyms_cmds
26499
26500# Symbols that should not be listed in the preloaded symbols.
26501exclude_expsyms=$lt_exclude_expsyms_GCJ
26502
26503# Symbols that must always be exported.
26504include_expsyms=$lt_include_expsyms_GCJ
26505
26506# ### END LIBTOOL TAG CONFIG: $tagname
26507
26508__EOF__
26509
26510
26511else
26512 # If there is no Makefile yet, we rely on a make rule to execute
26513 # `config.status --recheck' to rerun these tests and create the
26514 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026515 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26516 if test -f "$ltmain_in"; then
26517 test -f Makefile && make "$ltmain"
26518 fi
John Criswell47fdd832003-07-14 16:52:07 +000026519fi
26520
26521
26522ac_ext=c
26523ac_cpp='$CPP $CPPFLAGS'
26524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26526ac_compiler_gnu=$ac_cv_c_compiler_gnu
26527
26528CC="$lt_save_CC"
26529
26530 else
26531 tagname=""
26532 fi
26533 ;;
26534
26535 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026536 ac_ext=c
26537ac_cpp='$CPP $CPPFLAGS'
26538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26540ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026541
26542
26543# Source file extension for RC test sources.
26544ac_ext=rc
26545
26546# Object file extension for compiled RC test sources.
26547objext=o
26548objext_RC=$objext
26549
26550# Code to be used in simple compile tests
26551lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26552
26553# Code to be used in simple link tests
26554lt_simple_link_test_code="$lt_simple_compile_test_code"
26555
26556# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26557
26558# If no C compiler was specified, use CC.
26559LTCC=${LTCC-"$CC"}
26560
Reid Spencera773bd52006-08-04 18:18:08 +000026561# If no C compiler flags were specified, use CFLAGS.
26562LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26563
John Criswell47fdd832003-07-14 16:52:07 +000026564# Allow CC to be a program name with arguments.
26565compiler=$CC
26566
26567
Reid Spencera773bd52006-08-04 18:18:08 +000026568# save warnings/boilerplate of simple test code
26569ac_outfile=conftest.$ac_objext
26570printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26571eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26572_lt_compiler_boilerplate=`cat conftest.err`
26573$rm conftest*
26574
26575ac_outfile=conftest.$ac_objext
26576printf "$lt_simple_link_test_code" >conftest.$ac_ext
26577eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26578_lt_linker_boilerplate=`cat conftest.err`
26579$rm conftest*
26580
26581
John Criswell47fdd832003-07-14 16:52:07 +000026582# Allow CC to be a program name with arguments.
26583lt_save_CC="$CC"
26584CC=${RC-"windres"}
26585compiler=$CC
26586compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026587for cc_temp in $compiler""; do
26588 case $cc_temp in
26589 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26590 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26591 \-*) ;;
26592 *) break;;
26593 esac
26594done
26595cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26596
John Criswell47fdd832003-07-14 16:52:07 +000026597lt_cv_prog_compiler_c_o_RC=yes
26598
26599# The else clause should only fire when bootstrapping the
26600# libtool distribution, otherwise you forgot to ship ltmain.sh
26601# with your package, and you will get complaints that there are
26602# no rules to generate ltmain.sh.
26603if test -f "$ltmain"; then
26604 # See if we are running on zsh, and set the options which allow our commands through
26605 # without removal of \ escapes.
26606 if test -n "${ZSH_VERSION+set}" ; then
26607 setopt NO_GLOB_SUBST
26608 fi
26609 # Now quote all the things that may contain metacharacters while being
26610 # careful not to overquote the AC_SUBSTed values. We take copies of the
26611 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026612 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026613 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026614 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26615 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26616 deplibs_check_method reload_flag reload_cmds need_locks \
26617 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26618 lt_cv_sys_global_symbol_to_c_name_address \
26619 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26620 old_postinstall_cmds old_postuninstall_cmds \
26621 compiler_RC \
26622 CC_RC \
26623 LD_RC \
26624 lt_prog_compiler_wl_RC \
26625 lt_prog_compiler_pic_RC \
26626 lt_prog_compiler_static_RC \
26627 lt_prog_compiler_no_builtin_flag_RC \
26628 export_dynamic_flag_spec_RC \
26629 thread_safe_flag_spec_RC \
26630 whole_archive_flag_spec_RC \
26631 enable_shared_with_static_runtimes_RC \
26632 old_archive_cmds_RC \
26633 old_archive_from_new_cmds_RC \
26634 predep_objects_RC \
26635 postdep_objects_RC \
26636 predeps_RC \
26637 postdeps_RC \
26638 compiler_lib_search_path_RC \
26639 archive_cmds_RC \
26640 archive_expsym_cmds_RC \
26641 postinstall_cmds_RC \
26642 postuninstall_cmds_RC \
26643 old_archive_from_expsyms_cmds_RC \
26644 allow_undefined_flag_RC \
26645 no_undefined_flag_RC \
26646 export_symbols_cmds_RC \
26647 hardcode_libdir_flag_spec_RC \
26648 hardcode_libdir_flag_spec_ld_RC \
26649 hardcode_libdir_separator_RC \
26650 hardcode_automatic_RC \
26651 module_cmds_RC \
26652 module_expsym_cmds_RC \
26653 lt_cv_prog_compiler_c_o_RC \
26654 exclude_expsyms_RC \
26655 include_expsyms_RC; do
26656
26657 case $var in
26658 old_archive_cmds_RC | \
26659 old_archive_from_new_cmds_RC | \
26660 archive_cmds_RC | \
26661 archive_expsym_cmds_RC | \
26662 module_cmds_RC | \
26663 module_expsym_cmds_RC | \
26664 old_archive_from_expsyms_cmds_RC | \
26665 export_symbols_cmds_RC | \
26666 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26667 postinstall_cmds | postuninstall_cmds | \
26668 old_postinstall_cmds | old_postuninstall_cmds | \
26669 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26670 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000026672 ;;
26673 *)
26674 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26675 ;;
26676 esac
26677 done
26678
26679 case $lt_echo in
26680 *'\$0 --fallback-echo"')
26681 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26682 ;;
26683 esac
26684
26685cfgfile="$ofile"
26686
26687 cat <<__EOF__ >> "$cfgfile"
26688# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26689
26690# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26691
26692# Shell to use when invoking shell scripts.
26693SHELL=$lt_SHELL
26694
26695# Whether or not to build shared libraries.
26696build_libtool_libs=$enable_shared
26697
26698# Whether or not to build static libraries.
26699build_old_libs=$enable_static
26700
26701# Whether or not to add -lc for building shared libraries.
26702build_libtool_need_lc=$archive_cmds_need_lc_RC
26703
26704# Whether or not to disallow shared libs when runtime libs are static
26705allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26706
26707# Whether or not to optimize for fast installation.
26708fast_install=$enable_fast_install
26709
26710# The host system.
26711host_alias=$host_alias
26712host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026713host_os=$host_os
26714
26715# The build system.
26716build_alias=$build_alias
26717build=$build
26718build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026719
26720# An echo program that does not interpret backslashes.
26721echo=$lt_echo
26722
26723# The archiver.
26724AR=$lt_AR
26725AR_FLAGS=$lt_AR_FLAGS
26726
26727# A C compiler.
26728LTCC=$lt_LTCC
26729
Reid Spencera773bd52006-08-04 18:18:08 +000026730# LTCC compiler flags.
26731LTCFLAGS=$lt_LTCFLAGS
26732
John Criswell47fdd832003-07-14 16:52:07 +000026733# A language-specific compiler.
26734CC=$lt_compiler_RC
26735
26736# Is the compiler the GNU C compiler?
26737with_gcc=$GCC_RC
26738
26739# An ERE matcher.
26740EGREP=$lt_EGREP
26741
26742# The linker used to build libraries.
26743LD=$lt_LD_RC
26744
26745# Whether we need hard or soft links.
26746LN_S=$lt_LN_S
26747
26748# A BSD-compatible nm program.
26749NM=$lt_NM
26750
26751# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026752STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026753
26754# Used to examine libraries when file_magic_cmd begins "file"
26755MAGIC_CMD=$MAGIC_CMD
26756
26757# Used on cygwin: DLL creation program.
26758DLLTOOL="$DLLTOOL"
26759
26760# Used on cygwin: object dumper.
26761OBJDUMP="$OBJDUMP"
26762
26763# Used on cygwin: assembler.
26764AS="$AS"
26765
26766# The name of the directory that contains temporary libtool files.
26767objdir=$objdir
26768
26769# How to create reloadable object files.
26770reload_flag=$lt_reload_flag
26771reload_cmds=$lt_reload_cmds
26772
26773# How to pass a linker flag through the compiler.
26774wl=$lt_lt_prog_compiler_wl_RC
26775
26776# Object file suffix (normally "o").
26777objext="$ac_objext"
26778
26779# Old archive suffix (normally "a").
26780libext="$libext"
26781
26782# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026783shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026784
26785# Executable file suffix (normally "").
26786exeext="$exeext"
26787
26788# Additional compiler flags for building library objects.
26789pic_flag=$lt_lt_prog_compiler_pic_RC
26790pic_mode=$pic_mode
26791
26792# What is the maximum length of a command?
26793max_cmd_len=$lt_cv_sys_max_cmd_len
26794
26795# Does compiler simultaneously support -c and -o options?
26796compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26797
Reid Spencera773bd52006-08-04 18:18:08 +000026798# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026799need_locks=$lt_need_locks
26800
26801# Do we need the lib prefix for modules?
26802need_lib_prefix=$need_lib_prefix
26803
26804# Do we need a version for libraries?
26805need_version=$need_version
26806
26807# Whether dlopen is supported.
26808dlopen_support=$enable_dlopen
26809
26810# Whether dlopen of programs is supported.
26811dlopen_self=$enable_dlopen_self
26812
26813# Whether dlopen of statically linked programs is supported.
26814dlopen_self_static=$enable_dlopen_self_static
26815
26816# Compiler flag to prevent dynamic linking.
26817link_static_flag=$lt_lt_prog_compiler_static_RC
26818
26819# Compiler flag to turn off builtin functions.
26820no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26821
26822# Compiler flag to allow reflexive dlopens.
26823export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26824
26825# Compiler flag to generate shared objects directly from archives.
26826whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26827
26828# Compiler flag to generate thread-safe objects.
26829thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26830
26831# Library versioning type.
26832version_type=$version_type
26833
26834# Format of library name prefix.
26835libname_spec=$lt_libname_spec
26836
26837# List of archive names. First name is the real one, the rest are links.
26838# The last name is the one that the linker finds with -lNAME.
26839library_names_spec=$lt_library_names_spec
26840
26841# The coded name of the library, if different from the real name.
26842soname_spec=$lt_soname_spec
26843
26844# Commands used to build and install an old-style archive.
26845RANLIB=$lt_RANLIB
26846old_archive_cmds=$lt_old_archive_cmds_RC
26847old_postinstall_cmds=$lt_old_postinstall_cmds
26848old_postuninstall_cmds=$lt_old_postuninstall_cmds
26849
26850# Create an old-style archive from a shared archive.
26851old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26852
26853# Create a temporary old-style archive to link instead of a shared archive.
26854old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26855
26856# Commands used to build and install a shared archive.
26857archive_cmds=$lt_archive_cmds_RC
26858archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26859postinstall_cmds=$lt_postinstall_cmds
26860postuninstall_cmds=$lt_postuninstall_cmds
26861
26862# Commands used to build a loadable module (assumed same as above if empty)
26863module_cmds=$lt_module_cmds_RC
26864module_expsym_cmds=$lt_module_expsym_cmds_RC
26865
26866# Commands to strip libraries.
26867old_striplib=$lt_old_striplib
26868striplib=$lt_striplib
26869
26870# Dependencies to place before the objects being linked to create a
26871# shared library.
26872predep_objects=$lt_predep_objects_RC
26873
26874# Dependencies to place after the objects being linked to create a
26875# shared library.
26876postdep_objects=$lt_postdep_objects_RC
26877
26878# Dependencies to place before the objects being linked to create a
26879# shared library.
26880predeps=$lt_predeps_RC
26881
26882# Dependencies to place after the objects being linked to create a
26883# shared library.
26884postdeps=$lt_postdeps_RC
26885
26886# The library search path used internally by the compiler when linking
26887# a shared library.
26888compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26889
26890# Method to check whether dependent libraries are shared objects.
26891deplibs_check_method=$lt_deplibs_check_method
26892
26893# Command to use when deplibs_check_method == file_magic.
26894file_magic_cmd=$lt_file_magic_cmd
26895
26896# Flag that allows shared libraries with undefined symbols to be built.
26897allow_undefined_flag=$lt_allow_undefined_flag_RC
26898
26899# Flag that forces no undefined symbols.
26900no_undefined_flag=$lt_no_undefined_flag_RC
26901
26902# Commands used to finish a libtool library installation in a directory.
26903finish_cmds=$lt_finish_cmds
26904
26905# Same as above, but a single script fragment to be evaled but not shown.
26906finish_eval=$lt_finish_eval
26907
26908# Take the output of nm and produce a listing of raw symbols and C names.
26909global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26910
26911# Transform the output of nm in a proper C declaration
26912global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26913
26914# Transform the output of nm in a C name address pair
26915global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26916
26917# This is the shared library runtime path variable.
26918runpath_var=$runpath_var
26919
26920# This is the shared library path variable.
26921shlibpath_var=$shlibpath_var
26922
26923# Is shlibpath searched before the hard-coded library search path?
26924shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26925
26926# How to hardcode a shared library path into an executable.
26927hardcode_action=$hardcode_action_RC
26928
26929# Whether we should hardcode library paths into libraries.
26930hardcode_into_libs=$hardcode_into_libs
26931
26932# Flag to hardcode \$libdir into a binary during linking.
26933# This must work even if \$libdir does not exist.
26934hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26935
26936# If ld is used when linking, flag to hardcode \$libdir into
26937# a binary during linking. This must work even if \$libdir does
26938# not exist.
26939hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26940
26941# Whether we need a single -rpath flag with a separated argument.
26942hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26943
26944# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26945# resulting binary.
26946hardcode_direct=$hardcode_direct_RC
26947
26948# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26949# resulting binary.
26950hardcode_minus_L=$hardcode_minus_L_RC
26951
26952# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26953# the resulting binary.
26954hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26955
26956# Set to yes if building a shared library automatically hardcodes DIR into the library
26957# and all subsequent libraries and executables linked against it.
26958hardcode_automatic=$hardcode_automatic_RC
26959
26960# Variables whose values should be saved in libtool wrapper scripts and
26961# restored at relink time.
26962variables_saved_for_relink="$variables_saved_for_relink"
26963
26964# Whether libtool must link a program against all its dependency libraries.
26965link_all_deplibs=$link_all_deplibs_RC
26966
26967# Compile-time system search path for libraries
26968sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26969
26970# Run-time system search path for libraries
26971sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26972
26973# Fix the shell variable \$srcfile for the compiler.
26974fix_srcfile_path="$fix_srcfile_path_RC"
26975
26976# Set to yes if exported symbols are required.
26977always_export_symbols=$always_export_symbols_RC
26978
26979# The commands to list exported symbols.
26980export_symbols_cmds=$lt_export_symbols_cmds_RC
26981
26982# The commands to extract the exported symbol list from a shared archive.
26983extract_expsyms_cmds=$lt_extract_expsyms_cmds
26984
26985# Symbols that should not be listed in the preloaded symbols.
26986exclude_expsyms=$lt_exclude_expsyms_RC
26987
26988# Symbols that must always be exported.
26989include_expsyms=$lt_include_expsyms_RC
26990
26991# ### END LIBTOOL TAG CONFIG: $tagname
26992
26993__EOF__
26994
26995
26996else
26997 # If there is no Makefile yet, we rely on a make rule to execute
26998 # `config.status --recheck' to rerun these tests and create the
26999 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27001 if test -f "$ltmain_in"; then
27002 test -f Makefile && make "$ltmain"
27003 fi
John Criswell47fdd832003-07-14 16:52:07 +000027004fi
27005
27006
27007ac_ext=c
27008ac_cpp='$CPP $CPPFLAGS'
27009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27011ac_compiler_gnu=$ac_cv_c_compiler_gnu
27012
27013CC="$lt_save_CC"
27014
27015 ;;
27016
27017 *)
27018 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
27019echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
27020 { (exit 1); exit 1; }; }
27021 ;;
27022 esac
27023
27024 # Append the new tag name to the list of available tags.
27025 if test -n "$tagname" ; then
27026 available_tags="$available_tags $tagname"
27027 fi
27028 fi
27029 done
27030 IFS="$lt_save_ifs"
27031
27032 # Now substitute the updated list of available tags.
27033 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
27034 mv "${ofile}T" "$ofile"
27035 chmod +x "$ofile"
27036 else
27037 rm -f "${ofile}T"
27038 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
27039echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
27040 { (exit 1); exit 1; }; }
27041 fi
27042fi
John Criswell7a73b802003-06-30 21:59:07 +000027043
27044
27045
27046# This can be used to rebuild libtool when needed
27047LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
27048
27049# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027050LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000027051
27052# Prevent multiple expansion
27053
27054
27055
John Criswell47fdd832003-07-14 16:52:07 +000027056
27057
27058
27059
27060
27061
27062
27063
27064
27065
27066
27067
27068
27069
27070
27071
27072
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027073
Reid Spencer582a23c2004-12-29 07:07:57 +000027074if test "$lt_cv_dlopen_self" = "yes" ; then
27075
27076cat >>confdefs.h <<\_ACEOF
27077#define CAN_DLOPEN_SELF 1
27078_ACEOF
27079
27080fi
27081
Reid Spencer7931a782004-12-27 06:15:02 +000027082if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000027083 LLVMGCC="llvm-gcc${EXEEXT}"
27084 LLVMGXX="llvm-g++${EXEEXT}"
27085 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
27086set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027089if test "${ac_cv_path_LLVMGCC+set}" = set; then
27090 echo $ECHO_N "(cached) $ECHO_C" >&6
27091else
27092 case $LLVMGCC in
27093 [\\/]* | ?:[\\/]*)
27094 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
27095 ;;
27096 *)
27097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27098for as_dir in $PATH
27099do
27100 IFS=$as_save_IFS
27101 test -z "$as_dir" && as_dir=.
27102 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027104 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
27105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27106 break 2
27107 fi
27108done
27109done
Reid Spencera773bd52006-08-04 18:18:08 +000027110IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027111
Reid Spencer59473af2004-12-25 07:31:29 +000027112 ;;
27113esac
27114fi
27115LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000027116if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027117 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
27118echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027119else
Reid Spencera773bd52006-08-04 18:18:08 +000027120 { echo "$as_me:$LINENO: result: no" >&5
27121echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027122fi
27123
Reid Spencera773bd52006-08-04 18:18:08 +000027124
Reid Spencerc84492c2005-06-02 22:34:49 +000027125 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
27126set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000027127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
27128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027129if test "${ac_cv_path_LLVMGXX+set}" = set; then
27130 echo $ECHO_N "(cached) $ECHO_C" >&6
27131else
27132 case $LLVMGXX in
27133 [\\/]* | ?:[\\/]*)
27134 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
27135 ;;
27136 *)
27137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27138for as_dir in $PATH
27139do
27140 IFS=$as_save_IFS
27141 test -z "$as_dir" && as_dir=.
27142 for ac_exec_ext in '' $ac_executable_extensions; do
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027144 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
27145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27146 break 2
27147 fi
27148done
27149done
Reid Spencera773bd52006-08-04 18:18:08 +000027150IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000027151
Reid Spencer59473af2004-12-25 07:31:29 +000027152 ;;
27153esac
27154fi
27155LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000027156if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000027157 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
27158echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027159else
Reid Spencera773bd52006-08-04 18:18:08 +000027160 { echo "$as_me:$LINENO: result: no" >&5
27161echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027162fi
27163
Reid Spencera773bd52006-08-04 18:18:08 +000027164
Reid Spencer59473af2004-12-25 07:31:29 +000027165else
Devang Patel5d28b882007-12-04 22:54:47 +000027166 if test -z "$LLVMGCC"; then
27167 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
27168 fi
27169 if test -z "$LLVMGXX"; then
27170 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
27171 fi
Reid Spencer59473af2004-12-25 07:31:29 +000027172 LLVMGCC=$LLVMGCC
27173
27174 LLVMGXX=$LLVMGXX
27175
27176fi
27177
Reid Spencera773bd52006-08-04 18:18:08 +000027178{ echo "$as_me:$LINENO: checking tool compatibility" >&5
27179echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027180
Reid Spencer86901802004-12-08 23:07:27 +000027181ICC=no
27182IXX=no
27183case $CC in
27184 icc*|icpc*)
27185 ICC=yes
27186 IXX=yes
27187 ;;
27188 *)
27189 ;;
27190esac
27191
Duraid Madina937c60a2006-02-15 07:57:42 +000027192if test "$GCC" != "yes" && test "$ICC" != "yes"
27193then
27194 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
27195echo "$as_me: error: gcc|icc required but not found" >&2;}
27196 { (exit 1); exit 1; }; }
27197fi
27198
27199if test "$GXX" != "yes" && test "$IXX" != "yes"
27200then
27201 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
27202echo "$as_me: error: g++|icc required but not found" >&2;}
27203 { (exit 1); exit 1; }; }
27204fi
27205
Reid Spencer86901802004-12-08 23:07:27 +000027206if test "$GCC" = "yes"
27207then
Chris Lattner399c7c72008-02-05 19:43:53 +000027208 cat >conftest.$ac_ext <<_ACEOF
27209#if !defined(__GNUC__) || __GNUC__ < 3
27210#error Unsupported GCC version
27211#endif
27212
27213_ACEOF
27214rm -f conftest.$ac_objext
27215if { (ac_try="$ac_compile"
27216case "(($ac_try" in
27217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27218 *) ac_try_echo=$ac_try;;
27219esac
27220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27221 (eval "$ac_compile") 2>conftest.er1
27222 ac_status=$?
27223 grep -v '^ *+' conftest.er1 >conftest.err
27224 rm -f conftest.er1
27225 cat conftest.err >&5
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027227 (exit $ac_status); } &&
27228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27229 { (case "(($ac_try" in
27230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27231 *) ac_try_echo=$ac_try;;
27232esac
27233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27234 (eval "$ac_try") 2>&5
27235 ac_status=$?
27236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); }; } &&
27238 { ac_try='test -s conftest.$ac_objext'
27239 { (case "(($ac_try" in
27240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27241 *) ac_try_echo=$ac_try;;
27242esac
27243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27244 (eval "$ac_try") 2>&5
27245 ac_status=$?
27246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27247 (exit $ac_status); }; }; then
Chris Lattner399c7c72008-02-05 19:43:53 +000027248 :
27249else
27250 echo "$as_me: failed program was:" >&5
27251sed 's/^/| /' conftest.$ac_ext >&5
27252
27253 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027254echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
27255 { (exit 1); exit 1; }; }
Chris Lattner399c7c72008-02-05 19:43:53 +000027256fi
27257
27258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027259fi
27260
27261if test -z "$llvm_cv_gnu_make_command"
27262then
27263 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
27264echo "$as_me: error: GNU Make required but not found" >&2;}
27265 { (exit 1); exit 1; }; }
27266fi
27267
Reid Spencera773bd52006-08-04 18:18:08 +000027268{ echo "$as_me:$LINENO: result: ok" >&5
27269echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027270
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027271
John Criswell7a73b802003-06-30 21:59:07 +000027272
Reid Spencera773bd52006-08-04 18:18:08 +000027273{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
27274echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027275if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
27276 echo $ECHO_N "(cached) $ECHO_C" >&6
27277else
27278 ac_check_lib_save_LIBS=$LIBS
27279LIBS="-lelf $LIBS"
27280cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027286
Reid Spencera773bd52006-08-04 18:18:08 +000027287/* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027290#ifdef __cplusplus
27291extern "C"
27292#endif
John Criswell7a73b802003-06-30 21:59:07 +000027293char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027294int
27295main ()
27296{
Reid Spencera773bd52006-08-04 18:18:08 +000027297return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000027298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027303if { (ac_try="$ac_link"
27304case "(($ac_try" in
27305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306 *) ac_try_echo=$ac_try;;
27307esac
27308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027310 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027315 (exit $ac_status); } &&
27316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27317 { (case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27320esac
27321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_try") 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest$ac_exeext'
27327 { (case "(($ac_try" in
27328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27329 *) ac_try_echo=$ac_try;;
27330esac
27331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27332 (eval "$ac_try") 2>&5
27333 ac_status=$?
27334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000027336 ac_cv_lib_elf_elf_begin=yes
27337else
27338 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027339sed 's/^/| /' conftest.$ac_ext >&5
27340
Reid Spencera773bd52006-08-04 18:18:08 +000027341 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000027342fi
Reid Spencera773bd52006-08-04 18:18:08 +000027343
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027344rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000027345 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027346LIBS=$ac_check_lib_save_LIBS
27347fi
Reid Spencera773bd52006-08-04 18:18:08 +000027348{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
27349echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027350if test $ac_cv_lib_elf_elf_begin = yes; then
27351 cat >>confdefs.h <<_ACEOF
27352#define HAVE_LIBELF 1
27353_ACEOF
27354
27355 LIBS="-lelf $LIBS"
27356
27357fi
27358
27359
Reid Spencera773bd52006-08-04 18:18:08 +000027360{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
27361echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027362if test "${ac_cv_lib_m_sin+set}" = set; then
27363 echo $ECHO_N "(cached) $ECHO_C" >&6
27364else
27365 ac_check_lib_save_LIBS=$LIBS
27366LIBS="-lm $LIBS"
27367cat >conftest.$ac_ext <<_ACEOF
27368/* confdefs.h. */
27369_ACEOF
27370cat confdefs.h >>conftest.$ac_ext
27371cat >>conftest.$ac_ext <<_ACEOF
27372/* end confdefs.h. */
27373
Reid Spencera773bd52006-08-04 18:18:08 +000027374/* Override any GCC internal prototype to avoid an error.
27375 Use char because int might match the return type of a GCC
27376 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000027377#ifdef __cplusplus
27378extern "C"
27379#endif
Reid Spencer3484a992006-01-19 08:31:08 +000027380char sin ();
27381int
27382main ()
27383{
Reid Spencera773bd52006-08-04 18:18:08 +000027384return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000027385 ;
27386 return 0;
27387}
27388_ACEOF
27389rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027390if { (ac_try="$ac_link"
27391case "(($ac_try" in
27392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27393 *) ac_try_echo=$ac_try;;
27394esac
27395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27396 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000027397 ac_status=$?
27398 grep -v '^ *+' conftest.er1 >conftest.err
27399 rm -f conftest.er1
27400 cat conftest.err >&5
27401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027402 (exit $ac_status); } &&
27403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27404 { (case "(($ac_try" in
27405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27406 *) ac_try_echo=$ac_try;;
27407esac
27408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27409 (eval "$ac_try") 2>&5
27410 ac_status=$?
27411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27412 (exit $ac_status); }; } &&
27413 { ac_try='test -s conftest$ac_exeext'
27414 { (case "(($ac_try" in
27415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416 *) ac_try_echo=$ac_try;;
27417esac
27418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419 (eval "$ac_try") 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); }; }; then
Reid Spencer3484a992006-01-19 08:31:08 +000027423 ac_cv_lib_m_sin=yes
27424else
27425 echo "$as_me: failed program was:" >&5
27426sed 's/^/| /' conftest.$ac_ext >&5
27427
Reid Spencera773bd52006-08-04 18:18:08 +000027428 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000027429fi
Reid Spencera773bd52006-08-04 18:18:08 +000027430
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027431rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000027432 conftest$ac_exeext conftest.$ac_ext
27433LIBS=$ac_check_lib_save_LIBS
27434fi
Reid Spencera773bd52006-08-04 18:18:08 +000027435{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
27436echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000027437if test $ac_cv_lib_m_sin = yes; then
27438 cat >>confdefs.h <<_ACEOF
27439#define HAVE_LIBM 1
27440_ACEOF
27441
27442 LIBS="-lm $LIBS"
27443
27444fi
27445
Jeff Cohen28783c32007-01-12 18:22:38 +000027446if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027447
Reid Spencera773bd52006-08-04 18:18:08 +000027448{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
27449echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027450if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027451 echo $ECHO_N "(cached) $ECHO_C" >&6
27452else
27453 ac_check_lib_save_LIBS=$LIBS
27454LIBS="-limagehlp $LIBS"
27455cat >conftest.$ac_ext <<_ACEOF
27456/* confdefs.h. */
27457_ACEOF
27458cat confdefs.h >>conftest.$ac_ext
27459cat >>conftest.$ac_ext <<_ACEOF
27460/* end confdefs.h. */
27461
Reid Spencer48fdf912006-06-01 19:03:21 +000027462
Reid Spencer484fc8e2006-06-01 16:55:59 +000027463int
27464main ()
27465{
Reid Spencera773bd52006-08-04 18:18:08 +000027466return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027467 ;
27468 return 0;
27469}
27470_ACEOF
27471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027472if { (ac_try="$ac_link"
27473case "(($ac_try" in
27474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27475 *) ac_try_echo=$ac_try;;
27476esac
27477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27478 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027479 ac_status=$?
27480 grep -v '^ *+' conftest.er1 >conftest.err
27481 rm -f conftest.er1
27482 cat conftest.err >&5
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027484 (exit $ac_status); } &&
27485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27486 { (case "(($ac_try" in
27487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27488 *) ac_try_echo=$ac_try;;
27489esac
27490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27491 (eval "$ac_try") 2>&5
27492 ac_status=$?
27493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } &&
27495 { ac_try='test -s conftest$ac_exeext'
27496 { (case "(($ac_try" in
27497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27498 *) ac_try_echo=$ac_try;;
27499esac
27500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27501 (eval "$ac_try") 2>&5
27502 ac_status=$?
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027505 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027506else
27507 echo "$as_me: failed program was:" >&5
27508sed 's/^/| /' conftest.$ac_ext >&5
27509
Reid Spencera773bd52006-08-04 18:18:08 +000027510 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027511fi
Reid Spencera773bd52006-08-04 18:18:08 +000027512
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027513rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027514 conftest$ac_exeext conftest.$ac_ext
27515LIBS=$ac_check_lib_save_LIBS
27516fi
Reid Spencera773bd52006-08-04 18:18:08 +000027517{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
27518echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027519if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027520 cat >>confdefs.h <<_ACEOF
27521#define HAVE_LIBIMAGEHLP 1
27522_ACEOF
27523
27524 LIBS="-limagehlp $LIBS"
27525
27526fi
27527
27528
Reid Spencera773bd52006-08-04 18:18:08 +000027529{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
27530echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027531if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027532 echo $ECHO_N "(cached) $ECHO_C" >&6
27533else
27534 ac_check_lib_save_LIBS=$LIBS
27535LIBS="-lpsapi $LIBS"
27536cat >conftest.$ac_ext <<_ACEOF
27537/* confdefs.h. */
27538_ACEOF
27539cat confdefs.h >>conftest.$ac_ext
27540cat >>conftest.$ac_ext <<_ACEOF
27541/* end confdefs.h. */
27542
Reid Spencer48fdf912006-06-01 19:03:21 +000027543
Reid Spencer484fc8e2006-06-01 16:55:59 +000027544int
27545main ()
27546{
Reid Spencera773bd52006-08-04 18:18:08 +000027547return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027548 ;
27549 return 0;
27550}
27551_ACEOF
27552rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027553if { (ac_try="$ac_link"
27554case "(($ac_try" in
27555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27556 *) ac_try_echo=$ac_try;;
27557esac
27558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27559 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027560 ac_status=$?
27561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027565 (exit $ac_status); } &&
27566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27567 { (case "(($ac_try" in
27568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27569 *) ac_try_echo=$ac_try;;
27570esac
27571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27572 (eval "$ac_try") 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
27577 { (case "(($ac_try" in
27578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579 *) ac_try_echo=$ac_try;;
27580esac
27581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582 (eval "$ac_try") 2>&5
27583 ac_status=$?
27584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027586 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027587else
27588 echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
Reid Spencera773bd52006-08-04 18:18:08 +000027591 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027592fi
Reid Spencera773bd52006-08-04 18:18:08 +000027593
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027594rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027595 conftest$ac_exeext conftest.$ac_ext
27596LIBS=$ac_check_lib_save_LIBS
27597fi
Reid Spencera773bd52006-08-04 18:18:08 +000027598{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27599echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027600if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027601 cat >>confdefs.h <<_ACEOF
27602#define HAVE_LIBPSAPI 1
27603_ACEOF
27604
27605 LIBS="-lpsapi $LIBS"
27606
27607fi
27608
27609fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027610
Reid Spencera773bd52006-08-04 18:18:08 +000027611{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27612echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027613if test "${ac_cv_search_dlopen+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
27615else
27616 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027617cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027618/* confdefs.h. */
27619_ACEOF
27620cat confdefs.h >>conftest.$ac_ext
27621cat >>conftest.$ac_ext <<_ACEOF
27622/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027623
Reid Spencera773bd52006-08-04 18:18:08 +000027624/* Override any GCC internal prototype to avoid an error.
27625 Use char because int might match the return type of a GCC
27626 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027627#ifdef __cplusplus
27628extern "C"
27629#endif
John Criswell7a73b802003-06-30 21:59:07 +000027630char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027631int
27632main ()
27633{
Reid Spencera773bd52006-08-04 18:18:08 +000027634return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027635 ;
27636 return 0;
27637}
27638_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027639for ac_lib in '' dl; do
27640 if test -z "$ac_lib"; then
27641 ac_res="none required"
27642 else
27643 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027645 fi
27646 rm -f conftest.$ac_objext conftest$ac_exeext
27647if { (ac_try="$ac_link"
27648case "(($ac_try" in
27649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27650 *) ac_try_echo=$ac_try;;
27651esac
27652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27653 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027655 grep -v '^ *+' conftest.er1 >conftest.err
27656 rm -f conftest.er1
27657 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027659 (exit $ac_status); } &&
27660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27661 { (case "(($ac_try" in
27662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27663 *) ac_try_echo=$ac_try;;
27664esac
27665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27666 (eval "$ac_try") 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; } &&
27670 { ac_try='test -s conftest$ac_exeext'
27671 { (case "(($ac_try" in
27672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673 *) ac_try_echo=$ac_try;;
27674esac
27675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676 (eval "$ac_try") 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027680 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027681else
27682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027683sed 's/^/| /' conftest.$ac_ext >&5
27684
Reid Spencera773bd52006-08-04 18:18:08 +000027685
John Criswell7a73b802003-06-30 21:59:07 +000027686fi
Reid Spencera773bd52006-08-04 18:18:08 +000027687
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027688rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027689 conftest$ac_exeext
27690 if test "${ac_cv_search_dlopen+set}" = set; then
27691 break
John Criswell7a73b802003-06-30 21:59:07 +000027692fi
Reid Spencera773bd52006-08-04 18:18:08 +000027693done
27694if test "${ac_cv_search_dlopen+set}" = set; then
27695 :
27696else
27697 ac_cv_search_dlopen=no
27698fi
27699rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027700LIBS=$ac_func_search_save_LIBS
27701fi
Reid Spencera773bd52006-08-04 18:18:08 +000027702{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27703echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27704ac_res=$ac_cv_search_dlopen
27705if test "$ac_res" != no; then
27706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027707
27708cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027709#define HAVE_DLOPEN 1
27710_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027711
27712else
Brian Gaekec45be042003-10-07 06:01:34 +000027713 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27714echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027715fi
27716
27717
Reid Spencera773bd52006-08-04 18:18:08 +000027718{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27719echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027720if test "${ac_cv_search_mallinfo+set}" = set; then
27721 echo $ECHO_N "(cached) $ECHO_C" >&6
27722else
27723 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027724cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027725/* confdefs.h. */
27726_ACEOF
27727cat confdefs.h >>conftest.$ac_ext
27728cat >>conftest.$ac_ext <<_ACEOF
27729/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027730
Reid Spencera773bd52006-08-04 18:18:08 +000027731/* Override any GCC internal prototype to avoid an error.
27732 Use char because int might match the return type of a GCC
27733 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027734#ifdef __cplusplus
27735extern "C"
27736#endif
John Criswell7a73b802003-06-30 21:59:07 +000027737char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027738int
27739main ()
27740{
Reid Spencera773bd52006-08-04 18:18:08 +000027741return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027742 ;
27743 return 0;
27744}
27745_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027746for ac_lib in '' malloc; do
27747 if test -z "$ac_lib"; then
27748 ac_res="none required"
27749 else
27750 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027752 fi
27753 rm -f conftest.$ac_objext conftest$ac_exeext
27754if { (ac_try="$ac_link"
27755case "(($ac_try" in
27756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27757 *) ac_try_echo=$ac_try;;
27758esac
27759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27760 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027762 grep -v '^ *+' conftest.er1 >conftest.err
27763 rm -f conftest.er1
27764 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027766 (exit $ac_status); } &&
27767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27768 { (case "(($ac_try" in
27769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770 *) ac_try_echo=$ac_try;;
27771esac
27772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773 (eval "$ac_try") 2>&5
27774 ac_status=$?
27775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27776 (exit $ac_status); }; } &&
27777 { ac_try='test -s conftest$ac_exeext'
27778 { (case "(($ac_try" in
27779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780 *) ac_try_echo=$ac_try;;
27781esac
27782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783 (eval "$ac_try") 2>&5
27784 ac_status=$?
27785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27786 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027787 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027788else
27789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027790sed 's/^/| /' conftest.$ac_ext >&5
27791
Reid Spencera773bd52006-08-04 18:18:08 +000027792
John Criswell7a73b802003-06-30 21:59:07 +000027793fi
Reid Spencera773bd52006-08-04 18:18:08 +000027794
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027795rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027796 conftest$ac_exeext
27797 if test "${ac_cv_search_mallinfo+set}" = set; then
27798 break
John Criswell7a73b802003-06-30 21:59:07 +000027799fi
Reid Spencera773bd52006-08-04 18:18:08 +000027800done
27801if test "${ac_cv_search_mallinfo+set}" = set; then
27802 :
27803else
27804 ac_cv_search_mallinfo=no
27805fi
27806rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027807LIBS=$ac_func_search_save_LIBS
27808fi
Reid Spencera773bd52006-08-04 18:18:08 +000027809{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27810echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27811ac_res=$ac_cv_search_mallinfo
27812if test "$ac_res" != no; then
27813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027814
27815cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027816#define HAVE_MALLINFO 1
27817_ACEOF
27818
27819fi
27820
27821
Reid Spencer0a262ba2005-08-24 10:07:20 +000027822if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027823
Reid Spencera773bd52006-08-04 18:18:08 +000027824{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27825echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027826if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27827 echo $ECHO_N "(cached) $ECHO_C" >&6
27828else
27829 ac_check_lib_save_LIBS=$LIBS
27830LIBS="-lpthread $LIBS"
27831cat >conftest.$ac_ext <<_ACEOF
27832/* confdefs.h. */
27833_ACEOF
27834cat confdefs.h >>conftest.$ac_ext
27835cat >>conftest.$ac_ext <<_ACEOF
27836/* end confdefs.h. */
27837
Reid Spencera773bd52006-08-04 18:18:08 +000027838/* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027841#ifdef __cplusplus
27842extern "C"
27843#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027844char pthread_mutex_init ();
27845int
27846main ()
27847{
Reid Spencera773bd52006-08-04 18:18:08 +000027848return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027849 ;
27850 return 0;
27851}
27852_ACEOF
27853rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027854if { (ac_try="$ac_link"
27855case "(($ac_try" in
27856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27857 *) ac_try_echo=$ac_try;;
27858esac
27859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27860 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027861 ac_status=$?
27862 grep -v '^ *+' conftest.er1 >conftest.err
27863 rm -f conftest.er1
27864 cat conftest.err >&5
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027866 (exit $ac_status); } &&
27867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27868 { (case "(($ac_try" in
27869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870 *) ac_try_echo=$ac_try;;
27871esac
27872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873 (eval "$ac_try") 2>&5
27874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest$ac_exeext'
27878 { (case "(($ac_try" in
27879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27880 *) ac_try_echo=$ac_try;;
27881esac
27882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27883 (eval "$ac_try") 2>&5
27884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027887 ac_cv_lib_pthread_pthread_mutex_init=yes
27888else
27889 echo "$as_me: failed program was:" >&5
27890sed 's/^/| /' conftest.$ac_ext >&5
27891
Reid Spencera773bd52006-08-04 18:18:08 +000027892 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027893fi
Reid Spencera773bd52006-08-04 18:18:08 +000027894
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027895rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027896 conftest$ac_exeext conftest.$ac_ext
27897LIBS=$ac_check_lib_save_LIBS
27898fi
Reid Spencera773bd52006-08-04 18:18:08 +000027899{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27900echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027901if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27902 cat >>confdefs.h <<_ACEOF
27903#define HAVE_LIBPTHREAD 1
27904_ACEOF
27905
27906 LIBS="-lpthread $LIBS"
27907
27908fi
27909
Reid Spencera773bd52006-08-04 18:18:08 +000027910 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27911echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027912if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27914else
27915 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027916cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027917/* confdefs.h. */
27918_ACEOF
27919cat confdefs.h >>conftest.$ac_ext
27920cat >>conftest.$ac_ext <<_ACEOF
27921/* end confdefs.h. */
27922
Reid Spencera773bd52006-08-04 18:18:08 +000027923/* Override any GCC internal prototype to avoid an error.
27924 Use char because int might match the return type of a GCC
27925 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027926#ifdef __cplusplus
27927extern "C"
27928#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027929char pthread_mutex_lock ();
27930int
27931main ()
27932{
Reid Spencera773bd52006-08-04 18:18:08 +000027933return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027934 ;
27935 return 0;
27936}
27937_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027938for ac_lib in '' pthread; do
27939 if test -z "$ac_lib"; then
27940 ac_res="none required"
27941 else
27942 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027943 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027944 fi
27945 rm -f conftest.$ac_objext conftest$ac_exeext
27946if { (ac_try="$ac_link"
27947case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950esac
27951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027953 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027954 grep -v '^ *+' conftest.er1 >conftest.err
27955 rm -f conftest.er1
27956 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027958 (exit $ac_status); } &&
27959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27960 { (case "(($ac_try" in
27961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27962 *) ac_try_echo=$ac_try;;
27963esac
27964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27965 (eval "$ac_try") 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; } &&
27969 { ac_try='test -s conftest$ac_exeext'
27970 { (case "(($ac_try" in
27971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27972 *) ac_try_echo=$ac_try;;
27973esac
27974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27975 (eval "$ac_try") 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027979 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027980else
27981 echo "$as_me: failed program was:" >&5
27982sed 's/^/| /' conftest.$ac_ext >&5
27983
Reid Spencera773bd52006-08-04 18:18:08 +000027984
Brian Gaeke5f268f72003-12-05 19:29:01 +000027985fi
Reid Spencera773bd52006-08-04 18:18:08 +000027986
Gordon Henriksen40e7f192008-10-22 12:40:55 +000027987rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000027988 conftest$ac_exeext
27989 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27990 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027991fi
Reid Spencera773bd52006-08-04 18:18:08 +000027992done
27993if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27994 :
27995else
27996 ac_cv_search_pthread_mutex_lock=no
27997fi
27998rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027999LIBS=$ac_func_search_save_LIBS
28000fi
Reid Spencera773bd52006-08-04 18:18:08 +000028001{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
28002echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
28003ac_res=$ac_cv_search_pthread_mutex_lock
28004if test "$ac_res" != no; then
28005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000028006
John Criswell40468462004-09-24 21:19:06 +000028007cat >>confdefs.h <<\_ACEOF
28008#define HAVE_PTHREAD_MUTEX_LOCK 1
28009_ACEOF
28010
28011fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000028012
Reid Spencer0a262ba2005-08-24 10:07:20 +000028013fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000028014
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028015
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028016# Check whether --with-udis86 was given.
28017if test "${with_udis86+set}" = set; then
28018 withval=$with_udis86;
28019 USE_UDIS86=1
28020
28021 case "$withval" in
Reid Spencer30fe5262007-01-20 07:48:49 +000028022 /usr/lib|yes) ;;
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028023 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
28024 esac
28025
28026{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
28027echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
28028if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
28029 echo $ECHO_N "(cached) $ECHO_C" >&6
28030else
28031 ac_check_lib_save_LIBS=$LIBS
28032LIBS="-ludis86 $LIBS"
28033cat >conftest.$ac_ext <<_ACEOF
28034/* confdefs.h. */
28035_ACEOF
28036cat confdefs.h >>conftest.$ac_ext
28037cat >>conftest.$ac_ext <<_ACEOF
28038/* end confdefs.h. */
28039
28040/* Override any GCC internal prototype to avoid an error.
28041 Use char because int might match the return type of a GCC
28042 builtin and then its argument prototype would still apply. */
28043#ifdef __cplusplus
28044extern "C"
28045#endif
28046char ud_init ();
28047int
28048main ()
28049{
28050return ud_init ();
28051 ;
28052 return 0;
28053}
28054_ACEOF
28055rm -f conftest.$ac_objext conftest$ac_exeext
28056if { (ac_try="$ac_link"
28057case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060esac
28061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_link") 2>conftest.er1
28063 ac_status=$?
28064 grep -v '^ *+' conftest.er1 >conftest.err
28065 rm -f conftest.er1
28066 cat conftest.err >&5
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028068 (exit $ac_status); } &&
28069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28070 { (case "(($ac_try" in
28071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072 *) ac_try_echo=$ac_try;;
28073esac
28074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075 (eval "$ac_try") 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; } &&
28079 { ac_try='test -s conftest$ac_exeext'
28080 { (case "(($ac_try" in
28081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28082 *) ac_try_echo=$ac_try;;
28083esac
28084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28085 (eval "$ac_try") 2>&5
28086 ac_status=$?
28087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28088 (exit $ac_status); }; }; then
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028089 ac_cv_lib_udis86_ud_init=yes
28090else
28091 echo "$as_me: failed program was:" >&5
28092sed 's/^/| /' conftest.$ac_ext >&5
28093
28094 ac_cv_lib_udis86_ud_init=no
28095fi
28096
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028097rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb6a7aa72007-01-19 17:41:47 +000028098 conftest$ac_exeext conftest.$ac_ext
28099LIBS=$ac_check_lib_save_LIBS
28100fi
28101{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
28102echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
28103if test $ac_cv_lib_udis86_ud_init = yes; then
28104 cat >>confdefs.h <<_ACEOF
28105#define HAVE_LIBUDIS86 1
28106_ACEOF
28107
28108 LIBS="-ludis86 $LIBS"
28109
28110else
28111
28112 echo "Error! You need to have libudis86 around."
28113 exit -1
28114
28115fi
28116
28117
28118else
28119 USE_UDIS86=0
28120
28121fi
28122
28123
28124cat >>confdefs.h <<_ACEOF
28125#define USE_UDIS86 $USE_UDIS86
28126_ACEOF
28127
28128
28129
Reid Spencer59473af2004-12-25 07:31:29 +000028130
28131
28132
28133
28134
28135ac_header_dirent=no
28136for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
28137 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028138{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
28139echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
28140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028141 echo $ECHO_N "(cached) $ECHO_C" >&6
28142else
28143 cat >conftest.$ac_ext <<_ACEOF
28144/* confdefs.h. */
28145_ACEOF
28146cat confdefs.h >>conftest.$ac_ext
28147cat >>conftest.$ac_ext <<_ACEOF
28148/* end confdefs.h. */
28149#include <sys/types.h>
28150#include <$ac_hdr>
28151
28152int
28153main ()
28154{
28155if ((DIR *) 0)
28156return 0;
28157 ;
28158 return 0;
28159}
28160_ACEOF
28161rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028162if { (ac_try="$ac_compile"
28163case "(($ac_try" in
28164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28165 *) ac_try_echo=$ac_try;;
28166esac
28167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28168 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028169 ac_status=$?
28170 grep -v '^ *+' conftest.er1 >conftest.err
28171 rm -f conftest.er1
28172 cat conftest.err >&5
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028174 (exit $ac_status); } &&
28175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28176 { (case "(($ac_try" in
28177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28178 *) ac_try_echo=$ac_try;;
28179esac
28180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28181 (eval "$ac_try") 2>&5
28182 ac_status=$?
28183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28184 (exit $ac_status); }; } &&
28185 { ac_try='test -s conftest.$ac_objext'
28186 { (case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189esac
28190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28191 (eval "$ac_try") 2>&5
28192 ac_status=$?
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028195 eval "$as_ac_Header=yes"
28196else
28197 echo "$as_me: failed program was:" >&5
28198sed 's/^/| /' conftest.$ac_ext >&5
28199
Reid Spencera773bd52006-08-04 18:18:08 +000028200 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000028201fi
Reid Spencera773bd52006-08-04 18:18:08 +000028202
28203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028204fi
Reid Spencera773bd52006-08-04 18:18:08 +000028205ac_res=`eval echo '${'$as_ac_Header'}'`
28206 { echo "$as_me:$LINENO: result: $ac_res" >&5
28207echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028208if test `eval echo '${'$as_ac_Header'}'` = yes; then
28209 cat >>confdefs.h <<_ACEOF
28210#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
28211_ACEOF
28212
28213ac_header_dirent=$ac_hdr; break
28214fi
28215
28216done
28217# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
28218if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000028219 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28220echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028221if test "${ac_cv_search_opendir+set}" = set; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223else
28224 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028225cat >conftest.$ac_ext <<_ACEOF
28226/* confdefs.h. */
28227_ACEOF
28228cat confdefs.h >>conftest.$ac_ext
28229cat >>conftest.$ac_ext <<_ACEOF
28230/* end confdefs.h. */
28231
Reid Spencera773bd52006-08-04 18:18:08 +000028232/* Override any GCC internal prototype to avoid an error.
28233 Use char because int might match the return type of a GCC
28234 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028235#ifdef __cplusplus
28236extern "C"
28237#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028238char opendir ();
28239int
28240main ()
28241{
Reid Spencera773bd52006-08-04 18:18:08 +000028242return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028243 ;
28244 return 0;
28245}
28246_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028247for ac_lib in '' dir; do
28248 if test -z "$ac_lib"; then
28249 ac_res="none required"
28250 else
28251 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028253 fi
28254 rm -f conftest.$ac_objext conftest$ac_exeext
28255if { (ac_try="$ac_link"
28256case "(($ac_try" in
28257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258 *) ac_try_echo=$ac_try;;
28259esac
28260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028262 ac_status=$?
28263 grep -v '^ *+' conftest.er1 >conftest.err
28264 rm -f conftest.er1
28265 cat conftest.err >&5
28266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028267 (exit $ac_status); } &&
28268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28269 { (case "(($ac_try" in
28270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28271 *) ac_try_echo=$ac_try;;
28272esac
28273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28274 (eval "$ac_try") 2>&5
28275 ac_status=$?
28276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277 (exit $ac_status); }; } &&
28278 { ac_try='test -s conftest$ac_exeext'
28279 { (case "(($ac_try" in
28280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281 *) ac_try_echo=$ac_try;;
28282esac
28283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284 (eval "$ac_try") 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028288 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028289else
28290 echo "$as_me: failed program was:" >&5
28291sed 's/^/| /' conftest.$ac_ext >&5
28292
Reid Spencera773bd52006-08-04 18:18:08 +000028293
Reid Spencer59473af2004-12-25 07:31:29 +000028294fi
Reid Spencera773bd52006-08-04 18:18:08 +000028295
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028296rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028297 conftest$ac_exeext
28298 if test "${ac_cv_search_opendir+set}" = set; then
28299 break
Reid Spencer59473af2004-12-25 07:31:29 +000028300fi
Reid Spencera773bd52006-08-04 18:18:08 +000028301done
28302if test "${ac_cv_search_opendir+set}" = set; then
28303 :
28304else
28305 ac_cv_search_opendir=no
28306fi
28307rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028308LIBS=$ac_func_search_save_LIBS
28309fi
Reid Spencera773bd52006-08-04 18:18:08 +000028310{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28311echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28312ac_res=$ac_cv_search_opendir
28313if test "$ac_res" != no; then
28314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028315
28316fi
28317
28318else
Reid Spencera773bd52006-08-04 18:18:08 +000028319 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
28320echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028321if test "${ac_cv_search_opendir+set}" = set; then
28322 echo $ECHO_N "(cached) $ECHO_C" >&6
28323else
28324 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000028325cat >conftest.$ac_ext <<_ACEOF
28326/* confdefs.h. */
28327_ACEOF
28328cat confdefs.h >>conftest.$ac_ext
28329cat >>conftest.$ac_ext <<_ACEOF
28330/* end confdefs.h. */
28331
Reid Spencera773bd52006-08-04 18:18:08 +000028332/* Override any GCC internal prototype to avoid an error.
28333 Use char because int might match the return type of a GCC
28334 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000028335#ifdef __cplusplus
28336extern "C"
28337#endif
Reid Spencer59473af2004-12-25 07:31:29 +000028338char opendir ();
28339int
28340main ()
28341{
Reid Spencera773bd52006-08-04 18:18:08 +000028342return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000028343 ;
28344 return 0;
28345}
28346_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028347for ac_lib in '' x; do
28348 if test -z "$ac_lib"; then
28349 ac_res="none required"
28350 else
28351 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000028352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000028353 fi
28354 rm -f conftest.$ac_objext conftest$ac_exeext
28355if { (ac_try="$ac_link"
28356case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359esac
28360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028362 ac_status=$?
28363 grep -v '^ *+' conftest.er1 >conftest.err
28364 rm -f conftest.er1
28365 cat conftest.err >&5
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028367 (exit $ac_status); } &&
28368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28369 { (case "(($ac_try" in
28370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371 *) ac_try_echo=$ac_try;;
28372esac
28373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374 (eval "$ac_try") 2>&5
28375 ac_status=$?
28376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28377 (exit $ac_status); }; } &&
28378 { ac_try='test -s conftest$ac_exeext'
28379 { (case "(($ac_try" in
28380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28381 *) ac_try_echo=$ac_try;;
28382esac
28383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28384 (eval "$ac_try") 2>&5
28385 ac_status=$?
28386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000028388 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000028389else
28390 echo "$as_me: failed program was:" >&5
28391sed 's/^/| /' conftest.$ac_ext >&5
28392
Reid Spencera773bd52006-08-04 18:18:08 +000028393
Reid Spencer59473af2004-12-25 07:31:29 +000028394fi
Reid Spencera773bd52006-08-04 18:18:08 +000028395
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028396rm -f core conftest.err conftest.$ac_objext \
Reid Spencera773bd52006-08-04 18:18:08 +000028397 conftest$ac_exeext
28398 if test "${ac_cv_search_opendir+set}" = set; then
28399 break
Reid Spencer59473af2004-12-25 07:31:29 +000028400fi
Reid Spencera773bd52006-08-04 18:18:08 +000028401done
28402if test "${ac_cv_search_opendir+set}" = set; then
28403 :
28404else
28405 ac_cv_search_opendir=no
28406fi
28407rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028408LIBS=$ac_func_search_save_LIBS
28409fi
Reid Spencera773bd52006-08-04 18:18:08 +000028410{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
28411echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
28412ac_res=$ac_cv_search_opendir
28413if test "$ac_res" != no; then
28414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000028415
28416fi
28417
28418fi
28419
Reid Spencera773bd52006-08-04 18:18:08 +000028420{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
28421echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028422if test "${ac_cv_header_mmap_anon+set}" = set; then
28423 echo $ECHO_N "(cached) $ECHO_C" >&6
28424else
28425 ac_ext=c
28426ac_cpp='$CPP $CPPFLAGS'
28427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28429ac_compiler_gnu=$ac_cv_c_compiler_gnu
28430
28431 cat >conftest.$ac_ext <<_ACEOF
28432/* confdefs.h. */
28433_ACEOF
28434cat confdefs.h >>conftest.$ac_ext
28435cat >>conftest.$ac_ext <<_ACEOF
28436/* end confdefs.h. */
28437#include <sys/mman.h>
28438#include <unistd.h>
28439#include <fcntl.h>
28440int
28441main ()
28442{
28443mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28444 ;
28445 return 0;
28446}
28447_ACEOF
28448rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028449if { (ac_try="$ac_compile"
28450case "(($ac_try" in
28451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28452 *) ac_try_echo=$ac_try;;
28453esac
28454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28455 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028456 ac_status=$?
28457 grep -v '^ *+' conftest.er1 >conftest.err
28458 rm -f conftest.er1
28459 cat conftest.err >&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028461 (exit $ac_status); } &&
28462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28463 { (case "(($ac_try" in
28464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28465 *) ac_try_echo=$ac_try;;
28466esac
28467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28468 (eval "$ac_try") 2>&5
28469 ac_status=$?
28470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471 (exit $ac_status); }; } &&
28472 { ac_try='test -s conftest.$ac_objext'
28473 { (case "(($ac_try" in
28474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475 *) ac_try_echo=$ac_try;;
28476esac
28477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478 (eval "$ac_try") 2>&5
28479 ac_status=$?
28480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028482 ac_cv_header_mmap_anon=yes
28483else
28484 echo "$as_me: failed program was:" >&5
28485sed 's/^/| /' conftest.$ac_ext >&5
28486
Reid Spencera773bd52006-08-04 18:18:08 +000028487 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028488fi
Reid Spencera773bd52006-08-04 18:18:08 +000028489
28490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028491 ac_ext=c
28492ac_cpp='$CPP $CPPFLAGS'
28493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495ac_compiler_gnu=$ac_cv_c_compiler_gnu
28496
28497
28498fi
Reid Spencera773bd52006-08-04 18:18:08 +000028499{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28500echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028501if test "$ac_cv_header_mmap_anon" = yes; then
28502
28503cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028504#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028505_ACEOF
28506
28507fi
28508
Reid Spencera773bd52006-08-04 18:18:08 +000028509{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28510echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028511if test "${ac_cv_header_stat_broken+set}" = set; then
28512 echo $ECHO_N "(cached) $ECHO_C" >&6
28513else
28514 cat >conftest.$ac_ext <<_ACEOF
28515/* confdefs.h. */
28516_ACEOF
28517cat confdefs.h >>conftest.$ac_ext
28518cat >>conftest.$ac_ext <<_ACEOF
28519/* end confdefs.h. */
28520#include <sys/types.h>
28521#include <sys/stat.h>
28522
Reid Spencera773bd52006-08-04 18:18:08 +000028523#if defined S_ISBLK && defined S_IFDIR
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028524# if S_ISBLK (S_IFDIR)
28525You lose.
28526# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028527#endif
28528
Reid Spencera773bd52006-08-04 18:18:08 +000028529#if defined S_ISBLK && defined S_IFCHR
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028530# if S_ISBLK (S_IFCHR)
28531You lose.
28532# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028533#endif
28534
Reid Spencera773bd52006-08-04 18:18:08 +000028535#if defined S_ISLNK && defined S_IFREG
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028536# if S_ISLNK (S_IFREG)
28537You lose.
28538# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028539#endif
28540
Reid Spencera773bd52006-08-04 18:18:08 +000028541#if defined S_ISSOCK && defined S_IFREG
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028542# if S_ISSOCK (S_IFREG)
28543You lose.
28544# endif
Reid Spencer59473af2004-12-25 07:31:29 +000028545#endif
28546
28547_ACEOF
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28549 $EGREP "You lose" >/dev/null 2>&1; then
28550 ac_cv_header_stat_broken=yes
Torok Edwincc499a42008-10-22 09:56:27 +000028551else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028552 ac_cv_header_stat_broken=no
Torok Edwincc499a42008-10-22 09:56:27 +000028553fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028554rm -f conftest*
Torok Edwincc499a42008-10-22 09:56:27 +000028555
Reid Spencer59473af2004-12-25 07:31:29 +000028556fi
Reid Spencera773bd52006-08-04 18:18:08 +000028557{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28558echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028559if test $ac_cv_header_stat_broken = yes; then
28560
28561cat >>confdefs.h <<\_ACEOF
28562#define STAT_MACROS_BROKEN 1
28563_ACEOF
28564
28565fi
28566
Reid Spencera773bd52006-08-04 18:18:08 +000028567{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28568echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028569if test "${ac_cv_header_stdc+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
28571else
28572 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028573/* confdefs.h. */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028578#include <stdlib.h>
28579#include <stdarg.h>
28580#include <string.h>
28581#include <float.h>
28582
John Criswell0c38eaf2003-09-10 15:17:25 +000028583int
28584main ()
28585{
28586
28587 ;
28588 return 0;
28589}
John Criswell7a73b802003-06-30 21:59:07 +000028590_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028591rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028592if { (ac_try="$ac_compile"
28593case "(($ac_try" in
28594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595 *) ac_try_echo=$ac_try;;
28596esac
28597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028599 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028600 grep -v '^ *+' conftest.er1 >conftest.err
28601 rm -f conftest.er1
28602 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028604 (exit $ac_status); } &&
28605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28606 { (case "(($ac_try" in
28607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28608 *) ac_try_echo=$ac_try;;
28609esac
28610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28611 (eval "$ac_try") 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; } &&
28615 { ac_try='test -s conftest.$ac_objext'
28616 { (case "(($ac_try" in
28617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618 *) ac_try_echo=$ac_try;;
28619esac
28620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621 (eval "$ac_try") 2>&5
28622 ac_status=$?
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028625 ac_cv_header_stdc=yes
28626else
28627 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028628sed 's/^/| /' conftest.$ac_ext >&5
28629
Reid Spencera773bd52006-08-04 18:18:08 +000028630 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028631fi
Reid Spencera773bd52006-08-04 18:18:08 +000028632
28633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028634
28635if test $ac_cv_header_stdc = yes; then
28636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28637 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028638/* confdefs.h. */
28639_ACEOF
28640cat confdefs.h >>conftest.$ac_ext
28641cat >>conftest.$ac_ext <<_ACEOF
28642/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028643#include <string.h>
28644
28645_ACEOF
28646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028647 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028648 :
28649else
28650 ac_cv_header_stdc=no
28651fi
28652rm -f conftest*
28653
28654fi
28655
28656if test $ac_cv_header_stdc = yes; then
28657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028659/* confdefs.h. */
28660_ACEOF
28661cat confdefs.h >>conftest.$ac_ext
28662cat >>conftest.$ac_ext <<_ACEOF
28663/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028664#include <stdlib.h>
28665
28666_ACEOF
28667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028668 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028669 :
28670else
28671 ac_cv_header_stdc=no
28672fi
28673rm -f conftest*
28674
28675fi
28676
28677if test $ac_cv_header_stdc = yes; then
28678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28679 if test "$cross_compiling" = yes; then
28680 :
28681else
28682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028683/* confdefs.h. */
28684_ACEOF
28685cat confdefs.h >>conftest.$ac_ext
28686cat >>conftest.$ac_ext <<_ACEOF
28687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028688#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028689#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028690#if ((' ' & 0x0FF) == 0x020)
28691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28693#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028694# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028695 (('a' <= (c) && (c) <= 'i') \
28696 || ('j' <= (c) && (c) <= 'r') \
28697 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28699#endif
28700
28701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28702int
28703main ()
28704{
28705 int i;
28706 for (i = 0; i < 256; i++)
28707 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028708 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028709 return 2;
28710 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028711}
28712_ACEOF
28713rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028714if { (ac_try="$ac_link"
28715case "(($ac_try" in
28716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28717 *) ac_try_echo=$ac_try;;
28718esac
28719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28720 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028721 ac_status=$?
28722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028724 { (case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727esac
28728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028730 ac_status=$?
28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 (exit $ac_status); }; }; then
28733 :
28734else
28735 echo "$as_me: program exited with status $ac_status" >&5
28736echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028737sed 's/^/| /' conftest.$ac_ext >&5
28738
John Criswell7a73b802003-06-30 21:59:07 +000028739( exit $ac_status )
28740ac_cv_header_stdc=no
28741fi
Reid Spencera773bd52006-08-04 18:18:08 +000028742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28743fi
28744
28745
John Criswell7a73b802003-06-30 21:59:07 +000028746fi
28747fi
Reid Spencera773bd52006-08-04 18:18:08 +000028748{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28749echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028750if test $ac_cv_header_stdc = yes; then
28751
28752cat >>confdefs.h <<\_ACEOF
28753#define STDC_HEADERS 1
28754_ACEOF
28755
28756fi
28757
Reid Spencera773bd52006-08-04 18:18:08 +000028758{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28759echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028760if test "${ac_cv_header_sys_wait_h+set}" = set; then
28761 echo $ECHO_N "(cached) $ECHO_C" >&6
28762else
28763 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028764/* confdefs.h. */
28765_ACEOF
28766cat confdefs.h >>conftest.$ac_ext
28767cat >>conftest.$ac_ext <<_ACEOF
28768/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028769#include <sys/types.h>
28770#include <sys/wait.h>
28771#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028772# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028773#endif
28774#ifndef WIFEXITED
28775# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28776#endif
28777
John Criswell7a73b802003-06-30 21:59:07 +000028778int
28779main ()
28780{
28781 int s;
28782 wait (&s);
28783 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28784 ;
28785 return 0;
28786}
28787_ACEOF
28788rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028789if { (ac_try="$ac_compile"
28790case "(($ac_try" in
28791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28792 *) ac_try_echo=$ac_try;;
28793esac
28794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28795 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028797 grep -v '^ *+' conftest.er1 >conftest.err
28798 rm -f conftest.er1
28799 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028801 (exit $ac_status); } &&
28802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28803 { (case "(($ac_try" in
28804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805 *) ac_try_echo=$ac_try;;
28806esac
28807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28808 (eval "$ac_try") 2>&5
28809 ac_status=$?
28810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 (exit $ac_status); }; } &&
28812 { ac_try='test -s conftest.$ac_objext'
28813 { (case "(($ac_try" in
28814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28815 *) ac_try_echo=$ac_try;;
28816esac
28817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28818 (eval "$ac_try") 2>&5
28819 ac_status=$?
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028822 ac_cv_header_sys_wait_h=yes
28823else
28824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028825sed 's/^/| /' conftest.$ac_ext >&5
28826
Reid Spencera773bd52006-08-04 18:18:08 +000028827 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028828fi
Reid Spencera773bd52006-08-04 18:18:08 +000028829
28830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028831fi
Reid Spencera773bd52006-08-04 18:18:08 +000028832{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28833echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028834if test $ac_cv_header_sys_wait_h = yes; then
28835
28836cat >>confdefs.h <<\_ACEOF
28837#define HAVE_SYS_WAIT_H 1
28838_ACEOF
28839
28840fi
28841
Reid Spencera773bd52006-08-04 18:18:08 +000028842{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28843echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028844if test "${ac_cv_header_time+set}" = set; then
28845 echo $ECHO_N "(cached) $ECHO_C" >&6
28846else
28847 cat >conftest.$ac_ext <<_ACEOF
28848/* confdefs.h. */
28849_ACEOF
28850cat confdefs.h >>conftest.$ac_ext
28851cat >>conftest.$ac_ext <<_ACEOF
28852/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028853#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028854#include <sys/time.h>
28855#include <time.h>
28856
28857int
28858main ()
28859{
28860if ((struct tm *) 0)
28861return 0;
28862 ;
28863 return 0;
28864}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028865_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028866rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028867if { (ac_try="$ac_compile"
28868case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28871esac
28872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028874 ac_status=$?
28875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
28878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028879 (exit $ac_status); } &&
28880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28884esac
28885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest.$ac_objext'
28891 { (case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028900 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028901else
28902 echo "$as_me: failed program was:" >&5
28903sed 's/^/| /' conftest.$ac_ext >&5
28904
Reid Spencera773bd52006-08-04 18:18:08 +000028905 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028906fi
Reid Spencera773bd52006-08-04 18:18:08 +000028907
28908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028909fi
Reid Spencera773bd52006-08-04 18:18:08 +000028910{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28911echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028912if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028913
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028914cat >>confdefs.h <<\_ACEOF
28915#define TIME_WITH_SYS_TIME 1
28916_ACEOF
28917
28918fi
28919
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028920
Reid Spencer59473af2004-12-25 07:31:29 +000028921
28922
28923
28924
28925
28926
28927for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28928do
28929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28933if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028934 echo $ECHO_N "(cached) $ECHO_C" >&6
28935fi
Reid Spencera773bd52006-08-04 18:18:08 +000028936ac_res=`eval echo '${'$as_ac_Header'}'`
28937 { echo "$as_me:$LINENO: result: $ac_res" >&5
28938echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028939else
28940 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028941{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28942echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028943cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028944/* confdefs.h. */
28945_ACEOF
28946cat confdefs.h >>conftest.$ac_ext
28947cat >>conftest.$ac_ext <<_ACEOF
28948/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028949$ac_includes_default
28950#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028951_ACEOF
28952rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028953if { (ac_try="$ac_compile"
28954case "(($ac_try" in
28955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956 *) ac_try_echo=$ac_try;;
28957esac
28958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028960 ac_status=$?
28961 grep -v '^ *+' conftest.er1 >conftest.err
28962 rm -f conftest.er1
28963 cat conftest.err >&5
28964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000028965 (exit $ac_status); } &&
28966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28967 { (case "(($ac_try" in
28968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969 *) ac_try_echo=$ac_try;;
28970esac
28971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28972 (eval "$ac_try") 2>&5
28973 ac_status=$?
28974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28975 (exit $ac_status); }; } &&
28976 { ac_try='test -s conftest.$ac_objext'
28977 { (case "(($ac_try" in
28978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979 *) ac_try_echo=$ac_try;;
28980esac
28981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982 (eval "$ac_try") 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028986 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028987else
28988 echo "$as_me: failed program was:" >&5
28989sed 's/^/| /' conftest.$ac_ext >&5
28990
Reid Spencera773bd52006-08-04 18:18:08 +000028991 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028992fi
Reid Spencera773bd52006-08-04 18:18:08 +000028993
28994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28995{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28996echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028997
Reid Spencer59473af2004-12-25 07:31:29 +000028998# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028999{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29000echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029001cat >conftest.$ac_ext <<_ACEOF
29002/* confdefs.h. */
29003_ACEOF
29004cat confdefs.h >>conftest.$ac_ext
29005cat >>conftest.$ac_ext <<_ACEOF
29006/* end confdefs.h. */
29007#include <$ac_header>
29008_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029009if { (ac_try="$ac_cpp conftest.$ac_ext"
29010case "(($ac_try" in
29011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29012 *) ac_try_echo=$ac_try;;
29013esac
29014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029016 ac_status=$?
29017 grep -v '^ *+' conftest.er1 >conftest.err
29018 rm -f conftest.er1
29019 cat conftest.err >&5
29020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029021 (exit $ac_status); } >/dev/null; then
29022 if test -s conftest.err; then
29023 ac_cpp_err=$ac_c_preproc_warn_flag
29024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29025 else
29026 ac_cpp_err=
29027 fi
29028else
29029 ac_cpp_err=yes
29030fi
29031if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029032 ac_header_preproc=yes
29033else
29034 echo "$as_me: failed program was:" >&5
29035sed 's/^/| /' conftest.$ac_ext >&5
29036
29037 ac_header_preproc=no
29038fi
Reid Spencera773bd52006-08-04 18:18:08 +000029039
Reid Spencer59473af2004-12-25 07:31:29 +000029040rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029041{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29042echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029043
29044# So? What about this header?
29045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29046 yes:no: )
29047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29051 ac_header_preproc=yes
29052 ;;
29053 no:yes:* )
29054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029066 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029067## ----------------------------------- ##
29068## Report this to llvmbugs@cs.uiuc.edu ##
29069## ----------------------------------- ##
29070_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029071 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029072 ;;
29073esac
Reid Spencera773bd52006-08-04 18:18:08 +000029074{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029077 echo $ECHO_N "(cached) $ECHO_C" >&6
29078else
29079 eval "$as_ac_Header=\$ac_header_preproc"
29080fi
Reid Spencera773bd52006-08-04 18:18:08 +000029081ac_res=`eval echo '${'$as_ac_Header'}'`
29082 { echo "$as_me:$LINENO: result: $ac_res" >&5
29083echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029084
29085fi
Reid Spencer59473af2004-12-25 07:31:29 +000029086if test `eval echo '${'$as_ac_Header'}'` = yes; then
29087 cat >>confdefs.h <<_ACEOF
29088#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029089_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029090
29091fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029092
Reid Spencer59473af2004-12-25 07:31:29 +000029093done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029094
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029095
29096
Reid Spencer59473af2004-12-25 07:31:29 +000029097
29098
29099
29100
Reid Spencercdb08a32006-06-05 16:11:07 +000029101for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000029102do
29103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029104if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29107if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029108 echo $ECHO_N "(cached) $ECHO_C" >&6
29109fi
Reid Spencera773bd52006-08-04 18:18:08 +000029110ac_res=`eval echo '${'$as_ac_Header'}'`
29111 { echo "$as_me:$LINENO: result: $ac_res" >&5
29112echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029113else
29114 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029115{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029117cat >conftest.$ac_ext <<_ACEOF
29118/* confdefs.h. */
29119_ACEOF
29120cat confdefs.h >>conftest.$ac_ext
29121cat >>conftest.$ac_ext <<_ACEOF
29122/* end confdefs.h. */
29123$ac_includes_default
29124#include <$ac_header>
29125_ACEOF
29126rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029127if { (ac_try="$ac_compile"
29128case "(($ac_try" in
29129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130 *) ac_try_echo=$ac_try;;
29131esac
29132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029134 ac_status=$?
29135 grep -v '^ *+' conftest.er1 >conftest.err
29136 rm -f conftest.er1
29137 cat conftest.err >&5
29138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029139 (exit $ac_status); } &&
29140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29141 { (case "(($ac_try" in
29142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29143 *) ac_try_echo=$ac_try;;
29144esac
29145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29146 (eval "$ac_try") 2>&5
29147 ac_status=$?
29148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149 (exit $ac_status); }; } &&
29150 { ac_try='test -s conftest.$ac_objext'
29151 { (case "(($ac_try" in
29152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29153 *) ac_try_echo=$ac_try;;
29154esac
29155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29156 (eval "$ac_try") 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029160 ac_header_compiler=yes
29161else
29162 echo "$as_me: failed program was:" >&5
29163sed 's/^/| /' conftest.$ac_ext >&5
29164
Reid Spencera773bd52006-08-04 18:18:08 +000029165 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000029166fi
Reid Spencera773bd52006-08-04 18:18:08 +000029167
29168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29169{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29170echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029171
29172# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029173{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29174echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029175cat >conftest.$ac_ext <<_ACEOF
29176/* confdefs.h. */
29177_ACEOF
29178cat confdefs.h >>conftest.$ac_ext
29179cat >>conftest.$ac_ext <<_ACEOF
29180/* end confdefs.h. */
29181#include <$ac_header>
29182_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029183if { (ac_try="$ac_cpp conftest.$ac_ext"
29184case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29187esac
29188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000029190 ac_status=$?
29191 grep -v '^ *+' conftest.er1 >conftest.err
29192 rm -f conftest.er1
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029195 (exit $ac_status); } >/dev/null; then
29196 if test -s conftest.err; then
29197 ac_cpp_err=$ac_c_preproc_warn_flag
29198 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29199 else
29200 ac_cpp_err=
29201 fi
29202else
29203 ac_cpp_err=yes
29204fi
29205if test -z "$ac_cpp_err"; then
Reid Spencer59473af2004-12-25 07:31:29 +000029206 ac_header_preproc=yes
29207else
29208 echo "$as_me: failed program was:" >&5
29209sed 's/^/| /' conftest.$ac_ext >&5
29210
29211 ac_header_preproc=no
29212fi
Reid Spencera773bd52006-08-04 18:18:08 +000029213
Reid Spencer59473af2004-12-25 07:31:29 +000029214rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029215{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29216echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029217
29218# So? What about this header?
29219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29220 yes:no: )
29221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29225 ac_header_preproc=yes
29226 ;;
29227 no:yes:* )
29228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029240 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000029241## ----------------------------------- ##
29242## Report this to llvmbugs@cs.uiuc.edu ##
29243## ----------------------------------- ##
29244_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029245 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000029246 ;;
29247esac
Reid Spencera773bd52006-08-04 18:18:08 +000029248{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29249echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29250if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000029251 echo $ECHO_N "(cached) $ECHO_C" >&6
29252else
29253 eval "$as_ac_Header=\$ac_header_preproc"
29254fi
Reid Spencera773bd52006-08-04 18:18:08 +000029255ac_res=`eval echo '${'$as_ac_Header'}'`
29256 { echo "$as_me:$LINENO: result: $ac_res" >&5
29257echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000029258
29259fi
29260if test `eval echo '${'$as_ac_Header'}'` = yes; then
29261 cat >>confdefs.h <<_ACEOF
29262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29263_ACEOF
29264
29265fi
29266
29267done
29268
29269
Reid Spencerbe3e4192007-08-17 05:45:26 +000029270for ac_header in windows.h
29271do
29272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29275echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29276if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278fi
29279ac_res=`eval echo '${'$as_ac_Header'}'`
29280 { echo "$as_me:$LINENO: result: $ac_res" >&5
29281echo "${ECHO_T}$ac_res" >&6; }
29282else
29283 # Is the header compilable?
29284{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29286cat >conftest.$ac_ext <<_ACEOF
29287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
29292$ac_includes_default
29293#include <$ac_header>
29294_ACEOF
29295rm -f conftest.$ac_objext
29296if { (ac_try="$ac_compile"
29297case "(($ac_try" in
29298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29299 *) ac_try_echo=$ac_try;;
29300esac
29301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29302 (eval "$ac_compile") 2>conftest.er1
29303 ac_status=$?
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029308 (exit $ac_status); } &&
29309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29310 { (case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_try") 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
29319 { ac_try='test -s conftest.$ac_objext'
29320 { (case "(($ac_try" in
29321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322 *) ac_try_echo=$ac_try;;
29323esac
29324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325 (eval "$ac_try") 2>&5
29326 ac_status=$?
29327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328 (exit $ac_status); }; }; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029329 ac_header_compiler=yes
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
29334 ac_header_compiler=no
29335fi
29336
29337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29338{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29339echo "${ECHO_T}$ac_header_compiler" >&6; }
29340
29341# Is the header present?
29342{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29343echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29344cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350#include <$ac_header>
29351_ACEOF
29352if { (ac_try="$ac_cpp conftest.$ac_ext"
29353case "(($ac_try" in
29354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29355 *) ac_try_echo=$ac_try;;
29356esac
29357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29359 ac_status=$?
29360 grep -v '^ *+' conftest.er1 >conftest.err
29361 rm -f conftest.er1
29362 cat conftest.err >&5
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029364 (exit $ac_status); } >/dev/null; then
29365 if test -s conftest.err; then
29366 ac_cpp_err=$ac_c_preproc_warn_flag
29367 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29368 else
29369 ac_cpp_err=
29370 fi
29371else
29372 ac_cpp_err=yes
29373fi
29374if test -z "$ac_cpp_err"; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029375 ac_header_preproc=yes
29376else
29377 echo "$as_me: failed program was:" >&5
29378sed 's/^/| /' conftest.$ac_ext >&5
29379
29380 ac_header_preproc=no
29381fi
29382
29383rm -f conftest.err conftest.$ac_ext
29384{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29385echo "${ECHO_T}$ac_header_preproc" >&6; }
29386
29387# So? What about this header?
29388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29389 yes:no: )
29390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29394 ac_header_preproc=yes
29395 ;;
29396 no:yes:* )
29397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29409 ( cat <<\_ASBOX
29410## ----------------------------------- ##
29411## Report this to llvmbugs@cs.uiuc.edu ##
29412## ----------------------------------- ##
29413_ASBOX
29414 ) | sed "s/^/$as_me: WARNING: /" >&2
29415 ;;
29416esac
29417{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29420 echo $ECHO_N "(cached) $ECHO_C" >&6
29421else
29422 eval "$as_ac_Header=\$ac_header_preproc"
29423fi
29424ac_res=`eval echo '${'$as_ac_Header'}'`
29425 { echo "$as_me:$LINENO: result: $ac_res" >&5
29426echo "${ECHO_T}$ac_res" >&6; }
29427
29428fi
29429if test `eval echo '${'$as_ac_Header'}'` = yes; then
29430 cat >>confdefs.h <<_ACEOF
29431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29432_ACEOF
29433
29434fi
29435
29436done
Reid Spencer59473af2004-12-25 07:31:29 +000029437
29438
29439
29440
Reid Spencerbe3e4192007-08-17 05:45:26 +000029441
29442for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029443do
29444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029445if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029449 echo $ECHO_N "(cached) $ECHO_C" >&6
29450fi
Reid Spencera773bd52006-08-04 18:18:08 +000029451ac_res=`eval echo '${'$as_ac_Header'}'`
29452 { echo "$as_me:$LINENO: result: $ac_res" >&5
29453echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029454else
29455 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029456{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29457echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029458cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029459/* confdefs.h. */
29460_ACEOF
29461cat confdefs.h >>conftest.$ac_ext
29462cat >>conftest.$ac_ext <<_ACEOF
29463/* end confdefs.h. */
29464$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029465#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029466_ACEOF
29467rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029468if { (ac_try="$ac_compile"
29469case "(($ac_try" in
29470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29471 *) ac_try_echo=$ac_try;;
29472esac
29473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29474 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029475 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029476 grep -v '^ *+' conftest.er1 >conftest.err
29477 rm -f conftest.er1
29478 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029480 (exit $ac_status); } &&
29481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29482 { (case "(($ac_try" in
29483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29484 *) ac_try_echo=$ac_try;;
29485esac
29486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29487 (eval "$ac_try") 2>&5
29488 ac_status=$?
29489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29490 (exit $ac_status); }; } &&
29491 { ac_try='test -s conftest.$ac_objext'
29492 { (case "(($ac_try" in
29493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494 *) ac_try_echo=$ac_try;;
29495esac
29496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497 (eval "$ac_try") 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029501 ac_header_compiler=yes
29502else
29503 echo "$as_me: failed program was:" >&5
29504sed 's/^/| /' conftest.$ac_ext >&5
29505
Reid Spencera773bd52006-08-04 18:18:08 +000029506 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029507fi
Reid Spencera773bd52006-08-04 18:18:08 +000029508
29509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29510{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29511echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029512
29513# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029514{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029516cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029517/* confdefs.h. */
29518_ACEOF
29519cat confdefs.h >>conftest.$ac_ext
29520cat >>conftest.$ac_ext <<_ACEOF
29521/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029522#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029523_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029524if { (ac_try="$ac_cpp conftest.$ac_ext"
29525case "(($ac_try" in
29526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29527 *) ac_try_echo=$ac_try;;
29528esac
29529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029536 (exit $ac_status); } >/dev/null; then
29537 if test -s conftest.err; then
29538 ac_cpp_err=$ac_c_preproc_warn_flag
29539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29540 else
29541 ac_cpp_err=
29542 fi
29543else
29544 ac_cpp_err=yes
29545fi
29546if test -z "$ac_cpp_err"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029547 ac_header_preproc=yes
29548else
29549 echo "$as_me: failed program was:" >&5
29550sed 's/^/| /' conftest.$ac_ext >&5
29551
29552 ac_header_preproc=no
29553fi
Reid Spencera773bd52006-08-04 18:18:08 +000029554
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029555rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029556{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29557echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029558
29559# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029560case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29561 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029562 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29563echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29565echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029566 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029567 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029568 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29574echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29575 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29576echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29578echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29579 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29580echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029581 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029582## ----------------------------------- ##
29583## Report this to llvmbugs@cs.uiuc.edu ##
29584## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029585_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029586 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029587 ;;
29588esac
Reid Spencera773bd52006-08-04 18:18:08 +000029589{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029592 echo $ECHO_N "(cached) $ECHO_C" >&6
29593else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029594 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029595fi
Reid Spencera773bd52006-08-04 18:18:08 +000029596ac_res=`eval echo '${'$as_ac_Header'}'`
29597 { echo "$as_me:$LINENO: result: $ac_res" >&5
29598echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000029599
29600fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029601if test `eval echo '${'$as_ac_Header'}'` = yes; then
29602 cat >>confdefs.h <<_ACEOF
29603#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029604_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029605
29606fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029607
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029608done
29609
John Criswell7ed43ad2004-07-19 16:12:29 +000029610
Reid Spencercdb08a32006-06-05 16:11:07 +000029611
Reid Spencera6d990a2006-09-14 06:17:21 +000029612
29613for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029614do
29615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029616if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29619if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029620 echo $ECHO_N "(cached) $ECHO_C" >&6
29621fi
Reid Spencera773bd52006-08-04 18:18:08 +000029622ac_res=`eval echo '${'$as_ac_Header'}'`
29623 { echo "$as_me:$LINENO: result: $ac_res" >&5
29624echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029625else
29626 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029627{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029629cat >conftest.$ac_ext <<_ACEOF
29630/* confdefs.h. */
29631_ACEOF
29632cat confdefs.h >>conftest.$ac_ext
29633cat >>conftest.$ac_ext <<_ACEOF
29634/* end confdefs.h. */
29635$ac_includes_default
29636#include <$ac_header>
29637_ACEOF
29638rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029639if { (ac_try="$ac_compile"
29640case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29643esac
29644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029646 ac_status=$?
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029651 (exit $ac_status); } &&
29652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29653 { (case "(($ac_try" in
29654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29655 *) ac_try_echo=$ac_try;;
29656esac
29657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29658 (eval "$ac_try") 2>&5
29659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); }; } &&
29662 { ac_try='test -s conftest.$ac_objext'
29663 { (case "(($ac_try" in
29664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665 *) ac_try_echo=$ac_try;;
29666esac
29667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668 (eval "$ac_try") 2>&5
29669 ac_status=$?
29670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29671 (exit $ac_status); }; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029672 ac_header_compiler=yes
29673else
29674 echo "$as_me: failed program was:" >&5
29675sed 's/^/| /' conftest.$ac_ext >&5
29676
Reid Spencera773bd52006-08-04 18:18:08 +000029677 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029678fi
Reid Spencera773bd52006-08-04 18:18:08 +000029679
29680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29681{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29682echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029683
29684# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029685{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029687cat >conftest.$ac_ext <<_ACEOF
29688/* confdefs.h. */
29689_ACEOF
29690cat confdefs.h >>conftest.$ac_ext
29691cat >>conftest.$ac_ext <<_ACEOF
29692/* end confdefs.h. */
29693#include <$ac_header>
29694_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029695if { (ac_try="$ac_cpp conftest.$ac_ext"
29696case "(($ac_try" in
29697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29698 *) ac_try_echo=$ac_try;;
29699esac
29700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029702 ac_status=$?
29703 grep -v '^ *+' conftest.er1 >conftest.err
29704 rm -f conftest.er1
29705 cat conftest.err >&5
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029707 (exit $ac_status); } >/dev/null; then
29708 if test -s conftest.err; then
29709 ac_cpp_err=$ac_c_preproc_warn_flag
29710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29711 else
29712 ac_cpp_err=
29713 fi
29714else
29715 ac_cpp_err=yes
29716fi
29717if test -z "$ac_cpp_err"; then
Chris Lattner0b142592005-11-14 06:57:34 +000029718 ac_header_preproc=yes
29719else
29720 echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
29723 ac_header_preproc=no
29724fi
Reid Spencera773bd52006-08-04 18:18:08 +000029725
Chris Lattner0b142592005-11-14 06:57:34 +000029726rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029727{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29728echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029729
29730# So? What about this header?
29731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29732 yes:no: )
29733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29737 ac_header_preproc=yes
29738 ;;
29739 no:yes:* )
29740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029752 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029753## ----------------------------------- ##
29754## Report this to llvmbugs@cs.uiuc.edu ##
29755## ----------------------------------- ##
29756_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029757 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029758 ;;
29759esac
Reid Spencera773bd52006-08-04 18:18:08 +000029760{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029763 echo $ECHO_N "(cached) $ECHO_C" >&6
29764else
29765 eval "$as_ac_Header=\$ac_header_preproc"
29766fi
Reid Spencera773bd52006-08-04 18:18:08 +000029767ac_res=`eval echo '${'$as_ac_Header'}'`
29768 { echo "$as_me:$LINENO: result: $ac_res" >&5
29769echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029770
29771fi
29772if test `eval echo '${'$as_ac_Header'}'` = yes; then
29773 cat >>confdefs.h <<_ACEOF
29774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29775_ACEOF
29776
29777fi
29778
29779done
29780
Reid Spencer0a262ba2005-08-24 10:07:20 +000029781if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencerbe3e4192007-08-17 05:45:26 +000029782
29783for ac_header in pthread.h
29784do
29785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29786if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29789if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029790 echo $ECHO_N "(cached) $ECHO_C" >&6
29791fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029792ac_res=`eval echo '${'$as_ac_Header'}'`
29793 { echo "$as_me:$LINENO: result: $ac_res" >&5
29794echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029795else
29796 # Is the header compilable?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029797{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29798echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029799cat >conftest.$ac_ext <<_ACEOF
29800/* confdefs.h. */
29801_ACEOF
29802cat confdefs.h >>conftest.$ac_ext
29803cat >>conftest.$ac_ext <<_ACEOF
29804/* end confdefs.h. */
29805$ac_includes_default
Reid Spencerbe3e4192007-08-17 05:45:26 +000029806#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029807_ACEOF
29808rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029809if { (ac_try="$ac_compile"
29810case "(($ac_try" in
29811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29812 *) ac_try_echo=$ac_try;;
29813esac
29814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29815 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029816 ac_status=$?
29817 grep -v '^ *+' conftest.er1 >conftest.err
29818 rm -f conftest.er1
29819 cat conftest.err >&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029821 (exit $ac_status); } &&
29822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29823 { (case "(($ac_try" in
29824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29825 *) ac_try_echo=$ac_try;;
29826esac
29827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29828 (eval "$ac_try") 2>&5
29829 ac_status=$?
29830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29831 (exit $ac_status); }; } &&
29832 { ac_try='test -s conftest.$ac_objext'
29833 { (case "(($ac_try" in
29834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29835 *) ac_try_echo=$ac_try;;
29836esac
29837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29838 (eval "$ac_try") 2>&5
29839 ac_status=$?
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029842 ac_header_compiler=yes
29843else
29844 echo "$as_me: failed program was:" >&5
29845sed 's/^/| /' conftest.$ac_ext >&5
29846
Reid Spencera773bd52006-08-04 18:18:08 +000029847 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029848fi
Reid Spencera773bd52006-08-04 18:18:08 +000029849
29850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29851{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29852echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029853
29854# Is the header present?
Reid Spencerbe3e4192007-08-17 05:45:26 +000029855{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29856echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029857cat >conftest.$ac_ext <<_ACEOF
29858/* confdefs.h. */
29859_ACEOF
29860cat confdefs.h >>conftest.$ac_ext
29861cat >>conftest.$ac_ext <<_ACEOF
29862/* end confdefs.h. */
Reid Spencerbe3e4192007-08-17 05:45:26 +000029863#include <$ac_header>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029864_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029865if { (ac_try="$ac_cpp conftest.$ac_ext"
29866case "(($ac_try" in
29867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29868 *) ac_try_echo=$ac_try;;
29869esac
29870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029872 ac_status=$?
29873 grep -v '^ *+' conftest.er1 >conftest.err
29874 rm -f conftest.er1
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000029877 (exit $ac_status); } >/dev/null; then
29878 if test -s conftest.err; then
29879 ac_cpp_err=$ac_c_preproc_warn_flag
29880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29881 else
29882 ac_cpp_err=
29883 fi
29884else
29885 ac_cpp_err=yes
29886fi
29887if test -z "$ac_cpp_err"; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029888 ac_header_preproc=yes
29889else
29890 echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893 ac_header_preproc=no
29894fi
Reid Spencera773bd52006-08-04 18:18:08 +000029895
Reid Spencer0a262ba2005-08-24 10:07:20 +000029896rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029897{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29898echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029899
29900# So? What about this header?
29901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29902 yes:no: )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029907 ac_header_preproc=yes
29908 ;;
29909 no:yes:* )
Reid Spencerbe3e4192007-08-17 05:45:26 +000029910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029922 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029923## ----------------------------------- ##
29924## Report this to llvmbugs@cs.uiuc.edu ##
29925## ----------------------------------- ##
29926_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029927 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029928 ;;
29929esac
Reid Spencerbe3e4192007-08-17 05:45:26 +000029930{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029933 echo $ECHO_N "(cached) $ECHO_C" >&6
29934else
Reid Spencerbe3e4192007-08-17 05:45:26 +000029935 eval "$as_ac_Header=\$ac_header_preproc"
Reid Spencer0a262ba2005-08-24 10:07:20 +000029936fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029937ac_res=`eval echo '${'$as_ac_Header'}'`
29938 { echo "$as_me:$LINENO: result: $ac_res" >&5
29939echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029940
29941fi
Reid Spencerbe3e4192007-08-17 05:45:26 +000029942if test `eval echo '${'$as_ac_Header'}'` = yes; then
29943 cat >>confdefs.h <<_ACEOF
29944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29945_ACEOF
29946 HAVE_PTHREAD=1
Reid Spencer1000b732006-12-01 00:37:14 +000029947
29948else
29949 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029950
29951fi
29952
Reid Spencerbe3e4192007-08-17 05:45:26 +000029953done
Reid Spencer1000b732006-12-01 00:37:14 +000029954
29955else
29956 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029957
29958fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029959
29960
Reid Spencerb2ed05262006-11-03 18:04:08 +000029961
29962 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29963echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29964if test "${ac_cv_huge_val_sanity+set}" = set; then
29965 echo $ECHO_N "(cached) $ECHO_C" >&6
29966else
29967
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029968 ac_ext=cpp
29969ac_cpp='$CXXCPP $CPPFLAGS'
29970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029973
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029974 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029975 if test "$cross_compiling" = yes; then
29976 ac_cv_huge_val_sanity=yes
29977else
29978 cat >conftest.$ac_ext <<_ACEOF
29979/* confdefs.h. */
29980_ACEOF
29981cat confdefs.h >>conftest.$ac_ext
29982cat >>conftest.$ac_ext <<_ACEOF
29983/* end confdefs.h. */
29984#include <math.h>
29985int
29986main ()
29987{
29988double x = HUGE_VAL; return x != x;
29989 ;
29990 return 0;
29991}
29992_ACEOF
29993rm -f conftest$ac_exeext
29994if { (ac_try="$ac_link"
29995case "(($ac_try" in
29996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997 *) ac_try_echo=$ac_try;;
29998esac
29999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000 (eval "$ac_link") 2>&5
30001 ac_status=$?
30002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30004 { (case "(($ac_try" in
30005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30006 *) ac_try_echo=$ac_try;;
30007esac
30008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30009 (eval "$ac_try") 2>&5
30010 ac_status=$?
30011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30012 (exit $ac_status); }; }; then
30013 ac_cv_huge_val_sanity=yes
30014else
30015 echo "$as_me: program exited with status $ac_status" >&5
30016echo "$as_me: failed program was:" >&5
30017sed 's/^/| /' conftest.$ac_ext >&5
30018
30019( exit $ac_status )
30020ac_cv_huge_val_sanity=no
30021fi
30022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30023fi
30024
30025
30026 ac_ext=c
30027ac_cpp='$CPP $CPPFLAGS'
30028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30030ac_compiler_gnu=$ac_cv_c_compiler_gnu
30031
30032
30033fi
30034{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
30035echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
30036 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
30037
30038
Reid Spencera773bd52006-08-04 18:18:08 +000030039{ echo "$as_me:$LINENO: checking for pid_t" >&5
30040echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030041if test "${ac_cv_type_pid_t+set}" = set; then
30042 echo $ECHO_N "(cached) $ECHO_C" >&6
30043else
30044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030045/* confdefs.h. */
30046_ACEOF
30047cat confdefs.h >>conftest.$ac_ext
30048cat >>conftest.$ac_ext <<_ACEOF
30049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030050$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030051typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030052int
30053main ()
30054{
Reid Spencera773bd52006-08-04 18:18:08 +000030055if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030056 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030057if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030058 return 0;
30059 ;
30060 return 0;
30061}
30062_ACEOF
30063rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030064if { (ac_try="$ac_compile"
30065case "(($ac_try" in
30066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30067 *) ac_try_echo=$ac_try;;
30068esac
30069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30070 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030071 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030072 grep -v '^ *+' conftest.er1 >conftest.err
30073 rm -f conftest.er1
30074 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030076 (exit $ac_status); } &&
30077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30078 { (case "(($ac_try" in
30079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30080 *) ac_try_echo=$ac_try;;
30081esac
30082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30083 (eval "$ac_try") 2>&5
30084 ac_status=$?
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); }; } &&
30087 { ac_try='test -s conftest.$ac_objext'
30088 { (case "(($ac_try" in
30089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30090 *) ac_try_echo=$ac_try;;
30091esac
30092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30093 (eval "$ac_try") 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030097 ac_cv_type_pid_t=yes
30098else
30099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030100sed 's/^/| /' conftest.$ac_ext >&5
30101
Reid Spencera773bd52006-08-04 18:18:08 +000030102 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030103fi
Reid Spencera773bd52006-08-04 18:18:08 +000030104
30105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030106fi
Reid Spencera773bd52006-08-04 18:18:08 +000030107{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
30108echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030109if test $ac_cv_type_pid_t = yes; then
30110 :
30111else
30112
30113cat >>confdefs.h <<_ACEOF
30114#define pid_t int
30115_ACEOF
30116
30117fi
30118
Reid Spencera773bd52006-08-04 18:18:08 +000030119{ echo "$as_me:$LINENO: checking for size_t" >&5
30120echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030121if test "${ac_cv_type_size_t+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30123else
30124 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030125/* confdefs.h. */
30126_ACEOF
30127cat confdefs.h >>conftest.$ac_ext
30128cat >>conftest.$ac_ext <<_ACEOF
30129/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030130$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030131typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030132int
30133main ()
30134{
Reid Spencera773bd52006-08-04 18:18:08 +000030135if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030136 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030137if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030138 return 0;
30139 ;
30140 return 0;
30141}
30142_ACEOF
30143rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030144if { (ac_try="$ac_compile"
30145case "(($ac_try" in
30146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30147 *) ac_try_echo=$ac_try;;
30148esac
30149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30150 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030152 grep -v '^ *+' conftest.er1 >conftest.err
30153 rm -f conftest.er1
30154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030156 (exit $ac_status); } &&
30157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30161esac
30162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
30164 ac_status=$?
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; } &&
30167 { ac_try='test -s conftest.$ac_objext'
30168 { (case "(($ac_try" in
30169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30170 *) ac_try_echo=$ac_try;;
30171esac
30172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30173 (eval "$ac_try") 2>&5
30174 ac_status=$?
30175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030177 ac_cv_type_size_t=yes
30178else
30179 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030180sed 's/^/| /' conftest.$ac_ext >&5
30181
Reid Spencera773bd52006-08-04 18:18:08 +000030182 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030183fi
Reid Spencera773bd52006-08-04 18:18:08 +000030184
30185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030186fi
Reid Spencera773bd52006-08-04 18:18:08 +000030187{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
30188echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030189if test $ac_cv_type_size_t = yes; then
30190 :
30191else
30192
30193cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000030194#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000030195_ACEOF
30196
30197fi
30198
Reid Spencera773bd52006-08-04 18:18:08 +000030199{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30200echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030201if test "${ac_cv_type_signal+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203else
30204 cat >conftest.$ac_ext <<_ACEOF
30205/* confdefs.h. */
30206_ACEOF
30207cat confdefs.h >>conftest.$ac_ext
30208cat >>conftest.$ac_ext <<_ACEOF
30209/* end confdefs.h. */
30210#include <sys/types.h>
30211#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212
30213int
30214main ()
30215{
Reid Spencera773bd52006-08-04 18:18:08 +000030216return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030217 ;
30218 return 0;
30219}
30220_ACEOF
30221rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030222if { (ac_try="$ac_compile"
30223case "(($ac_try" in
30224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225 *) ac_try_echo=$ac_try;;
30226esac
30227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030229 ac_status=$?
30230 grep -v '^ *+' conftest.er1 >conftest.err
30231 rm -f conftest.er1
30232 cat conftest.err >&5
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030234 (exit $ac_status); } &&
30235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30236 { (case "(($ac_try" in
30237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238 *) ac_try_echo=$ac_try;;
30239esac
30240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241 (eval "$ac_try") 2>&5
30242 ac_status=$?
30243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); }; } &&
30245 { ac_try='test -s conftest.$ac_objext'
30246 { (case "(($ac_try" in
30247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248 *) ac_try_echo=$ac_try;;
30249esac
30250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251 (eval "$ac_try") 2>&5
30252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000030255 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030256else
30257 echo "$as_me: failed program was:" >&5
30258sed 's/^/| /' conftest.$ac_ext >&5
30259
Reid Spencera773bd52006-08-04 18:18:08 +000030260 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030261fi
Reid Spencera773bd52006-08-04 18:18:08 +000030262
30263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030264fi
Reid Spencera773bd52006-08-04 18:18:08 +000030265{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30266echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030267
30268cat >>confdefs.h <<_ACEOF
30269#define RETSIGTYPE $ac_cv_type_signal
30270_ACEOF
30271
30272
Reid Spencera773bd52006-08-04 18:18:08 +000030273{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
30274echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030275if test "${ac_cv_struct_tm+set}" = set; then
30276 echo $ECHO_N "(cached) $ECHO_C" >&6
30277else
30278 cat >conftest.$ac_ext <<_ACEOF
30279/* confdefs.h. */
30280_ACEOF
30281cat confdefs.h >>conftest.$ac_ext
30282cat >>conftest.$ac_ext <<_ACEOF
30283/* end confdefs.h. */
30284#include <sys/types.h>
30285#include <time.h>
30286
30287int
30288main ()
30289{
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030290struct tm *tp; tp->tm_sec;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030291 ;
30292 return 0;
30293}
30294_ACEOF
30295rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030296if { (ac_try="$ac_compile"
30297case "(($ac_try" in
30298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299 *) ac_try_echo=$ac_try;;
30300esac
30301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030303 ac_status=$?
30304 grep -v '^ *+' conftest.er1 >conftest.err
30305 rm -f conftest.er1
30306 cat conftest.err >&5
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030308 (exit $ac_status); } &&
30309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30310 { (case "(($ac_try" in
30311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312 *) ac_try_echo=$ac_try;;
30313esac
30314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315 (eval "$ac_try") 2>&5
30316 ac_status=$?
30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318 (exit $ac_status); }; } &&
30319 { ac_try='test -s conftest.$ac_objext'
30320 { (case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30323esac
30324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325 (eval "$ac_try") 2>&5
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030329 ac_cv_struct_tm=time.h
30330else
30331 echo "$as_me: failed program was:" >&5
30332sed 's/^/| /' conftest.$ac_ext >&5
30333
Reid Spencera773bd52006-08-04 18:18:08 +000030334 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030335fi
Reid Spencera773bd52006-08-04 18:18:08 +000030336
30337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030338fi
Reid Spencera773bd52006-08-04 18:18:08 +000030339{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
30340echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030341if test $ac_cv_struct_tm = sys/time.h; then
30342
30343cat >>confdefs.h <<\_ACEOF
30344#define TM_IN_SYS_TIME 1
30345_ACEOF
30346
30347fi
30348
Reid Spencera773bd52006-08-04 18:18:08 +000030349{ echo "$as_me:$LINENO: checking for int64_t" >&5
30350echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030351if test "${ac_cv_type_int64_t+set}" = set; then
30352 echo $ECHO_N "(cached) $ECHO_C" >&6
30353else
30354 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030355/* confdefs.h. */
30356_ACEOF
30357cat confdefs.h >>conftest.$ac_ext
30358cat >>conftest.$ac_ext <<_ACEOF
30359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030360$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030361typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030362int
30363main ()
30364{
Reid Spencera773bd52006-08-04 18:18:08 +000030365if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030366 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030367if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030368 return 0;
30369 ;
30370 return 0;
30371}
30372_ACEOF
30373rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030374if { (ac_try="$ac_compile"
30375case "(($ac_try" in
30376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377 *) ac_try_echo=$ac_try;;
30378esac
30379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030382 grep -v '^ *+' conftest.er1 >conftest.err
30383 rm -f conftest.er1
30384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030386 (exit $ac_status); } &&
30387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30388 { (case "(($ac_try" in
30389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390 *) ac_try_echo=$ac_try;;
30391esac
30392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393 (eval "$ac_try") 2>&5
30394 ac_status=$?
30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396 (exit $ac_status); }; } &&
30397 { ac_try='test -s conftest.$ac_objext'
30398 { (case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30401esac
30402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_try") 2>&5
30404 ac_status=$?
30405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030407 ac_cv_type_int64_t=yes
30408else
30409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030410sed 's/^/| /' conftest.$ac_ext >&5
30411
Reid Spencera773bd52006-08-04 18:18:08 +000030412 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030413fi
Reid Spencera773bd52006-08-04 18:18:08 +000030414
30415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030416fi
Reid Spencera773bd52006-08-04 18:18:08 +000030417{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
30418echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030419if test $ac_cv_type_int64_t = yes; then
30420
30421cat >>confdefs.h <<_ACEOF
30422#define HAVE_INT64_T 1
30423_ACEOF
30424
30425
30426else
30427 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
30428echo "$as_me: error: Type int64_t required but not found" >&2;}
30429 { (exit 1); exit 1; }; }
30430fi
30431
Reid Spencera773bd52006-08-04 18:18:08 +000030432{ echo "$as_me:$LINENO: checking for uint64_t" >&5
30433echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030434if test "${ac_cv_type_uint64_t+set}" = set; then
30435 echo $ECHO_N "(cached) $ECHO_C" >&6
30436else
30437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030438/* confdefs.h. */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030443$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030444typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000030445int
30446main ()
30447{
Reid Spencera773bd52006-08-04 18:18:08 +000030448if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000030449 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030450if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000030451 return 0;
30452 ;
30453 return 0;
30454}
30455_ACEOF
30456rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030457if { (ac_try="$ac_compile"
30458case "(($ac_try" in
30459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460 *) ac_try_echo=$ac_try;;
30461esac
30462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030464 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030465 grep -v '^ *+' conftest.er1 >conftest.err
30466 rm -f conftest.er1
30467 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030469 (exit $ac_status); } &&
30470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30471 { (case "(($ac_try" in
30472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473 *) ac_try_echo=$ac_try;;
30474esac
30475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30476 (eval "$ac_try") 2>&5
30477 ac_status=$?
30478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30479 (exit $ac_status); }; } &&
30480 { ac_try='test -s conftest.$ac_objext'
30481 { (case "(($ac_try" in
30482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30483 *) ac_try_echo=$ac_try;;
30484esac
30485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30486 (eval "$ac_try") 2>&5
30487 ac_status=$?
30488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030490 ac_cv_type_uint64_t=yes
30491else
30492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030493sed 's/^/| /' conftest.$ac_ext >&5
30494
Reid Spencera773bd52006-08-04 18:18:08 +000030495 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000030496fi
Reid Spencera773bd52006-08-04 18:18:08 +000030497
30498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030499fi
Reid Spencera773bd52006-08-04 18:18:08 +000030500{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
30501echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030502if test $ac_cv_type_uint64_t = yes; then
30503
30504cat >>confdefs.h <<_ACEOF
30505#define HAVE_UINT64_T 1
30506_ACEOF
30507
30508
30509else
Reid Spencera773bd52006-08-04 18:18:08 +000030510 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
30511echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030512if test "${ac_cv_type_u_int64_t+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000030516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
30521$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000030522typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000030523int
30524main ()
30525{
Reid Spencera773bd52006-08-04 18:18:08 +000030526if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000030527 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000030528if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000030529 return 0;
30530 ;
30531 return 0;
30532}
30533_ACEOF
30534rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030535if { (ac_try="$ac_compile"
30536case "(($ac_try" in
30537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30538 *) ac_try_echo=$ac_try;;
30539esac
30540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30541 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000030542 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030543 grep -v '^ *+' conftest.er1 >conftest.err
30544 rm -f conftest.er1
30545 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000030546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030547 (exit $ac_status); } &&
30548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30549 { (case "(($ac_try" in
30550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551 *) ac_try_echo=$ac_try;;
30552esac
30553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554 (eval "$ac_try") 2>&5
30555 ac_status=$?
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); }; } &&
30558 { ac_try='test -s conftest.$ac_objext'
30559 { (case "(($ac_try" in
30560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561 *) ac_try_echo=$ac_try;;
30562esac
30563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564 (eval "$ac_try") 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
John Criswell679ff312004-09-02 18:44:44 +000030568 ac_cv_type_u_int64_t=yes
30569else
30570 echo "$as_me: failed program was:" >&5
30571sed 's/^/| /' conftest.$ac_ext >&5
30572
Reid Spencera773bd52006-08-04 18:18:08 +000030573 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000030574fi
Reid Spencera773bd52006-08-04 18:18:08 +000030575
30576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000030577fi
Reid Spencera773bd52006-08-04 18:18:08 +000030578{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
30579echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000030580if test $ac_cv_type_u_int64_t = yes; then
30581
30582cat >>confdefs.h <<_ACEOF
30583#define HAVE_U_INT64_T 1
30584_ACEOF
30585
30586
Misha Brukmanceca9042004-09-02 23:02:30 +000030587else
30588 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
30589echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
30590 { (exit 1); exit 1; }; }
30591fi
30592
John Criswell679ff312004-09-02 18:44:44 +000030593fi
30594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030595
30596
30597
30598
30599
30600
30601
Reid Spencerf4bb9b12006-01-19 08:22:40 +000030602
30603
Reid Spencerdf3be822006-01-23 08:15:53 +000030604for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030605do
30606as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030607{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30608echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30609if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030610 echo $ECHO_N "(cached) $ECHO_C" >&6
30611else
30612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030613/* confdefs.h. */
30614_ACEOF
30615cat confdefs.h >>conftest.$ac_ext
30616cat >>conftest.$ac_ext <<_ACEOF
30617/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030618/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30620#define $ac_func innocuous_$ac_func
30621
30622/* System header to define __stub macros and hopefully few prototypes,
30623 which can conflict with char $ac_func (); below.
30624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30625 <limits.h> exists even on freestanding compilers. */
30626
30627#ifdef __STDC__
30628# include <limits.h>
30629#else
30630# include <assert.h>
30631#endif
30632
30633#undef $ac_func
30634
Reid Spencera773bd52006-08-04 18:18:08 +000030635/* Override any GCC internal prototype to avoid an error.
30636 Use char because int might match the return type of a GCC
30637 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030638#ifdef __cplusplus
30639extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030640#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030641char $ac_func ();
30642/* The GNU C library defines this for functions which it implements
30643 to always fail with ENOSYS. Some functions are actually named
30644 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030645#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030646choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030647#endif
John Criswell7a73b802003-06-30 21:59:07 +000030648
John Criswell7a73b802003-06-30 21:59:07 +000030649int
30650main ()
30651{
Reid Spencera773bd52006-08-04 18:18:08 +000030652return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030653 ;
30654 return 0;
30655}
30656_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030657rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030658if { (ac_try="$ac_link"
30659case "(($ac_try" in
30660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661 *) ac_try_echo=$ac_try;;
30662esac
30663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030666 grep -v '^ *+' conftest.er1 >conftest.err
30667 rm -f conftest.er1
30668 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030670 (exit $ac_status); } &&
30671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30672 { (case "(($ac_try" in
30673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30674 *) ac_try_echo=$ac_try;;
30675esac
30676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30677 (eval "$ac_try") 2>&5
30678 ac_status=$?
30679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680 (exit $ac_status); }; } &&
30681 { ac_try='test -s conftest$ac_exeext'
30682 { (case "(($ac_try" in
30683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30684 *) ac_try_echo=$ac_try;;
30685esac
30686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30687 (eval "$ac_try") 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030691 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030692else
30693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030694sed 's/^/| /' conftest.$ac_ext >&5
30695
Reid Spencera773bd52006-08-04 18:18:08 +000030696 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030697fi
Reid Spencera773bd52006-08-04 18:18:08 +000030698
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030699rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030701fi
Reid Spencera773bd52006-08-04 18:18:08 +000030702ac_res=`eval echo '${'$as_ac_var'}'`
30703 { echo "$as_me:$LINENO: result: $ac_res" >&5
30704echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030705if test `eval echo '${'$as_ac_var'}'` = yes; then
30706 cat >>confdefs.h <<_ACEOF
30707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030708_ACEOF
30709
30710fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711done
John Criswell7a73b802003-06-30 21:59:07 +000030712
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030713
30714
30715
Reid Spencer6af3d262004-12-15 04:01:48 +000030716
Reid Spencer96cf5872007-07-13 10:05:30 +000030717for ac_func in powf fmodf strtof round
30718do
30719as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30720{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30721echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30722if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30723 echo $ECHO_N "(cached) $ECHO_C" >&6
30724else
30725 cat >conftest.$ac_ext <<_ACEOF
30726/* confdefs.h. */
30727_ACEOF
30728cat confdefs.h >>conftest.$ac_ext
30729cat >>conftest.$ac_ext <<_ACEOF
30730/* end confdefs.h. */
30731/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30733#define $ac_func innocuous_$ac_func
30734
30735/* System header to define __stub macros and hopefully few prototypes,
30736 which can conflict with char $ac_func (); below.
30737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30738 <limits.h> exists even on freestanding compilers. */
30739
30740#ifdef __STDC__
30741# include <limits.h>
30742#else
30743# include <assert.h>
30744#endif
30745
30746#undef $ac_func
30747
30748/* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30751#ifdef __cplusplus
30752extern "C"
30753#endif
30754char $ac_func ();
30755/* The GNU C library defines this for functions which it implements
30756 to always fail with ENOSYS. Some functions are actually named
30757 something starting with __ and the normal name is an alias. */
30758#if defined __stub_$ac_func || defined __stub___$ac_func
30759choke me
30760#endif
30761
30762int
30763main ()
30764{
30765return $ac_func ();
30766 ;
30767 return 0;
30768}
30769_ACEOF
30770rm -f conftest.$ac_objext conftest$ac_exeext
30771if { (ac_try="$ac_link"
30772case "(($ac_try" in
30773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30774 *) ac_try_echo=$ac_try;;
30775esac
30776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30777 (eval "$ac_link") 2>conftest.er1
30778 ac_status=$?
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030783 (exit $ac_status); } &&
30784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30785 { (case "(($ac_try" in
30786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787 *) ac_try_echo=$ac_try;;
30788esac
30789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790 (eval "$ac_try") 2>&5
30791 ac_status=$?
30792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); }; } &&
30794 { ac_try='test -s conftest$ac_exeext'
30795 { (case "(($ac_try" in
30796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797 *) ac_try_echo=$ac_try;;
30798esac
30799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800 (eval "$ac_try") 2>&5
30801 ac_status=$?
30802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803 (exit $ac_status); }; }; then
Reid Spencer96cf5872007-07-13 10:05:30 +000030804 eval "$as_ac_var=yes"
30805else
30806 echo "$as_me: failed program was:" >&5
30807sed 's/^/| /' conftest.$ac_ext >&5
30808
30809 eval "$as_ac_var=no"
30810fi
30811
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030812rm -f core conftest.err conftest.$ac_objext \
Reid Spencer96cf5872007-07-13 10:05:30 +000030813 conftest$ac_exeext conftest.$ac_ext
30814fi
30815ac_res=`eval echo '${'$as_ac_var'}'`
30816 { echo "$as_me:$LINENO: result: $ac_res" >&5
30817echo "${ECHO_T}$ac_res" >&6; }
30818if test `eval echo '${'$as_ac_var'}'` = yes; then
30819 cat >>confdefs.h <<_ACEOF
30820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30821_ACEOF
30822
30823fi
30824done
30825
30826
30827
30828
30829
Reid Spencer6af3d262004-12-15 04:01:48 +000030830
Reid Spencerb90645c2007-02-16 19:17:20 +000030831for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
30832do
30833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30837 echo $ECHO_N "(cached) $ECHO_C" >&6
30838else
30839 cat >conftest.$ac_ext <<_ACEOF
30840/* confdefs.h. */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h. */
30845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30847#define $ac_func innocuous_$ac_func
Reid Spencer59473af2004-12-25 07:31:29 +000030848
Reid Spencerb90645c2007-02-16 19:17:20 +000030849/* System header to define __stub macros and hopefully few prototypes,
30850 which can conflict with char $ac_func (); below.
30851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30852 <limits.h> exists even on freestanding compilers. */
30853
30854#ifdef __STDC__
30855# include <limits.h>
30856#else
30857# include <assert.h>
30858#endif
30859
30860#undef $ac_func
30861
30862/* Override any GCC internal prototype to avoid an error.
30863 Use char because int might match the return type of a GCC
30864 builtin and then its argument prototype would still apply. */
30865#ifdef __cplusplus
30866extern "C"
30867#endif
30868char $ac_func ();
30869/* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872#if defined __stub_$ac_func || defined __stub___$ac_func
30873choke me
30874#endif
30875
30876int
30877main ()
30878{
30879return $ac_func ();
30880 ;
30881 return 0;
30882}
30883_ACEOF
30884rm -f conftest.$ac_objext conftest$ac_exeext
30885if { (ac_try="$ac_link"
30886case "(($ac_try" in
30887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30888 *) ac_try_echo=$ac_try;;
30889esac
30890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30891 (eval "$ac_link") 2>conftest.er1
30892 ac_status=$?
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030897 (exit $ac_status); } &&
30898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30899 { (case "(($ac_try" in
30900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30901 *) ac_try_echo=$ac_try;;
30902esac
30903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30904 (eval "$ac_try") 2>&5
30905 ac_status=$?
30906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30907 (exit $ac_status); }; } &&
30908 { ac_try='test -s conftest$ac_exeext'
30909 { (case "(($ac_try" in
30910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30911 *) ac_try_echo=$ac_try;;
30912esac
30913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30914 (eval "$ac_try") 2>&5
30915 ac_status=$?
30916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30917 (exit $ac_status); }; }; then
Reid Spencerb90645c2007-02-16 19:17:20 +000030918 eval "$as_ac_var=yes"
30919else
30920 echo "$as_me: failed program was:" >&5
30921sed 's/^/| /' conftest.$ac_ext >&5
30922
30923 eval "$as_ac_var=no"
30924fi
30925
Gordon Henriksen40e7f192008-10-22 12:40:55 +000030926rm -f core conftest.err conftest.$ac_objext \
Reid Spencerb90645c2007-02-16 19:17:20 +000030927 conftest$ac_exeext conftest.$ac_ext
30928fi
30929ac_res=`eval echo '${'$as_ac_var'}'`
30930 { echo "$as_me:$LINENO: result: $ac_res" >&5
30931echo "${ECHO_T}$ac_res" >&6; }
30932if test `eval echo '${'$as_ac_var'}'` = yes; then
30933 cat >>confdefs.h <<_ACEOF
30934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30935_ACEOF
30936
30937fi
30938done
30939
30940
30941
30942
30943for ac_func in isatty mkdtemp mkstemp
Reid Spencerdf3be822006-01-23 08:15:53 +000030944do
30945as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030946{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30947echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30948if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030949 echo $ECHO_N "(cached) $ECHO_C" >&6
30950else
30951 cat >conftest.$ac_ext <<_ACEOF
30952/* confdefs.h. */
30953_ACEOF
30954cat confdefs.h >>conftest.$ac_ext
30955cat >>conftest.$ac_ext <<_ACEOF
30956/* end confdefs.h. */
30957/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30959#define $ac_func innocuous_$ac_func
30960
30961/* System header to define __stub macros and hopefully few prototypes,
30962 which can conflict with char $ac_func (); below.
30963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30964 <limits.h> exists even on freestanding compilers. */
30965
30966#ifdef __STDC__
30967# include <limits.h>
30968#else
30969# include <assert.h>
30970#endif
30971
30972#undef $ac_func
30973
Reid Spencera773bd52006-08-04 18:18:08 +000030974/* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030977#ifdef __cplusplus
30978extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030979#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030980char $ac_func ();
30981/* The GNU C library defines this for functions which it implements
30982 to always fail with ENOSYS. Some functions are actually named
30983 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030984#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030985choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030986#endif
30987
30988int
30989main ()
30990{
Reid Spencera773bd52006-08-04 18:18:08 +000030991return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030992 ;
30993 return 0;
30994}
30995_ACEOF
30996rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030997if { (ac_try="$ac_link"
30998case "(($ac_try" in
30999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31000 *) ac_try_echo=$ac_try;;
31001esac
31002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31003 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000031004 ac_status=$?
31005 grep -v '^ *+' conftest.er1 >conftest.err
31006 rm -f conftest.er1
31007 cat conftest.err >&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031009 (exit $ac_status); } &&
31010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31011 { (case "(($ac_try" in
31012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013 *) ac_try_echo=$ac_try;;
31014esac
31015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016 (eval "$ac_try") 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest$ac_exeext'
31021 { (case "(($ac_try" in
31022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31023 *) ac_try_echo=$ac_try;;
31024esac
31025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31026 (eval "$ac_try") 2>&5
31027 ac_status=$?
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); }; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000031030 eval "$as_ac_var=yes"
31031else
31032 echo "$as_me: failed program was:" >&5
31033sed 's/^/| /' conftest.$ac_ext >&5
31034
Reid Spencera773bd52006-08-04 18:18:08 +000031035 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000031036fi
Reid Spencera773bd52006-08-04 18:18:08 +000031037
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031038rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000031039 conftest$ac_exeext conftest.$ac_ext
31040fi
Reid Spencera773bd52006-08-04 18:18:08 +000031041ac_res=`eval echo '${'$as_ac_var'}'`
31042 { echo "$as_me:$LINENO: result: $ac_res" >&5
31043echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000031044if test `eval echo '${'$as_ac_var'}'` = yes; then
31045 cat >>confdefs.h <<_ACEOF
31046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31047_ACEOF
31048
31049fi
31050done
31051
31052
31053
31054
31055
31056
31057
31058
31059for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000031060do
31061as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031062{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31063echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31064if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031065 echo $ECHO_N "(cached) $ECHO_C" >&6
31066else
31067 cat >conftest.$ac_ext <<_ACEOF
31068/* confdefs.h. */
31069_ACEOF
31070cat confdefs.h >>conftest.$ac_ext
31071cat >>conftest.$ac_ext <<_ACEOF
31072/* end confdefs.h. */
31073/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31074 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31075#define $ac_func innocuous_$ac_func
31076
31077/* System header to define __stub macros and hopefully few prototypes,
31078 which can conflict with char $ac_func (); below.
31079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31080 <limits.h> exists even on freestanding compilers. */
31081
31082#ifdef __STDC__
31083# include <limits.h>
31084#else
31085# include <assert.h>
31086#endif
31087
31088#undef $ac_func
31089
Reid Spencera773bd52006-08-04 18:18:08 +000031090/* Override any GCC internal prototype to avoid an error.
31091 Use char because int might match the return type of a GCC
31092 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000031093#ifdef __cplusplus
31094extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000031095#endif
Reid Spencer7931a782004-12-27 06:15:02 +000031096char $ac_func ();
31097/* The GNU C library defines this for functions which it implements
31098 to always fail with ENOSYS. Some functions are actually named
31099 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031100#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000031101choke me
Reid Spencer7931a782004-12-27 06:15:02 +000031102#endif
31103
31104int
31105main ()
31106{
Reid Spencera773bd52006-08-04 18:18:08 +000031107return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000031108 ;
31109 return 0;
31110}
31111_ACEOF
31112rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031113if { (ac_try="$ac_link"
31114case "(($ac_try" in
31115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31116 *) ac_try_echo=$ac_try;;
31117esac
31118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31119 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000031120 ac_status=$?
31121 grep -v '^ *+' conftest.er1 >conftest.err
31122 rm -f conftest.er1
31123 cat conftest.err >&5
31124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031125 (exit $ac_status); } &&
31126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31127 { (case "(($ac_try" in
31128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31129 *) ac_try_echo=$ac_try;;
31130esac
31131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31132 (eval "$ac_try") 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; } &&
31136 { ac_try='test -s conftest$ac_exeext'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
31143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000031146 eval "$as_ac_var=yes"
31147else
31148 echo "$as_me: failed program was:" >&5
31149sed 's/^/| /' conftest.$ac_ext >&5
31150
Reid Spencera773bd52006-08-04 18:18:08 +000031151 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000031152fi
Reid Spencera773bd52006-08-04 18:18:08 +000031153
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031154rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000031155 conftest$ac_exeext conftest.$ac_ext
31156fi
Reid Spencera773bd52006-08-04 18:18:08 +000031157ac_res=`eval echo '${'$as_ac_var'}'`
31158 { echo "$as_me:$LINENO: result: $ac_res" >&5
31159echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000031160if test `eval echo '${'$as_ac_var'}'` = yes; then
31161 cat >>confdefs.h <<_ACEOF
31162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31163_ACEOF
31164
31165fi
31166done
31167
31168
Reid Spencerba46ca32004-12-31 05:49:15 +000031169
31170
Chris Lattner0b142592005-11-14 06:57:34 +000031171
Chris Lattner511f11d2005-11-14 07:25:50 +000031172for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031173do
31174as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031175{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31176echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31177if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000031178 echo $ECHO_N "(cached) $ECHO_C" >&6
31179else
31180 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031181/* confdefs.h. */
31182_ACEOF
31183cat confdefs.h >>conftest.$ac_ext
31184cat >>conftest.$ac_ext <<_ACEOF
31185/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031186/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31188#define $ac_func innocuous_$ac_func
31189
31190/* System header to define __stub macros and hopefully few prototypes,
31191 which can conflict with char $ac_func (); below.
31192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193 <limits.h> exists even on freestanding compilers. */
31194
31195#ifdef __STDC__
31196# include <limits.h>
31197#else
31198# include <assert.h>
31199#endif
31200
31201#undef $ac_func
31202
Reid Spencera773bd52006-08-04 18:18:08 +000031203/* Override any GCC internal prototype to avoid an error.
31204 Use char because int might match the return type of a GCC
31205 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031206#ifdef __cplusplus
31207extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031208#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209char $ac_func ();
31210/* The GNU C library defines this for functions which it implements
31211 to always fail with ENOSYS. Some functions are actually named
31212 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031213#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215#endif
John Criswell7a73b802003-06-30 21:59:07 +000031216
John Criswell7a73b802003-06-30 21:59:07 +000031217int
31218main ()
31219{
Reid Spencera773bd52006-08-04 18:18:08 +000031220return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000031221 ;
31222 return 0;
31223}
31224_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031225rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031226if { (ac_try="$ac_link"
31227case "(($ac_try" in
31228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31229 *) ac_try_echo=$ac_try;;
31230esac
31231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31232 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031233 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031234 grep -v '^ *+' conftest.er1 >conftest.err
31235 rm -f conftest.er1
31236 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031238 (exit $ac_status); } &&
31239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31240 { (case "(($ac_try" in
31241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31242 *) ac_try_echo=$ac_try;;
31243esac
31244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31245 (eval "$ac_try") 2>&5
31246 ac_status=$?
31247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31248 (exit $ac_status); }; } &&
31249 { ac_try='test -s conftest$ac_exeext'
31250 { (case "(($ac_try" in
31251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31252 *) ac_try_echo=$ac_try;;
31253esac
31254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31255 (eval "$ac_try") 2>&5
31256 ac_status=$?
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031259 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000031260else
31261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031262sed 's/^/| /' conftest.$ac_ext >&5
31263
Reid Spencera773bd52006-08-04 18:18:08 +000031264 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000031265fi
Reid Spencera773bd52006-08-04 18:18:08 +000031266
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031267rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031268 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031269fi
Reid Spencera773bd52006-08-04 18:18:08 +000031270ac_res=`eval echo '${'$as_ac_var'}'`
31271 { echo "$as_me:$LINENO: result: $ac_res" >&5
31272echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031273if test `eval echo '${'$as_ac_var'}'` = yes; then
31274 cat >>confdefs.h <<_ACEOF
31275#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000031276_ACEOF
31277
31278fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031279done
John Criswell7a73b802003-06-30 21:59:07 +000031280
Reid Spencercdb08a32006-06-05 16:11:07 +000031281
31282
31283
31284
Reid Spencerafa22e22006-12-10 23:29:19 +000031285for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000031286do
31287as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031288{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31289echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31290if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031291 echo $ECHO_N "(cached) $ECHO_C" >&6
31292else
31293 cat >conftest.$ac_ext <<_ACEOF
31294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
31299/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31301#define $ac_func innocuous_$ac_func
31302
31303/* System header to define __stub macros and hopefully few prototypes,
31304 which can conflict with char $ac_func (); below.
31305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31306 <limits.h> exists even on freestanding compilers. */
31307
31308#ifdef __STDC__
31309# include <limits.h>
31310#else
31311# include <assert.h>
31312#endif
31313
31314#undef $ac_func
31315
Reid Spencera773bd52006-08-04 18:18:08 +000031316/* Override any GCC internal prototype to avoid an error.
31317 Use char because int might match the return type of a GCC
31318 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000031319#ifdef __cplusplus
31320extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000031321#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000031322char $ac_func ();
31323/* The GNU C library defines this for functions which it implements
31324 to always fail with ENOSYS. Some functions are actually named
31325 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031326#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000031327choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000031328#endif
31329
31330int
31331main ()
31332{
Reid Spencera773bd52006-08-04 18:18:08 +000031333return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000031334 ;
31335 return 0;
31336}
31337_ACEOF
31338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031339if { (ac_try="$ac_link"
31340case "(($ac_try" in
31341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342 *) ac_try_echo=$ac_try;;
31343esac
31344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31345 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000031346 ac_status=$?
31347 grep -v '^ *+' conftest.er1 >conftest.err
31348 rm -f conftest.er1
31349 cat conftest.err >&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031351 (exit $ac_status); } &&
31352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31353 { (case "(($ac_try" in
31354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31355 *) ac_try_echo=$ac_try;;
31356esac
31357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31358 (eval "$ac_try") 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; } &&
31362 { ac_try='test -s conftest$ac_exeext'
31363 { (case "(($ac_try" in
31364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31366esac
31367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368 (eval "$ac_try") 2>&5
31369 ac_status=$?
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); }; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000031372 eval "$as_ac_var=yes"
31373else
31374 echo "$as_me: failed program was:" >&5
31375sed 's/^/| /' conftest.$ac_ext >&5
31376
Reid Spencera773bd52006-08-04 18:18:08 +000031377 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000031378fi
Reid Spencera773bd52006-08-04 18:18:08 +000031379
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031380rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000031381 conftest$ac_exeext conftest.$ac_ext
31382fi
Reid Spencera773bd52006-08-04 18:18:08 +000031383ac_res=`eval echo '${'$as_ac_var'}'`
31384 { echo "$as_me:$LINENO: result: $ac_res" >&5
31385echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000031386if test `eval echo '${'$as_ac_var'}'` = yes; then
31387 cat >>confdefs.h <<_ACEOF
31388#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31389_ACEOF
31390
31391fi
31392done
31393
Reid Spencera773bd52006-08-04 18:18:08 +000031394{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
31395echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031396if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031399 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031400ac_cpp='$CPP $CPPFLAGS'
31401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31403ac_compiler_gnu=$ac_cv_c_compiler_gnu
31404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031405 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031406 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031407else
31408 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031409
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031410 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000031411_ACEOF
31412cat confdefs.h >>conftest.$ac_ext
31413cat >>conftest.$ac_ext <<_ACEOF
31414/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000031415
John Criswella0137d32003-10-13 16:22:01 +000031416#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000031417#include <stdlib.h>
31418
John Criswella0137d32003-10-13 16:22:01 +000031419int
31420main ()
31421{
31422
Reid Spencer2706f8c2004-09-19 23:53:36 +000031423volatile double A, B;
31424char Buffer[100];
31425A = 1;
31426A /= 10.0;
31427sprintf(Buffer, "%a", A);
31428B = atof(Buffer);
31429if (A != B)
31430 return (1);
31431if (A != 0x1.999999999999ap-4)
31432 return (1);
31433return (0);
John Criswella0137d32003-10-13 16:22:01 +000031434 ;
31435 return 0;
31436}
31437_ACEOF
31438rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031439if { (ac_try="$ac_link"
31440case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443esac
31444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031446 ac_status=$?
31447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031449 { (case "(($ac_try" in
31450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451 *) ac_try_echo=$ac_try;;
31452esac
31453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31454 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000031455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000031458 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000031459else
31460 echo "$as_me: program exited with status $ac_status" >&5
31461echo "$as_me: failed program was:" >&5
31462sed 's/^/| /' conftest.$ac_ext >&5
31463
31464( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000031465llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000031466fi
Reid Spencera773bd52006-08-04 18:18:08 +000031467rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000031468fi
Reid Spencera773bd52006-08-04 18:18:08 +000031469
31470
Reid Spencer2706f8c2004-09-19 23:53:36 +000031471 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000031472ac_cpp='$CPP $CPPFLAGS'
31473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31475ac_compiler_gnu=$ac_cv_c_compiler_gnu
31476
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031477fi
Reid Spencera773bd52006-08-04 18:18:08 +000031478{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
31479echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000031480 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000031481
31482cat >>confdefs.h <<\_ACEOF
31483#define HAVE_PRINTF_A 1
31484_ACEOF
31485
Reid Spencer2706f8c2004-09-19 23:53:36 +000031486 fi
John Criswella0137d32003-10-13 16:22:01 +000031487
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031488# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31489# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000031490{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
31491echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031492if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000031493 echo $ECHO_N "(cached) $ECHO_C" >&6
31494else
John Criswell0021c312004-02-13 21:57:29 +000031495 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000031496/* confdefs.h. */
31497_ACEOF
31498cat confdefs.h >>conftest.$ac_ext
31499cat >>conftest.$ac_ext <<_ACEOF
31500/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031501#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000031502int
31503main ()
31504{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031505char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000031506 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000031507 ;
31508 return 0;
31509}
31510_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031511rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031512if { (ac_try="$ac_link"
31513case "(($ac_try" in
31514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31515 *) ac_try_echo=$ac_try;;
31516esac
31517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31518 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000031519 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031520 grep -v '^ *+' conftest.er1 >conftest.err
31521 rm -f conftest.er1
31522 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000031523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031524 (exit $ac_status); } &&
31525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31526 { (case "(($ac_try" in
31527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31528 *) ac_try_echo=$ac_try;;
31529esac
31530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31531 (eval "$ac_try") 2>&5
31532 ac_status=$?
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; } &&
31535 { ac_try='test -s conftest$ac_exeext'
31536 { (case "(($ac_try" in
31537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31538 *) ac_try_echo=$ac_try;;
31539esac
31540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31541 (eval "$ac_try") 2>&5
31542 ac_status=$?
31543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31544 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031545 ac_cv_working_alloca_h=yes
31546else
31547 echo "$as_me: failed program was:" >&5
31548sed 's/^/| /' conftest.$ac_ext >&5
31549
Reid Spencera773bd52006-08-04 18:18:08 +000031550 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000031551fi
Reid Spencera773bd52006-08-04 18:18:08 +000031552
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031553rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031554 conftest$ac_exeext conftest.$ac_ext
31555fi
Reid Spencera773bd52006-08-04 18:18:08 +000031556{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31557echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031558if test $ac_cv_working_alloca_h = yes; then
31559
31560cat >>confdefs.h <<\_ACEOF
31561#define HAVE_ALLOCA_H 1
31562_ACEOF
31563
31564fi
31565
Reid Spencera773bd52006-08-04 18:18:08 +000031566{ echo "$as_me:$LINENO: checking for alloca" >&5
31567echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031568if test "${ac_cv_func_alloca_works+set}" = set; then
31569 echo $ECHO_N "(cached) $ECHO_C" >&6
31570else
31571 cat >conftest.$ac_ext <<_ACEOF
31572/* confdefs.h. */
31573_ACEOF
31574cat confdefs.h >>conftest.$ac_ext
31575cat >>conftest.$ac_ext <<_ACEOF
31576/* end confdefs.h. */
31577#ifdef __GNUC__
31578# define alloca __builtin_alloca
31579#else
31580# ifdef _MSC_VER
31581# include <malloc.h>
31582# define alloca _alloca
31583# else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031584# if HAVE_ALLOCA_H
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031585# include <alloca.h>
31586# else
31587# ifdef _AIX
31588 #pragma alloca
31589# else
31590# ifndef alloca /* predefined by HP cc +Olibcalls */
31591char *alloca ();
31592# endif
31593# endif
31594# endif
31595# endif
31596#endif
31597
31598int
31599main ()
31600{
31601char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000031602 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031603 ;
31604 return 0;
31605}
31606_ACEOF
31607rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031608if { (ac_try="$ac_link"
31609case "(($ac_try" in
31610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31611 *) ac_try_echo=$ac_try;;
31612esac
31613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31614 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031615 ac_status=$?
31616 grep -v '^ *+' conftest.er1 >conftest.err
31617 rm -f conftest.er1
31618 cat conftest.err >&5
31619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031620 (exit $ac_status); } &&
31621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31622 { (case "(($ac_try" in
31623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31624 *) ac_try_echo=$ac_try;;
31625esac
31626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31627 (eval "$ac_try") 2>&5
31628 ac_status=$?
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); }; } &&
31631 { ac_try='test -s conftest$ac_exeext'
31632 { (case "(($ac_try" in
31633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634 *) ac_try_echo=$ac_try;;
31635esac
31636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637 (eval "$ac_try") 2>&5
31638 ac_status=$?
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031641 ac_cv_func_alloca_works=yes
31642else
31643 echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
Reid Spencera773bd52006-08-04 18:18:08 +000031646 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031647fi
Reid Spencera773bd52006-08-04 18:18:08 +000031648
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031649rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031650 conftest$ac_exeext conftest.$ac_ext
31651fi
Reid Spencera773bd52006-08-04 18:18:08 +000031652{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31653echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031654
31655if test $ac_cv_func_alloca_works = yes; then
31656
31657cat >>confdefs.h <<\_ACEOF
31658#define HAVE_ALLOCA 1
31659_ACEOF
31660
31661else
31662 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31663# that cause trouble. Some versions do not even contain alloca or
31664# contain a buggy version. If you still want to use their alloca,
31665# use ar to extract alloca.o from them instead of compiling alloca.c.
31666
Reid Spencera773bd52006-08-04 18:18:08 +000031667ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031668
31669cat >>confdefs.h <<\_ACEOF
31670#define C_ALLOCA 1
31671_ACEOF
31672
31673
Reid Spencera773bd52006-08-04 18:18:08 +000031674{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31675echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031676if test "${ac_cv_os_cray+set}" = set; then
31677 echo $ECHO_N "(cached) $ECHO_C" >&6
31678else
31679 cat >conftest.$ac_ext <<_ACEOF
31680/* confdefs.h. */
31681_ACEOF
31682cat confdefs.h >>conftest.$ac_ext
31683cat >>conftest.$ac_ext <<_ACEOF
31684/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031685#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031686webecray
31687#else
31688wenotbecray
31689#endif
31690
31691_ACEOF
31692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31693 $EGREP "webecray" >/dev/null 2>&1; then
31694 ac_cv_os_cray=yes
31695else
31696 ac_cv_os_cray=no
31697fi
31698rm -f conftest*
31699
31700fi
Reid Spencera773bd52006-08-04 18:18:08 +000031701{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31702echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031703if test $ac_cv_os_cray = yes; then
31704 for ac_func in _getb67 GETB67 getb67; do
31705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000031706{ echo "$as_me:$LINENO: checking for $ac_func" >&5
31707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31708if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031709 echo $ECHO_N "(cached) $ECHO_C" >&6
31710else
31711 cat >conftest.$ac_ext <<_ACEOF
31712/* confdefs.h. */
31713_ACEOF
31714cat confdefs.h >>conftest.$ac_ext
31715cat >>conftest.$ac_ext <<_ACEOF
31716/* end confdefs.h. */
31717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31719#define $ac_func innocuous_$ac_func
31720
31721/* System header to define __stub macros and hopefully few prototypes,
31722 which can conflict with char $ac_func (); below.
31723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31724 <limits.h> exists even on freestanding compilers. */
31725
31726#ifdef __STDC__
31727# include <limits.h>
31728#else
31729# include <assert.h>
31730#endif
31731
31732#undef $ac_func
31733
Reid Spencera773bd52006-08-04 18:18:08 +000031734/* Override any GCC internal prototype to avoid an error.
31735 Use char because int might match the return type of a GCC
31736 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031737#ifdef __cplusplus
31738extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031739#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031740char $ac_func ();
31741/* The GNU C library defines this for functions which it implements
31742 to always fail with ENOSYS. Some functions are actually named
31743 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000031744#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031745choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031746#endif
31747
31748int
31749main ()
31750{
Reid Spencera773bd52006-08-04 18:18:08 +000031751return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031752 ;
31753 return 0;
31754}
31755_ACEOF
31756rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031757if { (ac_try="$ac_link"
31758case "(($ac_try" in
31759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760 *) ac_try_echo=$ac_try;;
31761esac
31762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031764 ac_status=$?
31765 grep -v '^ *+' conftest.er1 >conftest.err
31766 rm -f conftest.er1
31767 cat conftest.err >&5
31768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031769 (exit $ac_status); } &&
31770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31771 { (case "(($ac_try" in
31772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31773 *) ac_try_echo=$ac_try;;
31774esac
31775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31776 (eval "$ac_try") 2>&5
31777 ac_status=$?
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); }; } &&
31780 { ac_try='test -s conftest$ac_exeext'
31781 { (case "(($ac_try" in
31782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31783 *) ac_try_echo=$ac_try;;
31784esac
31785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31786 (eval "$ac_try") 2>&5
31787 ac_status=$?
31788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31789 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031790 eval "$as_ac_var=yes"
31791else
31792 echo "$as_me: failed program was:" >&5
31793sed 's/^/| /' conftest.$ac_ext >&5
31794
Reid Spencera773bd52006-08-04 18:18:08 +000031795 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031796fi
Reid Spencera773bd52006-08-04 18:18:08 +000031797
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031798rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031799 conftest$ac_exeext conftest.$ac_ext
31800fi
Reid Spencera773bd52006-08-04 18:18:08 +000031801ac_res=`eval echo '${'$as_ac_var'}'`
31802 { echo "$as_me:$LINENO: result: $ac_res" >&5
31803echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031804if test `eval echo '${'$as_ac_var'}'` = yes; then
31805
31806cat >>confdefs.h <<_ACEOF
31807#define CRAY_STACKSEG_END $ac_func
31808_ACEOF
31809
31810 break
31811fi
31812
31813 done
31814fi
31815
Reid Spencera773bd52006-08-04 18:18:08 +000031816{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31817echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031818if test "${ac_cv_c_stack_direction+set}" = set; then
31819 echo $ECHO_N "(cached) $ECHO_C" >&6
31820else
31821 if test "$cross_compiling" = yes; then
31822 ac_cv_c_stack_direction=0
31823else
31824 cat >conftest.$ac_ext <<_ACEOF
31825/* confdefs.h. */
31826_ACEOF
31827cat confdefs.h >>conftest.$ac_ext
31828cat >>conftest.$ac_ext <<_ACEOF
31829/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000031830$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031831int
31832find_stack_direction ()
31833{
31834 static char *addr = 0;
31835 auto char dummy;
31836 if (addr == 0)
31837 {
31838 addr = &dummy;
31839 return find_stack_direction ();
31840 }
John Criswell0021c312004-02-13 21:57:29 +000031841 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031842 return (&dummy > addr) ? 1 : -1;
31843}
John Criswell0021c312004-02-13 21:57:29 +000031844
John Criswell0021c312004-02-13 21:57:29 +000031845int
31846main ()
31847{
Reid Spencera773bd52006-08-04 18:18:08 +000031848 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031849}
31850_ACEOF
31851rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031852if { (ac_try="$ac_link"
31853case "(($ac_try" in
31854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855 *) ac_try_echo=$ac_try;;
31856esac
31857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31858 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031859 ac_status=$?
31860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031862 { (case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31865esac
31866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031868 ac_status=$?
31869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31870 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031871 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031872else
31873 echo "$as_me: program exited with status $ac_status" >&5
31874echo "$as_me: failed program was:" >&5
31875sed 's/^/| /' conftest.$ac_ext >&5
31876
31877( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031878ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031879fi
Reid Spencera773bd52006-08-04 18:18:08 +000031880rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000031881fi
Reid Spencera773bd52006-08-04 18:18:08 +000031882
31883
John Criswell0021c312004-02-13 21:57:29 +000031884fi
Reid Spencera773bd52006-08-04 18:18:08 +000031885{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31886echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031887
31888cat >>confdefs.h <<_ACEOF
31889#define STACK_DIRECTION $ac_cv_c_stack_direction
31890_ACEOF
31891
31892
John Criswell0021c312004-02-13 21:57:29 +000031893fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031894
31895
Reid Spencera773bd52006-08-04 18:18:08 +000031896{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31897echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031898if test "${ac_cv_func_rand48+set}" = set; then
31899 echo $ECHO_N "(cached) $ECHO_C" >&6
31900else
Reid Spencera773bd52006-08-04 18:18:08 +000031901 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031902ac_cpp='$CXXCPP $CPPFLAGS'
31903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31906
31907 cat >conftest.$ac_ext <<_ACEOF
31908/* confdefs.h. */
31909_ACEOF
31910cat confdefs.h >>conftest.$ac_ext
31911cat >>conftest.$ac_ext <<_ACEOF
31912/* end confdefs.h. */
31913#include <stdlib.h>
31914int
31915main ()
31916{
31917srand48(0);lrand48();drand48();
31918 ;
31919 return 0;
31920}
31921_ACEOF
31922rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031923if { (ac_try="$ac_compile"
31924case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31927esac
31928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031930 ac_status=$?
31931 grep -v '^ *+' conftest.er1 >conftest.err
31932 rm -f conftest.er1
31933 cat conftest.err >&5
31934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000031935 (exit $ac_status); } &&
31936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940esac
31941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; } &&
31946 { ac_try='test -s conftest.$ac_objext'
31947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31950esac
31951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
31953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031956 ac_cv_func_rand48=yes
31957else
31958 echo "$as_me: failed program was:" >&5
31959sed 's/^/| /' conftest.$ac_ext >&5
31960
Reid Spencera773bd52006-08-04 18:18:08 +000031961 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031962fi
Reid Spencera773bd52006-08-04 18:18:08 +000031963
31964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031965 ac_ext=c
31966ac_cpp='$CPP $CPPFLAGS'
31967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970
31971fi
Reid Spencera773bd52006-08-04 18:18:08 +000031972{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31973echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031974
31975if test "$ac_cv_func_rand48" = "yes" ; then
31976
31977cat >>confdefs.h <<\_ACEOF
31978#define HAVE_RAND48 1
31979_ACEOF
31980
31981fi
John Criswell0021c312004-02-13 21:57:29 +000031982
31983
Reid Spencera773bd52006-08-04 18:18:08 +000031984{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31985echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031986if test "${ac_cv_cxx_namespaces+set}" = set; then
31987 echo $ECHO_N "(cached) $ECHO_C" >&6
31988else
Reid Spencera773bd52006-08-04 18:18:08 +000031989 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031990ac_cpp='$CXXCPP $CPPFLAGS'
31991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31994
31995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031996/* confdefs.h. */
31997_ACEOF
31998cat confdefs.h >>conftest.$ac_ext
31999cat >>conftest.$ac_ext <<_ACEOF
32000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032001namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000032002int
32003main ()
32004{
32005using namespace Outer::Inner; return i;
32006 ;
32007 return 0;
32008}
32009_ACEOF
32010rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032011if { (ac_try="$ac_compile"
32012case "(($ac_try" in
32013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32014 *) ac_try_echo=$ac_try;;
32015esac
32016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32017 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032018 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032019 grep -v '^ *+' conftest.er1 >conftest.err
32020 rm -f conftest.er1
32021 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032023 (exit $ac_status); } &&
32024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32025 { (case "(($ac_try" in
32026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32027 *) ac_try_echo=$ac_try;;
32028esac
32029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32030 (eval "$ac_try") 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; } &&
32034 { ac_try='test -s conftest.$ac_objext'
32035 { (case "(($ac_try" in
32036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32037 *) ac_try_echo=$ac_try;;
32038esac
32039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32040 (eval "$ac_try") 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032044 ac_cv_cxx_namespaces=yes
32045else
32046 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032047sed 's/^/| /' conftest.$ac_ext >&5
32048
Reid Spencera773bd52006-08-04 18:18:08 +000032049 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000032050fi
Reid Spencera773bd52006-08-04 18:18:08 +000032051
32052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032053 ac_ext=c
32054ac_cpp='$CPP $CPPFLAGS'
32055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32057ac_compiler_gnu=$ac_cv_c_compiler_gnu
32058
32059
32060fi
Reid Spencera773bd52006-08-04 18:18:08 +000032061{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
32062echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032063if test "$ac_cv_cxx_namespaces" = yes; then
32064
32065cat >>confdefs.h <<\_ACEOF
32066#define HAVE_NAMESPACES
32067_ACEOF
32068
32069fi
32070
Reid Spencera773bd52006-08-04 18:18:08 +000032071{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
32072echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032073if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032074 echo $ECHO_N "(cached) $ECHO_C" >&6
32075else
32076
Reid Spencera773bd52006-08-04 18:18:08 +000032077 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032078ac_cpp='$CXXCPP $CPPFLAGS'
32079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32082
32083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032084/* confdefs.h. */
32085_ACEOF
32086cat confdefs.h >>conftest.$ac_ext
32087cat >>conftest.$ac_ext <<_ACEOF
32088/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032089#include <ext/hash_map>
32090#ifdef HAVE_NAMESPACES
32091using namespace std;
32092#endif
John Criswell7a73b802003-06-30 21:59:07 +000032093int
32094main ()
32095{
Brian Gaeke90583492003-11-10 03:06:28 +000032096hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032097 ;
32098 return 0;
32099}
32100_ACEOF
32101rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032102if { (ac_try="$ac_compile"
32103case "(($ac_try" in
32104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32105 *) ac_try_echo=$ac_try;;
32106esac
32107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32108 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032109 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032114 (exit $ac_status); } &&
32115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32116 { (case "(($ac_try" in
32117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32118 *) ac_try_echo=$ac_try;;
32119esac
32120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32121 (eval "$ac_try") 2>&5
32122 ac_status=$?
32123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32124 (exit $ac_status); }; } &&
32125 { ac_try='test -s conftest.$ac_objext'
32126 { (case "(($ac_try" in
32127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32128 *) ac_try_echo=$ac_try;;
32129esac
32130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32131 (eval "$ac_try") 2>&5
32132 ac_status=$?
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032135 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000032136else
32137 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032138sed 's/^/| /' conftest.$ac_ext >&5
32139
Reid Spencera773bd52006-08-04 18:18:08 +000032140 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032141fi
Reid Spencera773bd52006-08-04 18:18:08 +000032142
32143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032144 ac_ext=c
32145ac_cpp='$CPP $CPPFLAGS'
32146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32148ac_compiler_gnu=$ac_cv_c_compiler_gnu
32149
John Criswell7a73b802003-06-30 21:59:07 +000032150fi
Reid Spencera773bd52006-08-04 18:18:08 +000032151{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
32152echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032153 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
32154 then
John Criswell9f011862004-09-24 18:28:00 +000032155
32156cat >>confdefs.h <<\_ACEOF
32157#define HAVE_STD_EXT_HASH_MAP 1
32158_ACEOF
32159
32160 else
32161
32162cat >>confdefs.h <<\_ACEOF
32163#define HAVE_STD_EXT_HASH_MAP 0
32164_ACEOF
32165
Brian Gaeke90583492003-11-10 03:06:28 +000032166 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032167
Reid Spencera773bd52006-08-04 18:18:08 +000032168 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
32169echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032170if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
32171 echo $ECHO_N "(cached) $ECHO_C" >&6
32172else
32173
Reid Spencera773bd52006-08-04 18:18:08 +000032174 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032175ac_cpp='$CXXCPP $CPPFLAGS'
32176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32179
32180 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186#include <ext/hash_map>
32187#ifdef HAVE_NAMESPACES
32188using namespace __gnu_cxx;
32189#endif
32190int
32191main ()
32192{
32193hash_map<int,int> t;
32194 ;
32195 return 0;
32196}
32197_ACEOF
32198rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032199if { (ac_try="$ac_compile"
32200case "(($ac_try" in
32201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32202 *) ac_try_echo=$ac_try;;
32203esac
32204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32205 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032207 grep -v '^ *+' conftest.er1 >conftest.err
32208 rm -f conftest.er1
32209 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032211 (exit $ac_status); } &&
32212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32213 { (case "(($ac_try" in
32214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32215 *) ac_try_echo=$ac_try;;
32216esac
32217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32218 (eval "$ac_try") 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32226esac
32227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_try") 2>&5
32229 ac_status=$?
32230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32231 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032232 ac_cv_cxx_have_gnu_ext_hash_map=yes
32233else
32234 echo "$as_me: failed program was:" >&5
32235sed 's/^/| /' conftest.$ac_ext >&5
32236
Reid Spencera773bd52006-08-04 18:18:08 +000032237 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000032238fi
Reid Spencera773bd52006-08-04 18:18:08 +000032239
32240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032241 ac_ext=c
32242ac_cpp='$CPP $CPPFLAGS'
32243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32245ac_compiler_gnu=$ac_cv_c_compiler_gnu
32246
32247fi
Reid Spencera773bd52006-08-04 18:18:08 +000032248{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
32249echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032250 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
32251 then
John Criswell9f011862004-09-24 18:28:00 +000032252
32253cat >>confdefs.h <<\_ACEOF
32254#define HAVE_GNU_EXT_HASH_MAP 1
32255_ACEOF
32256
32257 else
32258
32259cat >>confdefs.h <<\_ACEOF
32260#define HAVE_GNU_EXT_HASH_MAP 0
32261_ACEOF
32262
Brian Gaeke90583492003-11-10 03:06:28 +000032263 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032264
Reid Spencera773bd52006-08-04 18:18:08 +000032265 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
32266echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032267if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
32268 echo $ECHO_N "(cached) $ECHO_C" >&6
32269else
John Criswell7a73b802003-06-30 21:59:07 +000032270
Reid Spencera773bd52006-08-04 18:18:08 +000032271 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032272ac_cpp='$CXXCPP $CPPFLAGS'
32273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32276
32277 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032278/* confdefs.h. */
32279_ACEOF
32280cat confdefs.h >>conftest.$ac_ext
32281cat >>conftest.$ac_ext <<_ACEOF
32282/* end confdefs.h. */
32283#include <hash_map>
32284int
32285main ()
32286{
32287hash_map<int,int> t;
32288 ;
32289 return 0;
32290}
32291_ACEOF
32292rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032293if { (ac_try="$ac_compile"
32294case "(($ac_try" in
32295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32296 *) ac_try_echo=$ac_try;;
32297esac
32298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32299 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032301 grep -v '^ *+' conftest.er1 >conftest.err
32302 rm -f conftest.er1
32303 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032305 (exit $ac_status); } &&
32306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32307 { (case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32310esac
32311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_try") 2>&5
32313 ac_status=$?
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); }; } &&
32316 { ac_try='test -s conftest.$ac_objext'
32317 { (case "(($ac_try" in
32318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32319 *) ac_try_echo=$ac_try;;
32320esac
32321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32322 (eval "$ac_try") 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032326 ac_cv_cxx_have_global_hash_map=yes
32327else
32328 echo "$as_me: failed program was:" >&5
32329sed 's/^/| /' conftest.$ac_ext >&5
32330
Reid Spencera773bd52006-08-04 18:18:08 +000032331 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000032332fi
Reid Spencera773bd52006-08-04 18:18:08 +000032333
32334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032335 ac_ext=c
32336ac_cpp='$CPP $CPPFLAGS'
32337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32339ac_compiler_gnu=$ac_cv_c_compiler_gnu
32340
32341fi
Reid Spencera773bd52006-08-04 18:18:08 +000032342{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
32343echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032344 if test "$ac_cv_cxx_have_global_hash_map" = yes
32345 then
John Criswell9f011862004-09-24 18:28:00 +000032346
32347cat >>confdefs.h <<\_ACEOF
32348#define HAVE_GLOBAL_HASH_MAP 1
32349_ACEOF
32350
32351 else
32352
32353cat >>confdefs.h <<\_ACEOF
32354#define HAVE_GLOBAL_HASH_MAP 0
32355_ACEOF
32356
Brian Gaeke90583492003-11-10 03:06:28 +000032357 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032358
Reid Spencera773bd52006-08-04 18:18:08 +000032359{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
32360echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032361if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000032362 echo $ECHO_N "(cached) $ECHO_C" >&6
32363else
32364
Reid Spencera773bd52006-08-04 18:18:08 +000032365 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032366ac_cpp='$CXXCPP $CPPFLAGS'
32367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32370
32371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032372/* confdefs.h. */
32373_ACEOF
32374cat confdefs.h >>conftest.$ac_ext
32375cat >>conftest.$ac_ext <<_ACEOF
32376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032377#include <ext/hash_set>
32378#ifdef HAVE_NAMESPACES
32379using namespace std;
32380#endif
John Criswell7a73b802003-06-30 21:59:07 +000032381int
32382main ()
32383{
Brian Gaeke90583492003-11-10 03:06:28 +000032384hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000032385 ;
32386 return 0;
32387}
32388_ACEOF
32389rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032390if { (ac_try="$ac_compile"
32391case "(($ac_try" in
32392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32393 *) ac_try_echo=$ac_try;;
32394esac
32395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32396 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032398 grep -v '^ *+' conftest.er1 >conftest.err
32399 rm -f conftest.er1
32400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032402 (exit $ac_status); } &&
32403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32404 { (case "(($ac_try" in
32405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32406 *) ac_try_echo=$ac_try;;
32407esac
32408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32409 (eval "$ac_try") 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest.$ac_objext'
32414 { (case "(($ac_try" in
32415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32416 *) ac_try_echo=$ac_try;;
32417esac
32418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32419 (eval "$ac_try") 2>&5
32420 ac_status=$?
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032423 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032424else
32425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032426sed 's/^/| /' conftest.$ac_ext >&5
32427
Reid Spencera773bd52006-08-04 18:18:08 +000032428 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032429fi
Reid Spencera773bd52006-08-04 18:18:08 +000032430
32431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032432 ac_ext=c
32433ac_cpp='$CPP $CPPFLAGS'
32434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32436ac_compiler_gnu=$ac_cv_c_compiler_gnu
32437
32438fi
Reid Spencera773bd52006-08-04 18:18:08 +000032439{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
32440echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032441 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
32442 then
John Criswell9f011862004-09-24 18:28:00 +000032443
32444cat >>confdefs.h <<\_ACEOF
32445#define HAVE_STD_EXT_HASH_SET 1
32446_ACEOF
32447
32448 else
32449
32450cat >>confdefs.h <<\_ACEOF
32451#define HAVE_STD_EXT_HASH_SET 0
32452_ACEOF
32453
Brian Gaeke90583492003-11-10 03:06:28 +000032454 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032455
Reid Spencera773bd52006-08-04 18:18:08 +000032456 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
32457echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032458if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
32459 echo $ECHO_N "(cached) $ECHO_C" >&6
32460else
32461
Reid Spencera773bd52006-08-04 18:18:08 +000032462 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032463ac_cpp='$CXXCPP $CPPFLAGS'
32464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32467
John Criswell7a73b802003-06-30 21:59:07 +000032468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032474#include <ext/hash_set>
32475#ifdef HAVE_NAMESPACES
32476using namespace __gnu_cxx;
32477#endif
John Criswell7a73b802003-06-30 21:59:07 +000032478int
32479main ()
32480{
Brian Gaeke90583492003-11-10 03:06:28 +000032481hash_set<int> t;
32482 ;
32483 return 0;
32484}
32485_ACEOF
32486rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032487if { (ac_try="$ac_compile"
32488case "(($ac_try" in
32489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32490 *) ac_try_echo=$ac_try;;
32491esac
32492eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32493 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000032494 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032495 grep -v '^ *+' conftest.er1 >conftest.err
32496 rm -f conftest.er1
32497 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000032498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032499 (exit $ac_status); } &&
32500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32501 { (case "(($ac_try" in
32502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503 *) ac_try_echo=$ac_try;;
32504esac
32505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506 (eval "$ac_try") 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; } &&
32510 { ac_try='test -s conftest.$ac_objext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32514esac
32515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32517 ac_status=$?
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032520 ac_cv_cxx_have_gnu_ext_hash_set=yes
32521else
32522 echo "$as_me: failed program was:" >&5
32523sed 's/^/| /' conftest.$ac_ext >&5
32524
Reid Spencera773bd52006-08-04 18:18:08 +000032525 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000032526fi
Reid Spencera773bd52006-08-04 18:18:08 +000032527
32528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000032529 ac_ext=c
32530ac_cpp='$CPP $CPPFLAGS'
32531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32533ac_compiler_gnu=$ac_cv_c_compiler_gnu
32534
32535fi
Reid Spencera773bd52006-08-04 18:18:08 +000032536{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
32537echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032538 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
32539 then
John Criswell9f011862004-09-24 18:28:00 +000032540
32541cat >>confdefs.h <<\_ACEOF
32542#define HAVE_GNU_EXT_HASH_SET 1
32543_ACEOF
32544
32545 else
32546
32547cat >>confdefs.h <<\_ACEOF
32548#define HAVE_GNU_EXT_HASH_SET 0
32549_ACEOF
32550
Brian Gaeke90583492003-11-10 03:06:28 +000032551 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032552
Reid Spencera773bd52006-08-04 18:18:08 +000032553 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
32554echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000032555if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32557else
32558
Reid Spencera773bd52006-08-04 18:18:08 +000032559 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000032560ac_cpp='$CXXCPP $CPPFLAGS'
32561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32564
32565 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000032566/* confdefs.h. */
32567_ACEOF
32568cat confdefs.h >>conftest.$ac_ext
32569cat >>conftest.$ac_ext <<_ACEOF
32570/* end confdefs.h. */
32571#include <hash_set>
32572int
32573main ()
32574{
John Criswell7a73b802003-06-30 21:59:07 +000032575hash_set<int> t; return 0;
32576 ;
32577 return 0;
32578}
32579_ACEOF
32580rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032581if { (ac_try="$ac_compile"
32582case "(($ac_try" in
32583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32584 *) ac_try_echo=$ac_try;;
32585esac
32586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32587 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032589 grep -v '^ *+' conftest.er1 >conftest.err
32590 rm -f conftest.er1
32591 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032593 (exit $ac_status); } &&
32594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32598esac
32599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; } &&
32604 { ac_try='test -s conftest.$ac_objext'
32605 { (case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_try") 2>&5
32611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000032614 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000032615else
32616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032617sed 's/^/| /' conftest.$ac_ext >&5
32618
Reid Spencera773bd52006-08-04 18:18:08 +000032619 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000032620fi
Reid Spencera773bd52006-08-04 18:18:08 +000032621
32622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032623 ac_ext=c
32624ac_cpp='$CPP $CPPFLAGS'
32625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32627ac_compiler_gnu=$ac_cv_c_compiler_gnu
32628
John Criswell7a73b802003-06-30 21:59:07 +000032629fi
Reid Spencera773bd52006-08-04 18:18:08 +000032630{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
32631echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000032632 if test "$ac_cv_cxx_have_global_hash_set" = yes
32633 then
John Criswell9f011862004-09-24 18:28:00 +000032634
32635cat >>confdefs.h <<\_ACEOF
32636#define HAVE_GLOBAL_HASH_SET 1
32637_ACEOF
32638
32639 else
32640
32641cat >>confdefs.h <<\_ACEOF
32642#define HAVE_GLOBAL_HASH_SET 0
32643_ACEOF
32644
Brian Gaeke90583492003-11-10 03:06:28 +000032645 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000032646
Reid Spencera773bd52006-08-04 18:18:08 +000032647{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
32648echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032649if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32651else
32652
Reid Spencera773bd52006-08-04 18:18:08 +000032653 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032654ac_cpp='$CXXCPP $CPPFLAGS'
32655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32658
32659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032660/* confdefs.h. */
32661_ACEOF
32662cat confdefs.h >>conftest.$ac_ext
32663cat >>conftest.$ac_ext <<_ACEOF
32664/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032665#include <iterator>
32666#ifdef HAVE_NAMESPACES
32667using namespace std;
32668#endif
John Criswell7a73b802003-06-30 21:59:07 +000032669int
32670main ()
32671{
32672iterator<int,int,int> t; return 0;
32673 ;
32674 return 0;
32675}
32676_ACEOF
32677rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032678if { (ac_try="$ac_compile"
32679case "(($ac_try" in
32680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681 *) ac_try_echo=$ac_try;;
32682esac
32683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032685 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032686 grep -v '^ *+' conftest.er1 >conftest.err
32687 rm -f conftest.er1
32688 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032690 (exit $ac_status); } &&
32691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32692 { (case "(($ac_try" in
32693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32694 *) ac_try_echo=$ac_try;;
32695esac
32696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32697 (eval "$ac_try") 2>&5
32698 ac_status=$?
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try='test -s conftest.$ac_objext'
32702 { (case "(($ac_try" in
32703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32704 *) ac_try_echo=$ac_try;;
32705esac
32706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32707 (eval "$ac_try") 2>&5
32708 ac_status=$?
32709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32710 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032711 ac_cv_cxx_have_std_iterator=yes
32712else
32713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032714sed 's/^/| /' conftest.$ac_ext >&5
32715
Reid Spencera773bd52006-08-04 18:18:08 +000032716 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032717fi
Reid Spencera773bd52006-08-04 18:18:08 +000032718
32719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032720 ac_ext=c
32721ac_cpp='$CPP $CPPFLAGS'
32722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32724ac_compiler_gnu=$ac_cv_c_compiler_gnu
32725
32726
32727fi
Reid Spencera773bd52006-08-04 18:18:08 +000032728{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
32729echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032730if test "$ac_cv_cxx_have_std_iterator" = yes
32731then
John Criswell40468462004-09-24 21:19:06 +000032732
32733cat >>confdefs.h <<\_ACEOF
32734#define HAVE_STD_ITERATOR 1
32735_ACEOF
32736
32737else
32738
32739cat >>confdefs.h <<\_ACEOF
32740#define HAVE_STD_ITERATOR 0
32741_ACEOF
32742
John Criswell7a73b802003-06-30 21:59:07 +000032743fi
32744
Reid Spencera773bd52006-08-04 18:18:08 +000032745{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
32746echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032747if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32749else
32750
Reid Spencera773bd52006-08-04 18:18:08 +000032751 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032752ac_cpp='$CXXCPP $CPPFLAGS'
32753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32756
32757 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032758/* confdefs.h. */
32759_ACEOF
32760cat confdefs.h >>conftest.$ac_ext
32761cat >>conftest.$ac_ext <<_ACEOF
32762/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032763#include <iterator>
32764#ifdef HAVE_NAMESPACES
32765using namespace std;
32766#endif
John Criswell7a73b802003-06-30 21:59:07 +000032767int
32768main ()
32769{
John Criswellc78022e2003-07-29 19:11:58 +000032770bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032771 ;
32772 return 0;
32773}
32774_ACEOF
32775rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032776if { (ac_try="$ac_compile"
32777case "(($ac_try" in
32778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779 *) ac_try_echo=$ac_try;;
32780esac
32781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032783 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032784 grep -v '^ *+' conftest.er1 >conftest.err
32785 rm -f conftest.er1
32786 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032788 (exit $ac_status); } &&
32789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32790 { (case "(($ac_try" in
32791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32792 *) ac_try_echo=$ac_try;;
32793esac
32794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32795 (eval "$ac_try") 2>&5
32796 ac_status=$?
32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32798 (exit $ac_status); }; } &&
32799 { ac_try='test -s conftest.$ac_objext'
32800 { (case "(($ac_try" in
32801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32802 *) ac_try_echo=$ac_try;;
32803esac
32804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32805 (eval "$ac_try") 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032809 ac_cv_cxx_have_bi_iterator=yes
32810else
32811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032812sed 's/^/| /' conftest.$ac_ext >&5
32813
Reid Spencera773bd52006-08-04 18:18:08 +000032814 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032815fi
Reid Spencera773bd52006-08-04 18:18:08 +000032816
32817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032818 ac_ext=c
32819ac_cpp='$CPP $CPPFLAGS'
32820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32822ac_compiler_gnu=$ac_cv_c_compiler_gnu
32823
32824
32825fi
Reid Spencera773bd52006-08-04 18:18:08 +000032826{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
32827echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032828if test "$ac_cv_cxx_have_bi_iterator" = yes
32829then
John Criswell40468462004-09-24 21:19:06 +000032830
32831cat >>confdefs.h <<\_ACEOF
32832#define HAVE_BI_ITERATOR 1
32833_ACEOF
32834
32835else
32836
32837cat >>confdefs.h <<\_ACEOF
32838#define HAVE_BI_ITERATOR 0
32839_ACEOF
32840
John Criswell7a73b802003-06-30 21:59:07 +000032841fi
32842
Reid Spencera773bd52006-08-04 18:18:08 +000032843{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32844echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032845if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847else
32848
Reid Spencera773bd52006-08-04 18:18:08 +000032849 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032850ac_cpp='$CXXCPP $CPPFLAGS'
32851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32854
32855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032856/* confdefs.h. */
32857_ACEOF
32858cat confdefs.h >>conftest.$ac_ext
32859cat >>conftest.$ac_ext <<_ACEOF
32860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032861#include <iterator>
32862#ifdef HAVE_NAMESPACES
32863using namespace std;
32864#endif
John Criswell7a73b802003-06-30 21:59:07 +000032865int
32866main ()
32867{
John Criswellc78022e2003-07-29 19:11:58 +000032868forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032869 ;
32870 return 0;
32871}
32872_ACEOF
32873rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032874if { (ac_try="$ac_compile"
32875case "(($ac_try" in
32876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877 *) ac_try_echo=$ac_try;;
32878esac
32879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032882 grep -v '^ *+' conftest.er1 >conftest.err
32883 rm -f conftest.er1
32884 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032886 (exit $ac_status); } &&
32887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32888 { (case "(($ac_try" in
32889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890 *) ac_try_echo=$ac_try;;
32891esac
32892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32893 (eval "$ac_try") 2>&5
32894 ac_status=$?
32895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32896 (exit $ac_status); }; } &&
32897 { ac_try='test -s conftest.$ac_objext'
32898 { (case "(($ac_try" in
32899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32900 *) ac_try_echo=$ac_try;;
32901esac
32902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32903 (eval "$ac_try") 2>&5
32904 ac_status=$?
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032907 ac_cv_cxx_have_fwd_iterator=yes
32908else
32909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032910sed 's/^/| /' conftest.$ac_ext >&5
32911
Reid Spencera773bd52006-08-04 18:18:08 +000032912 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032913fi
Reid Spencera773bd52006-08-04 18:18:08 +000032914
32915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032916 ac_ext=c
32917ac_cpp='$CPP $CPPFLAGS'
32918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32920ac_compiler_gnu=$ac_cv_c_compiler_gnu
32921
32922
32923fi
Reid Spencera773bd52006-08-04 18:18:08 +000032924{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32925echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032926if test "$ac_cv_cxx_have_fwd_iterator" = yes
32927then
John Criswell40468462004-09-24 21:19:06 +000032928
32929cat >>confdefs.h <<\_ACEOF
32930#define HAVE_FWD_ITERATOR 1
32931_ACEOF
32932
32933else
32934
32935cat >>confdefs.h <<\_ACEOF
32936#define HAVE_FWD_ITERATOR 0
32937_ACEOF
32938
John Criswell7a73b802003-06-30 21:59:07 +000032939fi
32940
32941
Reid Spencera773bd52006-08-04 18:18:08 +000032942{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32943echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032944if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32945 echo $ECHO_N "(cached) $ECHO_C" >&6
32946else
Reid Spencera773bd52006-08-04 18:18:08 +000032947 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032948ac_cpp='$CXXCPP $CPPFLAGS'
32949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32952
Reid Spencerabec8f92004-10-27 23:03:44 +000032953 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032954/* confdefs.h. */
32955_ACEOF
32956cat confdefs.h >>conftest.$ac_ext
32957cat >>conftest.$ac_ext <<_ACEOF
32958/* end confdefs.h. */
32959#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032960int
32961main ()
32962{
32963float f; isnan(f);
32964 ;
32965 return 0;
32966}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032967_ACEOF
32968rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032969if { (ac_try="$ac_compile"
32970case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32973esac
32974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32975 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032977 grep -v '^ *+' conftest.er1 >conftest.err
32978 rm -f conftest.er1
32979 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000032981 (exit $ac_status); } &&
32982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32983 { (case "(($ac_try" in
32984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32985 *) ac_try_echo=$ac_try;;
32986esac
32987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32988 (eval "$ac_try") 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; } &&
32992 { ac_try='test -s conftest.$ac_objext'
32993 { (case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32996esac
32997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_try") 2>&5
32999 ac_status=$?
33000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033002 ac_cv_func_isnan_in_math_h=yes
33003else
33004 echo "$as_me: failed program was:" >&5
33005sed 's/^/| /' conftest.$ac_ext >&5
33006
Reid Spencera773bd52006-08-04 18:18:08 +000033007 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033008fi
Reid Spencera773bd52006-08-04 18:18:08 +000033009
33010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033011 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033012ac_cpp='$CPP $CPPFLAGS'
33013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33015ac_compiler_gnu=$ac_cv_c_compiler_gnu
33016
33017fi
Reid Spencera773bd52006-08-04 18:18:08 +000033018{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
33019echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033020
33021
33022if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033023
33024cat >>confdefs.h <<\_ACEOF
33025#define HAVE_ISNAN_IN_MATH_H 1
33026_ACEOF
33027
Reid Spencerabec8f92004-10-27 23:03:44 +000033028fi
33029
Reid Spencera773bd52006-08-04 18:18:08 +000033030{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
33031echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033032if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
33033 echo $ECHO_N "(cached) $ECHO_C" >&6
33034else
Reid Spencera773bd52006-08-04 18:18:08 +000033035 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033036ac_cpp='$CXXCPP $CPPFLAGS'
33037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33040
Reid Spencerabec8f92004-10-27 23:03:44 +000033041 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033042/* confdefs.h. */
33043_ACEOF
33044cat confdefs.h >>conftest.$ac_ext
33045cat >>conftest.$ac_ext <<_ACEOF
33046/* end confdefs.h. */
33047#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033048int
33049main ()
33050{
33051float f; isnan(f);
33052 ;
33053 return 0;
33054}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033055_ACEOF
33056rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033057if { (ac_try="$ac_compile"
33058case "(($ac_try" in
33059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33060 *) ac_try_echo=$ac_try;;
33061esac
33062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33063 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033064 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033065 grep -v '^ *+' conftest.er1 >conftest.err
33066 rm -f conftest.er1
33067 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033069 (exit $ac_status); } &&
33070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33071 { (case "(($ac_try" in
33072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33073 *) ac_try_echo=$ac_try;;
33074esac
33075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33076 (eval "$ac_try") 2>&5
33077 ac_status=$?
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (case "(($ac_try" in
33082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33083 *) ac_try_echo=$ac_try;;
33084esac
33085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33086 (eval "$ac_try") 2>&5
33087 ac_status=$?
33088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33089 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033090 ac_cv_func_isnan_in_cmath=yes
33091else
33092 echo "$as_me: failed program was:" >&5
33093sed 's/^/| /' conftest.$ac_ext >&5
33094
Reid Spencera773bd52006-08-04 18:18:08 +000033095 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033096fi
Reid Spencera773bd52006-08-04 18:18:08 +000033097
33098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033099 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033100ac_cpp='$CPP $CPPFLAGS'
33101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33103ac_compiler_gnu=$ac_cv_c_compiler_gnu
33104
33105fi
Reid Spencera773bd52006-08-04 18:18:08 +000033106{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
33107echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033108
33109if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033110
33111cat >>confdefs.h <<\_ACEOF
33112#define HAVE_ISNAN_IN_CMATH 1
33113_ACEOF
33114
Reid Spencerabec8f92004-10-27 23:03:44 +000033115fi
33116
Reid Spencera773bd52006-08-04 18:18:08 +000033117{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
33118echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033119if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121else
Reid Spencera773bd52006-08-04 18:18:08 +000033122 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033123ac_cpp='$CXXCPP $CPPFLAGS'
33124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33127
Reid Spencerabec8f92004-10-27 23:03:44 +000033128 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
33134#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033135int
33136main ()
33137{
33138float f; std::isnan(f);
33139 ;
33140 return 0;
33141}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033142_ACEOF
33143rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033144if { (ac_try="$ac_compile"
33145case "(($ac_try" in
33146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33147 *) ac_try_echo=$ac_try;;
33148esac
33149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33150 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033156 (exit $ac_status); } &&
33157 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33158 { (case "(($ac_try" in
33159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33160 *) ac_try_echo=$ac_try;;
33161esac
33162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33163 (eval "$ac_try") 2>&5
33164 ac_status=$?
33165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166 (exit $ac_status); }; } &&
33167 { ac_try='test -s conftest.$ac_objext'
33168 { (case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33171esac
33172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_try") 2>&5
33174 ac_status=$?
33175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 (exit $ac_status); }; }; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033177 ac_cv_func_std_isnan_in_cmath=yes
33178else
33179 echo "$as_me: failed program was:" >&5
33180sed 's/^/| /' conftest.$ac_ext >&5
33181
Reid Spencera773bd52006-08-04 18:18:08 +000033182 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033183fi
Reid Spencera773bd52006-08-04 18:18:08 +000033184
33185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033186 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033187ac_cpp='$CPP $CPPFLAGS'
33188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33190ac_compiler_gnu=$ac_cv_c_compiler_gnu
33191
33192fi
Reid Spencera773bd52006-08-04 18:18:08 +000033193{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
33194echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033195
33196if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033197
33198cat >>confdefs.h <<\_ACEOF
33199#define HAVE_STD_ISNAN_IN_CMATH 1
33200_ACEOF
33201
Reid Spencerabec8f92004-10-27 23:03:44 +000033202fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000033203
33204
Reid Spencera773bd52006-08-04 18:18:08 +000033205{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
33206echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033207if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
33208 echo $ECHO_N "(cached) $ECHO_C" >&6
33209else
Reid Spencera773bd52006-08-04 18:18:08 +000033210 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033211ac_cpp='$CXXCPP $CPPFLAGS'
33212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33215
Reid Spencerabec8f92004-10-27 23:03:44 +000033216 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033217/* confdefs.h. */
33218_ACEOF
33219cat confdefs.h >>conftest.$ac_ext
33220cat >>conftest.$ac_ext <<_ACEOF
33221/* end confdefs.h. */
33222#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033223int
33224main ()
33225{
33226float f; isinf(f);
33227 ;
33228 return 0;
33229}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033230_ACEOF
33231rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033232if { (ac_try="$ac_compile"
33233case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33236esac
33237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033240 grep -v '^ *+' conftest.er1 >conftest.err
33241 rm -f conftest.er1
33242 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033244 (exit $ac_status); } &&
33245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33246 { (case "(($ac_try" in
33247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33248 *) ac_try_echo=$ac_try;;
33249esac
33250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33251 (eval "$ac_try") 2>&5
33252 ac_status=$?
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); }; } &&
33255 { ac_try='test -s conftest.$ac_objext'
33256 { (case "(($ac_try" in
33257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33258 *) ac_try_echo=$ac_try;;
33259esac
33260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33261 (eval "$ac_try") 2>&5
33262 ac_status=$?
33263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33264 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033265 ac_cv_func_isinf_in_math_h=yes
33266else
33267 echo "$as_me: failed program was:" >&5
33268sed 's/^/| /' conftest.$ac_ext >&5
33269
Reid Spencera773bd52006-08-04 18:18:08 +000033270 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033271fi
Reid Spencera773bd52006-08-04 18:18:08 +000033272
33273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033274 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033275ac_cpp='$CPP $CPPFLAGS'
33276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33278ac_compiler_gnu=$ac_cv_c_compiler_gnu
33279
33280fi
Reid Spencera773bd52006-08-04 18:18:08 +000033281{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
33282echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033283
33284if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033285
33286cat >>confdefs.h <<\_ACEOF
33287#define HAVE_ISINF_IN_MATH_H 1
33288_ACEOF
33289
Reid Spencerabec8f92004-10-27 23:03:44 +000033290fi
33291
Reid Spencera773bd52006-08-04 18:18:08 +000033292{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
33293echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033294if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
33295 echo $ECHO_N "(cached) $ECHO_C" >&6
33296else
Reid Spencera773bd52006-08-04 18:18:08 +000033297 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033298ac_cpp='$CXXCPP $CPPFLAGS'
33299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33302
Reid Spencerabec8f92004-10-27 23:03:44 +000033303 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033304/* confdefs.h. */
33305_ACEOF
33306cat confdefs.h >>conftest.$ac_ext
33307cat >>conftest.$ac_ext <<_ACEOF
33308/* end confdefs.h. */
33309#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033310int
33311main ()
33312{
33313float f; isinf(f);
33314 ;
33315 return 0;
33316}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033317_ACEOF
33318rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033319if { (ac_try="$ac_compile"
33320case "(($ac_try" in
33321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33322 *) ac_try_echo=$ac_try;;
33323esac
33324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33325 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033327 grep -v '^ *+' conftest.er1 >conftest.err
33328 rm -f conftest.er1
33329 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033331 (exit $ac_status); } &&
33332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33333 { (case "(($ac_try" in
33334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335 *) ac_try_echo=$ac_try;;
33336esac
33337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338 (eval "$ac_try") 2>&5
33339 ac_status=$?
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); }; } &&
33342 { ac_try='test -s conftest.$ac_objext'
33343 { (case "(($ac_try" in
33344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33345 *) ac_try_echo=$ac_try;;
33346esac
33347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33348 (eval "$ac_try") 2>&5
33349 ac_status=$?
33350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33351 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033352 ac_cv_func_isinf_in_cmath=yes
33353else
33354 echo "$as_me: failed program was:" >&5
33355sed 's/^/| /' conftest.$ac_ext >&5
33356
Reid Spencera773bd52006-08-04 18:18:08 +000033357 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033358fi
Reid Spencera773bd52006-08-04 18:18:08 +000033359
33360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033361 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033362ac_cpp='$CPP $CPPFLAGS'
33363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33365ac_compiler_gnu=$ac_cv_c_compiler_gnu
33366
33367fi
Reid Spencera773bd52006-08-04 18:18:08 +000033368{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
33369echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033370
33371if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033372
33373cat >>confdefs.h <<\_ACEOF
33374#define HAVE_ISINF_IN_CMATH 1
33375_ACEOF
33376
Reid Spencerabec8f92004-10-27 23:03:44 +000033377fi
33378
Reid Spencera773bd52006-08-04 18:18:08 +000033379{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
33380echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000033381if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
33382 echo $ECHO_N "(cached) $ECHO_C" >&6
33383else
Reid Spencera773bd52006-08-04 18:18:08 +000033384 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000033385ac_cpp='$CXXCPP $CPPFLAGS'
33386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33389
Reid Spencerabec8f92004-10-27 23:03:44 +000033390 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000033391/* confdefs.h. */
33392_ACEOF
33393cat confdefs.h >>conftest.$ac_ext
33394cat >>conftest.$ac_ext <<_ACEOF
33395/* end confdefs.h. */
33396#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000033397int
33398main ()
33399{
33400float f; std::isinf(f)}
33401 ;
33402 return 0;
33403}
Brian Gaeke52a551d2004-07-21 03:14:12 +000033404_ACEOF
33405rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033406if { (ac_try="$ac_compile"
33407case "(($ac_try" in
33408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33409 *) ac_try_echo=$ac_try;;
33410esac
33411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33412 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000033413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033414 grep -v '^ *+' conftest.er1 >conftest.err
33415 rm -f conftest.er1
33416 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000033417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033418 (exit $ac_status); } &&
33419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33420 { (case "(($ac_try" in
33421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422 *) ac_try_echo=$ac_try;;
33423esac
33424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425 (eval "$ac_try") 2>&5
33426 ac_status=$?
33427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33428 (exit $ac_status); }; } &&
33429 { ac_try='test -s conftest.$ac_objext'
33430 { (case "(($ac_try" in
33431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33432 *) ac_try_echo=$ac_try;;
33433esac
33434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33435 (eval "$ac_try") 2>&5
33436 ac_status=$?
33437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33438 (exit $ac_status); }; }; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033439 ac_cv_func_std_isinf_in_cmath=yes
33440else
33441 echo "$as_me: failed program was:" >&5
33442sed 's/^/| /' conftest.$ac_ext >&5
33443
Reid Spencera773bd52006-08-04 18:18:08 +000033444 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000033445fi
Reid Spencera773bd52006-08-04 18:18:08 +000033446
33447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033448 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000033449ac_cpp='$CPP $CPPFLAGS'
33450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33452ac_compiler_gnu=$ac_cv_c_compiler_gnu
33453
33454fi
Reid Spencera773bd52006-08-04 18:18:08 +000033455{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
33456echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033457
33458if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000033459
33460cat >>confdefs.h <<\_ACEOF
33461#define HAVE_STD_ISINF_IN_CMATH 1
33462_ACEOF
33463
Reid Spencerabec8f92004-10-27 23:03:44 +000033464fi
33465
Reid Spencera773bd52006-08-04 18:18:08 +000033466{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
33467echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000033468if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
33469 echo $ECHO_N "(cached) $ECHO_C" >&6
33470else
Reid Spencera773bd52006-08-04 18:18:08 +000033471 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000033472ac_cpp='$CXXCPP $CPPFLAGS'
33473ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33474ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33475ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33476
Reid Spencerabec8f92004-10-27 23:03:44 +000033477 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000033478/* confdefs.h. */
33479_ACEOF
33480cat confdefs.h >>conftest.$ac_ext
33481cat >>conftest.$ac_ext <<_ACEOF
33482/* end confdefs.h. */
33483#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000033484int
33485main ()
33486{
33487float f; finite(f);
33488 ;
33489 return 0;
33490}
Brian Gaeked59a6472004-07-21 03:33:58 +000033491_ACEOF
33492rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033493if { (ac_try="$ac_compile"
33494case "(($ac_try" in
33495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33496 *) ac_try_echo=$ac_try;;
33497esac
33498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33499 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000033500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033501 grep -v '^ *+' conftest.er1 >conftest.err
33502 rm -f conftest.er1
33503 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000033504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033505 (exit $ac_status); } &&
33506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
33507 { (case "(($ac_try" in
33508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33509 *) ac_try_echo=$ac_try;;
33510esac
33511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33512 (eval "$ac_try") 2>&5
33513 ac_status=$?
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); }; } &&
33516 { ac_try='test -s conftest.$ac_objext'
33517 { (case "(($ac_try" in
33518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33519 *) ac_try_echo=$ac_try;;
33520esac
33521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33522 (eval "$ac_try") 2>&5
33523 ac_status=$?
33524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33525 (exit $ac_status); }; }; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033526 ac_cv_func_finite_in_ieeefp_h=yes
33527else
33528 echo "$as_me: failed program was:" >&5
33529sed 's/^/| /' conftest.$ac_ext >&5
33530
Reid Spencera773bd52006-08-04 18:18:08 +000033531 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000033532fi
Reid Spencera773bd52006-08-04 18:18:08 +000033533
33534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000033535 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000033536ac_cpp='$CPP $CPPFLAGS'
33537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33539ac_compiler_gnu=$ac_cv_c_compiler_gnu
33540
33541fi
Reid Spencera773bd52006-08-04 18:18:08 +000033542{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
33543echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000033544
Brian Gaeke6802b552004-10-28 05:06:45 +000033545if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000033546
33547cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000033548#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000033549_ACEOF
33550
Reid Spencerabec8f92004-10-27 23:03:44 +000033551fi
33552
33553
33554
Reid Spencer30fe5262007-01-20 07:48:49 +000033555if test "$llvm_cv_platform_type" = "Unix" ; then
John Criswell7a73b802003-06-30 21:59:07 +000033556
33557
33558for ac_header in stdlib.h unistd.h
33559do
33560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33564if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033565 echo $ECHO_N "(cached) $ECHO_C" >&6
33566fi
Reid Spencera773bd52006-08-04 18:18:08 +000033567ac_res=`eval echo '${'$as_ac_Header'}'`
33568 { echo "$as_me:$LINENO: result: $ac_res" >&5
33569echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033570else
33571 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000033572{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
33573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033574cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033575/* confdefs.h. */
33576_ACEOF
33577cat confdefs.h >>conftest.$ac_ext
33578cat >>conftest.$ac_ext <<_ACEOF
33579/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033580$ac_includes_default
33581#include <$ac_header>
33582_ACEOF
33583rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000033584if { (ac_try="$ac_compile"
33585case "(($ac_try" in
33586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33587 *) ac_try_echo=$ac_try;;
33588esac
33589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33590 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033591 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033592 grep -v '^ *+' conftest.er1 >conftest.err
33593 rm -f conftest.er1
33594 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033596 (exit $ac_status); } &&
33597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33598 { (case "(($ac_try" in
33599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33600 *) ac_try_echo=$ac_try;;
33601esac
33602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33603 (eval "$ac_try") 2>&5
33604 ac_status=$?
33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 (exit $ac_status); }; } &&
33607 { ac_try='test -s conftest.$ac_objext'
33608 { (case "(($ac_try" in
33609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33610 *) ac_try_echo=$ac_try;;
33611esac
33612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33613 (eval "$ac_try") 2>&5
33614 ac_status=$?
33615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33616 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033617 ac_header_compiler=yes
33618else
33619 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033620sed 's/^/| /' conftest.$ac_ext >&5
33621
Reid Spencera773bd52006-08-04 18:18:08 +000033622 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000033623fi
Reid Spencera773bd52006-08-04 18:18:08 +000033624
33625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33626{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33627echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033628
33629# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000033630{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
33631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033632cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033633/* confdefs.h. */
33634_ACEOF
33635cat confdefs.h >>conftest.$ac_ext
33636cat >>conftest.$ac_ext <<_ACEOF
33637/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033638#include <$ac_header>
33639_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033640if { (ac_try="$ac_cpp conftest.$ac_ext"
33641case "(($ac_try" in
33642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33643 *) ac_try_echo=$ac_try;;
33644esac
33645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033647 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000033648 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000033649 rm -f conftest.er1
33650 cat conftest.err >&5
33651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033652 (exit $ac_status); } >/dev/null; then
33653 if test -s conftest.err; then
33654 ac_cpp_err=$ac_c_preproc_warn_flag
33655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33656 else
33657 ac_cpp_err=
33658 fi
33659else
33660 ac_cpp_err=yes
33661fi
33662if test -z "$ac_cpp_err"; then
John Criswell7a73b802003-06-30 21:59:07 +000033663 ac_header_preproc=yes
33664else
33665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033666sed 's/^/| /' conftest.$ac_ext >&5
33667
John Criswell7a73b802003-06-30 21:59:07 +000033668 ac_header_preproc=no
33669fi
Reid Spencera773bd52006-08-04 18:18:08 +000033670
John Criswell7a73b802003-06-30 21:59:07 +000033671rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000033672{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33673echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033674
33675# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033676case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33677 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000033678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33682 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000033683 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000033684 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000033685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000033693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000033695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000033697 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000033698## ----------------------------------- ##
33699## Report this to llvmbugs@cs.uiuc.edu ##
33700## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000033701_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000033702 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000033703 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033704esac
Reid Spencera773bd52006-08-04 18:18:08 +000033705{ echo "$as_me:$LINENO: checking for $ac_header" >&5
33706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033710 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000033711fi
Reid Spencera773bd52006-08-04 18:18:08 +000033712ac_res=`eval echo '${'$as_ac_Header'}'`
33713 { echo "$as_me:$LINENO: result: $ac_res" >&5
33714echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033715
33716fi
33717if test `eval echo '${'$as_ac_Header'}'` = yes; then
33718 cat >>confdefs.h <<_ACEOF
33719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33720_ACEOF
33721
33722fi
33723
33724done
33725
33726
33727for ac_func in getpagesize
33728do
33729as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000033730{ echo "$as_me:$LINENO: checking for $ac_func" >&5
33731echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
33732if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033733 echo $ECHO_N "(cached) $ECHO_C" >&6
33734else
33735 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033736/* confdefs.h. */
33737_ACEOF
33738cat confdefs.h >>conftest.$ac_ext
33739cat >>conftest.$ac_ext <<_ACEOF
33740/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033741/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33743#define $ac_func innocuous_$ac_func
33744
John Criswell7a73b802003-06-30 21:59:07 +000033745/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033746 which can conflict with char $ac_func (); below.
33747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33748 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033749
John Criswell0c38eaf2003-09-10 15:17:25 +000033750#ifdef __STDC__
33751# include <limits.h>
33752#else
33753# include <assert.h>
33754#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033755
33756#undef $ac_func
33757
Reid Spencera773bd52006-08-04 18:18:08 +000033758/* Override any GCC internal prototype to avoid an error.
33759 Use char because int might match the return type of a GCC
33760 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033761#ifdef __cplusplus
33762extern "C"
33763#endif
John Criswell7a73b802003-06-30 21:59:07 +000033764char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033765/* The GNU C library defines this for functions which it implements
33766 to always fail with ENOSYS. Some functions are actually named
33767 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033768#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000033769choke me
John Criswell7a73b802003-06-30 21:59:07 +000033770#endif
33771
John Criswell0c38eaf2003-09-10 15:17:25 +000033772int
33773main ()
33774{
Reid Spencera773bd52006-08-04 18:18:08 +000033775return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000033776 ;
33777 return 0;
33778}
33779_ACEOF
33780rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033781if { (ac_try="$ac_link"
33782case "(($ac_try" in
33783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33784 *) ac_try_echo=$ac_try;;
33785esac
33786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33787 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033789 grep -v '^ *+' conftest.er1 >conftest.err
33790 rm -f conftest.er1
33791 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033793 (exit $ac_status); } &&
33794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33795 { (case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33798esac
33799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33800 (eval "$ac_try") 2>&5
33801 ac_status=$?
33802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33803 (exit $ac_status); }; } &&
33804 { ac_try='test -s conftest$ac_exeext'
33805 { (case "(($ac_try" in
33806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33807 *) ac_try_echo=$ac_try;;
33808esac
33809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33810 (eval "$ac_try") 2>&5
33811 ac_status=$?
33812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000033814 eval "$as_ac_var=yes"
33815else
33816 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033817sed 's/^/| /' conftest.$ac_ext >&5
33818
Reid Spencera773bd52006-08-04 18:18:08 +000033819 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000033820fi
Reid Spencera773bd52006-08-04 18:18:08 +000033821
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033822rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033823 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033824fi
Reid Spencera773bd52006-08-04 18:18:08 +000033825ac_res=`eval echo '${'$as_ac_var'}'`
33826 { echo "$as_me:$LINENO: result: $ac_res" >&5
33827echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033828if test `eval echo '${'$as_ac_var'}'` = yes; then
33829 cat >>confdefs.h <<_ACEOF
33830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33831_ACEOF
33832
33833fi
33834done
33835
Reid Spencera773bd52006-08-04 18:18:08 +000033836{ echo "$as_me:$LINENO: checking for working mmap" >&5
33837echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033838if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33839 echo $ECHO_N "(cached) $ECHO_C" >&6
33840else
33841 if test "$cross_compiling" = yes; then
33842 ac_cv_func_mmap_fixed_mapped=no
33843else
33844 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033845/* confdefs.h. */
33846_ACEOF
33847cat confdefs.h >>conftest.$ac_ext
33848cat >>conftest.$ac_ext <<_ACEOF
33849/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033850$ac_includes_default
33851/* malloc might have been renamed as rpl_malloc. */
33852#undef malloc
33853
33854/* Thanks to Mike Haertel and Jim Avera for this test.
33855 Here is a matrix of mmap possibilities:
33856 mmap private not fixed
33857 mmap private fixed at somewhere currently unmapped
33858 mmap private fixed at somewhere already mapped
33859 mmap shared not fixed
33860 mmap shared fixed at somewhere currently unmapped
33861 mmap shared fixed at somewhere already mapped
33862 For private mappings, we should verify that changes cannot be read()
33863 back from the file, nor mmap's back from the file at a different
33864 address. (There have been systems where private was not correctly
33865 implemented like the infamous i386 svr4.0, and systems where the
33866 VM page cache was not coherent with the file system buffer cache
33867 like early versions of FreeBSD and possibly contemporary NetBSD.)
33868 For shared mappings, we should conversely verify that changes get
33869 propagated back to all the places they're supposed to be.
33870
33871 Grep wants private fixed already mapped.
33872 The main things grep needs to know about mmap are:
33873 * does it exist and is it safe to write into the mmap'd area
33874 * how to use it (BSD variants) */
33875
33876#include <fcntl.h>
33877#include <sys/mman.h>
33878
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033879#if !STDC_HEADERS && !HAVE_STDLIB_H
John Criswell7a73b802003-06-30 21:59:07 +000033880char *malloc ();
33881#endif
33882
33883/* This mess was copied from the GNU getpagesize.h. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033884#if !HAVE_GETPAGESIZE
John Criswell7a73b802003-06-30 21:59:07 +000033885/* Assume that all systems that can run configure have sys/param.h. */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033886# if !HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033887# define HAVE_SYS_PARAM_H 1
33888# endif
33889
33890# ifdef _SC_PAGESIZE
33891# define getpagesize() sysconf(_SC_PAGESIZE)
33892# else /* no _SC_PAGESIZE */
Gordon Henriksen40e7f192008-10-22 12:40:55 +000033893# if HAVE_SYS_PARAM_H
John Criswell7a73b802003-06-30 21:59:07 +000033894# include <sys/param.h>
33895# ifdef EXEC_PAGESIZE
33896# define getpagesize() EXEC_PAGESIZE
33897# else /* no EXEC_PAGESIZE */
33898# ifdef NBPG
33899# define getpagesize() NBPG * CLSIZE
33900# ifndef CLSIZE
33901# define CLSIZE 1
33902# endif /* no CLSIZE */
33903# else /* no NBPG */
33904# ifdef NBPC
33905# define getpagesize() NBPC
33906# else /* no NBPC */
33907# ifdef PAGESIZE
33908# define getpagesize() PAGESIZE
33909# endif /* PAGESIZE */
33910# endif /* no NBPC */
33911# endif /* no NBPG */
33912# endif /* no EXEC_PAGESIZE */
33913# else /* no HAVE_SYS_PARAM_H */
33914# define getpagesize() 8192 /* punt totally */
33915# endif /* no HAVE_SYS_PARAM_H */
33916# endif /* no _SC_PAGESIZE */
33917
33918#endif /* no HAVE_GETPAGESIZE */
33919
33920int
33921main ()
33922{
33923 char *data, *data2, *data3;
33924 int i, pagesize;
33925 int fd;
33926
33927 pagesize = getpagesize ();
33928
33929 /* First, make a file with some known garbage in it. */
33930 data = (char *) malloc (pagesize);
33931 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033932 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033933 for (i = 0; i < pagesize; ++i)
33934 *(data + i) = rand ();
33935 umask (0);
33936 fd = creat ("conftest.mmap", 0600);
33937 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033938 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033939 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033940 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033941 close (fd);
33942
33943 /* Next, try to mmap the file at a fixed address which already has
33944 something else allocated at it. If we can, also make sure that
33945 we see the same garbage. */
33946 fd = open ("conftest.mmap", O_RDWR);
33947 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033948 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033949 data2 = (char *) malloc (2 * pagesize);
33950 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033951 return 1;
33952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033955 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033956 for (i = 0; i < pagesize; ++i)
33957 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033958 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033959
33960 /* Finally, make sure that changes to the mapped area do not
33961 percolate back to the file as seen by read(). (This is a bug on
33962 some variants of i386 svr4.0.) */
33963 for (i = 0; i < pagesize; ++i)
33964 *(data2 + i) = *(data2 + i) + 1;
33965 data3 = (char *) malloc (pagesize);
33966 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033967 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033968 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033969 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033970 for (i = 0; i < pagesize; ++i)
33971 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033972 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033973 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033974 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033975}
33976_ACEOF
33977rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033978if { (ac_try="$ac_link"
33979case "(($ac_try" in
33980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33981 *) ac_try_echo=$ac_try;;
33982esac
33983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33984 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033985 ac_status=$?
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033988 { (case "(($ac_try" in
33989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33990 *) ac_try_echo=$ac_try;;
33991esac
33992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33993 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033994 ac_status=$?
33995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33996 (exit $ac_status); }; }; then
33997 ac_cv_func_mmap_fixed_mapped=yes
33998else
33999 echo "$as_me: program exited with status $ac_status" >&5
34000echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034001sed 's/^/| /' conftest.$ac_ext >&5
34002
John Criswell7a73b802003-06-30 21:59:07 +000034003( exit $ac_status )
34004ac_cv_func_mmap_fixed_mapped=no
34005fi
Reid Spencera773bd52006-08-04 18:18:08 +000034006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034007fi
Reid Spencera773bd52006-08-04 18:18:08 +000034008
34009
John Criswell7a73b802003-06-30 21:59:07 +000034010fi
Reid Spencera773bd52006-08-04 18:18:08 +000034011{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
34012echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034013if test $ac_cv_func_mmap_fixed_mapped = yes; then
34014
34015cat >>confdefs.h <<\_ACEOF
34016#define HAVE_MMAP 1
34017_ACEOF
34018
34019fi
34020rm -f conftest.mmap
34021
Reid Spencer30fe5262007-01-20 07:48:49 +000034022 { echo "$as_me:$LINENO: checking for mmap of files" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034023echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034024if test "${ac_cv_func_mmap_file+set}" = set; then
34025 echo $ECHO_N "(cached) $ECHO_C" >&6
34026else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034027 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000034028ac_cpp='$CPP $CPPFLAGS'
34029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34031ac_compiler_gnu=$ac_cv_c_compiler_gnu
34032
34033 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034034 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000034035else
34036 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034037
Reid Spencer777ce172004-09-20 04:09:56 +000034038 /* confdefs.h. */
34039_ACEOF
34040cat confdefs.h >>conftest.$ac_ext
34041cat >>conftest.$ac_ext <<_ACEOF
34042/* end confdefs.h. */
34043
John Criswell7a73b802003-06-30 21:59:07 +000034044#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000034045#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000034046#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000034047
34048int
34049main ()
34050{
John Criswell7a73b802003-06-30 21:59:07 +000034051
34052 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000034053 fd = creat ("foo",0777);
34054 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
34055 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000034056 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000034057 ;
34058 return 0;
34059}
John Criswell7a73b802003-06-30 21:59:07 +000034060_ACEOF
34061rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000034062if { (ac_try="$ac_link"
34063case "(($ac_try" in
34064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34065 *) ac_try_echo=$ac_try;;
34066esac
34067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34068 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034069 ac_status=$?
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000034072 { (case "(($ac_try" in
34073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34074 *) ac_try_echo=$ac_try;;
34075esac
34076eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34077 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000034078 ac_status=$?
34079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080 (exit $ac_status); }; }; then
34081 ac_cv_func_mmap_file=yes
34082else
34083 echo "$as_me: program exited with status $ac_status" >&5
34084echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000034085sed 's/^/| /' conftest.$ac_ext >&5
34086
John Criswell7a73b802003-06-30 21:59:07 +000034087( exit $ac_status )
34088ac_cv_func_mmap_file=no
34089fi
Reid Spencera773bd52006-08-04 18:18:08 +000034090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000034091fi
Reid Spencera773bd52006-08-04 18:18:08 +000034092
34093
John Criswell7a73b802003-06-30 21:59:07 +000034094 ac_ext=c
34095ac_cpp='$CPP $CPPFLAGS'
34096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34098ac_compiler_gnu=$ac_cv_c_compiler_gnu
34099
34100
34101fi
Reid Spencera773bd52006-08-04 18:18:08 +000034102{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
34103echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000034104if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000034105
34106cat >>confdefs.h <<\_ACEOF
34107#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000034108_ACEOF
34109
34110 MMAP_FILE=yes
34111
34112fi
34113
Reid Spencer30fe5262007-01-20 07:48:49 +000034114 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
Reid Spencera773bd52006-08-04 18:18:08 +000034115echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034116if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
34117 echo $ECHO_N "(cached) $ECHO_C" >&6
34118else
Reid Spencer582a23c2004-12-29 07:07:57 +000034119 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000034120 ac_cv_need_dev_zero_for_mmap=yes
34121 else
34122 ac_cv_need_dev_zero_for_mmap=no
34123 fi
34124
34125fi
Reid Spencera773bd52006-08-04 18:18:08 +000034126{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
34127echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000034128if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
34129
34130cat >>confdefs.h <<\_ACEOF
34131#define NEED_DEV_ZERO_FOR_MMAP 1
34132_ACEOF
34133
34134fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000034135
Reid Spencer30fe5262007-01-20 07:48:49 +000034136 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
34137 then
34138 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
Reid Spencer582a23c2004-12-29 07:07:57 +000034139echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034140 fi
34141 if test "$ac_cv_func_mmap_file" = "no"
34142 then
34143 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034144echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
Reid Spencer30fe5262007-01-20 07:48:49 +000034145 fi
John Criswellb13092b2003-07-22 21:00:24 +000034146fi
John Criswell7a73b802003-06-30 21:59:07 +000034147
34148
Reid Spencer9372f152007-07-30 20:13:24 +000034149
34150for ac_func in __dso_handle
34151do
34152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34153{ echo "$as_me:$LINENO: checking for $ac_func" >&5
34154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157else
34158 cat >conftest.$ac_ext <<_ACEOF
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
34164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34166#define $ac_func innocuous_$ac_func
34167
34168/* System header to define __stub macros and hopefully few prototypes,
34169 which can conflict with char $ac_func (); below.
34170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34171 <limits.h> exists even on freestanding compilers. */
34172
34173#ifdef __STDC__
34174# include <limits.h>
34175#else
34176# include <assert.h>
34177#endif
34178
34179#undef $ac_func
34180
34181/* Override any GCC internal prototype to avoid an error.
34182 Use char because int might match the return type of a GCC
34183 builtin and then its argument prototype would still apply. */
34184#ifdef __cplusplus
34185extern "C"
34186#endif
34187char $ac_func ();
34188/* The GNU C library defines this for functions which it implements
34189 to always fail with ENOSYS. Some functions are actually named
34190 something starting with __ and the normal name is an alias. */
34191#if defined __stub_$ac_func || defined __stub___$ac_func
34192choke me
34193#endif
34194
34195int
34196main ()
34197{
34198return $ac_func ();
34199 ;
34200 return 0;
34201}
34202_ACEOF
34203rm -f conftest.$ac_objext conftest$ac_exeext
34204if { (ac_try="$ac_link"
34205case "(($ac_try" in
34206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34207 *) ac_try_echo=$ac_try;;
34208esac
34209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34210 (eval "$ac_link") 2>conftest.er1
34211 ac_status=$?
34212 grep -v '^ *+' conftest.er1 >conftest.err
34213 rm -f conftest.er1
34214 cat conftest.err >&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034216 (exit $ac_status); } &&
34217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
34218 { (case "(($ac_try" in
34219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220 *) ac_try_echo=$ac_try;;
34221esac
34222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223 (eval "$ac_try") 2>&5
34224 ac_status=$?
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); }; } &&
34227 { ac_try='test -s conftest$ac_exeext'
34228 { (case "(($ac_try" in
34229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34230 *) ac_try_echo=$ac_try;;
34231esac
34232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34233 (eval "$ac_try") 2>&5
34234 ac_status=$?
34235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34236 (exit $ac_status); }; }; then
Reid Spencer9372f152007-07-30 20:13:24 +000034237 eval "$as_ac_var=yes"
34238else
34239 echo "$as_me: failed program was:" >&5
34240sed 's/^/| /' conftest.$ac_ext >&5
34241
34242 eval "$as_ac_var=no"
34243fi
34244
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034245rm -f core conftest.err conftest.$ac_objext \
Reid Spencer9372f152007-07-30 20:13:24 +000034246 conftest$ac_exeext conftest.$ac_ext
34247fi
34248ac_res=`eval echo '${'$as_ac_var'}'`
34249 { echo "$as_me:$LINENO: result: $ac_res" >&5
34250echo "${ECHO_T}$ac_res" >&6; }
34251if test `eval echo '${'$as_ac_var'}'` = yes; then
34252 cat >>confdefs.h <<_ACEOF
34253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34254_ACEOF
34255
34256fi
34257done
34258
34259
Reid Spencera773bd52006-08-04 18:18:08 +000034260{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
34261echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034262if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34264else
34265 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000034266if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034267 cp /dev/null conftest.c
Reid Spencer585e0882007-03-29 15:38:33 +000034268 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
34269 grep 'target datalayout =' > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034270 if test $? -eq 0 ; then
34271 llvm_cv_llvmgcc_sanity="yes"
34272 fi
34273 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000034274fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034275fi
Reid Spencera773bd52006-08-04 18:18:08 +000034276{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
34277echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034278
34279if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer0d238182007-04-21 21:28:52 +000034280 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
34281echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
Reid Spencer502935f2004-12-22 05:56:56 +000034282 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034283 LLVMCC1=$llvmcc1path
34284
Reid Spencer502935f2004-12-22 05:56:56 +000034285 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034286 LLVMCC1PLUS=$llvmcc1pluspath
34287
Reid Spencer502935f2004-12-22 05:56:56 +000034288 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
34289 LLVMGCCDIR=$llvmgccdir
34290
Reid Spencer282d8c12006-12-21 22:55:41 +000034291 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
34292 LLVMGCCLIBEXEC=$llvmgcclibexec
34293
Reid Spencerb5d75b82006-05-09 00:31:01 +000034294 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000034295 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
34296 LLVMGCC_VERSION=$llvmgccversion
34297
34298 LLVMGCC_MAJVERS=$llvmgccmajvers
34299
Tanya Lattnerf85e74c2008-10-07 22:21:03 +000034300 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
Reid Spencer0d238182007-04-21 21:28:52 +000034301 LLVMGCC_LANGS=$llvmgcclangs
34302
34303 { echo "$as_me:$LINENO: result: ok" >&5
34304echo "${ECHO_T}ok" >&6; }
Brian Gaekef3b24102003-11-16 18:38:14 +000034305fi
34306
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034307SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000034308
34309
Reid Spencere9de0912004-08-20 09:03:57 +000034310# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034311# information into substitutions that will end up in Makefile.config.in
34312# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000034313if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000034314 prefix="/usr/local"
34315fi
Reid Spencere9de0912004-08-20 09:03:57 +000034316eval LLVM_PREFIX="${prefix}";
34317eval LLVM_BINDIR="${prefix}/bin";
34318eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000034319eval LLVM_DATADIR="${prefix}/share/llvm";
34320eval LLVM_DOCSDIR="${prefix}/docs/llvm";
34321eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000034322eval LLVM_INCLUDEDIR="${prefix}/include";
34323eval LLVM_INFODIR="${prefix}/info";
34324eval LLVM_MANDIR="${prefix}/man";
34325LLVM_CONFIGTIME=`date`
34326
34327
34328
34329
34330
34331
34332
34333
34334
34335
34336
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034337# Place the various directores into the config.h file as #defines so that we
34338# can know about the installation paths within LLVM.
34339
Reid Spencere9de0912004-08-20 09:03:57 +000034340cat >>confdefs.h <<_ACEOF
34341#define LLVM_PREFIX "$LLVM_PREFIX"
34342_ACEOF
34343
34344
34345cat >>confdefs.h <<_ACEOF
34346#define LLVM_BINDIR "$LLVM_BINDIR"
34347_ACEOF
34348
34349
34350cat >>confdefs.h <<_ACEOF
34351#define LLVM_LIBDIR "$LLVM_LIBDIR"
34352_ACEOF
34353
34354
34355cat >>confdefs.h <<_ACEOF
34356#define LLVM_DATADIR "$LLVM_DATADIR"
34357_ACEOF
34358
34359
34360cat >>confdefs.h <<_ACEOF
Gordon Henriksen0abe1162007-10-03 12:07:14 +000034361#define LLVM_DOCSDIR "$LLVM_DOCSDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034362_ACEOF
34363
34364
34365cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000034366#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000034367_ACEOF
34368
34369
34370cat >>confdefs.h <<_ACEOF
34371#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
34372_ACEOF
34373
34374
34375cat >>confdefs.h <<_ACEOF
34376#define LLVM_INFODIR "$LLVM_INFODIR"
34377_ACEOF
34378
34379
34380cat >>confdefs.h <<_ACEOF
34381#define LLVM_MANDIR "$LLVM_MANDIR"
34382_ACEOF
34383
34384
34385cat >>confdefs.h <<_ACEOF
34386#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
34387_ACEOF
34388
34389
Eric Christopher790e11c2007-12-01 00:34:39 +000034390cat >>confdefs.h <<_ACEOF
34391#define LLVM_HOSTTRIPLE "$host"
34392_ACEOF
34393
34394
Gordon Henriksenc0efff82007-10-02 09:50:32 +000034395# Determine which bindings to build.
34396if test "$BINDINGS_TO_BUILD" = auto ; then
34397 BINDINGS_TO_BUILD=""
34398 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
34399 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
34400 fi
34401fi
34402BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
34403
34404
34405# This isn't really configurey, but it avoids having to repeat the list in
34406# other files.
34407ALL_BINDINGS=ocaml
34408
34409
Gordon Henriksenf0915682007-10-02 16:42:22 +000034410# Do any work necessary to ensure that bindings have what they need.
34411binding_prereqs_failed=0
34412for a_binding in $BINDINGS_TO_BUILD ; do
34413 case "$a_binding" in
34414 ocaml)
34415 if test "x$OCAMLC" = x ; then
34416 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
34417echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
34418 binding_prereqs_failed=1
34419 fi
34420 if test "x$OCAMLDEP" = x ; then
34421 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
34422echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
34423 binding_prereqs_failed=1
34424 fi
34425 if test "x$OCAMLOPT" = x ; then
34426 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
34427echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
34428 fi
34429 if test "x$with_ocaml_libdir" != xauto ; then
34430 OCAML_LIBDIR=$with_ocaml_libdir
34431
34432 else
34433 ocaml_stdlib="`"$OCAMLC" -where`"
34434 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
34435 then
34436 # ocaml stdlib is beneath our prefix; use stdlib
34437 OCAML_LIBDIR=$ocaml_stdlib
34438
34439 else
34440 # ocaml stdlib is outside our prefix; use libdir/ocaml
34441 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
34442
34443 fi
34444 fi
34445 ;;
34446 esac
34447done
34448if test "$binding_prereqs_failed" = 1 ; then
34449 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
34450echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
34451 { (exit 1); exit 1; }; }
34452fi
34453
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034454{ echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
34455echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
34456if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
34457 echo $ECHO_N "(cached) $ECHO_C" >&6
34458else
34459 ac_ext=cpp
34460ac_cpp='$CXXCPP $CPPFLAGS'
34461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34464
34465 oldcxxflags="$CXXFLAGS"
34466 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
34467 cat >conftest.$ac_ext <<_ACEOF
34468/* confdefs.h. */
34469_ACEOF
34470cat confdefs.h >>conftest.$ac_ext
34471cat >>conftest.$ac_ext <<_ACEOF
34472/* end confdefs.h. */
34473
34474int
34475main ()
34476{
34477
34478 ;
34479 return 0;
34480}
34481_ACEOF
34482rm -f conftest.$ac_objext
34483if { (ac_try="$ac_compile"
34484case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34487esac
34488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34489 (eval "$ac_compile") 2>conftest.er1
34490 ac_status=$?
34491 grep -v '^ *+' conftest.er1 >conftest.err
34492 rm -f conftest.er1
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034495 (exit $ac_status); } &&
34496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
34497 { (case "(($ac_try" in
34498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34499 *) ac_try_echo=$ac_try;;
34500esac
34501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34502 (eval "$ac_try") 2>&5
34503 ac_status=$?
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); }; } &&
34506 { ac_try='test -s conftest.$ac_objext'
34507 { (case "(($ac_try" in
34508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509 *) ac_try_echo=$ac_try;;
34510esac
34511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512 (eval "$ac_try") 2>&5
34513 ac_status=$?
34514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34515 (exit $ac_status); }; }; then
Daniel Dunbardcf114e2008-08-30 01:16:19 +000034516 llvm_cv_cxx_visibility_inlines_hidden=yes
34517else
34518 echo "$as_me: failed program was:" >&5
34519sed 's/^/| /' conftest.$ac_ext >&5
34520
34521 llvm_cv_cxx_visibility_inlines_hidden=no
34522fi
34523
34524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34525 CXXFLAGS="$oldcxxflags"
34526 ac_ext=c
34527ac_cpp='$CPP $CPPFLAGS'
34528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34530ac_compiler_gnu=$ac_cv_c_compiler_gnu
34531
34532
34533fi
34534{ echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
34535echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
34536if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
34537 ENABLE_VISIBILITY_INLINES_HIDDEN=1
34538
34539else
34540 ENABLE_VISIBILITY_INLINES_HIDDEN=0
34541
34542fi
34543
Gordon Henriksenf0915682007-10-02 16:42:22 +000034544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034545
Reid Spencera773bd52006-08-04 18:18:08 +000034546ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034547
Reid Spencera773bd52006-08-04 18:18:08 +000034548ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034549
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034550ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034551
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034552ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034553
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000034554ac_config_headers="$ac_config_headers include/llvm/ADT/iterator.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034555
34556
Reid Spencera773bd52006-08-04 18:18:08 +000034557ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034558
34559
Reid Spencerea949cf2006-08-16 00:45:38 +000034560ac_config_files="$ac_config_files llvm.spec"
34561
34562
Reid Spencera773bd52006-08-04 18:18:08 +000034563ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000034564
34565
Reid Spencera773bd52006-08-04 18:18:08 +000034566ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000034567
34568
Reid Spencera773bd52006-08-04 18:18:08 +000034569ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000034570
Reid Spencera773bd52006-08-04 18:18:08 +000034571ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034572
34573
Reid Spencera773bd52006-08-04 18:18:08 +000034574ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034575
34576
Reid Spencera773bd52006-08-04 18:18:08 +000034577ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034578
34579
Reid Spencera773bd52006-08-04 18:18:08 +000034580ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034581
34582
Reid Spencer8b2e1412006-11-17 03:32:33 +000034583ac_config_commands="$ac_config_commands runtime/Makefile"
34584
34585
Reid Spencera773bd52006-08-04 18:18:08 +000034586ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034587
34588
Reid Spencera773bd52006-08-04 18:18:08 +000034589ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034590
34591
Reid Spencera773bd52006-08-04 18:18:08 +000034592ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034593
34594
Reid Spencera773bd52006-08-04 18:18:08 +000034595ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034596
34597
Reid Spencera773bd52006-08-04 18:18:08 +000034598ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034599
34600
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000034601ac_config_commands="$ac_config_commands bindings/Makefile"
34602
34603
34604ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
34605
34606
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034607
John Criswell7a73b802003-06-30 21:59:07 +000034608cat >confcache <<\_ACEOF
34609# This file is a shell script that caches the results of configure
34610# tests run on this system so they can be shared between configure
34611# scripts and configure runs, see configure's option --config-cache.
34612# It is not useful on other systems. If it contains results you don't
34613# want to keep, you may remove or edit it.
34614#
34615# config.status only pays attention to the cache file if you give it
34616# the --recheck option to rerun configure.
34617#
John Criswell0c38eaf2003-09-10 15:17:25 +000034618# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000034619# loading this file, other *unset* `ac_cv_foo' will be assigned the
34620# following values.
34621
34622_ACEOF
34623
34624# The following way of writing the cache mishandles newlines in values,
34625# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000034626# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000034627# Ultrix sh set writes to stderr and can't be redirected directly,
34628# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000034629(
34630 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34631 eval ac_val=\$$ac_var
34632 case $ac_val in #(
34633 *${as_nl}*)
34634 case $ac_var in #(
34635 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34636echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34637 esac
34638 case $ac_var in #(
34639 _ | IFS | as_nl) ;; #(
34640 *) $as_unset $ac_var ;;
34641 esac ;;
34642 esac
34643 done
34644
John Criswell7a73b802003-06-30 21:59:07 +000034645 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000034646 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34647 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000034648 # `set' does not quote correctly, so add quotes (double-quote
34649 # substitution turns \\\\ into \\, and sed turns \\ into \).
34650 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034651 "s/'/'\\\\''/g;
34652 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000034653 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000034654 *)
34655 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000034656 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000034657 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034658 esac |
34659 sort
34660) |
John Criswell7a73b802003-06-30 21:59:07 +000034661 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034662 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000034663 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000034664 :clear
John Criswell7a73b802003-06-30 21:59:07 +000034665 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34666 t end
Reid Spencera773bd52006-08-04 18:18:08 +000034667 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34668 :end' >>confcache
34669if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34670 if test -w "$cache_file"; then
34671 test "x$cache_file" != "x/dev/null" &&
34672 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34673echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034674 cat confcache >$cache_file
34675 else
Reid Spencera773bd52006-08-04 18:18:08 +000034676 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34677echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000034678 fi
34679fi
34680rm -f confcache
34681
34682test "x$prefix" = xNONE && prefix=$ac_default_prefix
34683# Let make expand exec_prefix.
34684test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34685
John Criswell7a73b802003-06-30 21:59:07 +000034686DEFS=-DHAVE_CONFIG_H
34687
John Criswell0c38eaf2003-09-10 15:17:25 +000034688ac_libobjs=
34689ac_ltlibobjs=
34690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34691 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000034692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34693 ac_i=`echo "$ac_i" | sed "$ac_script"`
34694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34695 # will be set to the directory where LIBOBJS objects are built.
34696 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34697 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000034698done
34699LIBOBJS=$ac_libobjs
34700
34701LTLIBOBJS=$ac_ltlibobjs
34702
34703
Reid Spencer2bc7bd52004-11-29 12:29:58 +000034704if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34705 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
34706Usually this means the macro was only invoked conditionally." >&5
34707echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
34708Usually this means the macro was only invoked conditionally." >&2;}
34709 { (exit 1); exit 1; }; }
34710fi
34711if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34712 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34713Usually this means the macro was only invoked conditionally." >&5
34714echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
34715Usually this means the macro was only invoked conditionally." >&2;}
34716 { (exit 1); exit 1; }; }
34717fi
John Criswell7a73b802003-06-30 21:59:07 +000034718
34719: ${CONFIG_STATUS=./config.status}
34720ac_clean_files_save=$ac_clean_files
34721ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34722{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34723echo "$as_me: creating $CONFIG_STATUS" >&6;}
34724cat >$CONFIG_STATUS <<_ACEOF
34725#! $SHELL
34726# Generated by $as_me.
34727# Run this file to recreate the current configuration.
34728# Compiler output produced by configure, useful for debugging
34729# configure, is in config.log if it exists.
34730
34731debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000034732ac_cs_recheck=false
34733ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000034734SHELL=\${CONFIG_SHELL-$SHELL}
34735_ACEOF
34736
34737cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034738## --------------------- ##
34739## M4sh Initialization. ##
34740## --------------------- ##
34741
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034742# Be Bourne compatible
John Criswell7a73b802003-06-30 21:59:07 +000034743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34744 emulate sh
34745 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34747 # is contrary to our usage. Disable this feature.
34748 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000034749 setopt NO_GLOB_SUBST
34750else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034751 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000034752fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034753BIN_SH=xpg4; export BIN_SH # for Tru64
34754DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000034755
John Criswell7a73b802003-06-30 21:59:07 +000034756
Reid Spencera773bd52006-08-04 18:18:08 +000034757# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000034758# Avoid depending upon Character Ranges.
34759as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34761as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34762as_cr_digits='0123456789'
34763as_cr_alnum=$as_cr_Letters$as_cr_digits
34764
34765# The user is always right.
34766if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000034767 echo "#! /bin/sh" >conf$$.sh
34768 echo "exit 0" >>conf$$.sh
34769 chmod +x conf$$.sh
34770 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034771 PATH_SEPARATOR=';'
34772 else
34773 PATH_SEPARATOR=:
34774 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000034775 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000034776fi
34777
Reid Spencera773bd52006-08-04 18:18:08 +000034778# Support unset when possible.
34779if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34780 as_unset=unset
34781else
34782 as_unset=false
34783fi
John Criswell7a73b802003-06-30 21:59:07 +000034784
Reid Spencera773bd52006-08-04 18:18:08 +000034785
34786# IFS
34787# We need space, tab and new line, in precisely that order. Quoting is
34788# there to prevent editors from complaining about space-tab.
34789# (If _AS_PATH_WALK were called with IFS unset, it would disable word
34790# splitting by setting IFS to empty value.)
34791as_nl='
34792'
34793IFS=" "" $as_nl"
34794
34795# Find who we are. Look in the path if we contain no directory separator.
34796case $0 in
34797 *[\\/]* ) as_myself=$0 ;;
34798 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000034799for as_dir in $PATH
34800do
34801 IFS=$as_save_IFS
34802 test -z "$as_dir" && as_dir=.
34803 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34804done
Reid Spencera773bd52006-08-04 18:18:08 +000034805IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000034806
Reid Spencera773bd52006-08-04 18:18:08 +000034807 ;;
34808esac
34809# We did not find ourselves, most probably we were run as `sh COMMAND'
34810# in which case we are not to be found in the path.
34811if test "x$as_myself" = x; then
34812 as_myself=$0
34813fi
34814if test ! -f "$as_myself"; then
34815 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34816 { (exit 1); exit 1; }
34817fi
34818
34819# Work around bugs in pre-3.0 UWIN ksh.
34820for as_var in ENV MAIL MAILPATH
34821do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34822done
34823PS1='$ '
34824PS2='> '
34825PS4='+ '
34826
34827# NLS nuisances.
34828for as_var in \
34829 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34830 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34831 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000034832do
Reid Spencera773bd52006-08-04 18:18:08 +000034833 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34834 eval $as_var=C; export $as_var
34835 else
34836 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34837 fi
34838done
34839
34840# Required to use basename.
34841if expr a : '\(a\)' >/dev/null 2>&1 &&
34842 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34843 as_expr=expr
34844else
34845 as_expr=false
34846fi
34847
34848if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34849 as_basename=basename
34850else
34851 as_basename=false
34852fi
34853
34854
34855# Name of the executable.
34856as_me=`$as_basename -- "$0" ||
34857$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34858 X"$0" : 'X\(//\)$' \| \
34859 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34860echo X/"$0" |
34861 sed '/^.*\/\([^/][^/]*\)\/*$/{
34862 s//\1/
34863 q
34864 }
34865 /^X\/\(\/\/\)$/{
34866 s//\1/
34867 q
34868 }
34869 /^X\/\(\/\).*/{
34870 s//\1/
34871 q
34872 }
34873 s/.*/./; q'`
34874
34875# CDPATH.
34876$as_unset CDPATH
34877
34878
34879
John Criswell7a73b802003-06-30 21:59:07 +000034880 as_lineno_1=$LINENO
34881 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000034882 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000034883 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000034884
34885 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34886 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000034887 # line-number line after each line using $LINENO; the second 'sed'
34888 # does the real work. The second script uses 'N' to pair each
34889 # line-number line with the line containing $LINENO, and appends
34890 # trailing '-' during substitution so that $LINENO is not a special
34891 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000034892 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000034893 # scripts with optimization help from Paolo Bonzini. Blame Lee
34894 # E. McMahon (1931-1989) for sed's syntax. :-)
34895 sed -n '
34896 p
34897 /[$]LINENO/=
34898 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000034899 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000034900 s/[$]LINENO.*/&-/
34901 t lineno
34902 b
34903 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000034904 N
Reid Spencera773bd52006-08-04 18:18:08 +000034905 :loop
34906 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000034907 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000034908 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000034909 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000034910 chmod +x "$as_me.lineno" ||
34911 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000034912 { (exit 1); exit 1; }; }
34913
34914 # Don't try to exec as it changes $[0], causing all sort of problems
34915 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000034916 # original and so on. Autoconf is especially sensitive to this).
34917 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000034918 # Exit status is that of the last command.
34919 exit
34920}
34921
34922
Reid Spencera773bd52006-08-04 18:18:08 +000034923if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34924 as_dirname=dirname
34925else
34926 as_dirname=false
34927fi
34928
34929ECHO_C= ECHO_N= ECHO_T=
34930case `echo -n x` in
34931-n*)
34932 case `echo 'x\c'` in
34933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34934 *) ECHO_C='\c';;
34935 esac;;
34936*)
34937 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000034938esac
34939
Reid Spencera773bd52006-08-04 18:18:08 +000034940if expr a : '\(a\)' >/dev/null 2>&1 &&
34941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000034942 as_expr=expr
34943else
34944 as_expr=false
34945fi
34946
34947rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000034948if test -d conf$$.dir; then
34949 rm -f conf$$.dir/conf$$.file
34950else
34951 rm -f conf$$.dir
34952 mkdir conf$$.dir
34953fi
John Criswell7a73b802003-06-30 21:59:07 +000034954echo >conf$$.file
34955if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000034956 as_ln_s='ln -s'
34957 # ... but there are two gotchas:
34958 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34959 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34960 # In both cases, we have to default to `cp -p'.
34961 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000034962 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000034963elif ln conf$$.file conf$$ 2>/dev/null; then
34964 as_ln_s=ln
34965else
34966 as_ln_s='cp -p'
34967fi
Reid Spencera773bd52006-08-04 18:18:08 +000034968rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34969rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000034970
John Criswell0c38eaf2003-09-10 15:17:25 +000034971if mkdir -p . 2>/dev/null; then
34972 as_mkdir_p=:
34973else
Reid Spencer2706f8c2004-09-19 23:53:36 +000034974 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000034975 as_mkdir_p=false
34976fi
34977
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034978# Find out whether ``test -x'' works. Don't use a zero-byte file, as
34979# systems may use methods other than mode bits to determine executability.
34980cat >conf$$.file <<_ASEOF
34981#! /bin/sh
34982exit 0
34983_ASEOF
34984chmod +x conf$$.file
34985if test -x conf$$.file >/dev/null 2>&1; then
34986 as_executable_p="test -x"
Reid Spencera773bd52006-08-04 18:18:08 +000034987else
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034988 as_executable_p=:
Reid Spencera773bd52006-08-04 18:18:08 +000034989fi
Gordon Henriksen40e7f192008-10-22 12:40:55 +000034990rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000034991
34992# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034993as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034994
34995# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000034996as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000034997
34998
John Criswell7a73b802003-06-30 21:59:07 +000034999exec 6>&1
35000
Reid Spencera773bd52006-08-04 18:18:08 +000035001# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000035002# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000035003# values after options handling.
35004ac_log="
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000035005This file was extended by llvm $as_me 2.5svn, which was
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035006generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000035007
35008 CONFIG_FILES = $CONFIG_FILES
35009 CONFIG_HEADERS = $CONFIG_HEADERS
35010 CONFIG_LINKS = $CONFIG_LINKS
35011 CONFIG_COMMANDS = $CONFIG_COMMANDS
35012 $ $0 $@
35013
Reid Spencera773bd52006-08-04 18:18:08 +000035014on `(hostname || uname -n) 2>/dev/null | sed 1q`
35015"
35016
John Criswell7a73b802003-06-30 21:59:07 +000035017_ACEOF
35018
Reid Spencera773bd52006-08-04 18:18:08 +000035019cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035020# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000035021config_files="$ac_config_files"
35022config_headers="$ac_config_headers"
35023config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000035024
Reid Spencera773bd52006-08-04 18:18:08 +000035025_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035026
35027cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035028ac_cs_usage="\
35029\`$as_me' instantiates files from templates according to the
35030current configuration.
35031
35032Usage: $0 [OPTIONS] [FILE]...
35033
35034 -h, --help print this help, then exit
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035035 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000035036 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000035037 -d, --debug don't remove temporary files
35038 --recheck update $as_me by reconfiguring in the same conditions
35039 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035040 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000035041 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000035042 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000035043
35044Configuration files:
35045$config_files
35046
35047Configuration headers:
35048$config_headers
35049
John Criswellc764fbc2003-09-06 15:17:13 +000035050Configuration commands:
35051$config_commands
35052
John Criswell7a73b802003-06-30 21:59:07 +000035053Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000035054
Reid Spencera773bd52006-08-04 18:18:08 +000035055_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035056cat >>$CONFIG_STATUS <<_ACEOF
35057ac_cs_version="\\
Tanya Lattnerd53b4d32008-10-07 04:35:08 +000035058llvm config.status 2.5svn
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035059configured by $0, generated by GNU Autoconf 2.60,
Reid Spencera773bd52006-08-04 18:18:08 +000035060 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000035061
Reid Spencera773bd52006-08-04 18:18:08 +000035062Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000035063This config.status script is free software; the Free Software Foundation
35064gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000035065
35066ac_pwd='$ac_pwd'
35067srcdir='$srcdir'
35068INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000035069_ACEOF
35070
35071cat >>$CONFIG_STATUS <<\_ACEOF
35072# If no file are specified by the user, then we need to provide default
35073# value. By we need to know if files were specified by the user.
35074ac_need_defaults=:
35075while test $# != 0
35076do
35077 case $1 in
35078 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000035079 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000035081 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000035082 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035083 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000035084 ac_option=$1
35085 ac_optarg=$2
35086 ac_shift=shift
35087 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035088 esac
35089
John Criswell0c38eaf2003-09-10 15:17:25 +000035090 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000035091 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000035092 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35093 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035094 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35095 echo "$ac_cs_version"; exit ;;
35096 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000035097 debug=: ;;
35098 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000035099 $ac_shift
35100 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035101 ac_need_defaults=false;;
35102 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000035103 $ac_shift
35104 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000035105 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000035106 --he | --h)
35107 # Conflict between --help and --header
35108 { echo "$as_me: error: ambiguous option: $1
35109Try \`$0 --help' for more information." >&2
35110 { (exit 1); exit 1; }; };;
35111 --help | --hel | -h )
35112 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000035113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35115 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000035116
35117 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000035118 -*) { echo "$as_me: error: unrecognized option: $1
35119Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035120 { (exit 1); exit 1; }; } ;;
35121
Reid Spencera773bd52006-08-04 18:18:08 +000035122 *) ac_config_targets="$ac_config_targets $1"
35123 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000035124
35125 esac
35126 shift
35127done
35128
John Criswell0c38eaf2003-09-10 15:17:25 +000035129ac_configure_extra_args=
35130
35131if $ac_cs_silent; then
35132 exec 6>/dev/null
35133 ac_configure_extra_args="$ac_configure_extra_args --silent"
35134fi
35135
35136_ACEOF
35137cat >>$CONFIG_STATUS <<_ACEOF
35138if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000035139 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
35140 CONFIG_SHELL=$SHELL
35141 export CONFIG_SHELL
35142 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000035143fi
35144
John Criswell7a73b802003-06-30 21:59:07 +000035145_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035146cat >>$CONFIG_STATUS <<\_ACEOF
35147exec 5>>config.log
35148{
35149 echo
35150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35151## Running $as_me. ##
35152_ASBOX
35153 echo "$ac_log"
35154} >&5
John Criswell7a73b802003-06-30 21:59:07 +000035155
Reid Spencera773bd52006-08-04 18:18:08 +000035156_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000035157cat >>$CONFIG_STATUS <<_ACEOF
35158#
Reid Spencera773bd52006-08-04 18:18:08 +000035159# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000035160#
Reid Spencerc0682832005-02-24 19:05:19 +000035161llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000035162
35163_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035164
John Criswell7a73b802003-06-30 21:59:07 +000035165cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035166
35167# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000035168for ac_config_target in $ac_config_targets
35169do
Reid Spencera773bd52006-08-04 18:18:08 +000035170 case $ac_config_target in
35171 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
35172 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
Anton Korobeynikovd3df7eb2008-05-29 17:41:34 +000035173 "include/llvm/ADT/hash_map.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map.h" ;;
35174 "include/llvm/ADT/hash_set.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set.h" ;;
35175 "include/llvm/ADT/iterator.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator.h" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035176 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000035177 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035178 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
35179 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
35180 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
35181 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
35182 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
35183 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
35184 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035185 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035186 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
35187 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
35188 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
35189 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
35190 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035191 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
35192 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035193
John Criswell7a73b802003-06-30 21:59:07 +000035194 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
35195echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
35196 { (exit 1); exit 1; }; };;
35197 esac
35198done
35199
Reid Spencera773bd52006-08-04 18:18:08 +000035200
John Criswell7a73b802003-06-30 21:59:07 +000035201# If the user did not use the arguments to specify the items to instantiate,
35202# then the envvar interface is used. Set only those that are not.
35203# We use the long form for the default assignment because of an extremely
35204# bizarre bug on SunOS 4.1.3.
35205if $ac_need_defaults; then
35206 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35207 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000035208 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000035209fi
35210
John Criswell0c38eaf2003-09-10 15:17:25 +000035211# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000035212# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000035213# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000035214# Hook for its removal unless debugging.
35215# Note that there is a small window in which the directory will not be cleaned:
35216# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000035217$debug ||
35218{
Reid Spencera773bd52006-08-04 18:18:08 +000035219 tmp=
35220 trap 'exit_status=$?
35221 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
35222' 0
John Criswell7a73b802003-06-30 21:59:07 +000035223 trap '{ (exit 1); exit 1; }' 1 2 13 15
35224}
John Criswell7a73b802003-06-30 21:59:07 +000035225# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000035226
John Criswell7a73b802003-06-30 21:59:07 +000035227{
Reid Spencera773bd52006-08-04 18:18:08 +000035228 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000035229 test -n "$tmp" && test -d "$tmp"
35230} ||
35231{
Reid Spencera773bd52006-08-04 18:18:08 +000035232 tmp=./conf$$-$RANDOM
35233 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000035234} ||
35235{
John Criswell0c38eaf2003-09-10 15:17:25 +000035236 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000035237 { (exit 1); exit 1; }
35238}
35239
John Criswell7a73b802003-06-30 21:59:07 +000035240#
Reid Spencera773bd52006-08-04 18:18:08 +000035241# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000035242#
35243
35244# No need to generate the scripts if there are no CONFIG_FILES.
35245# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000035246if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000035247
35248_ACEOF
35249
Reid Spencera773bd52006-08-04 18:18:08 +000035250
35251
35252ac_delim='%!_!# '
35253for ac_last_try in false false false false false :; do
35254 cat >conf$$subs.sed <<_ACEOF
35255SHELL!$SHELL$ac_delim
35256PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
35257PACKAGE_NAME!$PACKAGE_NAME$ac_delim
35258PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
35259PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
35260PACKAGE_STRING!$PACKAGE_STRING$ac_delim
35261PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
35262exec_prefix!$exec_prefix$ac_delim
35263prefix!$prefix$ac_delim
35264program_transform_name!$program_transform_name$ac_delim
35265bindir!$bindir$ac_delim
35266sbindir!$sbindir$ac_delim
35267libexecdir!$libexecdir$ac_delim
35268datarootdir!$datarootdir$ac_delim
35269datadir!$datadir$ac_delim
35270sysconfdir!$sysconfdir$ac_delim
35271sharedstatedir!$sharedstatedir$ac_delim
35272localstatedir!$localstatedir$ac_delim
35273includedir!$includedir$ac_delim
35274oldincludedir!$oldincludedir$ac_delim
35275docdir!$docdir$ac_delim
35276infodir!$infodir$ac_delim
35277htmldir!$htmldir$ac_delim
35278dvidir!$dvidir$ac_delim
35279pdfdir!$pdfdir$ac_delim
35280psdir!$psdir$ac_delim
35281libdir!$libdir$ac_delim
35282localedir!$localedir$ac_delim
35283mandir!$mandir$ac_delim
35284DEFS!$DEFS$ac_delim
35285ECHO_C!$ECHO_C$ac_delim
35286ECHO_N!$ECHO_N$ac_delim
35287ECHO_T!$ECHO_T$ac_delim
35288LIBS!$LIBS$ac_delim
35289build_alias!$build_alias$ac_delim
35290host_alias!$host_alias$ac_delim
35291target_alias!$target_alias$ac_delim
35292LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
35293subdirs!$subdirs$ac_delim
35294build!$build$ac_delim
35295build_cpu!$build_cpu$ac_delim
35296build_vendor!$build_vendor$ac_delim
35297build_os!$build_os$ac_delim
35298host!$host$ac_delim
35299host_cpu!$host_cpu$ac_delim
35300host_vendor!$host_vendor$ac_delim
35301host_os!$host_os$ac_delim
35302target!$target$ac_delim
35303target_cpu!$target_cpu$ac_delim
35304target_vendor!$target_vendor$ac_delim
35305target_os!$target_os$ac_delim
35306OS!$OS$ac_delim
35307LINKALL!$LINKALL$ac_delim
35308NOLINKALL!$NOLINKALL$ac_delim
35309LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
35310LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
35311ARCH!$ARCH$ac_delim
Duncan Sands67f1c492007-12-12 23:03:45 +000035312ENDIAN!$ENDIAN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035313CC!$CC$ac_delim
35314CFLAGS!$CFLAGS$ac_delim
35315LDFLAGS!$LDFLAGS$ac_delim
35316CPPFLAGS!$CPPFLAGS$ac_delim
35317ac_ct_CC!$ac_ct_CC$ac_delim
35318EXEEXT!$EXEEXT$ac_delim
35319OBJEXT!$OBJEXT$ac_delim
35320CPP!$CPP$ac_delim
35321GREP!$GREP$ac_delim
35322EGREP!$EGREP$ac_delim
35323LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
35324BUILD_CC!$BUILD_CC$ac_delim
35325BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
Jim Grosbach673612e2008-10-02 22:56:44 +000035326BUILD_CXX!$BUILD_CXX$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035327CVSBUILD!$CVSBUILD$ac_delim
35328ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
35329DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035330ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
35331EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035332DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035333JIT!$JIT$ac_delim
35334TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
35335ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
35336ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035337ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035338TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000035339ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035340EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
35341CXX!$CXX$ac_delim
35342CXXFLAGS!$CXXFLAGS$ac_delim
35343ac_ct_CXX!$ac_ct_CXX$ac_delim
35344LEX!$LEX$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035345LEXLIB!$LEXLIB$ac_delim
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035346LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035347FLEX!$FLEX$ac_delim
35348YACC!$YACC$ac_delim
35349YFLAGS!$YFLAGS$ac_delim
35350BISON!$BISON$ac_delim
35351NM!$NM$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035352_ACEOF
35353
35354 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35355 break
35356 elif $ac_last_try; then
35357 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35358echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35359 { (exit 1); exit 1; }; }
35360 else
35361 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000035362 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035363done
35364
35365ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35366if test -n "$ac_eof"; then
35367 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35368 ac_eof=`expr $ac_eof + 1`
35369fi
35370
35371cat >>$CONFIG_STATUS <<_ACEOF
35372cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35373/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35374_ACEOF
35375sed '
35376s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35377s/^/s,@/; s/!/@,|#_!!_#|/
35378:n
35379t n
35380s/'"$ac_delim"'$/,g/; t
35381s/$/\\/; p
35382N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35383' >>$CONFIG_STATUS <conf$$subs.sed
35384rm -f conf$$subs.sed
35385cat >>$CONFIG_STATUS <<_ACEOF
35386CEOF$ac_eof
35387_ACEOF
35388
35389
35390ac_delim='%!_!# '
35391for ac_last_try in false false false false false :; do
35392 cat >conf$$subs.sed <<_ACEOF
Jim Grosbach673612e2008-10-02 22:56:44 +000035393ifGNUmake!$ifGNUmake$ac_delim
David Greenea696d242007-06-28 19:36:08 +000035394LN_S!$LN_S$ac_delim
35395CMP!$CMP$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000035396CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000035397DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035398FIND!$FIND$ac_delim
35399MKDIR!$MKDIR$ac_delim
35400MV!$MV$ac_delim
35401RANLIB!$RANLIB$ac_delim
35402RM!$RM$ac_delim
35403SED!$SED$ac_delim
35404TAR!$TAR$ac_delim
35405BINPWD!$BINPWD$ac_delim
35406GRAPHVIZ!$GRAPHVIZ$ac_delim
35407DOT!$DOT$ac_delim
35408GV!$GV$ac_delim
35409DOTTY!$DOTTY$ac_delim
35410PERL!$PERL$ac_delim
35411HAVE_PERL!$HAVE_PERL$ac_delim
35412INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35413INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35414INSTALL_DATA!$INSTALL_DATA$ac_delim
35415BZIP2!$BZIP2$ac_delim
35416DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035417GROFF!$GROFF$ac_delim
35418GZIP!$GZIP$ac_delim
35419POD2HTML!$POD2HTML$ac_delim
35420POD2MAN!$POD2MAN$ac_delim
35421RUNTEST!$RUNTEST$ac_delim
35422TCLSH!$TCLSH$ac_delim
35423ZIP!$ZIP$ac_delim
Gordon Henriksen54c7e122007-09-18 12:27:13 +000035424OCAMLC!$OCAMLC$ac_delim
35425OCAMLOPT!$OCAMLOPT$ac_delim
Gordon Henriksenc20f5b02007-09-20 16:48:18 +000035426OCAMLDEP!$OCAMLDEP$ac_delim
Gordon Henriksen56b8f1d2008-03-10 15:49:38 +000035427OCAMLDOC!$OCAMLDOC$ac_delim
Torok Edwincc499a42008-10-22 09:56:27 +000035428GAS!$GAS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035429INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
35430INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
35431CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
35432CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
35433LIBADD_DL!$LIBADD_DL$ac_delim
35434ECHO!$ECHO$ac_delim
35435AR!$AR$ac_delim
35436STRIP!$STRIP$ac_delim
35437CXXCPP!$CXXCPP$ac_delim
35438F77!$F77$ac_delim
35439FFLAGS!$FFLAGS$ac_delim
35440ac_ct_F77!$ac_ct_F77$ac_delim
35441LIBTOOL!$LIBTOOL$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035442LLVMGCC!$LLVMGCC$ac_delim
35443LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000035444USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000035445HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000035446HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035447ALLOCA!$ALLOCA$ac_delim
35448MMAP_FILE!$MMAP_FILE$ac_delim
35449LLVMCC1!$LLVMCC1$ac_delim
35450LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
35451LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000035452LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035453LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
35454LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
Reid Spencer0d238182007-04-21 21:28:52 +000035455LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035456SHLIBEXT!$SHLIBEXT$ac_delim
35457LLVM_PREFIX!$LLVM_PREFIX$ac_delim
35458LLVM_BINDIR!$LLVM_BINDIR$ac_delim
35459LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
35460LLVM_DATADIR!$LLVM_DATADIR$ac_delim
35461LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
35462LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
35463LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
35464LLVM_INFODIR!$LLVM_INFODIR$ac_delim
35465LLVM_MANDIR!$LLVM_MANDIR$ac_delim
35466LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
Gordon Henriksenc0efff82007-10-02 09:50:32 +000035467BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
35468ALL_BINDINGS!$ALL_BINDINGS$ac_delim
Gordon Henriksenf0915682007-10-02 16:42:22 +000035469OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
Daniel Dunbardcf114e2008-08-30 01:16:19 +000035470ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000035471LIBOBJS!$LIBOBJS$ac_delim
35472LTLIBOBJS!$LTLIBOBJS$ac_delim
35473_ACEOF
35474
Torok Edwincc499a42008-10-22 09:56:27 +000035475 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Reid Spencera773bd52006-08-04 18:18:08 +000035476 break
35477 elif $ac_last_try; then
35478 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35479echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35480 { (exit 1); exit 1; }; }
35481 else
35482 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35483 fi
35484done
35485
35486ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35487if test -n "$ac_eof"; then
35488 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35489 ac_eof=`expr $ac_eof + 1`
35490fi
35491
35492cat >>$CONFIG_STATUS <<_ACEOF
35493cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35494/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35495_ACEOF
35496sed '
35497s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35498s/^/s,@/; s/!/@,|#_!!_#|/
35499:n
35500t n
35501s/'"$ac_delim"'$/,g/; t
35502s/$/\\/; p
35503N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35504' >>$CONFIG_STATUS <conf$$subs.sed
35505rm -f conf$$subs.sed
35506cat >>$CONFIG_STATUS <<_ACEOF
35507:end
35508s/|#_!!_#|//g
35509CEOF$ac_eof
35510_ACEOF
35511
35512
35513# VPATH may cause trouble with some makes, so we remove $(srcdir),
35514# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35515# trailing colons and then remove the whole line if VPATH becomes empty
35516# (actually we leave an empty line to preserve line numbers).
35517if test "x$srcdir" = x.; then
35518 ac_vpsub='/^[ ]*VPATH[ ]*=/{
35519s/:*\$(srcdir):*/:/
35520s/:*\${srcdir}:*/:/
35521s/:*@srcdir@:*/:/
35522s/^\([^=]*=[ ]*\):*/\1/
35523s/:*$//
35524s/^[^=]*=[ ]*$//
35525}'
35526fi
35527
35528cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035529fi # test -n "$CONFIG_FILES"
35530
Reid Spencera773bd52006-08-04 18:18:08 +000035531
35532for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
35533do
35534 case $ac_tag in
35535 :[FHLC]) ac_mode=$ac_tag; continue;;
35536 esac
35537 case $ac_mode$ac_tag in
35538 :[FHL]*:*);;
35539 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35540echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35541 { (exit 1); exit 1; }; };;
35542 :[FH]-) ac_tag=-:-;;
35543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35544 esac
35545 ac_save_IFS=$IFS
35546 IFS=:
35547 set x $ac_tag
35548 IFS=$ac_save_IFS
35549 shift
35550 ac_file=$1
35551 shift
35552
35553 case $ac_mode in
35554 :L) ac_source=$1;;
35555 :[FH])
35556 ac_file_inputs=
35557 for ac_f
35558 do
35559 case $ac_f in
35560 -) ac_f="$tmp/stdin";;
35561 *) # Look for the file first in the build tree, then in the source tree
35562 # (if the path is not absolute). The absolute path cannot be DOS-style,
35563 # because $ac_f cannot contain `:'.
35564 test -f "$ac_f" ||
35565 case $ac_f in
35566 [\\/$]*) false;;
35567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35568 esac ||
35569 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35570echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35571 { (exit 1); exit 1; }; };;
35572 esac
35573 ac_file_inputs="$ac_file_inputs $ac_f"
35574 done
35575
35576 # Let's still pretend it is `configure' which instantiates (i.e., don't
35577 # use $as_me), people would be surprised to read:
35578 # /* config.h. Generated by config.status. */
35579 configure_input="Generated from "`IFS=:
35580 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35581 if test x"$ac_file" != x-; then
35582 configure_input="$ac_file. $configure_input"
35583 { echo "$as_me:$LINENO: creating $ac_file" >&5
35584echo "$as_me: creating $ac_file" >&6;}
35585 fi
35586
35587 case $ac_tag in
35588 *:-:* | *:-) cat >"$tmp/stdin";;
35589 esac
35590 ;;
John Criswell7a73b802003-06-30 21:59:07 +000035591 esac
35592
Reid Spencera773bd52006-08-04 18:18:08 +000035593 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000035594$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035595 X"$ac_file" : 'X\(//\)[^/]' \| \
35596 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035597 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000035598echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000035599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35600 s//\1/
35601 q
35602 }
35603 /^X\(\/\/\)[^/].*/{
35604 s//\1/
35605 q
35606 }
35607 /^X\(\/\/\)$/{
35608 s//\1/
35609 q
35610 }
35611 /^X\(\/\).*/{
35612 s//\1/
35613 q
35614 }
35615 s/.*/./; q'`
35616 { as_dir="$ac_dir"
35617 case $as_dir in #(
35618 -*) as_dir=./$as_dir;;
35619 esac
35620 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000035621 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000035622 while :; do
35623 case $as_dir in #(
35624 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35625 *) as_qdir=$as_dir;;
35626 esac
35627 as_dirs="'$as_qdir' $as_dirs"
35628 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000035630 X"$as_dir" : 'X\(//\)[^/]' \| \
35631 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000035632 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000035633echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000035634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35635 s//\1/
35636 q
35637 }
35638 /^X\(\/\/\)[^/].*/{
35639 s//\1/
35640 q
35641 }
35642 /^X\(\/\/\)$/{
35643 s//\1/
35644 q
35645 }
35646 /^X\(\/\).*/{
35647 s//\1/
35648 q
35649 }
35650 s/.*/./; q'`
35651 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000035652 done
Reid Spencera773bd52006-08-04 18:18:08 +000035653 test -z "$as_dirs" || eval "mkdir $as_dirs"
35654 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35655echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000035656 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000035657 ac_builddir=.
35658
Reid Spencera773bd52006-08-04 18:18:08 +000035659case "$ac_dir" in
35660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35661*)
John Criswell7a73b802003-06-30 21:59:07 +000035662 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035663 # A ".." for each directory in $ac_dir_suffix.
35664 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35665 case $ac_top_builddir_sub in
35666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35668 esac ;;
35669esac
35670ac_abs_top_builddir=$ac_pwd
35671ac_abs_builddir=$ac_pwd$ac_dir_suffix
35672# for backward compatibility:
35673ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000035674
35675case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035676 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000035677 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035678 ac_top_srcdir=$ac_top_builddir_sub
35679 ac_abs_top_srcdir=$ac_pwd ;;
35680 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000035681 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035682 ac_top_srcdir=$srcdir
35683 ac_abs_top_srcdir=$srcdir ;;
35684 *) # Relative name.
35685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35686 ac_top_srcdir=$ac_top_build_prefix$srcdir
35687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000035688esac
Reid Spencera773bd52006-08-04 18:18:08 +000035689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000035690
John Criswell7a73b802003-06-30 21:59:07 +000035691
Reid Spencera773bd52006-08-04 18:18:08 +000035692 case $ac_mode in
35693 :F)
35694 #
35695 # CONFIG_FILE
35696 #
John Criswell7a73b802003-06-30 21:59:07 +000035697
35698 case $INSTALL in
35699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000035701 esac
John Criswell7a73b802003-06-30 21:59:07 +000035702_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035703
35704cat >>$CONFIG_STATUS <<\_ACEOF
35705# If the template does not know about datarootdir, expand it.
35706# FIXME: This hack should be removed a few years after 2.60.
35707ac_datarootdir_hack=; ac_datarootdir_seen=
35708
35709case `sed -n '/datarootdir/ {
35710 p
35711 q
35712}
35713/@datadir@/p
35714/@docdir@/p
35715/@infodir@/p
35716/@localedir@/p
35717/@mandir@/p
35718' $ac_file_inputs` in
35719*datarootdir*) ac_datarootdir_seen=yes;;
35720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35721 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35722echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35723_ACEOF
35724cat >>$CONFIG_STATUS <<_ACEOF
35725 ac_datarootdir_hack='
35726 s&@datadir@&$datadir&g
35727 s&@docdir@&$docdir&g
35728 s&@infodir@&$infodir&g
35729 s&@localedir@&$localedir&g
35730 s&@mandir@&$mandir&g
35731 s&\\\${datarootdir}&$datarootdir&g' ;;
35732esac
35733_ACEOF
35734
35735# Neutralize VPATH when `$srcdir' = `.'.
35736# Shell code in configure.ac might set extrasub.
35737# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000035738cat >>$CONFIG_STATUS <<_ACEOF
35739 sed "$ac_vpsub
35740$extrasub
35741_ACEOF
35742cat >>$CONFIG_STATUS <<\_ACEOF
35743:t
35744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000035745s&@configure_input@&$configure_input&;t t
35746s&@top_builddir@&$ac_top_builddir_sub&;t t
35747s&@srcdir@&$ac_srcdir&;t t
35748s&@abs_srcdir@&$ac_abs_srcdir&;t t
35749s&@top_srcdir@&$ac_top_srcdir&;t t
35750s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35751s&@builddir@&$ac_builddir&;t t
35752s&@abs_builddir@&$ac_abs_builddir&;t t
35753s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35754s&@INSTALL@&$ac_INSTALL&;t t
35755$ac_datarootdir_hack
35756" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000035757
Reid Spencera773bd52006-08-04 18:18:08 +000035758test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35759 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35760 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35761 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35762which seems to be undefined. Please make sure it is defined." >&5
35763echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35764which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000035765
Reid Spencera773bd52006-08-04 18:18:08 +000035766 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000035767 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000035768 -) cat "$tmp/out"; rm -f "$tmp/out";;
35769 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000035770 esac
Reid Spencera773bd52006-08-04 18:18:08 +000035771 ;;
35772 :H)
35773 #
35774 # CONFIG_HEADER
35775 #
John Criswell7a73b802003-06-30 21:59:07 +000035776_ACEOF
35777
Reid Spencera773bd52006-08-04 18:18:08 +000035778# Transform confdefs.h into a sed script `conftest.defines', that
35779# substitutes the proper values into config.h.in to produce config.h.
35780rm -f conftest.defines conftest.tail
35781# First, append a space to every undef/define line, to ease matching.
35782echo 's/$/ /' >conftest.defines
35783# Then, protect against being on the right side of a sed subst, or in
35784# an unquoted here document, in config.status. If some macros were
35785# called several times there might be several #defines for the same
35786# symbol, which is useless. But do not sort them, since the last
35787# AC_DEFINE must be honored.
35788ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35789# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35790# NAME is the cpp macro being defined, VALUE is the value it is being given.
35791# PARAMS is the parameter list in the macro definition--in most cases, it's
35792# just an empty string.
35793ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
35794ac_dB='\\)[ (].*,\\1define\\2'
35795ac_dC=' '
35796ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000035797
Reid Spencera773bd52006-08-04 18:18:08 +000035798uniq confdefs.h |
35799 sed -n '
35800 t rset
35801 :rset
35802 s/^[ ]*#[ ]*define[ ][ ]*//
35803 t ok
35804 d
35805 :ok
35806 s/[\\&,]/\\&/g
35807 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35808 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35809 ' >>conftest.defines
35810
35811# Remove the space that was appended to ease matching.
35812# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000035813# example, in the case of _POSIX_SOURCE, which is predefined and required
35814# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000035815# (The regexp can be short, since the line contains either #define or #undef.)
35816echo 's/ $//
35817s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000035818
Reid Spencera773bd52006-08-04 18:18:08 +000035819# Break up conftest.defines:
35820ac_max_sed_lines=50
35821
35822# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35823# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35824# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35825# et cetera.
35826ac_in='$ac_file_inputs'
35827ac_out='"$tmp/out1"'
35828ac_nxt='"$tmp/out2"'
35829
35830while :
John Criswell7a73b802003-06-30 21:59:07 +000035831do
Reid Spencera773bd52006-08-04 18:18:08 +000035832 # Write a here document:
35833 cat >>$CONFIG_STATUS <<_ACEOF
35834 # First, check the format of the line:
35835 cat >"\$tmp/defines.sed" <<\\CEOF
35836/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35837/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35838b
35839:def
35840_ACEOF
35841 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035842 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000035843 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35844 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35845 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35846 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000035847 rm -f conftest.defines
35848 mv conftest.tail conftest.defines
35849done
Reid Spencera773bd52006-08-04 18:18:08 +000035850rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000035851
Reid Spencera773bd52006-08-04 18:18:08 +000035852echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000035853cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000035854 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000035855 echo "/* $configure_input */" >"$tmp/config.h"
35856 cat "$ac_result" >>"$tmp/config.h"
35857 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000035858 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35859echo "$as_me: $ac_file is unchanged" >&6;}
35860 else
John Criswell7a73b802003-06-30 21:59:07 +000035861 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000035862 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000035863 fi
35864 else
Reid Spencera773bd52006-08-04 18:18:08 +000035865 echo "/* $configure_input */"
35866 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000035867 fi
Reid Spencera773bd52006-08-04 18:18:08 +000035868 rm -f "$tmp/out12"
35869 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035870
Reid Spencera773bd52006-08-04 18:18:08 +000035871 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35872echo "$as_me: executing $ac_file commands" >&6;}
35873 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000035874 esac
John Criswell7a73b802003-06-30 21:59:07 +000035875
Reid Spencera773bd52006-08-04 18:18:08 +000035876
35877 case $ac_file$ac_mode in
35878 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
35879 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
35880 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
35881 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
35882 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
35883 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
35884 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
35885 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000035886 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
35887 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035888 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
35889 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
35890 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
35891 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
35892 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
35893 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
35894 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
35895 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
35896 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
35897 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
Gordon Henriksen92f0dca2007-09-22 21:36:59 +000035898 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
35899 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
35900 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
35901 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035902
35903 esac
35904done # for ac_tag
35905
John Criswell7a73b802003-06-30 21:59:07 +000035906
35907{ (exit 0); exit 0; }
35908_ACEOF
35909chmod +x $CONFIG_STATUS
35910ac_clean_files=$ac_clean_files_save
35911
35912
35913# configure is writing to config.log, and then calls config.status.
35914# config.status does its own redirection, appending to config.log.
35915# Unfortunately, on DOS this fails, as config.log is still kept open
35916# by configure, so config.status won't be able to write to it; its
35917# output is simply discarded. So we exec the FD to /dev/null,
35918# effectively closing config.log, so it can be properly (re)opened and
35919# appended to by config.status. When coming back to configure, we
35920# need to make the FD available again.
35921if test "$no_create" != yes; then
35922 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000035923 ac_config_status_args=
35924 test "$silent" = yes &&
35925 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000035926 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000035927 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000035928 exec 5>>config.log
35929 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35930 # would make configure fail if this is the last instruction.
35931 $ac_cs_success || { (exit 1); exit 1; }
35932fi
35933
John Criswell12399a12003-09-30 15:55:44 +000035934#
35935# CONFIG_SUBDIRS section.
35936#
35937if test "$no_recursion" != yes; then
35938
35939 # Remove --cache-file and --srcdir arguments so they do not pile up.
35940 ac_sub_configure_args=
35941 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000035942 eval "set x $ac_configure_args"
35943 shift
35944 for ac_arg
35945 do
John Criswell12399a12003-09-30 15:55:44 +000035946 if test -n "$ac_prev"; then
35947 ac_prev=
35948 continue
35949 fi
35950 case $ac_arg in
35951 -cache-file | --cache-file | --cache-fil | --cache-fi \
35952 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
35953 ac_prev=cache_file ;;
35954 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
35955 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
35956 | --c=*)
35957 ;;
35958 --config-cache | -C)
35959 ;;
35960 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
35961 ac_prev=srcdir ;;
35962 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
35963 ;;
35964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
35965 ac_prev=prefix ;;
35966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
35967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035968 *)
35969 case $ac_arg in
35970 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35971 esac
35972 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000035973 esac
35974 done
35975
35976 # Always prepend --prefix to ensure using the same prefix
35977 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000035978 ac_arg="--prefix=$prefix"
35979 case $ac_arg in
35980 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
35981 esac
Gordon Henriksen40e7f192008-10-22 12:40:55 +000035982 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000035983
35984 ac_popdir=`pwd`
35985 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
35986
35987 # Do not complain, so a configure script can configure whichever
35988 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000035989 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000035990
Reid Spencera773bd52006-08-04 18:18:08 +000035991 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
35992 echo "$as_me:$LINENO: $ac_msg" >&5
35993 echo "$ac_msg" >&6
35994 { as_dir="$ac_dir"
35995 case $as_dir in #(
35996 -*) as_dir=./$as_dir;;
35997 esac
35998 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000035999 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000036000 while :; do
36001 case $as_dir in #(
36002 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
36003 *) as_qdir=$as_dir;;
36004 esac
36005 as_dirs="'$as_qdir' $as_dirs"
36006 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000036007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000036008 X"$as_dir" : 'X\(//\)[^/]' \| \
36009 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000036010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000036011echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000036012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36013 s//\1/
36014 q
36015 }
36016 /^X\(\/\/\)[^/].*/{
36017 s//\1/
36018 q
36019 }
36020 /^X\(\/\/\)$/{
36021 s//\1/
36022 q
36023 }
36024 /^X\(\/\).*/{
36025 s//\1/
36026 q
36027 }
36028 s/.*/./; q'`
36029 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000036030 done
Reid Spencera773bd52006-08-04 18:18:08 +000036031 test -z "$as_dirs" || eval "mkdir $as_dirs"
36032 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
36033echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000036034 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000036035 ac_builddir=.
36036
Reid Spencera773bd52006-08-04 18:18:08 +000036037case "$ac_dir" in
36038.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36039*)
John Criswell12399a12003-09-30 15:55:44 +000036040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000036041 # A ".." for each directory in $ac_dir_suffix.
36042 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
36043 case $ac_top_builddir_sub in
36044 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36045 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36046 esac ;;
36047esac
36048ac_abs_top_builddir=$ac_pwd
36049ac_abs_builddir=$ac_pwd$ac_dir_suffix
36050# for backward compatibility:
36051ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000036052
36053case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000036054 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000036055 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000036056 ac_top_srcdir=$ac_top_builddir_sub
36057 ac_abs_top_srcdir=$ac_pwd ;;
36058 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000036059 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000036060 ac_top_srcdir=$srcdir
36061 ac_abs_top_srcdir=$srcdir ;;
36062 *) # Relative name.
36063 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36064 ac_top_srcdir=$ac_top_build_prefix$srcdir
36065 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000036066esac
Reid Spencera773bd52006-08-04 18:18:08 +000036067ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000036068
36069
Reid Spencera773bd52006-08-04 18:18:08 +000036070 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000036071
36072 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000036073 if test -f "$ac_srcdir/configure.gnu"; then
36074 ac_sub_configure=$ac_srcdir/configure.gnu
36075 elif test -f "$ac_srcdir/configure"; then
36076 ac_sub_configure=$ac_srcdir/configure
36077 elif test -f "$ac_srcdir/configure.in"; then
36078 # This should be Cygnus configure.
36079 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000036080 else
36081 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
36082echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
36083 ac_sub_configure=
36084 fi
36085
36086 # The recursion is here.
36087 if test -n "$ac_sub_configure"; then
36088 # Make the cache file name correct relative to the subdirectory.
36089 case $cache_file in
36090 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000036091 *) # Relative name.
36092 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000036093 esac
36094
Reid Spencera773bd52006-08-04 18:18:08 +000036095 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
36096echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
John Criswell12399a12003-09-30 15:55:44 +000036097 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000036098 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
36099 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000036100 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000036101echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
36102 { (exit 1); exit 1; }; }
36103 fi
36104
Reid Spencera773bd52006-08-04 18:18:08 +000036105 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000036106 done
36107fi
36108