blob: 7de451773d41576113337172fea179bc9af5865b [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner01d3e382006-11-14 00:59:52 +00003# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
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#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if 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
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=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
Reid Spencera773bd52006-08-04 18:18:08 +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
240# Be Bourne compatible
241if 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
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if 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
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
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
Reid Spencera773bd52006-08-04 18:18:08 +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"
528else
529 as_executable_p=:
530fi
531rm -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 Lattner01d3e382006-11-14 00:59:52 +0000718PACKAGE_VERSION='2.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
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>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# 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
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
Reid Spencera773bd52006-08-04 18:18:08 +0000833JIT
834TARGET_HAS_JIT
835ENABLE_DOXYGEN
836ENABLE_THREADS
837TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000838ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000839EXTRA_OPTIONS
840CXX
841CXXFLAGS
842ac_ct_CXX
843LEX
844LEXLIB
845LEX_OUTPUT_ROOT
846FLEX
847YACC
848YFLAGS
849BISON
850NM
851ifGNUmake
852LN_S
853CMP
854CP
855DATE
856FIND
857MKDIR
858MV
859RANLIB
860RM
861SED
862TAR
863BINPWD
864GRAPHVIZ
865DOT
866GV
867DOTTY
868PERL
869HAVE_PERL
870INSTALL_PROGRAM
871INSTALL_SCRIPT
872INSTALL_DATA
873BZIP2
874DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000875GROFF
876GZIP
877POD2HTML
878POD2MAN
879RUNTEST
880TCLSH
881ZIP
882INSTALL_LTDL_TRUE
883INSTALL_LTDL_FALSE
884CONVENIENCE_LTDL_TRUE
885CONVENIENCE_LTDL_FALSE
886LIBADD_DL
887ECHO
888AR
889STRIP
890CXXCPP
891F77
892FFLAGS
893ac_ct_F77
894LIBTOOL
895ETAGSFLAGS
896LLVMGCC
897LLVMGXX
Reid Spencerb2ed05262006-11-03 18:04:08 +0000898HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000899ALLOCA
900MMAP_FILE
901LLVMCC1
902LLVMCC1PLUS
903LLVMGCCDIR
904LLVMGCC_VERSION
905LLVMGCC_MAJVERS
906SHLIBEXT
907LLVM_PREFIX
908LLVM_BINDIR
909LLVM_LIBDIR
910LLVM_DATADIR
911LLVM_DOCSDIR
912LLVM_ETCDIR
913LLVM_INCLUDEDIR
914LLVM_INFODIR
915LLVM_MANDIR
916LLVM_CONFIGTIME
917LIBOBJS
918LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000919ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000920 ac_precious_vars='build_alias
921host_alias
922target_alias
923CC
924CFLAGS
925LDFLAGS
926CPPFLAGS
927CPP
928CXX
929CXXFLAGS
930CCC
931YACC
932YFLAGS
933CXXCPP
934F77
935FFLAGS'
936ac_subdirs_all='projects/sample
937projects/Stacker
938projects/privbracket
939projects/llvm-test
940projects/llvm-reopt
941projects/llvm-gcc
942projects/llvm-java
943projects/llvm-tv
944projects/llvm-poolalloc
945projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000946
947# Initialize some variables set by options.
948ac_init_help=
949ac_init_version=false
950# The variables have the same names as the options, with
951# dashes changed to underlines.
952cache_file=/dev/null
953exec_prefix=NONE
954no_create=
955no_recursion=
956prefix=NONE
957program_prefix=NONE
958program_suffix=NONE
959program_transform_name=s,x,x,
960silent=
961site=
962srcdir=
963verbose=
964x_includes=NONE
965x_libraries=NONE
966
967# Installation directory options.
968# These are left unexpanded so users can "make install exec_prefix=/foo"
969# and all the variables that are supposed to be based on exec_prefix
970# by default will actually change.
971# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000972# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000973bindir='${exec_prefix}/bin'
974sbindir='${exec_prefix}/sbin'
975libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000976datarootdir='${prefix}/share'
977datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000978sysconfdir='${prefix}/etc'
979sharedstatedir='${prefix}/com'
980localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000981includedir='${prefix}/include'
982oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
984infodir='${datarootdir}/info'
985htmldir='${docdir}'
986dvidir='${docdir}'
987pdfdir='${docdir}'
988psdir='${docdir}'
989libdir='${exec_prefix}/lib'
990localedir='${datarootdir}/locale'
991mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000992
993ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000994ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000995for ac_option
996do
997 # If the previous option needs an argument, assign it.
998 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +0000999 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001000 ac_prev=
1001 continue
1002 fi
1003
Reid Spencera773bd52006-08-04 18:18:08 +00001004 case $ac_option in
1005 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1006 *) ac_optarg=yes ;;
1007 esac
John Criswell7a73b802003-06-30 21:59:07 +00001008
1009 # Accept the important Cygnus configure options, so we can diagnose typos.
1010
Reid Spencera773bd52006-08-04 18:18:08 +00001011 case $ac_dashdash$ac_option in
1012 --)
1013 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001014
1015 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1016 ac_prev=bindir ;;
1017 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1018 bindir=$ac_optarg ;;
1019
1020 -build | --build | --buil | --bui | --bu)
1021 ac_prev=build_alias ;;
1022 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1023 build_alias=$ac_optarg ;;
1024
1025 -cache-file | --cache-file | --cache-fil | --cache-fi \
1026 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1027 ac_prev=cache_file ;;
1028 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1029 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1030 cache_file=$ac_optarg ;;
1031
1032 --config-cache | -C)
1033 cache_file=config.cache ;;
1034
Reid Spencera773bd52006-08-04 18:18:08 +00001035 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001036 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001037 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001038 datadir=$ac_optarg ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1041 | --dataroo | --dataro | --datar)
1042 ac_prev=datarootdir ;;
1043 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1044 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1045 datarootdir=$ac_optarg ;;
1046
John Criswell7a73b802003-06-30 21:59:07 +00001047 -disable-* | --disable-*)
1048 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1051 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1052 { (exit 1); exit 1; }; }
1053 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001054 eval enable_$ac_feature=no ;;
1055
1056 -docdir | --docdir | --docdi | --doc | --do)
1057 ac_prev=docdir ;;
1058 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1059 docdir=$ac_optarg ;;
1060
1061 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1062 ac_prev=dvidir ;;
1063 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1064 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001065
1066 -enable-* | --enable-*)
1067 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1070 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001073 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
1082 exec_prefix=$ac_optarg ;;
1083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
1088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
1094
1095 -host | --host | --hos | --ho)
1096 ac_prev=host_alias ;;
1097 -host=* | --host=* | --hos=* | --ho=*)
1098 host_alias=$ac_optarg ;;
1099
Reid Spencera773bd52006-08-04 18:18:08 +00001100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
John Criswell7a73b802003-06-30 21:59:07 +00001106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
1111 includedir=$ac_optarg ;;
1112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1116 infodir=$ac_optarg ;;
1117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1121 libdir=$ac_optarg ;;
1122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
1128 libexecdir=$ac_optarg ;;
1129
Reid Spencera773bd52006-08-04 18:18:08 +00001130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
John Criswell7a73b802003-06-30 21:59:07 +00001135 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001136 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001140 localstatedir=$ac_optarg ;;
1141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1145 mandir=$ac_optarg ;;
1146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1152 | --no-cr | --no-c | -n)
1153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1166 oldincludedir=$ac_optarg ;;
1167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1171 prefix=$ac_optarg ;;
1172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1178 program_prefix=$ac_optarg ;;
1179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1185 program_suffix=$ac_optarg ;;
1186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
1202 program_transform_name=$ac_optarg ;;
1203
Reid Spencera773bd52006-08-04 18:18:08 +00001204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
John Criswell7a73b802003-06-30 21:59:07 +00001214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
1222 sbindir=$ac_optarg ;;
1223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
1233 sharedstatedir=$ac_optarg ;;
1234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
1238 site=$ac_optarg ;;
1239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1243 srcdir=$ac_optarg ;;
1244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1250 sysconfdir=$ac_optarg ;;
1251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
1253 ac_prev=target_alias ;;
1254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1255 target_alias=$ac_optarg ;;
1256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
1260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
1262
1263 -with-* | --with-*)
1264 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1267 { echo "$as_me: error: invalid package name: $ac_package" >&2
1268 { (exit 1); exit 1; }; }
1269 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001270 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001271
1272 -without-* | --without-*)
1273 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1274 # Reject names that are not valid shell variable names.
1275 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1276 { echo "$as_me: error: invalid package name: $ac_package" >&2
1277 { (exit 1); exit 1; }; }
1278 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001279 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1290 x_includes=$ac_optarg ;;
1291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1297 x_libraries=$ac_optarg ;;
1298
1299 -*) { echo "$as_me: error: unrecognized option: $ac_option
1300Try \`$0 --help' for more information." >&2
1301 { (exit 1); exit 1; }; }
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1308 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1309 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001310 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001311 export $ac_envvar ;;
1312
1313 *)
1314 # FIXME: should be removed in autoconf 3.0.
1315 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1317 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
1325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1326 { echo "$as_me: error: missing argument to $ac_option" >&2
1327 { (exit 1); exit 1; }; }
1328fi
1329
Reid Spencera773bd52006-08-04 18:18:08 +00001330# Be sure to have absolute directory names.
1331for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001335do
Reid Spencera773bd52006-08-04 18:18:08 +00001336 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001337 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001338 [\\/$]* | ?:[\\/]* ) continue;;
1339 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001340 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001341 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1342 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001343done
1344
1345# There might be people who depend on the old broken behavior: `$host'
1346# used to hold the argument of --host etc.
1347# FIXME: To remove some day.
1348build=$build_alias
1349host=$host_alias
1350target=$target_alias
1351
1352# FIXME: To remove some day.
1353if test "x$host_alias" != x; then
1354 if test "x$build_alias" = x; then
1355 cross_compiling=maybe
1356 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1357 If a cross compiler is detected then cross compile mode will be used." >&2
1358 elif test "x$build_alias" != "x$host_alias"; then
1359 cross_compiling=yes
1360 fi
1361fi
1362
1363ac_tool_prefix=
1364test -n "$host_alias" && ac_tool_prefix=$host_alias-
1365
1366test "$silent" = yes && exec 6>/dev/null
1367
1368
Reid Spencera773bd52006-08-04 18:18:08 +00001369ac_pwd=`pwd` && test -n "$ac_pwd" &&
1370ac_ls_di=`ls -di .` &&
1371ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1372 { echo "$as_me: error: Working directory cannot be determined" >&2
1373 { (exit 1); exit 1; }; }
1374test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 { echo "$as_me: error: pwd does not report name of working directory" >&2
1376 { (exit 1); exit 1; }; }
1377
1378
John Criswell7a73b802003-06-30 21:59:07 +00001379# Find the source files, if location was not specified.
1380if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001384$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001385 X"$0" : 'X\(//\)[^/]' \| \
1386 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001387 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001388echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001406 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001407 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001408 srcdir=..
1409 fi
1410else
1411 ac_srcdir_defaulted=no
1412fi
Reid Spencera773bd52006-08-04 18:18:08 +00001413if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001416 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001421 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001422 pwd)`
1423# When building in place, set srcdir=.
1424if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 srcdir=.
1426fi
1427# Remove unnecessary trailing slashes from srcdir.
1428# Double slashes in file names in object file debugging info
1429# mess up M-x gdb in Emacs.
1430case $srcdir in
1431*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432esac
1433for ac_var in $ac_precious_vars; do
1434 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_${ac_var}_value=\$${ac_var}
1436 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1438done
John Criswell7a73b802003-06-30 21:59:07 +00001439
1440#
1441# Report the --help message.
1442#
1443if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1446 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001447\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001448
1449Usage: $0 [OPTION]... [VAR=VALUE]...
1450
1451To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452VAR=VALUE. See below for descriptions of some of the useful variables.
1453
1454Defaults for the options are specified in brackets.
1455
1456Configuration:
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466
John Criswell7a73b802003-06-30 21:59:07 +00001467Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001472
1473By default, \`make install' will install all the files in
1474\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476for instance \`--prefix=\$HOME'.
1477
1478For better control, use the options below.
1479
1480Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001500_ACEOF
1501
1502 cat <<\_ACEOF
1503
1504System types:
1505 --build=BUILD configure for building on BUILD [guessed]
1506 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1507 --target=TARGET configure for building compilers for TARGET [HOST]
1508_ACEOF
1509fi
1510
1511if test -n "$ac_init_help"; then
1512 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001513 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001514 esac
1515 cat <<\_ACEOF
1516
1517Optional Features:
1518 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1519 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001520 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001521 --enable-assertions
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001522 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001523 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001524 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001525 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001526 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001527 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1528 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001529 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001530 --enable-shared[=PKGS] build shared libraries
1531 [default=enable_shared_default]
1532 --enable-static[=PKGS] build static libraries
1533 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001534 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001535 optimize for fast installation
1536 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001537 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001538
1539Optional Packages:
1540 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1541 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001542 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1543 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001544 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001545 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001546 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1547 --with-pic try to use only PIC/non-PIC objects [default=use
1548 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001549 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001550
1551Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001552 CC C compiler command
1553 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001556 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1557 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001558 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001561 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1562 the first program found out of: `bison -y', `byacc', `yacc'.
1563 YFLAGS The list of arguments that will be passed by default to $YACC.
1564 This script will default YFLAGS to the empty string to avoid a
1565 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001566 CXXCPP C++ preprocessor
1567 F77 Fortran 77 compiler command
1568 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573Report bugs to <llvmbugs@cs.uiuc.edu>.
1574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001575ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001576fi
1577
1578if test "$ac_init_help" = "recursive"; then
1579 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001580 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001581 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001582 ac_builddir=.
1583
Reid Spencera773bd52006-08-04 18:18:08 +00001584case "$ac_dir" in
1585.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586*)
John Criswell7a73b802003-06-30 21:59:07 +00001587 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001588 # A ".." for each directory in $ac_dir_suffix.
1589 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1590 case $ac_top_builddir_sub in
1591 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1592 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1593 esac ;;
1594esac
1595ac_abs_top_builddir=$ac_pwd
1596ac_abs_builddir=$ac_pwd$ac_dir_suffix
1597# for backward compatibility:
1598ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001599
1600case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001601 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001602 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001603 ac_top_srcdir=$ac_top_builddir_sub
1604 ac_abs_top_srcdir=$ac_pwd ;;
1605 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001606 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001607 ac_top_srcdir=$srcdir
1608 ac_abs_top_srcdir=$srcdir ;;
1609 *) # Relative name.
1610 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1611 ac_top_srcdir=$ac_top_build_prefix$srcdir
1612 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001613esac
Reid Spencera773bd52006-08-04 18:18:08 +00001614ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001615
Reid Spencera773bd52006-08-04 18:18:08 +00001616 cd "$ac_dir" || { ac_status=$?; continue; }
1617 # Check for guested configure.
1618 if test -f "$ac_srcdir/configure.gnu"; then
1619 echo &&
1620 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1621 elif test -f "$ac_srcdir/configure"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001624 else
1625 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001626 fi || ac_status=$?
1627 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001628 done
1629fi
1630
Reid Spencera773bd52006-08-04 18:18:08 +00001631test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001632if $ac_init_version; then
1633 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001634llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001635generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001636
Reid Spencera773bd52006-08-04 18:18:08 +00001637Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16382002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001639This configure script is free software; the Free Software Foundation
1640gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001641
John Criswellc0c186d2005-11-08 21:11:33 +00001642Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001643_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001644 exit
John Criswell7a73b802003-06-30 21:59:07 +00001645fi
Reid Spencera773bd52006-08-04 18:18:08 +00001646cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001647This file contains any messages produced by compilers while
1648running configure, to aid debugging if configure makes a mistake.
1649
Tanya Lattner01d3e382006-11-14 00:59:52 +00001650It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001651generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001652
1653 $ $0 $@
1654
1655_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001656exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001657{
1658cat <<_ASUNAME
1659## --------- ##
1660## Platform. ##
1661## --------- ##
1662
1663hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1664uname -m = `(uname -m) 2>/dev/null || echo unknown`
1665uname -r = `(uname -r) 2>/dev/null || echo unknown`
1666uname -s = `(uname -s) 2>/dev/null || echo unknown`
1667uname -v = `(uname -v) 2>/dev/null || echo unknown`
1668
1669/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1670/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1671
1672/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1673/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1674/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001675/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001676/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1677/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1678/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1679
1680_ASUNAME
1681
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685 IFS=$as_save_IFS
1686 test -z "$as_dir" && as_dir=.
1687 echo "PATH: $as_dir"
1688done
Reid Spencera773bd52006-08-04 18:18:08 +00001689IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001690
1691} >&5
1692
1693cat >&5 <<_ACEOF
1694
1695
1696## ----------- ##
1697## Core tests. ##
1698## ----------- ##
1699
1700_ACEOF
1701
1702
1703# Keep a trace of the command line.
1704# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001705# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001706# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001707# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001708ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001709ac_configure_args0=
1710ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001711ac_must_keep_next=false
1712for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001713do
John Criswell0c38eaf2003-09-10 15:17:25 +00001714 for ac_arg
1715 do
1716 case $ac_arg in
1717 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1718 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1719 | -silent | --silent | --silen | --sile | --sil)
1720 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001721 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001722 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 esac
1724 case $ac_pass in
1725 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1726 2)
1727 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1728 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001729 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001730 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001731 case $ac_arg in
1732 *=* | --config-cache | -C | -disable-* | --disable-* \
1733 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1734 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1735 | -with-* | --with-* | -without-* | --without-* | --x)
1736 case "$ac_configure_args0 " in
1737 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1738 esac
1739 ;;
1740 -* ) ac_must_keep_next=true ;;
1741 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001742 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001743 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001744 ;;
1745 esac
1746 done
John Criswell7a73b802003-06-30 21:59:07 +00001747done
John Criswell0c38eaf2003-09-10 15:17:25 +00001748$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1749$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 +00001750
1751# When interrupted or exit'd, cleanup temporary files, and complete
1752# config.log. We remove comments because anyway the quotes in there
1753# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001754# WARNING: Use '\'' to represent an apostrophe within the trap.
1755# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001756trap 'exit_status=$?
1757 # Save into config.log some information that might help in debugging.
1758 {
1759 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001760
John Criswell7a73b802003-06-30 21:59:07 +00001761 cat <<\_ASBOX
1762## ---------------- ##
1763## Cache variables. ##
1764## ---------------- ##
1765_ASBOX
1766 echo
1767 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001768(
1769 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1770 eval ac_val=\$$ac_var
1771 case $ac_val in #(
1772 *${as_nl}*)
1773 case $ac_var in #(
1774 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1775echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1776 esac
1777 case $ac_var in #(
1778 _ | IFS | as_nl) ;; #(
1779 *) $as_unset $ac_var ;;
1780 esac ;;
1781 esac
1782 done
John Criswell7a73b802003-06-30 21:59:07 +00001783 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001786 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001790 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001792 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001793 esac |
1794 sort
1795)
John Criswell7a73b802003-06-30 21:59:07 +00001796 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001797
1798 cat <<\_ASBOX
1799## ----------------- ##
1800## Output variables. ##
1801## ----------------- ##
1802_ASBOX
1803 echo
1804 for ac_var in $ac_subst_vars
1805 do
Reid Spencera773bd52006-08-04 18:18:08 +00001806 eval ac_val=\$$ac_var
1807 case $ac_val in
1808 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809 esac
1810 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001811 done | sort
1812 echo
1813
1814 if test -n "$ac_subst_files"; then
1815 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001816## ------------------- ##
1817## File substitutions. ##
1818## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001819_ASBOX
1820 echo
1821 for ac_var in $ac_subst_files
1822 do
Reid Spencera773bd52006-08-04 18:18:08 +00001823 eval ac_val=\$$ac_var
1824 case $ac_val in
1825 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826 esac
1827 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001828 done | sort
1829 echo
1830 fi
1831
John Criswell7a73b802003-06-30 21:59:07 +00001832 if test -s confdefs.h; then
1833 cat <<\_ASBOX
1834## ----------- ##
1835## confdefs.h. ##
1836## ----------- ##
1837_ASBOX
1838 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001839 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001840 echo
1841 fi
1842 test "$ac_signal" != 0 &&
1843 echo "$as_me: caught signal $ac_signal"
1844 echo "$as_me: exit $exit_status"
1845 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001846 rm -f core *.core core.conftest.* &&
1847 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001848 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001849' 0
John Criswell7a73b802003-06-30 21:59:07 +00001850for ac_signal in 1 2 13 15; do
1851 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852done
1853ac_signal=0
1854
1855# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001856rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001857
1858# Predefined preprocessor variables.
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_NAME "$PACKAGE_NAME"
1862_ACEOF
1863
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_VERSION "$PACKAGE_VERSION"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_STRING "$PACKAGE_STRING"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882_ACEOF
1883
1884
1885# Let the site file select an alternate cache file if it wants to.
1886# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001887if test -n "$CONFIG_SITE"; then
1888 set x "$CONFIG_SITE"
1889elif test "x$prefix" != xNONE; then
1890 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1891else
1892 set x "$ac_default_prefix/share/config.site" \
1893 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001894fi
Reid Spencera773bd52006-08-04 18:18:08 +00001895shift
1896for ac_site_file
1897do
John Criswell7a73b802003-06-30 21:59:07 +00001898 if test -r "$ac_site_file"; then
1899 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1900echo "$as_me: loading site script $ac_site_file" >&6;}
1901 sed 's/^/| /' "$ac_site_file" >&5
1902 . "$ac_site_file"
1903 fi
1904done
1905
1906if test -r "$cache_file"; then
1907 # Some versions of bash will fail to source /dev/null (special
1908 # files actually), so we avoid doing that.
1909 if test -f "$cache_file"; then
1910 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1911echo "$as_me: loading cache $cache_file" >&6;}
1912 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001913 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1914 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001915 esac
1916 fi
1917else
1918 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1919echo "$as_me: creating cache $cache_file" >&6;}
1920 >$cache_file
1921fi
1922
1923# Check that the precious variables saved in the cache have kept the same
1924# value.
1925ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001926for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001927 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1928 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001929 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1930 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001931 case $ac_old_set,$ac_new_set in
1932 set,)
1933 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1934echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,set)
1937 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1938echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1939 ac_cache_corrupted=: ;;
1940 ,);;
1941 *)
1942 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001943 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001944echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001945 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001946echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001947 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001948echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001949 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001950 fi;;
1951 esac
1952 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then
1954 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001955 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001956 *) ac_arg=$ac_var=$ac_new_val ;;
1957 esac
1958 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1961 esac
1962 fi
1963done
1964if $ac_cache_corrupted; then
1965 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1966echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1968echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1969 { (exit 1); exit 1; }; }
1970fi
1971
Reid Spencera773bd52006-08-04 18:18:08 +00001972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
John Criswell7a73b802003-06-30 21:59:07 +00001996ac_ext=c
1997ac_cpp='$CPP $CPPFLAGS'
1998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003
Misha Brukman19098e52005-05-12 22:15:34 +00002004LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002005
2006
2007
2008
2009
2010
2011
John Criswell7a73b802003-06-30 21:59:07 +00002012ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002013for ac_dir in autoconf "$srcdir"/autoconf; do
2014 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002015 ac_aux_dir=$ac_dir
2016 ac_install_sh="$ac_aux_dir/install-sh -c"
2017 break
Reid Spencera773bd52006-08-04 18:18:08 +00002018 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002019 ac_aux_dir=$ac_dir
2020 ac_install_sh="$ac_aux_dir/install.sh -c"
2021 break
Reid Spencera773bd52006-08-04 18:18:08 +00002022 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002023 ac_aux_dir=$ac_dir
2024 ac_install_sh="$ac_aux_dir/shtool install -c"
2025 break
2026 fi
2027done
2028if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002029 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2030echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002031 { (exit 1); exit 1; }; }
2032fi
Reid Spencera773bd52006-08-04 18:18:08 +00002033
2034# These three variables are undocumented and unsupported,
2035# and are intended to be withdrawn in a future Autoconf release.
2036# They can cause serious problems if a builder's source tree is in a directory
2037# whose full name contains unusual characters.
2038ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2039ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2040ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2041
John Criswell7a73b802003-06-30 21:59:07 +00002042
John Criswell392aaa32003-07-22 19:18:09 +00002043
Reid Spencer2706f8c2004-09-19 23:53:36 +00002044if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2046 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002047echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2048 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049 fi
John Criswell93e1c722003-09-15 17:04:06 +00002050fi
2051
John Criswell33a911a2003-11-25 20:36:46 +00002052for i in `ls ${srcdir}/projects`
2053do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002054 if test -d ${srcdir}/projects/${i} ; then
2055 case ${i} in
2056 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002057 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002059 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002061 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002062 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002063 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002064 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002065 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002066;;
Reid Spencera773bd52006-08-04 18:18:08 +00002067 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002068 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002069 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002071 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002072 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002073 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002074 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002075 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002076 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002078 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2079echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002080 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081 esac
John Criswell33a911a2003-11-25 20:36:46 +00002082 fi
2083done
John Criswell559a6c12003-09-30 16:31:48 +00002084
John Criswell7a73b802003-06-30 21:59:07 +00002085
2086# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002087$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2088 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2089echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002090 { (exit 1); exit 1; }; }
2091
Reid Spencera773bd52006-08-04 18:18:08 +00002092{ echo "$as_me:$LINENO: checking build system type" >&5
2093echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002094if test "${ac_cv_build+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
Reid Spencera773bd52006-08-04 18:18:08 +00002097 ac_build_alias=$build_alias
2098test "x$ac_build_alias" = x &&
2099 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2100test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002101 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002104ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2105 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2106echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002107 { (exit 1); exit 1; }; }
2108
2109fi
Reid Spencera773bd52006-08-04 18:18:08 +00002110{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111echo "${ECHO_T}$ac_cv_build" >&6; }
2112case $ac_cv_build in
2113*-*-*) ;;
2114*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2115echo "$as_me: error: invalid value of canonical build" >&2;}
2116 { (exit 1); exit 1; }; };;
2117esac
John Criswell7a73b802003-06-30 21:59:07 +00002118build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002119ac_save_IFS=$IFS; IFS='-'
2120set x $ac_cv_build
2121shift
2122build_cpu=$1
2123build_vendor=$2
2124shift; shift
2125# Remember, the first character of IFS is used to create $*,
2126# except with old shells:
2127build_os=$*
2128IFS=$ac_save_IFS
2129case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002130
2131
Reid Spencera773bd52006-08-04 18:18:08 +00002132{ echo "$as_me:$LINENO: checking host system type" >&5
2133echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002134if test "${ac_cv_host+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
Reid Spencera773bd52006-08-04 18:18:08 +00002137 if test "x$host_alias" = x; then
2138 ac_cv_host=$ac_cv_build
2139else
2140 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2142echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002143 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002144fi
John Criswell7a73b802003-06-30 21:59:07 +00002145
2146fi
Reid Spencera773bd52006-08-04 18:18:08 +00002147{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2148echo "${ECHO_T}$ac_cv_host" >&6; }
2149case $ac_cv_host in
2150*-*-*) ;;
2151*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2152echo "$as_me: error: invalid value of canonical host" >&2;}
2153 { (exit 1); exit 1; }; };;
2154esac
John Criswell7a73b802003-06-30 21:59:07 +00002155host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002156ac_save_IFS=$IFS; IFS='-'
2157set x $ac_cv_host
2158shift
2159host_cpu=$1
2160host_vendor=$2
2161shift; shift
2162# Remember, the first character of IFS is used to create $*,
2163# except with old shells:
2164host_os=$*
2165IFS=$ac_save_IFS
2166case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002167
2168
Reid Spencera773bd52006-08-04 18:18:08 +00002169{ echo "$as_me:$LINENO: checking target system type" >&5
2170echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002171if test "${ac_cv_target+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173else
Reid Spencera773bd52006-08-04 18:18:08 +00002174 if test "x$target_alias" = x; then
2175 ac_cv_target=$ac_cv_host
2176else
2177 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2178 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2179echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002180 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002181fi
John Criswell7a73b802003-06-30 21:59:07 +00002182
2183fi
Reid Spencera773bd52006-08-04 18:18:08 +00002184{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2185echo "${ECHO_T}$ac_cv_target" >&6; }
2186case $ac_cv_target in
2187*-*-*) ;;
2188*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2189echo "$as_me: error: invalid value of canonical target" >&2;}
2190 { (exit 1); exit 1; }; };;
2191esac
John Criswell7a73b802003-06-30 21:59:07 +00002192target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002193ac_save_IFS=$IFS; IFS='-'
2194set x $ac_cv_target
2195shift
2196target_cpu=$1
2197target_vendor=$2
2198shift; shift
2199# Remember, the first character of IFS is used to create $*,
2200# except with old shells:
2201target_os=$*
2202IFS=$ac_save_IFS
2203case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002204
2205
2206# The aliases save the names the user supplied, while $host etc.
2207# will get canonicalized.
2208test -n "$target_alias" &&
2209 test "$program_prefix$program_suffix$program_transform_name" = \
2210 NONENONEs,x,x, &&
2211 program_prefix=${target_alias}-
2212
Reid Spencera773bd52006-08-04 18:18:08 +00002213{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2214echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002215if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002218 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002219 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 llvm_cv_os_type="AIX"
2223 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002224 *-*-irix*)
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="IRIX"
2228 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002229 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232 llvm_cv_os_type="Cygwin"
2233 llvm_cv_platform_type="Unix" ;;
2234 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002235 llvm_cv_link_all_option="-Wl,-all_load"
2236 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002237 llvm_cv_os_type="Darwin"
2238 llvm_cv_platform_type="Unix" ;;
2239 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002242 llvm_cv_os_type="FreeBSD"
2243 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002244 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002245 llvm_cv_link_all_option="-Wl,--whole-archive"
2246 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002247 llvm_cv_os_type="OpenBSD"
2248 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002249 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002250 llvm_cv_link_all_option="-Wl,--whole-archive"
2251 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002252 llvm_cv_os_type="HP-UX"
2253 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002254 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002255 llvm_cv_link_all_option="-Wl,--whole-archive"
2256 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 llvm_cv_os_type="Interix"
2258 llvm_cv_platform_type="Unix" ;;
2259 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002260 llvm_cv_link_all_option="-Wl,--whole-archive"
2261 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002262 llvm_cv_os_type="Linux"
2263 llvm_cv_platform_type="Unix" ;;
2264 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002265 llvm_cv_link_all_option="-Wl,-z,allextract"
2266 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002267 llvm_cv_os_type="SunOS"
2268 llvm_cv_platform_type="Unix" ;;
2269 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002270 llvm_cv_link_all_option="-Wl,--whole-archive"
2271 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002272 llvm_cv_os_type="Win32"
2273 llvm_cv_platform_type="Win32" ;;
2274 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002275 llvm_cv_link_all_option="-Wl,--whole-archive"
2276 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002277 llvm_cv_os_type="MingW"
2278 llvm_cv_platform_type="Win32" ;;
2279 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002280 llvm_cv_link_all_option=""
2281 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002282 llvm_cv_os_type="Unknown"
2283 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002284esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002285fi
Reid Spencera773bd52006-08-04 18:18:08 +00002286{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2287echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002288
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289if test "$llvm_cv_os_type" = "Unknown" ; then
2290 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2291echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002292 { (exit 1); exit 1; }; }
2293fi
2294
Reid Spencer7b3e8512004-12-24 06:29:05 +00002295OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002296
2297
Reid Spencera773bd52006-08-04 18:18:08 +00002298LINKALL=$llvm_cv_link_all_option
2299
2300NOLINKALL=$llvm_cv_no_link_all_option
2301
2302
Reid Spencer7b3e8512004-12-24 06:29:05 +00002303case $llvm_cv_platform_type in
2304 Unix)
2305
2306cat >>confdefs.h <<\_ACEOF
2307#define LLVM_ON_UNIX 1
2308_ACEOF
2309
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002310 LLVM_ON_UNIX=1
2311
2312 LLVM_ON_WIN32=0
2313
Reid Spencer7b3e8512004-12-24 06:29:05 +00002314 ;;
2315 Win32)
2316
2317cat >>confdefs.h <<\_ACEOF
2318#define LLVM_ON_WIN32 1
2319_ACEOF
2320
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002321 LLVM_ON_UNIX=0
2322
2323 LLVM_ON_WIN32=1
2324
Reid Spencer7b3e8512004-12-24 06:29:05 +00002325 ;;
2326esac
2327
Reid Spencera773bd52006-08-04 18:18:08 +00002328{ echo "$as_me:$LINENO: checking target architecture" >&5
2329echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002330if test "${llvm_cv_target_arch+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002334 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002335 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002336 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2337 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002338 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002339 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002340 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002341esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002342fi
Reid Spencera773bd52006-08-04 18:18:08 +00002343{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2344echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002345
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346if test "$llvm_cv_target_arch" = "Unknown" ; then
2347 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2348echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2349fi
John Criswell76595452003-07-01 22:07:39 +00002350
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002352
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354ac_ext=c
2355ac_cpp='$CPP $CPPFLAGS'
2356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002359if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002364if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366else
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2369else
2370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371for as_dir in $PATH
2372do
2373 IFS=$as_save_IFS
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002376 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 +00002377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2379 break 2
2380 fi
2381done
2382done
Reid Spencera773bd52006-08-04 18:18:08 +00002383IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002384
2385fi
2386fi
2387CC=$ac_cv_prog_CC
2388if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002389 { echo "$as_me:$LINENO: result: $CC" >&5
2390echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391else
Reid Spencera773bd52006-08-04 18:18:08 +00002392 { echo "$as_me:$LINENO: result: no" >&5
2393echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394fi
2395
Reid Spencera773bd52006-08-04 18:18:08 +00002396
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397fi
2398if test -z "$ac_cv_prog_CC"; then
2399 ac_ct_CC=$CC
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002402{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2409else
2410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411for as_dir in $PATH
2412do
2413 IFS=$as_save_IFS
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002416 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 +00002417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 break 2
2420 fi
2421done
2422done
Reid Spencera773bd52006-08-04 18:18:08 +00002423IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002424
2425fi
2426fi
2427ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431else
Reid Spencera773bd52006-08-04 18:18:08 +00002432 { echo "$as_me:$LINENO: result: no" >&5
2433echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434fi
2435
Reid Spencera773bd52006-08-04 18:18:08 +00002436 if test "x$ac_ct_CC" = x; then
2437 CC=""
2438 else
2439 case $cross_compiling:$ac_tool_warned in
2440yes:)
2441{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442whose name does not start with the host triplet. If you think this
2443configuration is useful to you, please write to autoconf@gnu.org." >&5
2444echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445whose name does not start with the host triplet. If you think this
2446configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447ac_tool_warned=yes ;;
2448esac
2449 CC=$ac_ct_CC
2450 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451else
2452 CC="$ac_cv_prog_CC"
2453fi
2454
2455if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002456 if test -n "$ac_tool_prefix"; then
2457 # 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 +00002458set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002459{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002461if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2466else
2467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468for as_dir in $PATH
2469do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002473 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 +00002474 ac_cv_prog_CC="${ac_tool_prefix}cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2477 fi
2478done
2479done
Reid Spencera773bd52006-08-04 18:18:08 +00002480IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002481
2482fi
2483fi
2484CC=$ac_cv_prog_CC
2485if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002486 { echo "$as_me:$LINENO: result: $CC" >&5
2487echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488else
Reid Spencera773bd52006-08-04 18:18:08 +00002489 { echo "$as_me:$LINENO: result: no" >&5
2490echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491fi
2492
Reid Spencera773bd52006-08-04 18:18:08 +00002493
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495fi
2496if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2506else
2507 ac_prog_rejected=no
2508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509for as_dir in $PATH
2510do
2511 IFS=$as_save_IFS
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002514 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 +00002515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2517 continue
2518 fi
2519 ac_cv_prog_CC="cc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
Reid Spencera773bd52006-08-04 18:18:08 +00002525IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002526
2527if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2530 shift
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2535 shift
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2537 fi
2538fi
2539fi
2540fi
2541CC=$ac_cv_prog_CC
2542if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002543 { echo "$as_me:$LINENO: result: $CC" >&5
2544echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002545else
Reid Spencera773bd52006-08-04 18:18:08 +00002546 { echo "$as_me:$LINENO: result: no" >&5
2547echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548fi
2549
Reid Spencera773bd52006-08-04 18:18:08 +00002550
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551fi
2552if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002554 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002555 do
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002558{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002561 echo $ECHO_N "(cached) $ECHO_C" >&6
2562else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002565else
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002572 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 +00002573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2575 break 2
2576 fi
2577done
2578done
Reid Spencera773bd52006-08-04 18:18:08 +00002579IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002580
2581fi
2582fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002583CC=$ac_cv_prog_CC
2584if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002585 { echo "$as_me:$LINENO: result: $CC" >&5
2586echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002587else
Reid Spencera773bd52006-08-04 18:18:08 +00002588 { echo "$as_me:$LINENO: result: no" >&5
2589echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002590fi
2591
Reid Spencera773bd52006-08-04 18:18:08 +00002592
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002593 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002594 done
2595fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596if test -z "$CC"; then
2597 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002598 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002599do
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002602{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002604if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002605 echo $ECHO_N "(cached) $ECHO_C" >&6
2606else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002609else
2610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611for as_dir in $PATH
2612do
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002616 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 +00002617 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2620 fi
2621done
2622done
Reid Spencera773bd52006-08-04 18:18:08 +00002623IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002624
2625fi
2626fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002627ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002631else
Reid Spencera773bd52006-08-04 18:18:08 +00002632 { echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002634fi
2635
Reid Spencera773bd52006-08-04 18:18:08 +00002636
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002637 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002638done
John Criswell7a73b802003-06-30 21:59:07 +00002639
Reid Spencera773bd52006-08-04 18:18:08 +00002640 if test "x$ac_ct_CC" = x; then
2641 CC=""
2642 else
2643 case $cross_compiling:$ac_tool_warned in
2644yes:)
2645{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646whose name does not start with the host triplet. If you think this
2647configuration is useful to you, please write to autoconf@gnu.org." >&5
2648echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649whose name does not start with the host triplet. If you think this
2650configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651ac_tool_warned=yes ;;
2652esac
2653 CC=$ac_ct_CC
2654 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655fi
2656
John Criswell7a73b802003-06-30 21:59:07 +00002657fi
2658
2659
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002660test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661See \`config.log' for more details." >&5
2662echo "$as_me: error: no acceptable C compiler found in \$PATH
2663See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2665
John Criswell7a73b802003-06-30 21:59:07 +00002666# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002667echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002668ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002669{ (ac_try="$ac_compiler --version >&5"
2670case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673esac
2674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002676 ac_status=$?
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002679{ (ac_try="$ac_compiler -v >&5"
2680case "(($ac_try" in
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2683esac
2684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002686 ac_status=$?
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002689{ (ac_try="$ac_compiler -V >&5"
2690case "(($ac_try" in
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2693esac
2694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699
2700cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002706
John Criswell7a73b802003-06-30 21:59:07 +00002707int
2708main ()
2709{
2710
2711 ;
2712 return 0;
2713}
2714_ACEOF
2715ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002716ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002717# Try to create an executable without -o first, disregard a.out.
2718# It will help us diagnose broken compilers, and finding out an intuition
2719# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002720{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002722ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002723#
2724# List of possible output files, starting from the most likely.
2725# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726# only as a last resort. b.out is created by i960 compilers.
2727ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2728#
2729# The IRIX 6 linker writes into existing files which may not be
2730# executable, retaining their permissions. Remove them first so a
2731# subsequent execution test works.
2732ac_rmfiles=
2733for ac_file in $ac_files
2734do
2735 case $ac_file in
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 esac
2739done
2740rm -f $ac_rmfiles
2741
2742if { (ac_try="$ac_link_default"
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_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002749 ac_status=$?
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754# in a Makefile. We should not override ac_cv_exeext if it was cached,
2755# so that the user can short-circuit this test for compilers unknown to
2756# Autoconf.
2757for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002758do
2759 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002760 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002762 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002763 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002764 # We found the default executable, but exeext='' is most
2765 # certainly right.
2766 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002767 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2769 then :; else
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2771 fi
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2776 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002777 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002778 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002779 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002780 esac
2781done
Reid Spencera773bd52006-08-04 18:18:08 +00002782test "$ac_cv_exeext" = no && ac_cv_exeext=
2783
John Criswell7a73b802003-06-30 21:59:07 +00002784else
2785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002786sed 's/^/| /' conftest.$ac_ext >&5
2787
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002788{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002789See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002790echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002791See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002792 { (exit 77); exit 77; }; }
2793fi
2794
2795ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002796{ echo "$as_me:$LINENO: result: $ac_file" >&5
2797echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002798
Reid Spencera773bd52006-08-04 18:18:08 +00002799# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002800# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002801{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002803# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804# If not cross compiling, check that we can run a simple program.
2805if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2816 cross_compiling=no
2817 else
2818 if test "$cross_compiling" = maybe; then
2819 cross_compiling=yes
2820 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002822If you meant to cross compile, use \`--host'.
2823See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002824echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002825If you meant to cross compile, use \`--host'.
2826See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002827 { (exit 1); exit 1; }; }
2828 fi
2829 fi
2830fi
Reid Spencera773bd52006-08-04 18:18:08 +00002831{ echo "$as_me:$LINENO: result: yes" >&5
2832echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002833
John Criswell0c38eaf2003-09-10 15:17:25 +00002834rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002835ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002836# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002837# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002842
Reid Spencera773bd52006-08-04 18:18:08 +00002843{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845if { (ac_try="$ac_link"
2846case "(($ac_try" in
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2849esac
2850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857# work properly (i.e., refer to `conftest.exe'), while it won't with
2858# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002859for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002861 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002864 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002865 * ) break;;
2866 esac
2867done
2868else
John Criswell0c38eaf2003-09-10 15:17:25 +00002869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870See \`config.log' for more details." >&5
2871echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002873 { (exit 1); exit 1; }; }
2874fi
2875
2876rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002877{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002879
2880rm -f conftest.$ac_ext
2881EXEEXT=$ac_cv_exeext
2882ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002883{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002885if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
2888 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002894
John Criswell7a73b802003-06-30 21:59:07 +00002895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002904if { (ac_try="$ac_compile"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
2909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002916 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2919 break;;
2920 esac
2921done
2922else
2923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927See \`config.log' for more details." >&5
2928echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002930 { (exit 1); exit 1; }; }
2931fi
2932
2933rm -f conftest.$ac_cv_objext conftest.$ac_ext
2934fi
Reid Spencera773bd52006-08-04 18:18:08 +00002935{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002937OBJEXT=$ac_cv_objext
2938ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002939{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002941if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002942 echo $ECHO_N "(cached) $ECHO_C" >&6
2943else
2944 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002945/* confdefs.h. */
2946_ACEOF
2947cat confdefs.h >>conftest.$ac_ext
2948cat >>conftest.$ac_ext <<_ACEOF
2949/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002950
John Criswell7a73b802003-06-30 21:59:07 +00002951int
2952main ()
2953{
2954#ifndef __GNUC__
2955 choke me
2956#endif
2957
2958 ;
2959 return 0;
2960}
2961_ACEOF
2962rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002963if { (ac_try="$ac_compile"
2964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002970 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002971 grep -v '^ *+' conftest.er1 >conftest.err
2972 rm -f conftest.er1
2973 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; } &&
2986 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002987 { (case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }; }; then
2996 ac_compiler_gnu=yes
2997else
2998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002999sed 's/^/| /' conftest.$ac_ext >&5
3000
Reid Spencera773bd52006-08-04 18:18:08 +00003001 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003002fi
Reid Spencera773bd52006-08-04 18:18:08 +00003003
3004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003005ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003006
3007fi
Reid Spencera773bd52006-08-04 18:18:08 +00003008{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3009echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003010GCC=`test $ac_compiler_gnu = yes && echo yes`
3011ac_test_CFLAGS=${CFLAGS+set}
3012ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003013{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3014echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003015if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003016 echo $ECHO_N "(cached) $ECHO_C" >&6
3017else
Reid Spencera773bd52006-08-04 18:18:08 +00003018 ac_save_c_werror_flag=$ac_c_werror_flag
3019 ac_c_werror_flag=yes
3020 ac_cv_prog_cc_g=no
3021 CFLAGS="-g"
3022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003023/* confdefs.h. */
3024_ACEOF
3025cat confdefs.h >>conftest.$ac_ext
3026cat >>conftest.$ac_ext <<_ACEOF
3027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003028
John Criswell7a73b802003-06-30 21:59:07 +00003029int
3030main ()
3031{
3032
3033 ;
3034 return 0;
3035}
3036_ACEOF
3037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003038if { (ac_try="$ac_compile"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003045 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003046 grep -v '^ *+' conftest.er1 >conftest.err
3047 rm -f conftest.er1
3048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; } &&
3061 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003062 { (case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065esac
3066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3067 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003068 ac_status=$?
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003071 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003072else
3073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003074sed 's/^/| /' conftest.$ac_ext >&5
3075
Reid Spencera773bd52006-08-04 18:18:08 +00003076 CFLAGS=""
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083
3084int
3085main ()
3086{
3087
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } &&
3106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3107 { (case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
3111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3112 (eval "$ac_try") 2>&5
3113 ac_status=$?
3114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115 (exit $ac_status); }; } &&
3116 { ac_try='test -s conftest.$ac_objext'
3117 { (case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3119 *) ac_try_echo=$ac_try;;
3120esac
3121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3122 (eval "$ac_try") 2>&5
3123 ac_status=$?
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); }; }; then
3126 :
3127else
3128 echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131 ac_c_werror_flag=$ac_save_c_werror_flag
3132 CFLAGS="-g"
3133 cat >conftest.$ac_ext <<_ACEOF
3134/* confdefs.h. */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
3149if { (ac_try="$ac_compile"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } &&
3162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3163 { (case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166esac
3167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3168 (eval "$ac_try") 2>&5
3169 ac_status=$?
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); }; } &&
3172 { ac_try='test -s conftest.$ac_objext'
3173 { (case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176esac
3177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178 (eval "$ac_try") 2>&5
3179 ac_status=$?
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); }; }; then
3182 ac_cv_prog_cc_g=yes
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
John Criswell7a73b802003-06-30 21:59:07 +00003188fi
Reid Spencera773bd52006-08-04 18:18:08 +00003189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003191fi
Reid Spencera773bd52006-08-04 18:18:08 +00003192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_c_werror_flag=$ac_save_c_werror_flag
3198fi
3199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3200echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003201if test "$ac_test_CFLAGS" = set; then
3202 CFLAGS=$ac_save_CFLAGS
3203elif test $ac_cv_prog_cc_g = yes; then
3204 if test "$GCC" = yes; then
3205 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003206 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003207 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003208 fi
3209else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210 if test "$GCC" = yes; then
3211 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003212 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003214 fi
3215fi
Reid Spencera773bd52006-08-04 18:18:08 +00003216{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3217echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3218if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
Reid Spencera773bd52006-08-04 18:18:08 +00003221 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222ac_save_CC=$CC
3223cat >conftest.$ac_ext <<_ACEOF
3224/* confdefs.h. */
3225_ACEOF
3226cat confdefs.h >>conftest.$ac_ext
3227cat >>conftest.$ac_ext <<_ACEOF
3228/* end confdefs.h. */
3229#include <stdarg.h>
3230#include <stdio.h>
3231#include <sys/types.h>
3232#include <sys/stat.h>
3233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3234struct buf { int x; };
3235FILE * (*rcsopen) (struct buf *, struct stat *, int);
3236static char *e (p, i)
3237 char **p;
3238 int i;
3239{
3240 return p[i];
3241}
3242static char *f (char * (*g) (char **, int), char **p, ...)
3243{
3244 char *s;
3245 va_list v;
3246 va_start (v,p);
3247 s = g (p, va_arg (v,int));
3248 va_end (v);
3249 return s;
3250}
3251
3252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3253 function prototypes and stuff, but not '\xHH' hex character constants.
3254 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003255 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3257 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003258 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3260
Reid Spencera773bd52006-08-04 18:18:08 +00003261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3262 inside strings and character constants. */
3263#define FOO(x) 'x'
3264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3265
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266int test (int i, double x);
3267struct s1 {int (*f) (int a);};
3268struct s2 {int (*f) (double a);};
3269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3270int argc;
3271char **argv;
3272int
3273main ()
3274{
3275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3276 ;
3277 return 0;
3278}
3279_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003282do
3283 CC="$ac_save_CC $ac_arg"
3284 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003285if { (ac_try="$ac_compile"
3286case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289esac
3290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003292 ac_status=$?
3293 grep -v '^ *+' conftest.er1 >conftest.err
3294 rm -f conftest.er1
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3299 { (case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302esac
3303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003305 ac_status=$?
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; } &&
3308 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003309 { (case "(($ac_try" in
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3312esac
3313eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003315 ac_status=$?
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003318 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003319else
3320 echo "$as_me: failed program was:" >&5
3321sed 's/^/| /' conftest.$ac_ext >&5
3322
Reid Spencera773bd52006-08-04 18:18:08 +00003323
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324fi
Reid Spencera773bd52006-08-04 18:18:08 +00003325
3326rm -f core conftest.err conftest.$ac_objext
3327 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328done
Reid Spencera773bd52006-08-04 18:18:08 +00003329rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003330CC=$ac_save_CC
3331
3332fi
Reid Spencera773bd52006-08-04 18:18:08 +00003333# AC_CACHE_VAL
3334case "x$ac_cv_prog_cc_c89" in
3335 x)
3336 { echo "$as_me:$LINENO: result: none needed" >&5
3337echo "${ECHO_T}none needed" >&6; } ;;
3338 xno)
3339 { echo "$as_me:$LINENO: result: unsupported" >&5
3340echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003341 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003342 CC="$CC $ac_cv_prog_cc_c89"
3343 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3344echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003345esac
3346
John Criswell0c38eaf2003-09-10 15:17:25 +00003347
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
3354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003360{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3361echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362# On Suns, sometimes $CPP names a directory.
3363if test -n "$CPP" && test -d "$CPP"; then
3364 CPP=
3365fi
3366if test -z "$CPP"; then
3367 if test "${ac_cv_prog_CPP+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3369else
3370 # Double quotes because CPP needs to be expanded
3371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3372 do
3373 ac_preproc_ok=false
3374for ac_c_preproc_warn_flag in '' yes
3375do
3376 # Use a header file that comes with gcc, so configuring glibc
3377 # with a fresh cross-compiler works.
3378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3379 # <limits.h> exists even on freestanding compilers.
3380 # On the NeXT, cc -E runs the code through the compiler's parser,
3381 # not just through cpp. "Syntax error" is here to catch this case.
3382 cat >conftest.$ac_ext <<_ACEOF
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388#ifdef __STDC__
3389# include <limits.h>
3390#else
3391# include <assert.h>
3392#endif
3393 Syntax error
3394_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003395if { (ac_try="$ac_cpp conftest.$ac_ext"
3396case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003402 ac_status=$?
3403 grep -v '^ *+' conftest.er1 >conftest.err
3404 rm -f conftest.er1
3405 cat conftest.err >&5
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); } >/dev/null; then
3408 if test -s conftest.err; then
3409 ac_cpp_err=$ac_c_preproc_warn_flag
3410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3411 else
3412 ac_cpp_err=
3413 fi
3414else
3415 ac_cpp_err=yes
3416fi
3417if test -z "$ac_cpp_err"; then
3418 :
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Broken: fails on valid input.
3424continue
3425fi
Reid Spencera773bd52006-08-04 18:18:08 +00003426
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003427rm -f conftest.err conftest.$ac_ext
3428
Reid Spencera773bd52006-08-04 18:18:08 +00003429 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430 # can be detected and how.
3431 cat >conftest.$ac_ext <<_ACEOF
3432/* confdefs.h. */
3433_ACEOF
3434cat confdefs.h >>conftest.$ac_ext
3435cat >>conftest.$ac_ext <<_ACEOF
3436/* end confdefs.h. */
3437#include <ac_nonexistent.h>
3438_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003439if { (ac_try="$ac_cpp conftest.$ac_ext"
3440case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } >/dev/null; then
3452 if test -s conftest.err; then
3453 ac_cpp_err=$ac_c_preproc_warn_flag
3454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3455 else
3456 ac_cpp_err=
3457 fi
3458else
3459 ac_cpp_err=yes
3460fi
3461if test -z "$ac_cpp_err"; then
3462 # Broken: success on invalid input.
3463continue
3464else
3465 echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 # Passes both tests.
3469ac_preproc_ok=:
3470break
3471fi
Reid Spencera773bd52006-08-04 18:18:08 +00003472
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003473rm -f conftest.err conftest.$ac_ext
3474
3475done
3476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3477rm -f conftest.err conftest.$ac_ext
3478if $ac_preproc_ok; then
3479 break
3480fi
3481
3482 done
3483 ac_cv_prog_CPP=$CPP
3484
3485fi
3486 CPP=$ac_cv_prog_CPP
3487else
3488 ac_cv_prog_CPP=$CPP
3489fi
Reid Spencera773bd52006-08-04 18:18:08 +00003490{ echo "$as_me:$LINENO: result: $CPP" >&5
3491echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003492ac_preproc_ok=false
3493for ac_c_preproc_warn_flag in '' yes
3494do
3495 # Use a header file that comes with gcc, so configuring glibc
3496 # with a fresh cross-compiler works.
3497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3498 # <limits.h> exists even on freestanding compilers.
3499 # On the NeXT, cc -E runs the code through the compiler's parser,
3500 # not just through cpp. "Syntax error" is here to catch this case.
3501 cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507#ifdef __STDC__
3508# include <limits.h>
3509#else
3510# include <assert.h>
3511#endif
3512 Syntax error
3513_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003514if { (ac_try="$ac_cpp conftest.$ac_ext"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
3519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003521 ac_status=$?
3522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } >/dev/null; then
3527 if test -s conftest.err; then
3528 ac_cpp_err=$ac_c_preproc_warn_flag
3529 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3530 else
3531 ac_cpp_err=
3532 fi
3533else
3534 ac_cpp_err=yes
3535fi
3536if test -z "$ac_cpp_err"; then
3537 :
3538else
3539 echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542 # Broken: fails on valid input.
3543continue
3544fi
Reid Spencera773bd52006-08-04 18:18:08 +00003545
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003546rm -f conftest.err conftest.$ac_ext
3547
Reid Spencera773bd52006-08-04 18:18:08 +00003548 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549 # can be detected and how.
3550 cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h. */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h. */
3556#include <ac_nonexistent.h>
3557_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003558if { (ac_try="$ac_cpp conftest.$ac_ext"
3559case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003565 ac_status=$?
3566 grep -v '^ *+' conftest.er1 >conftest.err
3567 rm -f conftest.er1
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null; then
3571 if test -s conftest.err; then
3572 ac_cpp_err=$ac_c_preproc_warn_flag
3573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3574 else
3575 ac_cpp_err=
3576 fi
3577else
3578 ac_cpp_err=yes
3579fi
3580if test -z "$ac_cpp_err"; then
3581 # Broken: success on invalid input.
3582continue
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587 # Passes both tests.
3588ac_preproc_ok=:
3589break
3590fi
Reid Spencera773bd52006-08-04 18:18:08 +00003591
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003592rm -f conftest.err conftest.$ac_ext
3593
3594done
3595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3596rm -f conftest.err conftest.$ac_ext
3597if $ac_preproc_ok; then
3598 :
3599else
3600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3601See \`config.log' for more details." >&5
3602echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3603See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
3605fi
3606
John Criswell7a73b802003-06-30 21:59:07 +00003607ac_ext=c
3608ac_cpp='$CPP $CPPFLAGS'
3609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_c_compiler_gnu
3612
John Criswell7a73b802003-06-30 21:59:07 +00003613
Reid Spencera773bd52006-08-04 18:18:08 +00003614{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3615echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003616if test "${ac_cv_path_GREP+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
Reid Spencera773bd52006-08-04 18:18:08 +00003619 # Extract the first word of "grep ggrep" to use in msg output
3620if test -z "$GREP"; then
3621set dummy grep ggrep; ac_prog_name=$2
3622if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003623 echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
Reid Spencera773bd52006-08-04 18:18:08 +00003625 ac_path_GREP_found=false
3626# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003628for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003629do
3630 IFS=$as_save_IFS
3631 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003632 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003633 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003634 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3635 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3636 # Check for GNU ac_path_GREP and select it if it is found.
3637 # Check for GNU $ac_path_GREP
3638case `"$ac_path_GREP" --version 2>&1` in
3639*GNU*)
3640 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3641*)
3642 ac_count=0
3643 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3644 while :
3645 do
3646 cat "conftest.in" "conftest.in" >"conftest.tmp"
3647 mv "conftest.tmp" "conftest.in"
3648 cp "conftest.in" "conftest.nl"
3649 echo 'GREP' >> "conftest.nl"
3650 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3651 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3652 ac_count=`expr $ac_count + 1`
3653 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3654 # Best one so far, save it but keep looking for a better one
3655 ac_cv_path_GREP="$ac_path_GREP"
3656 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003657 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003658 # 10*(2^10) chars as input seems more than enough
3659 test $ac_count -gt 10 && break
3660 done
3661 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662esac
3663
3664
3665 $ac_path_GREP_found && break 3
3666 done
3667done
3668
3669done
3670IFS=$as_save_IFS
3671
3672
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003673fi
Reid Spencera773bd52006-08-04 18:18:08 +00003674
3675GREP="$ac_cv_path_GREP"
3676if test -z "$GREP"; then
3677 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3680fi
3681
3682else
3683 ac_cv_path_GREP=$GREP
3684fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003685
John Criswell7a73b802003-06-30 21:59:07 +00003686
Reid Spencera773bd52006-08-04 18:18:08 +00003687fi
3688{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3689echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3690 GREP="$ac_cv_path_GREP"
3691
3692
3693{ echo "$as_me:$LINENO: checking for egrep" >&5
3694echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3695if test "${ac_cv_path_EGREP+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697else
3698 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3699 then ac_cv_path_EGREP="$GREP -E"
3700 else
3701 # Extract the first word of "egrep" to use in msg output
3702if test -z "$EGREP"; then
3703set dummy egrep; ac_prog_name=$2
3704if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 ac_path_EGREP_found=false
3708# Loop through the user's path and test for each of PROGNAME-LIST
3709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3711do
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_prog in egrep; do
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3717 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3718 # Check for GNU ac_path_EGREP and select it if it is found.
3719 # Check for GNU $ac_path_EGREP
3720case `"$ac_path_EGREP" --version 2>&1` in
3721*GNU*)
3722 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3723*)
3724 ac_count=0
3725 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3726 while :
3727 do
3728 cat "conftest.in" "conftest.in" >"conftest.tmp"
3729 mv "conftest.tmp" "conftest.in"
3730 cp "conftest.in" "conftest.nl"
3731 echo 'EGREP' >> "conftest.nl"
3732 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3733 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3734 ac_count=`expr $ac_count + 1`
3735 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3736 # Best one so far, save it but keep looking for a better one
3737 ac_cv_path_EGREP="$ac_path_EGREP"
3738 ac_path_EGREP_max=$ac_count
3739 fi
3740 # 10*(2^10) chars as input seems more than enough
3741 test $ac_count -gt 10 && break
3742 done
3743 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744esac
3745
3746
3747 $ac_path_EGREP_found && break 3
3748 done
3749done
3750
3751done
3752IFS=$as_save_IFS
3753
3754
3755fi
3756
3757EGREP="$ac_cv_path_EGREP"
3758if test -z "$EGREP"; then
3759 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3760echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3761 { (exit 1); exit 1; }; }
3762fi
3763
3764else
3765 ac_cv_path_EGREP=$EGREP
3766fi
3767
3768
3769 fi
3770fi
3771{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3772echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3773 EGREP="$ac_cv_path_EGREP"
3774
3775
3776{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003778if test "${ac_cv_header_stdc+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780else
3781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003782/* confdefs.h. */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003787#include <stdlib.h>
3788#include <stdarg.h>
3789#include <string.h>
3790#include <float.h>
3791
John Criswell0c38eaf2003-09-10 15:17:25 +00003792int
3793main ()
3794{
3795
3796 ;
3797 return 0;
3798}
John Criswell7a73b802003-06-30 21:59:07 +00003799_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003800rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003801if { (ac_try="$ac_compile"
3802case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805esac
3806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
3819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; } &&
3824 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003825 { (case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828esac
3829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3830 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003834 ac_cv_header_stdc=yes
3835else
3836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003837sed 's/^/| /' conftest.$ac_ext >&5
3838
Reid Spencera773bd52006-08-04 18:18:08 +00003839 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003840fi
Reid Spencera773bd52006-08-04 18:18:08 +00003841
3842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003843
3844if test $ac_cv_header_stdc = yes; then
3845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3846 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003847/* confdefs.h. */
3848_ACEOF
3849cat confdefs.h >>conftest.$ac_ext
3850cat >>conftest.$ac_ext <<_ACEOF
3851/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003852#include <string.h>
3853
3854_ACEOF
3855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003856 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003857 :
3858else
3859 ac_cv_header_stdc=no
3860fi
3861rm -f conftest*
3862
3863fi
3864
3865if test $ac_cv_header_stdc = yes; then
3866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003868/* confdefs.h. */
3869_ACEOF
3870cat confdefs.h >>conftest.$ac_ext
3871cat >>conftest.$ac_ext <<_ACEOF
3872/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003873#include <stdlib.h>
3874
3875_ACEOF
3876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003877 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003878 :
3879else
3880 ac_cv_header_stdc=no
3881fi
3882rm -f conftest*
3883
3884fi
3885
3886if test $ac_cv_header_stdc = yes; then
3887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3888 if test "$cross_compiling" = yes; then
3889 :
3890else
3891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003892/* confdefs.h. */
3893_ACEOF
3894cat confdefs.h >>conftest.$ac_ext
3895cat >>conftest.$ac_ext <<_ACEOF
3896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003897#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003898#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003899#if ((' ' & 0x0FF) == 0x020)
3900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003903# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908#endif
3909
3910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911int
3912main ()
3913{
3914 int i;
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003917 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003918 return 2;
3919 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003920}
3921_ACEOF
3922rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003923if { (ac_try="$ac_link"
3924case "(($ac_try" in
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3927esac
3928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003933 { (case "(($ac_try" in
3934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3935 *) ac_try_echo=$ac_try;;
3936esac
3937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3938 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); }; }; then
3942 :
3943else
3944 echo "$as_me: program exited with status $ac_status" >&5
3945echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003946sed 's/^/| /' conftest.$ac_ext >&5
3947
John Criswell7a73b802003-06-30 21:59:07 +00003948( exit $ac_status )
3949ac_cv_header_stdc=no
3950fi
Reid Spencera773bd52006-08-04 18:18:08 +00003951rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3952fi
3953
3954
John Criswell7a73b802003-06-30 21:59:07 +00003955fi
3956fi
Reid Spencera773bd52006-08-04 18:18:08 +00003957{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3958echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003959if test $ac_cv_header_stdc = yes; then
3960
3961cat >>confdefs.h <<\_ACEOF
3962#define STDC_HEADERS 1
3963_ACEOF
3964
3965fi
3966
Reid Spencera773bd52006-08-04 18:18:08 +00003967# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3978 inttypes.h stdint.h unistd.h
3979do
3980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3981{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3984 echo $ECHO_N "(cached) $ECHO_C" >&6
3985else
3986 cat >conftest.$ac_ext <<_ACEOF
3987/* confdefs.h. */
3988_ACEOF
3989cat confdefs.h >>conftest.$ac_ext
3990cat >>conftest.$ac_ext <<_ACEOF
3991/* end confdefs.h. */
3992$ac_includes_default
3993
3994#include <$ac_header>
3995_ACEOF
3996rm -f conftest.$ac_objext
3997if { (ac_try="$ac_compile"
3998case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001esac
4002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003 (eval "$ac_compile") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } &&
4010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4011 { (case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4016 (eval "$ac_try") 2>&5
4017 ac_status=$?
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); }; } &&
4020 { ac_try='test -s conftest.$ac_objext'
4021 { (case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024esac
4025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_try") 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; }; then
4030 eval "$as_ac_Header=yes"
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 eval "$as_ac_Header=no"
4036fi
4037
4038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039fi
4040ac_res=`eval echo '${'$as_ac_Header'}'`
4041 { echo "$as_me:$LINENO: result: $ac_res" >&5
4042echo "${ECHO_T}$ac_res" >&6; }
4043if test `eval echo '${'$as_ac_Header'}'` = yes; then
4044 cat >>confdefs.h <<_ACEOF
4045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4046_ACEOF
4047
4048fi
4049
4050done
4051
4052
4053{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4054echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4055if test "${ac_cv_c_bigendian+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 # See if sys/param.h defines the BYTE_ORDER macro.
4059cat >conftest.$ac_ext <<_ACEOF
4060/* confdefs.h. */
4061_ACEOF
4062cat confdefs.h >>conftest.$ac_ext
4063cat >>conftest.$ac_ext <<_ACEOF
4064/* end confdefs.h. */
4065#include <sys/types.h>
4066#include <sys/param.h>
4067
4068int
4069main ()
4070{
4071#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4072 bogus endian macros
4073#endif
4074
4075 ;
4076 return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext
4080if { (ac_try="$ac_compile"
4081case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4086 (eval "$ac_compile") 2>conftest.er1
4087 ac_status=$?
4088 grep -v '^ *+' conftest.er1 >conftest.err
4089 rm -f conftest.er1
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4094 { (case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097esac
4098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_try") 2>&5
4100 ac_status=$?
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }; } &&
4103 { ac_try='test -s conftest.$ac_objext'
4104 { (case "(($ac_try" in
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107esac
4108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_try") 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); }; }; then
4113 # It does; now see whether it defined to BIG_ENDIAN or not.
4114cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h. */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h. */
4120#include <sys/types.h>
4121#include <sys/param.h>
4122
4123int
4124main ()
4125{
4126#if BYTE_ORDER != BIG_ENDIAN
4127 not big endian
4128#endif
4129
4130 ;
4131 return 0;
4132}
4133_ACEOF
4134rm -f conftest.$ac_objext
4135if { (ac_try="$ac_compile"
4136case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4139esac
4140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4149 { (case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152esac
4153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4154 (eval "$ac_try") 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; } &&
4158 { ac_try='test -s conftest.$ac_objext'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_c_bigendian=yes
4169else
4170 echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 ac_cv_c_bigendian=no
4174fi
4175
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
4181 # It does not; compile a test program.
4182if test "$cross_compiling" = yes; then
4183 # try to guess the endianness by grepping values into an object file
4184 ac_cv_c_bigendian=unknown
4185 cat >conftest.$ac_ext <<_ACEOF
4186/* confdefs.h. */
4187_ACEOF
4188cat confdefs.h >>conftest.$ac_ext
4189cat >>conftest.$ac_ext <<_ACEOF
4190/* end confdefs.h. */
4191short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4192short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4193void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4194short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4195short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4196void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4197int
4198main ()
4199{
4200 _ascii (); _ebcdic ();
4201 ;
4202 return 0;
4203}
4204_ACEOF
4205rm -f conftest.$ac_objext
4206if { (ac_try="$ac_compile"
4207case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210esac
4211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4233esac
4234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4240 ac_cv_c_bigendian=yes
4241fi
4242if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4243 if test "$ac_cv_c_bigendian" = unknown; then
4244 ac_cv_c_bigendian=no
4245 else
4246 # finding both strings is unlikely to happen, but who knows?
4247 ac_cv_c_bigendian=unknown
4248 fi
4249fi
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254
4255fi
4256
4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258else
4259 cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h. */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h. */
4265$ac_includes_default
4266int
4267main ()
4268{
4269
4270 /* Are we little or big endian? From Harbison&Steele. */
4271 union
4272 {
4273 long int l;
4274 char c[sizeof (long int)];
4275 } u;
4276 u.l = 1;
4277 return u.c[sizeof (long int) - 1] == 1;
4278
4279 ;
4280 return 0;
4281}
4282_ACEOF
4283rm -f conftest$ac_exeext
4284if { (ac_try="$ac_link"
4285case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288esac
4289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_link") 2>&5
4291 ac_status=$?
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4294 { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_try") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 ac_cv_c_bigendian=no
4304else
4305 echo "$as_me: program exited with status $ac_status" >&5
4306echo "$as_me: failed program was:" >&5
4307sed 's/^/| /' conftest.$ac_ext >&5
4308
4309( exit $ac_status )
4310ac_cv_c_bigendian=yes
4311fi
4312rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313fi
4314
4315
4316fi
4317
4318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4319fi
4320{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4321echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4322case $ac_cv_c_bigendian in
4323 yes)
4324 ENDIAN=big
4325 ;;
4326 no)
4327 ENDIAN=little
4328 ;;
4329 *)
4330 { { echo "$as_me:$LINENO: error: unknown endianness
4331presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4332echo "$as_me: error: unknown endianness
4333presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4334 { (exit 1); exit 1; }; } ;;
4335esac
4336
4337
4338if test "$cross_compiling" = yes; then
4339 LLVM_CROSS_COMPILING=1
4340
4341
4342{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4343echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4344if test "${ac_cv_build_exeext+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4348 ac_cv_build_exeext=.exe
4349else
4350 ac_build_prefix=${build_alias}-
4351
4352 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4353set dummy ${ac_build_prefix}gcc; ac_word=$2
4354{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4356if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
4358else
4359 if test -n "$BUILD_CC"; then
4360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4361else
4362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365 IFS=$as_save_IFS
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373done
4374done
4375IFS=$as_save_IFS
4376
4377fi
4378fi
4379BUILD_CC=$ac_cv_prog_BUILD_CC
4380if test -n "$BUILD_CC"; then
4381 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4382echo "${ECHO_T}$BUILD_CC" >&6; }
4383else
4384 { echo "$as_me:$LINENO: result: no" >&5
4385echo "${ECHO_T}no" >&6; }
4386fi
4387
4388
4389 if test -z "$BUILD_CC"; then
4390 # Extract the first word of "gcc", so it can be a program name with args.
4391set dummy gcc; ac_word=$2
4392{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4393echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396else
4397 if test -n "$BUILD_CC"; then
4398 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4399else
4400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401for as_dir in $PATH
4402do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_BUILD_CC="gcc"
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4410 fi
4411done
4412done
4413IFS=$as_save_IFS
4414
4415fi
4416fi
4417BUILD_CC=$ac_cv_prog_BUILD_CC
4418if test -n "$BUILD_CC"; then
4419 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4420echo "${ECHO_T}$BUILD_CC" >&6; }
4421else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423echo "${ECHO_T}no" >&6; }
4424fi
4425
4426
4427 if test -z "$BUILD_CC"; then
4428 # Extract the first word of "cc", so it can be a program name with args.
4429set dummy cc; ac_word=$2
4430{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4434else
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4437else
4438 ac_prog_rejected=no
4439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4447 ac_prog_rejected=yes
4448 continue
4449 fi
4450 ac_cv_prog_BUILD_CC="cc"
4451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454done
4455done
4456IFS=$as_save_IFS
4457
4458if test $ac_prog_rejected = yes; then
4459 # We found a bogon in the path, so make sure we never use it.
4460 set dummy $ac_cv_prog_BUILD_CC
4461 shift
4462 if test $# != 0; then
4463 # We chose a different compiler from the bogus one.
4464 # However, it has the same basename, so the bogon will be chosen
4465 # first if we set BUILD_CC to just the basename; use the full file name.
4466 shift
4467 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4468 fi
4469fi
4470fi
4471fi
4472BUILD_CC=$ac_cv_prog_BUILD_CC
4473if test -n "$BUILD_CC"; then
4474 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4475echo "${ECHO_T}$BUILD_CC" >&6; }
4476else
4477 { echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6; }
4479fi
4480
4481
4482 fi
4483 fi
4484 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4485echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4486 { (exit 1); exit 1; }; }
4487 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4488 rm -f conftest*
4489 echo 'int main () { return 0; }' > conftest.$ac_ext
4490 ac_cv_build_exeext=
4491 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4492 (eval $ac_build_link) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; then
4496 for file in conftest.*; do
4497 case $file in
4498 *.c | *.o | *.obj) ;;
4499 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4500 esac
4501 done
4502 else
4503 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4504echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4505 { (exit 1); exit 1; }; }
4506 fi
4507 rm -f conftest*
4508 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4509fi
4510fi
4511
4512BUILD_EXEEXT=""
4513test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4514{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4515echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4516ac_build_exeext=$BUILD_EXEEXT
4517
4518else
4519 LLVM_CROSS_COMPILING=0
4520
4521fi
4522
4523if test -d "CVS" -o -d "${srcdir}/CVS"; then
4524 cvsbuild="yes"
4525 optimize="no"
4526 CVSBUILD=CVSBUILD=1
4527
4528else
4529 cvsbuild="no"
4530 optimize="yes"
4531fi
4532
4533
4534# Check whether --enable-optimized was given.
4535if test "${enable_optimized+set}" = set; then
4536 enableval=$enable_optimized;
4537else
4538 enableval=$optimize
4539fi
4540
4541if test ${enableval} = "no" ; then
4542 ENABLE_OPTIMIZED=
4543
4544else
4545 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4546
4547fi
4548
4549# Check whether --enable-assertions was given.
4550if test "${enable_assertions+set}" = set; then
4551 enableval=$enable_assertions;
4552else
4553 enableval="yes"
4554fi
4555
4556if test ${enableval} = "yes" ; then
4557 DISABLE_ASSERTIONS=
4558
4559else
4560 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4561
4562fi
4563
Reid Spencera773bd52006-08-04 18:18:08 +00004564# Check whether --enable-jit was given.
4565if test "${enable_jit+set}" = set; then
4566 enableval=$enable_jit;
4567else
4568 enableval=default
4569fi
4570
4571if test ${enableval} = "no"
4572then
4573 JIT=
4574
4575else
4576 case "$llvm_cv_target_arch" in
4577 x86) TARGET_HAS_JIT=1
4578 ;;
4579 Sparc) TARGET_HAS_JIT=1
4580 ;;
4581 PowerPC) TARGET_HAS_JIT=1
4582 ;;
4583 x86_64) TARGET_HAS_JIT=0
4584 ;;
4585 Alpha) TARGET_HAS_JIT=1
4586 ;;
4587 IA64) TARGET_HAS_JIT=0
4588 ;;
4589 *) TARGET_HAS_JIT=0
4590 ;;
4591 esac
4592fi
4593
4594# Check whether --enable-doxygen was given.
4595if test "${enable_doxygen+set}" = set; then
4596 enableval=$enable_doxygen;
4597else
4598 enableval=default
4599fi
4600
4601case "$enableval" in
4602 yes) ENABLE_DOXYGEN=1
4603 ;;
4604 no) ENABLE_DOXYGEN=0
4605 ;;
4606 default) ENABLE_DOXYGEN=0
4607 ;;
4608 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4609echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4610 { (exit 1); exit 1; }; } ;;
4611esac
4612
4613# Check whether --enable-threads was given.
4614if test "${enable_threads+set}" = set; then
4615 enableval=$enable_threads;
4616else
Reid Spencer65c5d752006-11-05 17:08:18 +00004617 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004618fi
4619
4620case "$enableval" in
4621 yes) ENABLE_THREADS=1
4622 ;;
4623 no) ENABLE_THREADS=0
4624 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004625 default) ENABLE_THREADS=1
4626 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004627 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4628echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4629 { (exit 1); exit 1; }; } ;;
4630esac
4631
4632cat >>confdefs.h <<_ACEOF
4633#define ENABLE_THREADS $ENABLE_THREADS
4634_ACEOF
4635
4636
4637TARGETS_TO_BUILD=""
4638# Check whether --enable-targets was given.
4639if test "${enable_targets+set}" = set; then
4640 enableval=$enable_targets;
4641else
4642 enableval=all
4643fi
4644
4645case "$enableval" in
4646 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4647 host-only)
4648 case "$llvm_cv_target_arch" in
4649 x86) TARGETS_TO_BUILD="X86" ;;
4650 x86_64) TARGETS_TO_BUILD="X86" ;;
4651 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4652 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4653 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4654 IA64) TARGETS_TO_BUILD="IA64" ;;
4655 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4656echo "$as_me: error: Can not set target to build" >&2;}
4657 { (exit 1); exit 1; }; } ;;
4658 esac
4659 ;;
4660 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4661 case "$a_target" in
4662 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4663 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4664 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4665 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4666 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4667 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4668 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4669echo "$as_me: error: Unrecognized target $a_target" >&2;}
4670 { (exit 1); exit 1; }; } ;;
4671 esac
4672 done
4673 ;;
4674esac
4675TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4676TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4677
4678
Reid Spencer65c5d752006-11-05 17:08:18 +00004679# Check whether --enable-cbe-printf-a was given.
4680if test "${enable_cbe_printf_a+set}" = set; then
4681 enableval=$enable_cbe_printf_a;
4682else
4683 enableval=default
4684fi
4685
4686case "$enableval" in
4687 yes) ENABLE_CBE_PRINTF_A=1
4688 ;;
4689 no) ENABLE_CBE_PRINTF_A=0
4690 ;;
4691 default) ENABLE_CBE_PRINTF_A=1
4692 ;;
4693 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4694echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4695 { (exit 1); exit 1; }; } ;;
4696esac
4697
4698cat >>confdefs.h <<_ACEOF
4699#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4700_ACEOF
4701
4702
Reid Spencera773bd52006-08-04 18:18:08 +00004703
4704# Check whether --with-llvmgccdir was given.
4705if test "${with_llvmgccdir+set}" = set; then
4706 withval=$with_llvmgccdir;
4707else
4708 withval=default
4709fi
4710
4711case "$withval" in
4712 default) WITH_LLVMGCCDIR=default ;;
4713 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4714 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4715echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4716 { (exit 1); exit 1; }; } ;;
4717esac
4718
4719
4720# Check whether --with-extra-options was given.
4721if test "${with_extra_options+set}" = set; then
4722 withval=$with_extra_options;
4723else
4724 withval=default
4725fi
4726
4727case "$withval" in
4728 default) EXTRA_OPTIONS= ;;
4729 *) EXTRA_OPTIONS=$withval ;;
4730esac
4731EXTRA_OPTIONS=$EXTRA_OPTIONS
4732
4733
4734
4735ac_ext=c
4736ac_cpp='$CPP $CPPFLAGS'
4737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_c_compiler_gnu
4740{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4741echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4742# On Suns, sometimes $CPP names a directory.
4743if test -n "$CPP" && test -d "$CPP"; then
4744 CPP=
4745fi
4746if test -z "$CPP"; then
4747 if test "${ac_cv_prog_CPP+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750 # Double quotes because CPP needs to be expanded
4751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4752 do
4753 ac_preproc_ok=false
4754for ac_c_preproc_warn_flag in '' yes
4755do
4756 # Use a header file that comes with gcc, so configuring glibc
4757 # with a fresh cross-compiler works.
4758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4759 # <limits.h> exists even on freestanding compilers.
4760 # On the NeXT, cc -E runs the code through the compiler's parser,
4761 # not just through cpp. "Syntax error" is here to catch this case.
4762 cat >conftest.$ac_ext <<_ACEOF
4763/* confdefs.h. */
4764_ACEOF
4765cat confdefs.h >>conftest.$ac_ext
4766cat >>conftest.$ac_ext <<_ACEOF
4767/* end confdefs.h. */
4768#ifdef __STDC__
4769# include <limits.h>
4770#else
4771# include <assert.h>
4772#endif
4773 Syntax error
4774_ACEOF
4775if { (ac_try="$ac_cpp conftest.$ac_ext"
4776case "(($ac_try" in
4777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4778 *) ac_try_echo=$ac_try;;
4779esac
4780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 ac_status=$?
4783 grep -v '^ *+' conftest.er1 >conftest.err
4784 rm -f conftest.er1
4785 cat conftest.err >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } >/dev/null; then
4788 if test -s conftest.err; then
4789 ac_cpp_err=$ac_c_preproc_warn_flag
4790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4791 else
4792 ac_cpp_err=
4793 fi
4794else
4795 ac_cpp_err=yes
4796fi
4797if test -z "$ac_cpp_err"; then
4798 :
4799else
4800 echo "$as_me: failed program was:" >&5
4801sed 's/^/| /' conftest.$ac_ext >&5
4802
4803 # Broken: fails on valid input.
4804continue
4805fi
4806
4807rm -f conftest.err conftest.$ac_ext
4808
4809 # OK, works on sane cases. Now check whether nonexistent headers
4810 # can be detected and how.
4811 cat >conftest.$ac_ext <<_ACEOF
4812/* confdefs.h. */
4813_ACEOF
4814cat confdefs.h >>conftest.$ac_ext
4815cat >>conftest.$ac_ext <<_ACEOF
4816/* end confdefs.h. */
4817#include <ac_nonexistent.h>
4818_ACEOF
4819if { (ac_try="$ac_cpp conftest.$ac_ext"
4820case "(($ac_try" in
4821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4822 *) ac_try_echo=$ac_try;;
4823esac
4824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4826 ac_status=$?
4827 grep -v '^ *+' conftest.er1 >conftest.err
4828 rm -f conftest.er1
4829 cat conftest.err >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev/null; then
4832 if test -s conftest.err; then
4833 ac_cpp_err=$ac_c_preproc_warn_flag
4834 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4835 else
4836 ac_cpp_err=
4837 fi
4838else
4839 ac_cpp_err=yes
4840fi
4841if test -z "$ac_cpp_err"; then
4842 # Broken: success on invalid input.
4843continue
4844else
4845 echo "$as_me: failed program was:" >&5
4846sed 's/^/| /' conftest.$ac_ext >&5
4847
4848 # Passes both tests.
4849ac_preproc_ok=:
4850break
4851fi
4852
4853rm -f conftest.err conftest.$ac_ext
4854
4855done
4856# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857rm -f conftest.err conftest.$ac_ext
4858if $ac_preproc_ok; then
4859 break
4860fi
4861
4862 done
4863 ac_cv_prog_CPP=$CPP
4864
4865fi
4866 CPP=$ac_cv_prog_CPP
4867else
4868 ac_cv_prog_CPP=$CPP
4869fi
4870{ echo "$as_me:$LINENO: result: $CPP" >&5
4871echo "${ECHO_T}$CPP" >&6; }
4872ac_preproc_ok=false
4873for ac_c_preproc_warn_flag in '' yes
4874do
4875 # Use a header file that comes with gcc, so configuring glibc
4876 # with a fresh cross-compiler works.
4877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4878 # <limits.h> exists even on freestanding compilers.
4879 # On the NeXT, cc -E runs the code through the compiler's parser,
4880 # not just through cpp. "Syntax error" is here to catch this case.
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887#ifdef __STDC__
4888# include <limits.h>
4889#else
4890# include <assert.h>
4891#endif
4892 Syntax error
4893_ACEOF
4894if { (ac_try="$ac_cpp conftest.$ac_ext"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913else
4914 ac_cpp_err=yes
4915fi
4916if test -z "$ac_cpp_err"; then
4917 :
4918else
4919 echo "$as_me: failed program was:" >&5
4920sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 # Broken: fails on valid input.
4923continue
4924fi
4925
4926rm -f conftest.err conftest.$ac_ext
4927
4928 # OK, works on sane cases. Now check whether nonexistent headers
4929 # can be detected and how.
4930 cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#include <ac_nonexistent.h>
4937_ACEOF
4938if { (ac_try="$ac_cpp conftest.$ac_ext"
4939case "(($ac_try" in
4940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941 *) ac_try_echo=$ac_try;;
4942esac
4943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945 ac_status=$?
4946 grep -v '^ *+' conftest.er1 >conftest.err
4947 rm -f conftest.er1
4948 cat conftest.err >&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); } >/dev/null; then
4951 if test -s conftest.err; then
4952 ac_cpp_err=$ac_c_preproc_warn_flag
4953 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4954 else
4955 ac_cpp_err=
4956 fi
4957else
4958 ac_cpp_err=yes
4959fi
4960if test -z "$ac_cpp_err"; then
4961 # Broken: success on invalid input.
4962continue
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Passes both tests.
4968ac_preproc_ok=:
4969break
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974done
4975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4976rm -f conftest.err conftest.$ac_ext
4977if $ac_preproc_ok; then
4978 :
4979else
4980 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4981See \`config.log' for more details." >&5
4982echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4983See \`config.log' for more details." >&2;}
4984 { (exit 1); exit 1; }; }
4985fi
4986
4987ac_ext=c
4988ac_cpp='$CPP $CPPFLAGS'
4989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992
4993ac_ext=c
4994ac_cpp='$CPP $CPPFLAGS'
4995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998if test -n "$ac_tool_prefix"; then
4999 for ac_prog in gcc
5000 do
5001 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5002set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5003{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5005if test "${ac_cv_prog_CC+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008 if test -n "$CC"; then
5009 ac_cv_prog_CC="$CC" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028CC=$ac_cv_prog_CC
5029if test -n "$CC"; then
5030 { echo "$as_me:$LINENO: result: $CC" >&5
5031echo "${ECHO_T}$CC" >&6; }
5032else
5033 { echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6; }
5035fi
5036
5037
5038 test -n "$CC" && break
5039 done
5040fi
5041if test -z "$CC"; then
5042 ac_ct_CC=$CC
5043 for ac_prog in gcc
5044do
5045 # Extract the first word of "$ac_prog", so it can be a program name with args.
5046set dummy $ac_prog; ac_word=$2
5047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051else
5052 if test -n "$ac_ct_CC"; then
5053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5054else
5055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056for as_dir in $PATH
5057do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062 ac_cv_prog_ac_ct_CC="$ac_prog"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066done
5067done
5068IFS=$as_save_IFS
5069
5070fi
5071fi
5072ac_ct_CC=$ac_cv_prog_ac_ct_CC
5073if test -n "$ac_ct_CC"; then
5074 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5075echo "${ECHO_T}$ac_ct_CC" >&6; }
5076else
5077 { echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6; }
5079fi
5080
5081
5082 test -n "$ac_ct_CC" && break
5083done
5084
5085 if test "x$ac_ct_CC" = x; then
5086 CC=""
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5091whose name does not start with the host triplet. If you think this
5092configuration is useful to you, please write to autoconf@gnu.org." >&5
5093echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5094whose name does not start with the host triplet. If you think this
5095configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5096ac_tool_warned=yes ;;
5097esac
5098 CC=$ac_ct_CC
5099 fi
5100fi
5101
5102
5103test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5104See \`config.log' for more details." >&5
5105echo "$as_me: error: no acceptable C compiler found in \$PATH
5106See \`config.log' for more details." >&2;}
5107 { (exit 1); exit 1; }; }
5108
5109# Provide some information about the compiler.
5110echo "$as_me:$LINENO: checking for C compiler version" >&5
5111ac_compiler=`set X $ac_compile; echo $2`
5112{ (ac_try="$ac_compiler --version >&5"
5113case "(($ac_try" in
5114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5115 *) ac_try_echo=$ac_try;;
5116esac
5117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5118 (eval "$ac_compiler --version >&5") 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }
5122{ (ac_try="$ac_compiler -v >&5"
5123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
5127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5128 (eval "$ac_compiler -v >&5") 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }
5132{ (ac_try="$ac_compiler -V >&5"
5133case "(($ac_try" in
5134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5135 *) ac_try_echo=$ac_try;;
5136esac
5137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5138 (eval "$ac_compiler -V >&5") 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }
5142
5143{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5144echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5145if test "${ac_cv_c_compiler_gnu+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147else
5148 cat >conftest.$ac_ext <<_ACEOF
5149/* confdefs.h. */
5150_ACEOF
5151cat confdefs.h >>conftest.$ac_ext
5152cat >>conftest.$ac_ext <<_ACEOF
5153/* end confdefs.h. */
5154
5155int
5156main ()
5157{
5158#ifndef __GNUC__
5159 choke me
5160#endif
5161
5162 ;
5163 return 0;
5164}
5165_ACEOF
5166rm -f conftest.$ac_objext
5167if { (ac_try="$ac_compile"
5168case "(($ac_try" in
5169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170 *) ac_try_echo=$ac_try;;
5171esac
5172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173 (eval "$ac_compile") 2>conftest.er1
5174 ac_status=$?
5175 grep -v '^ *+' conftest.er1 >conftest.err
5176 rm -f conftest.er1
5177 cat conftest.err >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); } &&
5180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5181 { (case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184esac
5185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_try") 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }; } &&
5190 { ac_try='test -s conftest.$ac_objext'
5191 { (case "(($ac_try" in
5192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5193 *) ac_try_echo=$ac_try;;
5194esac
5195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5196 (eval "$ac_try") 2>&5
5197 ac_status=$?
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; }; then
5200 ac_compiler_gnu=yes
5201else
5202 echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ac_compiler_gnu=no
5206fi
5207
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209ac_cv_c_compiler_gnu=$ac_compiler_gnu
5210
5211fi
5212{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5214GCC=`test $ac_compiler_gnu = yes && echo yes`
5215ac_test_CFLAGS=${CFLAGS+set}
5216ac_save_CFLAGS=$CFLAGS
5217{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5218echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5219if test "${ac_cv_prog_cc_g+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221else
5222 ac_save_c_werror_flag=$ac_c_werror_flag
5223 ac_c_werror_flag=yes
5224 ac_cv_prog_cc_g=no
5225 CFLAGS="-g"
5226 cat >conftest.$ac_ext <<_ACEOF
5227/* confdefs.h. */
5228_ACEOF
5229cat confdefs.h >>conftest.$ac_ext
5230cat >>conftest.$ac_ext <<_ACEOF
5231/* end confdefs.h. */
5232
5233int
5234main ()
5235{
5236
5237 ;
5238 return 0;
5239}
5240_ACEOF
5241rm -f conftest.$ac_objext
5242if { (ac_try="$ac_compile"
5243case "(($ac_try" in
5244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5245 *) ac_try_echo=$ac_try;;
5246esac
5247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5248 (eval "$ac_compile") 2>conftest.er1
5249 ac_status=$?
5250 grep -v '^ *+' conftest.er1 >conftest.err
5251 rm -f conftest.er1
5252 cat conftest.err >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); } &&
5255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5256 { (case "(($ac_try" in
5257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258 *) ac_try_echo=$ac_try;;
5259esac
5260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5261 (eval "$ac_try") 2>&5
5262 ac_status=$?
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; } &&
5265 { ac_try='test -s conftest.$ac_objext'
5266 { (case "(($ac_try" in
5267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5268 *) ac_try_echo=$ac_try;;
5269esac
5270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5271 (eval "$ac_try") 2>&5
5272 ac_status=$?
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); }; }; then
5275 ac_cv_prog_cc_g=yes
5276else
5277 echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280 CFLAGS=""
5281 cat >conftest.$ac_ext <<_ACEOF
5282/* confdefs.h. */
5283_ACEOF
5284cat confdefs.h >>conftest.$ac_ext
5285cat >>conftest.$ac_ext <<_ACEOF
5286/* end confdefs.h. */
5287
5288int
5289main ()
5290{
5291
5292 ;
5293 return 0;
5294}
5295_ACEOF
5296rm -f conftest.$ac_objext
5297if { (ac_try="$ac_compile"
5298case "(($ac_try" in
5299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300 *) ac_try_echo=$ac_try;;
5301esac
5302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303 (eval "$ac_compile") 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5311 { (case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314esac
5315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_try") 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; } &&
5320 { ac_try='test -s conftest.$ac_objext'
5321 { (case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324esac
5325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5326 (eval "$ac_try") 2>&5
5327 ac_status=$?
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); }; }; then
5330 :
5331else
5332 echo "$as_me: failed program was:" >&5
5333sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ac_c_werror_flag=$ac_save_c_werror_flag
5336 CFLAGS="-g"
5337 cat >conftest.$ac_ext <<_ACEOF
5338/* confdefs.h. */
5339_ACEOF
5340cat confdefs.h >>conftest.$ac_ext
5341cat >>conftest.$ac_ext <<_ACEOF
5342/* end confdefs.h. */
5343
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352rm -f conftest.$ac_objext
5353if { (ac_try="$ac_compile"
5354case "(($ac_try" in
5355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356 *) ac_try_echo=$ac_try;;
5357esac
5358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5359 (eval "$ac_compile") 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } &&
5366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5367 { (case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_try") 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; } &&
5376 { ac_try='test -s conftest.$ac_objext'
5377 { (case "(($ac_try" in
5378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379 *) ac_try_echo=$ac_try;;
5380esac
5381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382 (eval "$ac_try") 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_prog_cc_g=yes
5387else
5388 echo "$as_me: failed program was:" >&5
5389sed 's/^/| /' conftest.$ac_ext >&5
5390
5391
5392fi
5393
5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395fi
5396
5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398fi
5399
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 ac_c_werror_flag=$ac_save_c_werror_flag
5402fi
5403{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5404echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5405if test "$ac_test_CFLAGS" = set; then
5406 CFLAGS=$ac_save_CFLAGS
5407elif test $ac_cv_prog_cc_g = yes; then
5408 if test "$GCC" = yes; then
5409 CFLAGS="-g -O2"
5410 else
5411 CFLAGS="-g"
5412 fi
5413else
5414 if test "$GCC" = yes; then
5415 CFLAGS="-O2"
5416 else
5417 CFLAGS=
5418 fi
5419fi
5420{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5421echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5422if test "${ac_cv_prog_cc_c89+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 ac_cv_prog_cc_c89=no
5426ac_save_CC=$CC
5427cat >conftest.$ac_ext <<_ACEOF
5428/* confdefs.h. */
5429_ACEOF
5430cat confdefs.h >>conftest.$ac_ext
5431cat >>conftest.$ac_ext <<_ACEOF
5432/* end confdefs.h. */
5433#include <stdarg.h>
5434#include <stdio.h>
5435#include <sys/types.h>
5436#include <sys/stat.h>
5437/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5438struct buf { int x; };
5439FILE * (*rcsopen) (struct buf *, struct stat *, int);
5440static char *e (p, i)
5441 char **p;
5442 int i;
5443{
5444 return p[i];
5445}
5446static char *f (char * (*g) (char **, int), char **p, ...)
5447{
5448 char *s;
5449 va_list v;
5450 va_start (v,p);
5451 s = g (p, va_arg (v,int));
5452 va_end (v);
5453 return s;
5454}
5455
5456/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5457 function prototypes and stuff, but not '\xHH' hex character constants.
5458 These don't provoke an error unfortunately, instead are silently treated
5459 as 'x'. The following induces an error, until -std is added to get
5460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5461 array size at least. It's necessary to write '\x00'==0 to get something
5462 that's true only with -std. */
5463int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5464
5465/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5466 inside strings and character constants. */
5467#define FOO(x) 'x'
5468int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5469
5470int test (int i, double x);
5471struct s1 {int (*f) (int a);};
5472struct s2 {int (*f) (double a);};
5473int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5474int argc;
5475char **argv;
5476int
5477main ()
5478{
5479return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5480 ;
5481 return 0;
5482}
5483_ACEOF
5484for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486do
5487 CC="$ac_save_CC $ac_arg"
5488 rm -f conftest.$ac_objext
5489if { (ac_try="$ac_compile"
5490case "(($ac_try" in
5491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5492 *) ac_try_echo=$ac_try;;
5493esac
5494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5495 (eval "$ac_compile") 2>conftest.er1
5496 ac_status=$?
5497 grep -v '^ *+' conftest.er1 >conftest.err
5498 rm -f conftest.er1
5499 cat conftest.err >&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } &&
5502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506esac
5507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; } &&
5512 { ac_try='test -s conftest.$ac_objext'
5513 { (case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
5517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_try") 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 ac_cv_prog_cc_c89=$ac_arg
5523else
5524 echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527
5528fi
5529
5530rm -f core conftest.err conftest.$ac_objext
5531 test "x$ac_cv_prog_cc_c89" != "xno" && break
5532done
5533rm -f conftest.$ac_ext
5534CC=$ac_save_CC
5535
5536fi
5537# AC_CACHE_VAL
5538case "x$ac_cv_prog_cc_c89" in
5539 x)
5540 { echo "$as_me:$LINENO: result: none needed" >&5
5541echo "${ECHO_T}none needed" >&6; } ;;
5542 xno)
5543 { echo "$as_me:$LINENO: result: unsupported" >&5
5544echo "${ECHO_T}unsupported" >&6; } ;;
5545 *)
5546 CC="$CC $ac_cv_prog_cc_c89"
5547 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5548echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5549esac
5550
5551
5552ac_ext=c
5553ac_cpp='$CPP $CPPFLAGS'
5554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5556ac_compiler_gnu=$ac_cv_c_compiler_gnu
5557
5558ac_ext=cpp
5559ac_cpp='$CXXCPP $CPPFLAGS'
5560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5563if test -z "$CXX"; then
5564 if test -n "$CCC"; then
5565 CXX=$CCC
5566 else
5567 if test -n "$ac_tool_prefix"; then
5568 for ac_prog in g++
5569 do
5570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5574if test "${ac_cv_prog_CXX+set}" = set; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5576else
5577 if test -n "$CXX"; then
5578 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5579else
5580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592done
5593IFS=$as_save_IFS
5594
5595fi
5596fi
5597CXX=$ac_cv_prog_CXX
5598if test -n "$CXX"; then
5599 { echo "$as_me:$LINENO: result: $CXX" >&5
5600echo "${ECHO_T}$CXX" >&6; }
5601else
5602 { echo "$as_me:$LINENO: result: no" >&5
5603echo "${ECHO_T}no" >&6; }
5604fi
5605
5606
5607 test -n "$CXX" && break
5608 done
5609fi
5610if test -z "$CXX"; then
5611 ac_ct_CXX=$CXX
5612 for ac_prog in g++
5613do
5614 # Extract the first word of "$ac_prog", so it can be a program name with args.
5615set dummy $ac_prog; ac_word=$2
5616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5618if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620else
5621 if test -n "$ac_ct_CXX"; then
5622 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5623else
5624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625for as_dir in $PATH
5626do
5627 IFS=$as_save_IFS
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_CXX="$ac_prog"
5632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5633 break 2
5634 fi
5635done
5636done
5637IFS=$as_save_IFS
5638
5639fi
5640fi
5641ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5642if test -n "$ac_ct_CXX"; then
5643 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5644echo "${ECHO_T}$ac_ct_CXX" >&6; }
5645else
5646 { echo "$as_me:$LINENO: result: no" >&5
5647echo "${ECHO_T}no" >&6; }
5648fi
5649
5650
5651 test -n "$ac_ct_CXX" && break
5652done
5653
5654 if test "x$ac_ct_CXX" = x; then
5655 CXX="g++"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5660whose name does not start with the host triplet. If you think this
5661configuration is useful to you, please write to autoconf@gnu.org." >&5
5662echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5663whose name does not start with the host triplet. If you think this
5664configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5665ac_tool_warned=yes ;;
5666esac
5667 CXX=$ac_ct_CXX
5668 fi
5669fi
5670
5671 fi
5672fi
5673# Provide some information about the compiler.
5674echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5675ac_compiler=`set X $ac_compile; echo $2`
5676{ (ac_try="$ac_compiler --version >&5"
5677case "(($ac_try" in
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5680esac
5681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compiler --version >&5") 2>&5
5683 ac_status=$?
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); }
5686{ (ac_try="$ac_compiler -v >&5"
5687case "(($ac_try" in
5688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689 *) ac_try_echo=$ac_try;;
5690esac
5691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692 (eval "$ac_compiler -v >&5") 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }
5696{ (ac_try="$ac_compiler -V >&5"
5697case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700esac
5701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compiler -V >&5") 2>&5
5703 ac_status=$?
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }
5706
5707{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5708echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5709if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5710 echo $ECHO_N "(cached) $ECHO_C" >&6
5711else
5712 cat >conftest.$ac_ext <<_ACEOF
5713/* confdefs.h. */
5714_ACEOF
5715cat confdefs.h >>conftest.$ac_ext
5716cat >>conftest.$ac_ext <<_ACEOF
5717/* end confdefs.h. */
5718
5719int
5720main ()
5721{
5722#ifndef __GNUC__
5723 choke me
5724#endif
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (ac_try="$ac_compile"
5732case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735esac
5736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_compile") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5745 { (case "(($ac_try" in
5746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5747 *) ac_try_echo=$ac_try;;
5748esac
5749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5750 (eval "$ac_try") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (case "(($ac_try" in
5756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5757 *) ac_try_echo=$ac_try;;
5758esac
5759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5760 (eval "$ac_try") 2>&5
5761 ac_status=$?
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5764 ac_compiler_gnu=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_compiler_gnu=no
5770fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5774
5775fi
5776{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5777echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5778GXX=`test $ac_compiler_gnu = yes && echo yes`
5779ac_test_CXXFLAGS=${CXXFLAGS+set}
5780ac_save_CXXFLAGS=$CXXFLAGS
5781{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5782echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5783if test "${ac_cv_prog_cxx_g+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5785else
5786 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5787 ac_cxx_werror_flag=yes
5788 ac_cv_prog_cxx_g=no
5789 CXXFLAGS="-g"
5790 cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796
5797int
5798main ()
5799{
5800
5801 ;
5802 return 0;
5803}
5804_ACEOF
5805rm -f conftest.$ac_objext
5806if { (ac_try="$ac_compile"
5807case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810esac
5811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compile") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } &&
5819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5820 { (case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823esac
5824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_try") 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest.$ac_objext'
5830 { (case "(($ac_try" in
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5833esac
5834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_try") 2>&5
5836 ac_status=$?
5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838 (exit $ac_status); }; }; then
5839 ac_cv_prog_cxx_g=yes
5840else
5841 echo "$as_me: failed program was:" >&5
5842sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 CXXFLAGS=""
5845 cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851
5852int
5853main ()
5854{
5855
5856 ;
5857 return 0;
5858}
5859_ACEOF
5860rm -f conftest.$ac_objext
5861if { (ac_try="$ac_compile"
5862case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865esac
5866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5875 { (case "(($ac_try" in
5876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877 *) ac_try_echo=$ac_try;;
5878esac
5879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5880 (eval "$ac_try") 2>&5
5881 ac_status=$?
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); }; } &&
5884 { ac_try='test -s conftest.$ac_objext'
5885 { (case "(($ac_try" in
5886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5887 *) ac_try_echo=$ac_try;;
5888esac
5889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5890 (eval "$ac_try") 2>&5
5891 ac_status=$?
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); }; }; then
5894 :
5895else
5896 echo "$as_me: failed program was:" >&5
5897sed 's/^/| /' conftest.$ac_ext >&5
5898
5899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5900 CXXFLAGS="-g"
5901 cat >conftest.$ac_ext <<_ACEOF
5902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
5907
5908int
5909main ()
5910{
5911
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916rm -f conftest.$ac_objext
5917if { (ac_try="$ac_compile"
5918case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } &&
5930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5931 { (case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_try") 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; } &&
5940 { ac_try='test -s conftest.$ac_objext'
5941 { (case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_try") 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_cv_prog_cxx_g=yes
5951else
5952 echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955
5956fi
5957
5958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959fi
5960
5961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962fi
5963
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5966fi
5967{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5968echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5969if test "$ac_test_CXXFLAGS" = set; then
5970 CXXFLAGS=$ac_save_CXXFLAGS
5971elif test $ac_cv_prog_cxx_g = yes; then
5972 if test "$GXX" = yes; then
5973 CXXFLAGS="-g -O2"
5974 else
5975 CXXFLAGS="-g"
5976 fi
5977else
5978 if test "$GXX" = yes; then
5979 CXXFLAGS="-O2"
5980 else
5981 CXXFLAGS=
5982 fi
5983fi
5984ac_ext=c
5985ac_cpp='$CPP $CPPFLAGS'
5986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988ac_compiler_gnu=$ac_cv_c_compiler_gnu
5989
5990{ echo "$as_me:$LINENO: checking " >&5
5991echo $ECHO_N "checking ... $ECHO_C" >&6; }
5992if test "${ac_cv_has_flex+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 for ac_prog in flex lex
5996do
5997 # Extract the first word of "$ac_prog", so it can be a program name with args.
5998set dummy $ac_prog; ac_word=$2
5999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6001if test "${ac_cv_prog_LEX+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003else
6004 if test -n "$LEX"; then
6005 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6006else
6007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008for as_dir in $PATH
6009do
6010 IFS=$as_save_IFS
6011 test -z "$as_dir" && as_dir=.
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_LEX="$ac_prog"
6015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 break 2
6017 fi
6018done
6019done
6020IFS=$as_save_IFS
6021
6022fi
6023fi
6024LEX=$ac_cv_prog_LEX
6025if test -n "$LEX"; then
6026 { echo "$as_me:$LINENO: result: $LEX" >&5
6027echo "${ECHO_T}$LEX" >&6; }
6028else
6029 { echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6; }
6031fi
6032
6033
6034 test -n "$LEX" && break
6035done
6036test -n "$LEX" || LEX=":"
6037
6038if test -z "$LEXLIB"
6039then
6040 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6041echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6042if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045 ac_check_lib_save_LIBS=$LIBS
6046LIBS="-lfl $LIBS"
6047cat >conftest.$ac_ext <<_ACEOF
6048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
6053
6054/* Override any GCC internal prototype to avoid an error.
6055 Use char because int might match the return type of a GCC
6056 builtin and then its argument prototype would still apply. */
6057#ifdef __cplusplus
6058extern "C"
6059#endif
6060char yywrap ();
6061int
6062main ()
6063{
6064return yywrap ();
6065 ;
6066 return 0;
6067}
6068_ACEOF
6069rm -f conftest.$ac_objext conftest$ac_exeext
6070if { (ac_try="$ac_link"
6071case "(($ac_try" in
6072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6073 *) ac_try_echo=$ac_try;;
6074esac
6075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_link") 2>conftest.er1
6077 ac_status=$?
6078 grep -v '^ *+' conftest.er1 >conftest.err
6079 rm -f conftest.er1
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6084 { (case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_try") 2>&5
6090 ac_status=$?
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; } &&
6093 { ac_try='test -s conftest$ac_exeext'
6094 { (case "(($ac_try" in
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6097esac
6098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_try") 2>&5
6100 ac_status=$?
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }; }; then
6103 ac_cv_lib_fl_yywrap=yes
6104else
6105 echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108 ac_cv_lib_fl_yywrap=no
6109fi
6110
6111rm -f core conftest.err conftest.$ac_objext \
6112 conftest$ac_exeext conftest.$ac_ext
6113LIBS=$ac_check_lib_save_LIBS
6114fi
6115{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6116echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6117if test $ac_cv_lib_fl_yywrap = yes; then
6118 LEXLIB="-lfl"
6119else
6120 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6121echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6122if test "${ac_cv_lib_l_yywrap+set}" = set; then
6123 echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125 ac_check_lib_save_LIBS=$LIBS
6126LIBS="-ll $LIBS"
6127cat >conftest.$ac_ext <<_ACEOF
6128/* confdefs.h. */
6129_ACEOF
6130cat confdefs.h >>conftest.$ac_ext
6131cat >>conftest.$ac_ext <<_ACEOF
6132/* end confdefs.h. */
6133
6134/* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
6137#ifdef __cplusplus
6138extern "C"
6139#endif
6140char yywrap ();
6141int
6142main ()
6143{
6144return yywrap ();
6145 ;
6146 return 0;
6147}
6148_ACEOF
6149rm -f conftest.$ac_objext conftest$ac_exeext
6150if { (ac_try="$ac_link"
6151case "(($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_link") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6164 { (case "(($ac_try" in
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6167esac
6168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_try") 2>&5
6170 ac_status=$?
6171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6172 (exit $ac_status); }; } &&
6173 { ac_try='test -s conftest$ac_exeext'
6174 { (case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
6178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_try") 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6183 ac_cv_lib_l_yywrap=yes
6184else
6185 echo "$as_me: failed program was:" >&5
6186sed 's/^/| /' conftest.$ac_ext >&5
6187
6188 ac_cv_lib_l_yywrap=no
6189fi
6190
6191rm -f core conftest.err conftest.$ac_objext \
6192 conftest$ac_exeext conftest.$ac_ext
6193LIBS=$ac_check_lib_save_LIBS
6194fi
6195{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6196echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6197if test $ac_cv_lib_l_yywrap = yes; then
6198 LEXLIB="-ll"
6199fi
6200
6201fi
6202
6203fi
6204
6205if test "x$LEX" != "x:"; then
6206 { echo "$as_me:$LINENO: checking lex output file root" >&5
6207echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6208if test "${ac_cv_prog_lex_root+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211 # The minimal lex program is just a single line: %%. But some broken lexes
6212# (Solaris, I think it was) want two %% lines, so accommodate them.
6213cat >conftest.l <<_ACEOF
6214%%
6215%%
6216_ACEOF
6217{ (ac_try="$LEX conftest.l"
6218case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221esac
6222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$LEX conftest.l") 2>&5
6224 ac_status=$?
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); }
6227if test -f lex.yy.c; then
6228 ac_cv_prog_lex_root=lex.yy
6229elif test -f lexyy.c; then
6230 ac_cv_prog_lex_root=lexyy
6231else
6232 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6233echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6234 { (exit 1); exit 1; }; }
6235fi
6236fi
6237{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6238echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6239rm -f conftest.l
6240LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6241
6242{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6243echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6244if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247 # POSIX says lex can declare yytext either as a pointer or an array; the
6248# default is implementation-dependent. Figure out which it is, since
6249# not all implementations provide the %pointer and %array declarations.
6250ac_cv_prog_lex_yytext_pointer=no
6251echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6252ac_save_LIBS=$LIBS
6253LIBS="$LIBS $LEXLIB"
6254cat >conftest.$ac_ext <<_ACEOF
6255`cat $LEX_OUTPUT_ROOT.c`
6256_ACEOF
6257rm -f conftest.$ac_objext conftest$ac_exeext
6258if { (ac_try="$ac_link"
6259case "(($ac_try" in
6260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261 *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_link") 2>conftest.er1
6265 ac_status=$?
6266 grep -v '^ *+' conftest.er1 >conftest.err
6267 rm -f conftest.er1
6268 cat conftest.err >&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6281 { ac_try='test -s conftest$ac_exeext'
6282 { (case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285esac
6286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_try") 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then
6291 ac_cv_prog_lex_yytext_pointer=yes
6292else
6293 echo "$as_me: failed program was:" >&5
6294sed 's/^/| /' conftest.$ac_ext >&5
6295
6296
6297fi
6298
6299rm -f core conftest.err conftest.$ac_objext \
6300 conftest$ac_exeext conftest.$ac_ext
6301LIBS=$ac_save_LIBS
6302rm -f "${LEX_OUTPUT_ROOT}.c"
6303
6304fi
6305{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6306echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6307if test $ac_cv_prog_lex_yytext_pointer = yes; then
6308
6309cat >>confdefs.h <<\_ACEOF
6310#define YYTEXT_POINTER 1
6311_ACEOF
6312
6313fi
6314
6315fi
6316
6317fi
6318{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6319echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6320if test "$LEX" != "flex"; then
6321 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6322echo "$as_me: error: flex not found but required" >&2;}
6323 { (exit 1); exit 1; }; }
6324else
6325 FLEX=flex
6326
6327fi
6328
6329{ echo "$as_me:$LINENO: checking " >&5
6330echo $ECHO_N "checking ... $ECHO_C" >&6; }
6331if test "${llvm_cv_has_bison+set}" = set; then
6332 echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334 for ac_prog in 'bison -y' byacc
6335do
6336 # Extract the first word of "$ac_prog", so it can be a program name with args.
6337set dummy $ac_prog; ac_word=$2
6338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6340if test "${ac_cv_prog_YACC+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
6343 if test -n "$YACC"; then
6344 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6345else
6346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6353 ac_cv_prog_YACC="$ac_prog"
6354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357done
6358done
6359IFS=$as_save_IFS
6360
6361fi
6362fi
6363YACC=$ac_cv_prog_YACC
6364if test -n "$YACC"; then
6365 { echo "$as_me:$LINENO: result: $YACC" >&5
6366echo "${ECHO_T}$YACC" >&6; }
6367else
6368 { echo "$as_me:$LINENO: result: no" >&5
6369echo "${ECHO_T}no" >&6; }
6370fi
6371
6372
6373 test -n "$YACC" && break
6374done
6375test -n "$YACC" || YACC="yacc"
6376
6377fi
6378{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6379echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6380if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006381
6382 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6383echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006384else
6385 BISON=bison
6386
6387fi
6388
6389{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6390echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6391if test "${lt_cv_path_NM+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393else
6394 if test -n "$NM"; then
6395 # Let the user override the test.
6396 lt_cv_path_NM="$NM"
6397else
6398 lt_nm_to_check="${ac_tool_prefix}nm"
6399 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6400 lt_nm_to_check="$lt_nm_to_check nm"
6401 fi
6402 for lt_tmp_nm in $lt_nm_to_check; do
6403 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6404 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6405 IFS="$lt_save_ifs"
6406 test -z "$ac_dir" && ac_dir=.
6407 tmp_nm="$ac_dir/$lt_tmp_nm"
6408 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6409 # Check to see if the nm accepts a BSD-compat flag.
6410 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6411 # nm: unknown option "B" ignored
6412 # Tru64's nm complains that /dev/null is an invalid object file
6413 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6414 */dev/null* | *'Invalid file or object type'*)
6415 lt_cv_path_NM="$tmp_nm -B"
6416 break
6417 ;;
6418 *)
6419 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6420 */dev/null*)
6421 lt_cv_path_NM="$tmp_nm -p"
6422 break
6423 ;;
6424 *)
6425 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6426 continue # so that we can try to find one that supports BSD flags
6427 ;;
6428 esac
6429 ;;
6430 esac
6431 fi
6432 done
6433 IFS="$lt_save_ifs"
6434 done
6435 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6436fi
6437fi
6438{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6439echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6440NM="$lt_cv_path_NM"
6441
6442
6443
6444{ echo "$as_me:$LINENO: checking for GNU make" >&5
6445echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6446if test "${llvm_cv_gnu_make_command+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449 llvm_cv_gnu_make_command=''
6450 for a in "$MAKE" make gmake gnumake ; do
6451 if test -z "$a" ; then continue ; fi ;
6452 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6453 then
6454 llvm_cv_gnu_make_command=$a ;
6455 break;
6456 fi
6457 done
6458fi
6459{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6460echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6461 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6462 ifGNUmake='' ;
6463 else
6464 ifGNUmake='#' ;
6465 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6466echo "${ECHO_T}\"Not found\"" >&6; };
6467 fi
6468
6469
6470{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6471echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6472LN_S=$as_ln_s
6473if test "$LN_S" = "ln -s"; then
6474 { echo "$as_me:$LINENO: result: yes" >&5
6475echo "${ECHO_T}yes" >&6; }
6476else
6477 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6478echo "${ECHO_T}no, using $LN_S" >&6; }
6479fi
6480
6481# Extract the first word of "cmp", so it can be a program name with args.
6482set dummy cmp; ac_word=$2
6483{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6485if test "${ac_cv_path_CMP+set}" = set; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488 case $CMP in
6489 [\\/]* | ?:[\\/]*)
6490 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6491 ;;
6492 *)
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504done
6505done
6506IFS=$as_save_IFS
6507
6508 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6509 ;;
6510esac
6511fi
6512CMP=$ac_cv_path_CMP
6513if test -n "$CMP"; then
6514 { echo "$as_me:$LINENO: result: $CMP" >&5
6515echo "${ECHO_T}$CMP" >&6; }
6516else
6517 { echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6; }
6519fi
6520
6521
6522# Extract the first word of "cp", so it can be a program name with args.
6523set dummy cp; ac_word=$2
6524{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526if test "${ac_cv_path_CP+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529 case $CP in
6530 [\\/]* | ?:[\\/]*)
6531 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6532 ;;
6533 *)
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545done
6546done
6547IFS=$as_save_IFS
6548
6549 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6550 ;;
6551esac
6552fi
6553CP=$ac_cv_path_CP
6554if test -n "$CP"; then
6555 { echo "$as_me:$LINENO: result: $CP" >&5
6556echo "${ECHO_T}$CP" >&6; }
6557else
6558 { echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6; }
6560fi
6561
6562
6563# Extract the first word of "date", so it can be a program name with args.
6564set dummy date; ac_word=$2
6565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6567if test "${ac_cv_path_DATE+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 case $DATE in
6571 [\\/]* | ?:[\\/]*)
6572 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6573 ;;
6574 *)
6575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578 IFS=$as_save_IFS
6579 test -z "$as_dir" && as_dir=.
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6582 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 break 2
6585 fi
6586done
6587done
6588IFS=$as_save_IFS
6589
6590 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6591 ;;
6592esac
6593fi
6594DATE=$ac_cv_path_DATE
6595if test -n "$DATE"; then
6596 { echo "$as_me:$LINENO: result: $DATE" >&5
6597echo "${ECHO_T}$DATE" >&6; }
6598else
6599 { echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6; }
6601fi
6602
6603
6604# Extract the first word of "find", so it can be a program name with args.
6605set dummy find; ac_word=$2
6606{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608if test "${ac_cv_path_FIND+set}" = set; then
6609 echo $ECHO_N "(cached) $ECHO_C" >&6
6610else
6611 case $FIND in
6612 [\\/]* | ?:[\\/]*)
6613 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6614 ;;
6615 *)
6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617for as_dir in $PATH
6618do
6619 IFS=$as_save_IFS
6620 test -z "$as_dir" && as_dir=.
6621 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6623 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6625 break 2
6626 fi
6627done
6628done
6629IFS=$as_save_IFS
6630
6631 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6632 ;;
6633esac
6634fi
6635FIND=$ac_cv_path_FIND
6636if test -n "$FIND"; then
6637 { echo "$as_me:$LINENO: result: $FIND" >&5
6638echo "${ECHO_T}$FIND" >&6; }
6639else
6640 { echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6; }
6642fi
6643
6644
6645# Extract the first word of "grep", so it can be a program name with args.
6646set dummy grep; ac_word=$2
6647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6649if test "${ac_cv_path_GREP+set}" = set; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652 case $GREP in
6653 [\\/]* | ?:[\\/]*)
6654 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6655 ;;
6656 *)
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669done
6670IFS=$as_save_IFS
6671
6672 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6673 ;;
6674esac
6675fi
6676GREP=$ac_cv_path_GREP
6677if test -n "$GREP"; then
6678 { echo "$as_me:$LINENO: result: $GREP" >&5
6679echo "${ECHO_T}$GREP" >&6; }
6680else
6681 { echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6; }
6683fi
6684
6685
6686# Extract the first word of "mkdir", so it can be a program name with args.
6687set dummy mkdir; ac_word=$2
6688{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6690if test "${ac_cv_path_MKDIR+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692else
6693 case $MKDIR in
6694 [\\/]* | ?:[\\/]*)
6695 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6696 ;;
6697 *)
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699for as_dir in $PATH
6700do
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6708 fi
6709done
6710done
6711IFS=$as_save_IFS
6712
6713 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6714 ;;
6715esac
6716fi
6717MKDIR=$ac_cv_path_MKDIR
6718if test -n "$MKDIR"; then
6719 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6720echo "${ECHO_T}$MKDIR" >&6; }
6721else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6; }
6724fi
6725
6726
6727# Extract the first word of "mv", so it can be a program name with args.
6728set dummy mv; ac_word=$2
6729{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731if test "${ac_cv_path_MV+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 case $MV in
6735 [\\/]* | ?:[\\/]*)
6736 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6737 ;;
6738 *)
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740for as_dir in $PATH
6741do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750done
6751done
6752IFS=$as_save_IFS
6753
6754 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6755 ;;
6756esac
6757fi
6758MV=$ac_cv_path_MV
6759if test -n "$MV"; then
6760 { echo "$as_me:$LINENO: result: $MV" >&5
6761echo "${ECHO_T}$MV" >&6; }
6762else
6763 { echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6; }
6765fi
6766
6767
6768if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6770set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6771{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773if test "${ac_cv_prog_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 if test -n "$RANLIB"; then
6777 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6778else
6779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780for as_dir in $PATH
6781do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790done
6791done
6792IFS=$as_save_IFS
6793
6794fi
6795fi
6796RANLIB=$ac_cv_prog_RANLIB
6797if test -n "$RANLIB"; then
6798 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6799echo "${ECHO_T}$RANLIB" >&6; }
6800else
6801 { echo "$as_me:$LINENO: result: no" >&5
6802echo "${ECHO_T}no" >&6; }
6803fi
6804
6805
6806fi
6807if test -z "$ac_cv_prog_RANLIB"; then
6808 ac_ct_RANLIB=$RANLIB
6809 # Extract the first word of "ranlib", so it can be a program name with args.
6810set dummy ranlib; ac_word=$2
6811{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6813if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6814 echo $ECHO_N "(cached) $ECHO_C" >&6
6815else
6816 if test -n "$ac_ct_RANLIB"; then
6817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6818else
6819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820for as_dir in $PATH
6821do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_ac_ct_RANLIB="ranlib"
6827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830done
6831done
6832IFS=$as_save_IFS
6833
6834fi
6835fi
6836ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6837if test -n "$ac_ct_RANLIB"; then
6838 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6839echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6840else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6; }
6843fi
6844
6845 if test "x$ac_ct_RANLIB" = x; then
6846 RANLIB=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849yes:)
6850{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6851whose name does not start with the host triplet. If you think this
6852configuration is useful to you, please write to autoconf@gnu.org." >&5
6853echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6854whose name does not start with the host triplet. If you think this
6855configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6856ac_tool_warned=yes ;;
6857esac
6858 RANLIB=$ac_ct_RANLIB
6859 fi
6860else
6861 RANLIB="$ac_cv_prog_RANLIB"
6862fi
6863
6864# Extract the first word of "rm", so it can be a program name with args.
6865set dummy rm; ac_word=$2
6866{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6868if test "${ac_cv_path_RM+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870else
6871 case $RM in
6872 [\\/]* | ?:[\\/]*)
6873 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6874 ;;
6875 *)
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877for as_dir in $PATH
6878do
6879 IFS=$as_save_IFS
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6883 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887done
6888done
6889IFS=$as_save_IFS
6890
6891 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6892 ;;
6893esac
6894fi
6895RM=$ac_cv_path_RM
6896if test -n "$RM"; then
6897 { echo "$as_me:$LINENO: result: $RM" >&5
6898echo "${ECHO_T}$RM" >&6; }
6899else
6900 { echo "$as_me:$LINENO: result: no" >&5
6901echo "${ECHO_T}no" >&6; }
6902fi
6903
6904
6905# Extract the first word of "sed", so it can be a program name with args.
6906set dummy sed; ac_word=$2
6907{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6909if test "${ac_cv_path_SED+set}" = set; then
6910 echo $ECHO_N "(cached) $ECHO_C" >&6
6911else
6912 case $SED in
6913 [\\/]* | ?:[\\/]*)
6914 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6915 ;;
6916 *)
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6927 fi
6928done
6929done
6930IFS=$as_save_IFS
6931
6932 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6933 ;;
6934esac
6935fi
6936SED=$ac_cv_path_SED
6937if test -n "$SED"; then
6938 { echo "$as_me:$LINENO: result: $SED" >&5
6939echo "${ECHO_T}$SED" >&6; }
6940else
6941 { echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6; }
6943fi
6944
6945
6946# Extract the first word of "tar", so it can be a program name with args.
6947set dummy tar; ac_word=$2
6948{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6950if test "${ac_cv_path_TAR+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6952else
6953 case $TAR in
6954 [\\/]* | ?:[\\/]*)
6955 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6956 ;;
6957 *)
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6959for as_dir in $PATH
6960do
6961 IFS=$as_save_IFS
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 break 2
6968 fi
6969done
6970done
6971IFS=$as_save_IFS
6972
6973 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6974 ;;
6975esac
6976fi
6977TAR=$ac_cv_path_TAR
6978if test -n "$TAR"; then
6979 { echo "$as_me:$LINENO: result: $TAR" >&5
6980echo "${ECHO_T}$TAR" >&6; }
6981else
6982 { echo "$as_me:$LINENO: result: no" >&5
6983echo "${ECHO_T}no" >&6; }
6984fi
6985
6986
6987# Extract the first word of "pwd", so it can be a program name with args.
6988set dummy pwd; ac_word=$2
6989{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6991if test "${ac_cv_path_BINPWD+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6993else
6994 case $BINPWD in
6995 [\\/]* | ?:[\\/]*)
6996 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6997 ;;
6998 *)
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000for as_dir in $PATH
7001do
7002 IFS=$as_save_IFS
7003 test -z "$as_dir" && as_dir=.
7004 for ac_exec_ext in '' $ac_executable_extensions; do
7005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7006 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 break 2
7009 fi
7010done
7011done
7012IFS=$as_save_IFS
7013
7014 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7015 ;;
7016esac
7017fi
7018BINPWD=$ac_cv_path_BINPWD
7019if test -n "$BINPWD"; then
7020 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7021echo "${ECHO_T}$BINPWD" >&6; }
7022else
7023 { echo "$as_me:$LINENO: result: no" >&5
7024echo "${ECHO_T}no" >&6; }
7025fi
7026
7027
7028
7029# Extract the first word of "Graphviz", so it can be a program name with args.
7030set dummy Graphviz; ac_word=$2
7031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7033if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036 case $GRAPHVIZ in
7037 [\\/]* | ?:[\\/]*)
7038 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7039 ;;
7040 *)
7041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
7046 for ac_exec_ext in '' $ac_executable_extensions; do
7047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 break 2
7051 fi
7052done
7053done
7054IFS=$as_save_IFS
7055
7056 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7057 ;;
7058esac
7059fi
7060GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7061if test -n "$GRAPHVIZ"; then
7062 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7063echo "${ECHO_T}$GRAPHVIZ" >&6; }
7064else
7065 { echo "$as_me:$LINENO: result: no" >&5
7066echo "${ECHO_T}no" >&6; }
7067fi
7068
7069
7070if test "$GRAPHVIZ" != "echo Graphviz" ; then
7071
7072cat >>confdefs.h <<\_ACEOF
7073#define HAVE_GRAPHVIZ 1
7074_ACEOF
7075
7076 if test "$llvm_cv_os_type" == "MingW" ; then
7077 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7078 fi
7079
7080cat >>confdefs.h <<_ACEOF
7081#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7082_ACEOF
7083
7084fi
7085# Extract the first word of "dot", so it can be a program name with args.
7086set dummy dot; ac_word=$2
7087{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7088echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089if test "${ac_cv_path_DOT+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091else
7092 case $DOT in
7093 [\\/]* | ?:[\\/]*)
7094 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7095 ;;
7096 *)
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7106 break 2
7107 fi
7108done
7109done
7110IFS=$as_save_IFS
7111
7112 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7113 ;;
7114esac
7115fi
7116DOT=$ac_cv_path_DOT
7117if test -n "$DOT"; then
7118 { echo "$as_me:$LINENO: result: $DOT" >&5
7119echo "${ECHO_T}$DOT" >&6; }
7120else
7121 { echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6; }
7123fi
7124
7125
7126if test "$DOT" != "echo dot" ; then
7127
7128cat >>confdefs.h <<\_ACEOF
7129#define HAVE_DOT 1
7130_ACEOF
7131
7132 if test "$llvm_cv_os_type" == "MingW" ; then
7133 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7134 fi
7135
7136cat >>confdefs.h <<_ACEOF
7137#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7138_ACEOF
7139
7140fi
7141for ac_prog in gv gsview32
7142do
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144set dummy $ac_prog; ac_word=$2
7145{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147if test "${ac_cv_path_GV+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149else
7150 case $GV in
7151 [\\/]* | ?:[\\/]*)
7152 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7153 ;;
7154 *)
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156for as_dir in $PATH
7157do
7158 IFS=$as_save_IFS
7159 test -z "$as_dir" && as_dir=.
7160 for ac_exec_ext in '' $ac_executable_extensions; do
7161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7162 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7164 break 2
7165 fi
7166done
7167done
7168IFS=$as_save_IFS
7169
7170 ;;
7171esac
7172fi
7173GV=$ac_cv_path_GV
7174if test -n "$GV"; then
7175 { echo "$as_me:$LINENO: result: $GV" >&5
7176echo "${ECHO_T}$GV" >&6; }
7177else
7178 { echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6; }
7180fi
7181
7182
7183 test -n "$GV" && break
7184done
7185test -n "$GV" || GV="echo gv"
7186
7187if test "$GV" != "echo gv" ; then
7188
7189cat >>confdefs.h <<\_ACEOF
7190#define HAVE_GV 1
7191_ACEOF
7192
7193 if test "$llvm_cv_os_type" == "MingW" ; then
7194 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7195 fi
7196
7197cat >>confdefs.h <<_ACEOF
7198#define LLVM_PATH_GV "$GV${EXEEXT}"
7199_ACEOF
7200
7201fi
7202# Extract the first word of "dotty", so it can be a program name with args.
7203set dummy dotty; ac_word=$2
7204{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7206if test "${ac_cv_path_DOTTY+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209 case $DOTTY in
7210 [\\/]* | ?:[\\/]*)
7211 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7212 ;;
7213 *)
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7221 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7223 break 2
7224 fi
7225done
7226done
7227IFS=$as_save_IFS
7228
7229 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7230 ;;
7231esac
7232fi
7233DOTTY=$ac_cv_path_DOTTY
7234if test -n "$DOTTY"; then
7235 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7236echo "${ECHO_T}$DOTTY" >&6; }
7237else
7238 { echo "$as_me:$LINENO: result: no" >&5
7239echo "${ECHO_T}no" >&6; }
7240fi
7241
7242
7243if test "$DOTTY" != "echo dotty" ; then
7244
7245cat >>confdefs.h <<\_ACEOF
7246#define HAVE_DOTTY 1
7247_ACEOF
7248
7249 if test "$llvm_cv_os_type" == "MingW" ; then
7250 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7251 fi
7252
7253cat >>confdefs.h <<_ACEOF
7254#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7255_ACEOF
7256
7257fi
7258
7259
7260# Extract the first word of "perl", so it can be a program name with args.
7261set dummy perl; ac_word=$2
7262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264if test "${ac_cv_path_PERL+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266else
7267 case $PERL in
7268 [\\/]* | ?:[\\/]*)
7269 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7270 ;;
7271 *)
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273for as_dir in $PATH
7274do
7275 IFS=$as_save_IFS
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281 break 2
7282 fi
7283done
7284done
7285IFS=$as_save_IFS
7286
7287 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7288 ;;
7289esac
7290fi
7291PERL=$ac_cv_path_PERL
7292if test -n "$PERL"; then
7293 { echo "$as_me:$LINENO: result: $PERL" >&5
7294echo "${ECHO_T}$PERL" >&6; }
7295else
7296 { echo "$as_me:$LINENO: result: no" >&5
7297echo "${ECHO_T}no" >&6; }
7298fi
7299
7300
7301if test "$PERL" != "none"; then
7302 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7303echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7304 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7305 { echo "$as_me:$LINENO: result: yes" >&5
7306echo "${ECHO_T}yes" >&6; }
7307 else
7308 PERL=none
7309 { echo "$as_me:$LINENO: result: not found" >&5
7310echo "${ECHO_T}not found" >&6; }
7311 fi
7312fi
7313
7314
7315if test x"$PERL" = xnone; then
7316 HAVE_PERL=0
7317
7318else
7319 HAVE_PERL=1
7320
7321fi
7322
7323# Find a good install program. We prefer a C program (faster),
7324# so one script is as good as another. But avoid the broken or
7325# incompatible versions:
7326# SysV /etc/install, /usr/sbin/install
7327# SunOS /usr/etc/install
7328# IRIX /sbin/install
7329# AIX /bin/install
7330# AmigaOS /C/install, which installs bootblocks on floppy discs
7331# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7332# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7333# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7334# OS/2's system install, which has a completely different semantic
7335# ./install, which can be erroneously created by make from ./install.sh.
7336{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7337echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7338if test -z "$INSTALL"; then
7339if test "${ac_cv_path_install+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7341else
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 # Account for people who put trailing slashes in PATH elements.
7348case $as_dir/ in
7349 ./ | .// | /cC/* | \
7350 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7351 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7352 /usr/ucb/* ) ;;
7353 *)
7354 # OSF1 and SCO ODT 3.0 have their own names for install.
7355 # Don't use installbsd from OSF since it installs stuff as root
7356 # by default.
7357 for ac_prog in ginstall scoinst install; do
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7360 if test $ac_prog = install &&
7361 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7362 # AIX install. It has an incompatible calling convention.
7363 :
7364 elif test $ac_prog = install &&
7365 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7366 # program-specific install script used by HP pwplus--don't use.
7367 :
7368 else
7369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7370 break 3
7371 fi
7372 fi
7373 done
7374 done
7375 ;;
7376esac
7377done
7378IFS=$as_save_IFS
7379
7380
7381fi
7382 if test "${ac_cv_path_install+set}" = set; then
7383 INSTALL=$ac_cv_path_install
7384 else
7385 # As a last resort, use the slow shell script. Don't cache a
7386 # value for INSTALL within a source directory, because that will
7387 # break other packages using the cache if that directory is
7388 # removed, or if the value is a relative name.
7389 INSTALL=$ac_install_sh
7390 fi
7391fi
7392{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7393echo "${ECHO_T}$INSTALL" >&6; }
7394
7395# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7396# It thinks the first close brace ends the variable substitution.
7397test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7398
7399test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7400
7401test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7402
7403
7404# Extract the first word of "bzip2", so it can be a program name with args.
7405set dummy bzip2; ac_word=$2
7406{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7408if test "${ac_cv_path_BZIP2+set}" = set; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7410else
7411 case $BZIP2 in
7412 [\\/]* | ?:[\\/]*)
7413 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7414 ;;
7415 *)
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7423 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7426 fi
7427done
7428done
7429IFS=$as_save_IFS
7430
7431 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7432 ;;
7433esac
7434fi
7435BZIP2=$ac_cv_path_BZIP2
7436if test -n "$BZIP2"; then
7437 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7438echo "${ECHO_T}$BZIP2" >&6; }
7439else
7440 { echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6; }
7442fi
7443
7444
7445# Extract the first word of "doxygen", so it can be a program name with args.
7446set dummy doxygen; ac_word=$2
7447{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7449if test "${ac_cv_path_DOXYGEN+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7451else
7452 case $DOXYGEN in
7453 [\\/]* | ?:[\\/]*)
7454 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7455 ;;
7456 *)
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460 IFS=$as_save_IFS
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466 break 2
7467 fi
7468done
7469done
7470IFS=$as_save_IFS
7471
7472 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7473 ;;
7474esac
7475fi
7476DOXYGEN=$ac_cv_path_DOXYGEN
7477if test -n "$DOXYGEN"; then
7478 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7479echo "${ECHO_T}$DOXYGEN" >&6; }
7480else
7481 { echo "$as_me:$LINENO: result: no" >&5
7482echo "${ECHO_T}no" >&6; }
7483fi
7484
7485
Reid Spencera773bd52006-08-04 18:18:08 +00007486# Extract the first word of "groff", so it can be a program name with args.
7487set dummy groff; ac_word=$2
7488{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7490if test "${ac_cv_path_GROFF+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7492else
7493 case $GROFF in
7494 [\\/]* | ?:[\\/]*)
7495 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7496 ;;
7497 *)
7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7499for as_dir in $PATH
7500do
7501 IFS=$as_save_IFS
7502 test -z "$as_dir" && as_dir=.
7503 for ac_exec_ext in '' $ac_executable_extensions; do
7504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7505 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 break 2
7508 fi
7509done
7510done
7511IFS=$as_save_IFS
7512
7513 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7514 ;;
7515esac
7516fi
7517GROFF=$ac_cv_path_GROFF
7518if test -n "$GROFF"; then
7519 { echo "$as_me:$LINENO: result: $GROFF" >&5
7520echo "${ECHO_T}$GROFF" >&6; }
7521else
7522 { echo "$as_me:$LINENO: result: no" >&5
7523echo "${ECHO_T}no" >&6; }
7524fi
7525
7526
7527# Extract the first word of "gzip", so it can be a program name with args.
7528set dummy gzip; ac_word=$2
7529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7531if test "${ac_cv_path_GZIP+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534 case $GZIP in
7535 [\\/]* | ?:[\\/]*)
7536 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7537 ;;
7538 *)
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540for as_dir in $PATH
7541do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550done
7551done
7552IFS=$as_save_IFS
7553
7554 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7555 ;;
7556esac
7557fi
7558GZIP=$ac_cv_path_GZIP
7559if test -n "$GZIP"; then
7560 { echo "$as_me:$LINENO: result: $GZIP" >&5
7561echo "${ECHO_T}$GZIP" >&6; }
7562else
7563 { echo "$as_me:$LINENO: result: no" >&5
7564echo "${ECHO_T}no" >&6; }
7565fi
7566
7567
7568# Extract the first word of "pod2html", so it can be a program name with args.
7569set dummy pod2html; ac_word=$2
7570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7572if test "${ac_cv_path_POD2HTML+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574else
7575 case $POD2HTML in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7578 ;;
7579 *)
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581for as_dir in $PATH
7582do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591done
7592done
7593IFS=$as_save_IFS
7594
7595 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7596 ;;
7597esac
7598fi
7599POD2HTML=$ac_cv_path_POD2HTML
7600if test -n "$POD2HTML"; then
7601 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7602echo "${ECHO_T}$POD2HTML" >&6; }
7603else
7604 { echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6; }
7606fi
7607
7608
7609# Extract the first word of "pod2man", so it can be a program name with args.
7610set dummy pod2man; ac_word=$2
7611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613if test "${ac_cv_path_POD2MAN+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 case $POD2MAN in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633done
7634IFS=$as_save_IFS
7635
7636 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7637 ;;
7638esac
7639fi
7640POD2MAN=$ac_cv_path_POD2MAN
7641if test -n "$POD2MAN"; then
7642 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7643echo "${ECHO_T}$POD2MAN" >&6; }
7644else
7645 { echo "$as_me:$LINENO: result: no" >&5
7646echo "${ECHO_T}no" >&6; }
7647fi
7648
7649
7650# Extract the first word of "runtest", so it can be a program name with args.
7651set dummy runtest; ac_word=$2
7652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7654if test "${ac_cv_path_RUNTEST+set}" = set; then
7655 echo $ECHO_N "(cached) $ECHO_C" >&6
7656else
7657 case $RUNTEST in
7658 [\\/]* | ?:[\\/]*)
7659 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7660 ;;
7661 *)
7662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7663for as_dir in $PATH
7664do
7665 IFS=$as_save_IFS
7666 test -z "$as_dir" && as_dir=.
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7669 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 break 2
7672 fi
7673done
7674done
7675IFS=$as_save_IFS
7676
7677 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7678 ;;
7679esac
7680fi
7681RUNTEST=$ac_cv_path_RUNTEST
7682if test -n "$RUNTEST"; then
7683 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7684echo "${ECHO_T}$RUNTEST" >&6; }
7685else
7686 { echo "$as_me:$LINENO: result: no" >&5
7687echo "${ECHO_T}no" >&6; }
7688fi
7689
7690
7691
7692no_itcl=true
7693{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7694echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7695
7696# Check whether --with-tclinclude was given.
7697if test "${with_tclinclude+set}" = set; then
7698 withval=$with_tclinclude; with_tclinclude=${withval}
7699else
7700 with_tclinclude=''
7701fi
7702
7703if test "${ac_cv_path_tclsh+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7705else
7706
7707if test x"${with_tclinclude}" != x ; then
7708 if test -f ${with_tclinclude}/tclsh ; then
7709 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7710 elif test -f ${with_tclinclude}/src/tclsh ; then
7711 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7712 else
7713 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7714echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7715 { (exit 1); exit 1; }; }
7716 fi
7717fi
7718
7719if test x"${ac_cv_path_tclsh}" = x ; then
7720 { echo "$as_me:$LINENO: result: none" >&5
7721echo "${ECHO_T}none" >&6; }
7722 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
7723do
7724 # Extract the first word of "$ac_prog", so it can be a program name with args.
7725set dummy $ac_prog; ac_word=$2
7726{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7728if test "${ac_cv_path_TCLSH+set}" = set; then
7729 echo $ECHO_N "(cached) $ECHO_C" >&6
7730else
7731 case $TCLSH in
7732 [\\/]* | ?:[\\/]*)
7733 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7734 ;;
7735 *)
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7743 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7746 fi
7747done
7748done
7749IFS=$as_save_IFS
7750
7751 ;;
7752esac
7753fi
7754TCLSH=$ac_cv_path_TCLSH
7755if test -n "$TCLSH"; then
7756 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7757echo "${ECHO_T}$TCLSH" >&6; }
7758else
7759 { echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6; }
7761fi
7762
7763
7764 test -n "$TCLSH" && break
7765done
7766
7767 if test x"${TCLSH}" = x ; then
7768 ac_cv_path_tclsh='';
7769 else
7770 ac_cv_path_tclsh="${TCLSH}";
7771 fi
7772else
7773 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7774echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7775 TCLSH="${ac_cv_path_tclsh}"
7776
7777fi
7778
7779fi
7780
7781# Extract the first word of "zip", so it can be a program name with args.
7782set dummy zip; ac_word=$2
7783{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785if test "${ac_cv_path_ZIP+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 case $ZIP in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7791 ;;
7792 *)
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7803 fi
7804done
7805done
7806IFS=$as_save_IFS
7807
7808 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7809 ;;
7810esac
7811fi
7812ZIP=$ac_cv_path_ZIP
7813if test -n "$ZIP"; then
7814 { echo "$as_me:$LINENO: result: $ZIP" >&5
7815echo "${ECHO_T}$ZIP" >&6; }
7816else
7817 { echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6; }
7819fi
7820
7821
7822
7823{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7824echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7825if test "${llvm_cv_link_use_r+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828 ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
7834 oldcflags="$CFLAGS"
7835 CFLAGS="$CFLAGS -Wl,-R."
7836 cat >conftest.$ac_ext <<_ACEOF
7837/* confdefs.h. */
7838_ACEOF
7839cat confdefs.h >>conftest.$ac_ext
7840cat >>conftest.$ac_ext <<_ACEOF
7841/* end confdefs.h. */
7842
7843int
7844main ()
7845{
7846int main() { return 0; }
7847 ;
7848 return 0;
7849}
7850_ACEOF
7851rm -f conftest.$ac_objext conftest$ac_exeext
7852if { (ac_try="$ac_link"
7853case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7858 (eval "$ac_link") 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } &&
7865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7866 { (case "(($ac_try" in
7867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7868 *) ac_try_echo=$ac_try;;
7869esac
7870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_try") 2>&5
7872 ac_status=$?
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; } &&
7875 { ac_try='test -s conftest$ac_exeext'
7876 { (case "(($ac_try" in
7877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7879esac
7880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 llvm_cv_link_use_r=yes
7886else
7887 echo "$as_me: failed program was:" >&5
7888sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 llvm_cv_link_use_r=no
7891fi
7892
7893rm -f core conftest.err conftest.$ac_objext \
7894 conftest$ac_exeext conftest.$ac_ext
7895 CFLAGS="$oldcflags"
7896 ac_ext=c
7897ac_cpp='$CPP $CPPFLAGS'
7898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7900ac_compiler_gnu=$ac_cv_c_compiler_gnu
7901
7902
7903fi
7904{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7905echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7906if test "$llvm_cv_link_use_r" = yes ; then
7907
7908cat >>confdefs.h <<\_ACEOF
7909#define HAVE_LINK_R 1
7910_ACEOF
7911
7912 fi
7913
7914
7915
7916
7917{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7918echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7919if test "${ac_cv_c_const+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921else
7922 cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928
7929int
7930main ()
7931{
7932/* FIXME: Include the comments suggested by Paul. */
7933#ifndef __cplusplus
7934 /* Ultrix mips cc rejects this. */
7935 typedef int charset[2];
7936 const charset x;
7937 /* SunOS 4.1.1 cc rejects this. */
7938 char const *const *ccp;
7939 char **p;
7940 /* NEC SVR4.0.2 mips cc rejects this. */
7941 struct point {int x, y;};
7942 static struct point const zero = {0,0};
7943 /* AIX XL C 1.02.0.0 rejects this.
7944 It does not let you subtract one const X* pointer from another in
7945 an arm of an if-expression whose if-part is not a constant
7946 expression */
7947 const char *g = "string";
7948 ccp = &g + (g ? g-g : 0);
7949 /* HPUX 7.0 cc rejects these. */
7950 ++ccp;
7951 p = (char**) ccp;
7952 ccp = (char const *const *) p;
7953 { /* SCO 3.2v4 cc rejects this. */
7954 char *t;
7955 char const *s = 0 ? (char *) 0 : (char const *) 0;
7956
7957 *t++ = 0;
7958 if (s) return 0;
7959 }
7960 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7961 int x[] = {25, 17};
7962 const int *foo = &x[0];
7963 ++foo;
7964 }
7965 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7966 typedef const int *iptr;
7967 iptr p = 0;
7968 ++p;
7969 }
7970 { /* AIX XL C 1.02.0.0 rejects this saying
7971 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7972 struct s { int j; const int *ap[3]; };
7973 struct s *b; b->j = 5;
7974 }
7975 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7976 const int foo = 10;
7977 if (!foo) return 0;
7978 }
7979 return !x[0] && !zero.x;
7980#endif
7981
7982 ;
7983 return 0;
7984}
7985_ACEOF
7986rm -f conftest.$ac_objext
7987if { (ac_try="$ac_compile"
7988case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7991esac
7992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7994 ac_status=$?
7995 grep -v '^ *+' conftest.er1 >conftest.err
7996 rm -f conftest.er1
7997 cat conftest.err >&5
7998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } &&
8000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8001 { (case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_try") 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; } &&
8010 { ac_try='test -s conftest.$ac_objext'
8011 { (case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014esac
8015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_try") 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_c_const=yes
8021else
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025 ac_cv_c_const=no
8026fi
8027
8028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029fi
8030{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8031echo "${ECHO_T}$ac_cv_c_const" >&6; }
8032if test $ac_cv_c_const = no; then
8033
8034cat >>confdefs.h <<\_ACEOF
8035#define const
8036_ACEOF
8037
8038fi
8039
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008040
8041
8042
8043
8044
8045ac_header_dirent=no
8046for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8047 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008048{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8049echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008051 echo $ECHO_N "(cached) $ECHO_C" >&6
8052else
8053 cat >conftest.$ac_ext <<_ACEOF
8054/* confdefs.h. */
8055_ACEOF
8056cat confdefs.h >>conftest.$ac_ext
8057cat >>conftest.$ac_ext <<_ACEOF
8058/* end confdefs.h. */
8059#include <sys/types.h>
8060#include <$ac_hdr>
8061
8062int
8063main ()
8064{
8065if ((DIR *) 0)
8066return 0;
8067 ;
8068 return 0;
8069}
8070_ACEOF
8071rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008072if { (ac_try="$ac_compile"
8073case "(($ac_try" in
8074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8075 *) ac_try_echo=$ac_try;;
8076esac
8077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8078 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8086 { (case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089esac
8090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; } &&
8095 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008096 { (case "(($ac_try" in
8097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8098 *) ac_try_echo=$ac_try;;
8099esac
8100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8101 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 eval "$as_ac_Header=yes"
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
Reid Spencera773bd52006-08-04 18:18:08 +00008110 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008111fi
Reid Spencera773bd52006-08-04 18:18:08 +00008112
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008114fi
Reid Spencera773bd52006-08-04 18:18:08 +00008115ac_res=`eval echo '${'$as_ac_Header'}'`
8116 { echo "$as_me:$LINENO: result: $ac_res" >&5
8117echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008118if test `eval echo '${'$as_ac_Header'}'` = yes; then
8119 cat >>confdefs.h <<_ACEOF
8120#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8121_ACEOF
8122
8123ac_header_dirent=$ac_hdr; break
8124fi
8125
8126done
8127# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8128if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008129 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8130echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008131if test "${ac_cv_search_opendir+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8133else
8134 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008135cat >conftest.$ac_ext <<_ACEOF
8136/* confdefs.h. */
8137_ACEOF
8138cat confdefs.h >>conftest.$ac_ext
8139cat >>conftest.$ac_ext <<_ACEOF
8140/* end confdefs.h. */
8141
Reid Spencera773bd52006-08-04 18:18:08 +00008142/* Override any GCC internal prototype to avoid an error.
8143 Use char because int might match the return type of a GCC
8144 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008145#ifdef __cplusplus
8146extern "C"
8147#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148char opendir ();
8149int
8150main ()
8151{
Reid Spencera773bd52006-08-04 18:18:08 +00008152return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153 ;
8154 return 0;
8155}
8156_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008157for ac_lib in '' dir; do
8158 if test -z "$ac_lib"; then
8159 ac_res="none required"
8160 else
8161 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008163 fi
8164 rm -f conftest.$ac_objext conftest$ac_exeext
8165if { (ac_try="$ac_link"
8166case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169esac
8170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8179 { (case "(($ac_try" in
8180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8182esac
8183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008185 ac_status=$?
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); }; } &&
8188 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008189 { (case "(($ac_try" in
8190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8191 *) ac_try_echo=$ac_try;;
8192esac
8193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8194 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008198 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008199else
8200 echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008203
8204fi
8205
Reid Spencera773bd52006-08-04 18:18:08 +00008206rm -f core conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext
8208 if test "${ac_cv_search_opendir+set}" = set; then
8209 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210fi
John Criswell7a73b802003-06-30 21:59:07 +00008211done
Reid Spencera773bd52006-08-04 18:18:08 +00008212if test "${ac_cv_search_opendir+set}" = set; then
8213 :
8214else
8215 ac_cv_search_opendir=no
8216fi
8217rm conftest.$ac_ext
8218LIBS=$ac_func_search_save_LIBS
8219fi
8220{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8221echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8222ac_res=$ac_cv_search_opendir
8223if test "$ac_res" != no; then
8224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008225
Reid Spencera773bd52006-08-04 18:18:08 +00008226fi
8227
8228else
8229 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8230echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8231if test "${ac_cv_search_opendir+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234 ac_func_search_save_LIBS=$LIBS
8235cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h. */
8241
8242/* Override any GCC internal prototype to avoid an error.
8243 Use char because int might match the return type of a GCC
8244 builtin and then its argument prototype would still apply. */
8245#ifdef __cplusplus
8246extern "C"
8247#endif
8248char opendir ();
8249int
8250main ()
8251{
8252return opendir ();
8253 ;
8254 return 0;
8255}
8256_ACEOF
8257for ac_lib in '' x; do
8258 if test -z "$ac_lib"; then
8259 ac_res="none required"
8260 else
8261 ac_res=-l$ac_lib
8262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8263 fi
8264 rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (ac_try="$ac_link"
8266case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_link") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8279 { (case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_try") 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest$ac_exeext'
8289 { (case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292esac
8293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_try") 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 ac_cv_search_opendir=$ac_res
8299else
8300 echo "$as_me: failed program was:" >&5
8301sed 's/^/| /' conftest.$ac_ext >&5
8302
8303
8304fi
8305
8306rm -f core conftest.err conftest.$ac_objext \
8307 conftest$ac_exeext
8308 if test "${ac_cv_search_opendir+set}" = set; then
8309 break
8310fi
8311done
8312if test "${ac_cv_search_opendir+set}" = set; then
8313 :
8314else
8315 ac_cv_search_opendir=no
8316fi
8317rm conftest.$ac_ext
8318LIBS=$ac_func_search_save_LIBS
8319fi
8320{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8321echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8322ac_res=$ac_cv_search_opendir
8323if test "$ac_res" != no; then
8324 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8325
8326fi
8327
8328fi
John Criswell7a73b802003-06-30 21:59:07 +00008329
8330
8331for ac_header in dlfcn.h
8332do
8333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8337if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008338 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008339fi
Reid Spencera773bd52006-08-04 18:18:08 +00008340ac_res=`eval echo '${'$as_ac_Header'}'`
8341 { echo "$as_me:$LINENO: result: $ac_res" >&5
8342echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008343else
Brian Gaeke0a621332004-09-08 20:38:05 +00008344 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008345{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8346echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008347cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008348/* confdefs.h. */
8349_ACEOF
8350cat confdefs.h >>conftest.$ac_ext
8351cat >>conftest.$ac_ext <<_ACEOF
8352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008353$ac_includes_default
8354#include <$ac_header>
8355_ACEOF
8356rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008357if { (ac_try="$ac_compile"
8358case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8371 { (case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374esac
8375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008381 { (case "(($ac_try" in
8382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8384esac
8385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008390 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008391else
8392 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008393sed 's/^/| /' conftest.$ac_ext >&5
8394
Reid Spencera773bd52006-08-04 18:18:08 +00008395 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008396fi
Reid Spencera773bd52006-08-04 18:18:08 +00008397
8398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008401
8402# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008403{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8404echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008405cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
8411#include <$ac_header>
8412_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008413if { (ac_try="$ac_cpp conftest.$ac_ext"
8414case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008420 ac_status=$?
8421 grep -v '^ *+' conftest.er1 >conftest.err
8422 rm -f conftest.er1
8423 cat conftest.err >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); } >/dev/null; then
8426 if test -s conftest.err; then
8427 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008429 else
8430 ac_cpp_err=
8431 fi
8432else
8433 ac_cpp_err=yes
8434fi
8435if test -z "$ac_cpp_err"; then
8436 ac_header_preproc=yes
8437else
8438 echo "$as_me: failed program was:" >&5
8439sed 's/^/| /' conftest.$ac_ext >&5
8440
8441 ac_header_preproc=no
8442fi
Reid Spencera773bd52006-08-04 18:18:08 +00008443
Brian Gaeke0a621332004-09-08 20:38:05 +00008444rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008445{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8446echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008447
8448# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008449case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8450 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8455 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008456 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008457 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8461echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8465echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008470 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008471## ----------------------------------- ##
8472## Report this to llvmbugs@cs.uiuc.edu ##
8473## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008474_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008475 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008476 ;;
8477esac
Reid Spencera773bd52006-08-04 18:18:08 +00008478{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8480if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008481 echo $ECHO_N "(cached) $ECHO_C" >&6
8482else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008483 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008484fi
Reid Spencera773bd52006-08-04 18:18:08 +00008485ac_res=`eval echo '${'$as_ac_Header'}'`
8486 { echo "$as_me:$LINENO: result: $ac_res" >&5
8487echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008488
8489fi
John Criswell7a73b802003-06-30 21:59:07 +00008490if test `eval echo '${'$as_ac_Header'}'` = yes; then
8491 cat >>confdefs.h <<_ACEOF
8492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8493_ACEOF
8494
8495fi
8496
8497done
8498
Reid Spencera773bd52006-08-04 18:18:08 +00008499# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008500if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008501 enableval=$enable_ltdl_install;
8502fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008503
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008504
8505
8506
8507if test x"${enable_ltdl_install-no}" != xno; then
8508 INSTALL_LTDL_TRUE=
8509 INSTALL_LTDL_FALSE='#'
8510else
8511 INSTALL_LTDL_TRUE='#'
8512 INSTALL_LTDL_FALSE=
8513fi
8514
8515
8516
8517if test x"${enable_ltdl_convenience-no}" != xno; then
8518 CONVENIENCE_LTDL_TRUE=
8519 CONVENIENCE_LTDL_FALSE='#'
8520else
8521 CONVENIENCE_LTDL_TRUE='#'
8522 CONVENIENCE_LTDL_FALSE=
8523fi
8524
8525
Reid Spencera773bd52006-08-04 18:18:08 +00008526{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8527echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008528library_names_spec=
8529libname_spec='lib$name'
8530soname_spec=
8531shrext_cmds=".so"
8532postinstall_cmds=
8533postuninstall_cmds=
8534finish_cmds=
8535finish_eval=
8536shlibpath_var=
8537shlibpath_overrides_runpath=unknown
8538version_type=none
8539dynamic_linker="$host_os ld.so"
8540sys_lib_dlsearch_path_spec="/lib /usr/lib"
8541if test "$GCC" = yes; then
8542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8543 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8544 # if the path contains ";" then we assume it to be the separator
8545 # otherwise default to the standard path separator (i.e. ":") - it is
8546 # assumed that no part of a normal pathname contains ";" but that should
8547 # okay in the real world where ";" in dirpaths is itself problematic.
8548 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8549 else
8550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8551 fi
8552else
8553 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8554fi
8555need_lib_prefix=unknown
8556hardcode_into_libs=no
8557
8558# when you set need_version to no, make sure it does not cause -set_version
8559# flags to be left without arguments
8560need_version=unknown
8561
8562case $host_os in
8563aix3*)
8564 version_type=linux
8565 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8566 shlibpath_var=LIBPATH
8567
8568 # AIX 3 has no versioning support, so we append a major version to the name.
8569 soname_spec='${libname}${release}${shared_ext}$major'
8570 ;;
8571
8572aix4* | aix5*)
8573 version_type=linux
8574 need_lib_prefix=no
8575 need_version=no
8576 hardcode_into_libs=yes
8577 if test "$host_cpu" = ia64; then
8578 # AIX 5 supports IA64
8579 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8580 shlibpath_var=LD_LIBRARY_PATH
8581 else
8582 # With GCC up to 2.95.x, collect2 would create an import file
8583 # for dependence libraries. The import file would start with
8584 # the line `#! .'. This would cause the generated library to
8585 # depend on `.', always an invalid library. This was fixed in
8586 # development snapshots of GCC prior to 3.0.
8587 case $host_os in
8588 aix4 | aix4.[01] | aix4.[01].*)
8589 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8590 echo ' yes '
8591 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8592 :
8593 else
8594 can_build_shared=no
8595 fi
8596 ;;
8597 esac
8598 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8599 # soname into executable. Probably we can add versioning support to
8600 # collect2, so additional links can be useful in future.
8601 if test "$aix_use_runtimelinking" = yes; then
8602 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8603 # instead of lib<name>.a to let people know that these are not
8604 # typical AIX shared libraries.
8605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606 else
8607 # We preserve .a as extension for shared libraries through AIX4.2
8608 # and later when we are not doing run time linking.
8609 library_names_spec='${libname}${release}.a $libname.a'
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 fi
8612 shlibpath_var=LIBPATH
8613 fi
8614 ;;
8615
8616amigaos*)
8617 library_names_spec='$libname.ixlibrary $libname.a'
8618 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8619 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'
8620 ;;
8621
8622beos*)
8623 library_names_spec='${libname}${shared_ext}'
8624 dynamic_linker="$host_os ld.so"
8625 shlibpath_var=LIBRARY_PATH
8626 ;;
8627
8628bsdi[45]*)
8629 version_type=linux
8630 need_version=no
8631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632 soname_spec='${libname}${release}${shared_ext}$major'
8633 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8636 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8637 # the default ld.so.conf also contains /usr/contrib/lib and
8638 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8639 # libtool to hard-code these into programs
8640 ;;
8641
8642cygwin* | mingw* | pw32*)
8643 version_type=windows
8644 shrext_cmds=".dll"
8645 need_version=no
8646 need_lib_prefix=no
8647
8648 case $GCC,$host_os in
8649 yes,cygwin* | yes,mingw* | yes,pw32*)
8650 library_names_spec='$libname.dll.a'
8651 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8652 postinstall_cmds='base_file=`basename \${file}`~
8653 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8654 dldir=$destdir/`dirname \$dlpath`~
8655 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008656 $install_prog $dir/$dlname \$dldir/$dlname~
8657 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8659 dlpath=$dir/\$dldll~
8660 $rm \$dlpath'
8661 shlibpath_overrides_runpath=yes
8662
8663 case $host_os in
8664 cygwin*)
8665 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8666 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8667 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8668 ;;
8669 mingw*)
8670 # MinGW DLLs use traditional 'lib' prefix
8671 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8672 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8673 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8674 # It is most probably a Windows format PATH printed by
8675 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8676 # path with ; separators, and with drive letters. We can handle the
8677 # drive letters (cygwin fileutils understands them), so leave them,
8678 # especially as we might pass files found there to a mingw objdump,
8679 # which wouldn't understand a cygwinified path. Ahh.
8680 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8681 else
8682 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8683 fi
8684 ;;
8685 pw32*)
8686 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008687 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 +00008688 ;;
8689 esac
8690 ;;
8691
8692 *)
8693 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8694 ;;
8695 esac
8696 dynamic_linker='Win32 ld.exe'
8697 # FIXME: first we should search . and the directory the executable is in
8698 shlibpath_var=PATH
8699 ;;
8700
8701darwin* | rhapsody*)
8702 dynamic_linker="$host_os dyld"
8703 version_type=darwin
8704 need_lib_prefix=no
8705 need_version=no
8706 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8707 soname_spec='${libname}${release}${major}$shared_ext'
8708 shlibpath_overrides_runpath=yes
8709 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008710 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008711 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8712 if test "$GCC" = yes; then
8713 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"`
8714 else
8715 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8716 fi
8717 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8718 ;;
8719
8720dgux*)
8721 version_type=linux
8722 need_lib_prefix=no
8723 need_version=no
8724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8725 soname_spec='${libname}${release}${shared_ext}$major'
8726 shlibpath_var=LD_LIBRARY_PATH
8727 ;;
8728
8729freebsd1*)
8730 dynamic_linker=no
8731 ;;
8732
8733kfreebsd*-gnu)
8734 version_type=linux
8735 need_lib_prefix=no
8736 need_version=no
8737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8738 soname_spec='${libname}${release}${shared_ext}$major'
8739 shlibpath_var=LD_LIBRARY_PATH
8740 shlibpath_overrides_runpath=no
8741 hardcode_into_libs=yes
8742 dynamic_linker='GNU ld.so'
8743 ;;
8744
Reid Spencera773bd52006-08-04 18:18:08 +00008745freebsd* | dragonfly*)
8746 # DragonFly does not have aout. When/if they implement a new
8747 # versioning mechanism, adjust this.
8748 if test -x /usr/bin/objformat; then
8749 objformat=`/usr/bin/objformat`
8750 else
8751 case $host_os in
8752 freebsd[123]*) objformat=aout ;;
8753 *) objformat=elf ;;
8754 esac
8755 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008756 version_type=freebsd-$objformat
8757 case $version_type in
8758 freebsd-elf*)
8759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8760 need_version=no
8761 need_lib_prefix=no
8762 ;;
8763 freebsd-*)
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8765 need_version=yes
8766 ;;
8767 esac
8768 shlibpath_var=LD_LIBRARY_PATH
8769 case $host_os in
8770 freebsd2*)
8771 shlibpath_overrides_runpath=yes
8772 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008773 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774 shlibpath_overrides_runpath=yes
8775 hardcode_into_libs=yes
8776 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008777 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8778 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008779 shlibpath_overrides_runpath=no
8780 hardcode_into_libs=yes
8781 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008782 freebsd*) # from 4.6 on
8783 shlibpath_overrides_runpath=yes
8784 hardcode_into_libs=yes
8785 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008786 esac
8787 ;;
8788
8789gnu*)
8790 version_type=linux
8791 need_lib_prefix=no
8792 need_version=no
8793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8794 soname_spec='${libname}${release}${shared_ext}$major'
8795 shlibpath_var=LD_LIBRARY_PATH
8796 hardcode_into_libs=yes
8797 ;;
8798
8799hpux9* | hpux10* | hpux11*)
8800 # Give a soname corresponding to the major version so that dld.sl refuses to
8801 # link against other versions.
8802 version_type=sunos
8803 need_lib_prefix=no
8804 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008805 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008806 ia64*)
8807 shrext_cmds='.so'
8808 hardcode_into_libs=yes
8809 dynamic_linker="$host_os dld.so"
8810 shlibpath_var=LD_LIBRARY_PATH
8811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8813 soname_spec='${libname}${release}${shared_ext}$major'
8814 if test "X$HPUX_IA64_MODE" = X32; then
8815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8816 else
8817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8818 fi
8819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8820 ;;
8821 hppa*64*)
8822 shrext_cmds='.sl'
8823 hardcode_into_libs=yes
8824 dynamic_linker="$host_os dld.sl"
8825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8831 ;;
8832 *)
8833 shrext_cmds='.sl'
8834 dynamic_linker="$host_os dld.sl"
8835 shlibpath_var=SHLIB_PATH
8836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8838 soname_spec='${libname}${release}${shared_ext}$major'
8839 ;;
8840 esac
8841 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8842 postinstall_cmds='chmod 555 $lib'
8843 ;;
8844
Reid Spencera773bd52006-08-04 18:18:08 +00008845interix3*)
8846 version_type=linux
8847 need_lib_prefix=no
8848 need_version=no
8849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8850 soname_spec='${libname}${release}${shared_ext}$major'
8851 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=no
8854 hardcode_into_libs=yes
8855 ;;
8856
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008857irix5* | irix6* | nonstopux*)
8858 case $host_os in
8859 nonstopux*) version_type=nonstopux ;;
8860 *)
8861 if test "$lt_cv_prog_gnu_ld" = yes; then
8862 version_type=linux
8863 else
8864 version_type=irix
8865 fi ;;
8866 esac
8867 need_lib_prefix=no
8868 need_version=no
8869 soname_spec='${libname}${release}${shared_ext}$major'
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8871 case $host_os in
8872 irix5* | nonstopux*)
8873 libsuff= shlibsuff=
8874 ;;
8875 *)
8876 case $LD in # libtool.m4 will add one of these switches to LD
8877 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8878 libsuff= shlibsuff= libmagic=32-bit;;
8879 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8880 libsuff=32 shlibsuff=N32 libmagic=N32;;
8881 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8882 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8883 *) libsuff= shlibsuff= libmagic=never-match;;
8884 esac
8885 ;;
8886 esac
8887 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8888 shlibpath_overrides_runpath=no
8889 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8890 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8891 hardcode_into_libs=yes
8892 ;;
8893
8894# No shared lib support for Linux oldld, aout, or coff.
8895linux*oldld* | linux*aout* | linux*coff*)
8896 dynamic_linker=no
8897 ;;
8898
8899# This must be Linux ELF.
8900linux*)
8901 version_type=linux
8902 need_lib_prefix=no
8903 need_version=no
8904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905 soname_spec='${libname}${release}${shared_ext}$major'
8906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=no
8909 # This implies no fast_install, which is unacceptable.
8910 # Some rework will be needed to allow for fast_install
8911 # before this can be enabled.
8912 hardcode_into_libs=yes
8913
8914 # Append ld.so.conf contents to the search path
8915 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008916 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 +00008917 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8918 fi
8919
8920 # We used to test for /lib/ld.so.1 and disable shared libraries on
8921 # powerpc, because MkLinux only supported shared libraries with the
8922 # GNU dynamic linker. Since this was broken with cross compilers,
8923 # most powerpc-linux boxes support dynamic linking these days and
8924 # people can always --disable-shared, the test was removed, and we
8925 # assume the GNU/Linux dynamic linker is in use.
8926 dynamic_linker='GNU/Linux ld.so'
8927 ;;
8928
8929knetbsd*-gnu)
8930 version_type=linux
8931 need_lib_prefix=no
8932 need_version=no
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 shlibpath_var=LD_LIBRARY_PATH
8936 shlibpath_overrides_runpath=no
8937 hardcode_into_libs=yes
8938 dynamic_linker='GNU ld.so'
8939 ;;
8940
8941netbsd*)
8942 version_type=sunos
8943 need_lib_prefix=no
8944 need_version=no
8945 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8948 dynamic_linker='NetBSD (a.out) ld.so'
8949 else
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 dynamic_linker='NetBSD ld.elf_so'
8953 fi
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=yes
8956 hardcode_into_libs=yes
8957 ;;
8958
8959newsos6)
8960 version_type=linux
8961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 shlibpath_overrides_runpath=yes
8964 ;;
8965
8966nto-qnx*)
8967 version_type=linux
8968 need_lib_prefix=no
8969 need_version=no
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8974 ;;
8975
8976openbsd*)
8977 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008978 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008979 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8981 case $host_os in
8982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8983 *) need_version=no ;;
8984 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8987 shlibpath_var=LD_LIBRARY_PATH
8988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8989 case $host_os in
8990 openbsd2.[89] | openbsd2.[89].*)
8991 shlibpath_overrides_runpath=no
8992 ;;
8993 *)
8994 shlibpath_overrides_runpath=yes
8995 ;;
8996 esac
8997 else
8998 shlibpath_overrides_runpath=yes
8999 fi
9000 ;;
9001
9002os2*)
9003 libname_spec='$name'
9004 shrext_cmds=".dll"
9005 need_lib_prefix=no
9006 library_names_spec='$libname${shared_ext} $libname.a'
9007 dynamic_linker='OS/2 ld.exe'
9008 shlibpath_var=LIBPATH
9009 ;;
9010
9011osf3* | osf4* | osf5*)
9012 version_type=osf
9013 need_lib_prefix=no
9014 need_version=no
9015 soname_spec='${libname}${release}${shared_ext}$major'
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 shlibpath_var=LD_LIBRARY_PATH
9018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9020 ;;
9021
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009022solaris*)
9023 version_type=linux
9024 need_lib_prefix=no
9025 need_version=no
9026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027 soname_spec='${libname}${release}${shared_ext}$major'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes
9030 hardcode_into_libs=yes
9031 # ldd complains unless libraries are executable
9032 postinstall_cmds='chmod +x $lib'
9033 ;;
9034
9035sunos4*)
9036 version_type=sunos
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9038 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=yes
9041 if test "$with_gnu_ld" = yes; then
9042 need_lib_prefix=no
9043 fi
9044 need_version=yes
9045 ;;
9046
Reid Spencera773bd52006-08-04 18:18:08 +00009047sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009048 version_type=linux
9049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9050 soname_spec='${libname}${release}${shared_ext}$major'
9051 shlibpath_var=LD_LIBRARY_PATH
9052 case $host_vendor in
9053 sni)
9054 shlibpath_overrides_runpath=no
9055 need_lib_prefix=no
9056 export_dynamic_flag_spec='${wl}-Blargedynsym'
9057 runpath_var=LD_RUN_PATH
9058 ;;
9059 siemens)
9060 need_lib_prefix=no
9061 ;;
9062 motorola)
9063 need_lib_prefix=no
9064 need_version=no
9065 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9067 ;;
9068 esac
9069 ;;
9070
9071sysv4*MP*)
9072 if test -d /usr/nec ;then
9073 version_type=linux
9074 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9075 soname_spec='$libname${shared_ext}.$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 fi
9078 ;;
9079
Reid Spencera773bd52006-08-04 18:18:08 +00009080sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9081 version_type=freebsd-elf
9082 need_lib_prefix=no
9083 need_version=no
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 shlibpath_var=LD_LIBRARY_PATH
9087 hardcode_into_libs=yes
9088 if test "$with_gnu_ld" = yes; then
9089 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9090 shlibpath_overrides_runpath=no
9091 else
9092 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9093 shlibpath_overrides_runpath=yes
9094 case $host_os in
9095 sco3.2v5*)
9096 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9097 ;;
9098 esac
9099 fi
9100 sys_lib_dlsearch_path_spec='/usr/lib'
9101 ;;
9102
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009103uts4*)
9104 version_type=linux
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9106 soname_spec='${libname}${release}${shared_ext}$major'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 ;;
9109
9110*)
9111 dynamic_linker=no
9112 ;;
9113esac
Reid Spencera773bd52006-08-04 18:18:08 +00009114{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9115echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009116test "$dynamic_linker" = no && can_build_shared=no
9117
Reid Spencera773bd52006-08-04 18:18:08 +00009118variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9119if test "$GCC" = yes; then
9120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9121fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009122
Reid Spencera773bd52006-08-04 18:18:08 +00009123
9124{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9125echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009126if test "${libltdl_cv_shlibext+set}" = set; then
9127 echo $ECHO_N "(cached) $ECHO_C" >&6
9128else
9129
9130module=yes
9131eval libltdl_cv_shlibext=$shrext_cmds
9132
9133fi
Reid Spencera773bd52006-08-04 18:18:08 +00009134{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9135echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009136if test -n "$libltdl_cv_shlibext"; then
9137
9138cat >>confdefs.h <<_ACEOF
9139#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9140_ACEOF
9141
9142fi
9143
9144
Reid Spencera773bd52006-08-04 18:18:08 +00009145{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9146echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009147if test "${libltdl_cv_shlibpath_var+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149else
9150 libltdl_cv_shlibpath_var="$shlibpath_var"
9151fi
Reid Spencera773bd52006-08-04 18:18:08 +00009152{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9153echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154if test -n "$libltdl_cv_shlibpath_var"; then
9155
9156cat >>confdefs.h <<_ACEOF
9157#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9158_ACEOF
9159
9160fi
9161
9162
Reid Spencera773bd52006-08-04 18:18:08 +00009163{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9164echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165if test "${libltdl_cv_sys_search_path+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9169fi
Reid Spencera773bd52006-08-04 18:18:08 +00009170{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9171echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172if test -n "$libltdl_cv_sys_search_path"; then
9173 sys_search_path=
9174 for dir in $libltdl_cv_sys_search_path; do
9175 if test -z "$sys_search_path"; then
9176 sys_search_path="$dir"
9177 else
9178 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9179 fi
9180 done
9181
9182cat >>confdefs.h <<_ACEOF
9183#define LTDL_SYSSEARCHPATH "$sys_search_path"
9184_ACEOF
9185
9186fi
9187
Reid Spencera773bd52006-08-04 18:18:08 +00009188{ echo "$as_me:$LINENO: checking for objdir" >&5
9189echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190if test "${libltdl_cv_objdir+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193 libltdl_cv_objdir="$objdir"
9194 if test -n "$objdir"; then
9195 :
9196 else
9197 rm -f .libs 2>/dev/null
9198 mkdir .libs 2>/dev/null
9199 if test -d .libs; then
9200 libltdl_cv_objdir=.libs
9201 else
9202 # MS-DOS does not allow filenames that begin with a dot.
9203 libltdl_cv_objdir=_libs
9204 fi
9205 rmdir .libs 2>/dev/null
9206 fi
9207
9208fi
Reid Spencera773bd52006-08-04 18:18:08 +00009209{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9210echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211
9212cat >>confdefs.h <<_ACEOF
9213#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9214_ACEOF
9215
9216
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009217
9218
9219
9220
9221# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009222{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9223echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009224if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227
9228# These are sane defaults that work on at least a few old systems.
9229# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9230
9231# Character class describing NM global symbol codes.
9232symcode='[BCDEGRST]'
9233
9234# Regexp to match symbols that can be accessed directly from C.
9235sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9236
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009237# Transform an extracted symbol line into a proper C declaration
9238lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9239
9240# Transform an extracted symbol line into symbol name and symbol address
9241lt_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'"
9242
9243# Define system-specific variables.
9244case $host_os in
9245aix*)
9246 symcode='[BCDT]'
9247 ;;
9248cygwin* | mingw* | pw32*)
9249 symcode='[ABCDGISTW]'
9250 ;;
9251hpux*) # Its linker distinguishes data from code symbols
9252 if test "$host_cpu" = ia64; then
9253 symcode='[ABCDEGRST]'
9254 fi
9255 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256 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'"
9257 ;;
9258linux*)
9259 if test "$host_cpu" = ia64; then
9260 symcode='[ABCDGIRSTW]'
9261 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9262 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'"
9263 fi
9264 ;;
9265irix* | nonstopux*)
9266 symcode='[BCDEGRST]'
9267 ;;
9268osf*)
9269 symcode='[BCDEGQRST]'
9270 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009271solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272 symcode='[BDRT]'
9273 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009274sco3.2v5*)
9275 symcode='[DT]'
9276 ;;
9277sysv4.2uw2*)
9278 symcode='[DT]'
9279 ;;
9280sysv5* | sco5v6* | unixware* | OpenUNIX*)
9281 symcode='[ABDT]'
9282 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283sysv4)
9284 symcode='[DFNSTU]'
9285 ;;
9286esac
9287
9288# Handle CRLF in mingw tool chain
9289opt_cr=
9290case $build_os in
9291mingw*)
9292 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9293 ;;
9294esac
9295
9296# If we're using GNU nm, then use its standard symbol codes.
9297case `$NM -V 2>&1` in
9298*GNU* | *'with BFD'*)
9299 symcode='[ABCDGIRSTW]' ;;
9300esac
9301
9302# Try without a prefix undercore, then with it.
9303for ac_symprfx in "" "_"; do
9304
Reid Spencera773bd52006-08-04 18:18:08 +00009305 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9306 symxfrm="\\1 $ac_symprfx\\2 \\2"
9307
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009308 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009309 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 +00009310
9311 # Check to see that the pipe works correctly.
9312 pipe_works=no
9313
9314 rm -f conftest*
9315 cat > conftest.$ac_ext <<EOF
9316#ifdef __cplusplus
9317extern "C" {
9318#endif
9319char nm_test_var;
9320void nm_test_func(){}
9321#ifdef __cplusplus
9322}
9323#endif
9324int main(){nm_test_var='a';nm_test_func();return(0);}
9325EOF
9326
9327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; then
9332 # Now try to grab the symbols.
9333 nlist=conftest.nm
9334 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9335 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9336 ac_status=$?
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && test -s "$nlist"; then
9339 # Try sorting and uniquifying the output.
9340 if sort "$nlist" | uniq > "$nlist"T; then
9341 mv -f "$nlist"T "$nlist"
9342 else
9343 rm -f "$nlist"T
9344 fi
9345
9346 # Make sure that we snagged all the symbols we need.
9347 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9348 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9349 cat <<EOF > conftest.$ac_ext
9350#ifdef __cplusplus
9351extern "C" {
9352#endif
9353
9354EOF
9355 # Now generate the symbol file.
9356 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9357
9358 cat <<EOF >> conftest.$ac_ext
9359#if defined (__STDC__) && __STDC__
9360# define lt_ptr_t void *
9361#else
9362# define lt_ptr_t char *
9363# define const
9364#endif
9365
9366/* The mapping between symbol names and symbols. */
9367const struct {
9368 const char *name;
9369 lt_ptr_t address;
9370}
9371lt_preloaded_symbols[] =
9372{
9373EOF
9374 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9375 cat <<\EOF >> conftest.$ac_ext
9376 {0, (lt_ptr_t) 0}
9377};
9378
9379#ifdef __cplusplus
9380}
9381#endif
9382EOF
9383 # Now try linking the two files.
9384 mv conftest.$ac_objext conftstm.$ac_objext
9385 lt_save_LIBS="$LIBS"
9386 lt_save_CFLAGS="$CFLAGS"
9387 LIBS="conftstm.$ac_objext"
9388 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9390 (eval $ac_link) 2>&5
9391 ac_status=$?
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9394 pipe_works=yes
9395 fi
9396 LIBS="$lt_save_LIBS"
9397 CFLAGS="$lt_save_CFLAGS"
9398 else
9399 echo "cannot find nm_test_func in $nlist" >&5
9400 fi
9401 else
9402 echo "cannot find nm_test_var in $nlist" >&5
9403 fi
9404 else
9405 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9406 fi
9407 else
9408 echo "$progname: failed program was:" >&5
9409 cat conftest.$ac_ext >&5
9410 fi
9411 rm -f conftest* conftst*
9412
9413 # Do not use the global_symbol_pipe unless it works.
9414 if test "$pipe_works" = yes; then
9415 break
9416 else
9417 lt_cv_sys_global_symbol_pipe=
9418 fi
9419done
9420
9421fi
9422
9423if test -z "$lt_cv_sys_global_symbol_pipe"; then
9424 lt_cv_sys_global_symbol_to_cdecl=
9425fi
9426if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009427 { echo "$as_me:$LINENO: result: failed" >&5
9428echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009429else
Reid Spencera773bd52006-08-04 18:18:08 +00009430 { echo "$as_me:$LINENO: result: ok" >&5
9431echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009432fi
9433
9434
Reid Spencera773bd52006-08-04 18:18:08 +00009435{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9436echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009437if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439else
9440 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9441 libltdl_cv_preloaded_symbols=yes
9442 else
9443 libltdl_cv_preloaded_symbols=no
9444 fi
9445
9446fi
Reid Spencera773bd52006-08-04 18:18:08 +00009447{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9448echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009449if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9450
9451cat >>confdefs.h <<\_ACEOF
9452#define HAVE_PRELOADED_SYMBOLS 1
9453_ACEOF
9454
9455fi
9456
9457LIBADD_DL=
9458
9459ac_ext=c
9460ac_cpp='$CPP $CPPFLAGS'
9461ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9462ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9463ac_compiler_gnu=$ac_cv_c_compiler_gnu
9464
9465
Reid Spencera773bd52006-08-04 18:18:08 +00009466{ echo "$as_me:$LINENO: checking for shl_load" >&5
9467echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009468if test "${ac_cv_func_shl_load+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9470else
9471 cat >conftest.$ac_ext <<_ACEOF
9472/* confdefs.h. */
9473_ACEOF
9474cat confdefs.h >>conftest.$ac_ext
9475cat >>conftest.$ac_ext <<_ACEOF
9476/* end confdefs.h. */
9477/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9479#define shl_load innocuous_shl_load
9480
9481/* System header to define __stub macros and hopefully few prototypes,
9482 which can conflict with char shl_load (); below.
9483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9484 <limits.h> exists even on freestanding compilers. */
9485
9486#ifdef __STDC__
9487# include <limits.h>
9488#else
9489# include <assert.h>
9490#endif
9491
9492#undef shl_load
9493
Reid Spencera773bd52006-08-04 18:18:08 +00009494/* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497#ifdef __cplusplus
9498extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009499#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009500char shl_load ();
9501/* The GNU C library defines this for functions which it implements
9502 to always fail with ENOSYS. Some functions are actually named
9503 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009504#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009505choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009506#endif
9507
9508int
9509main ()
9510{
Reid Spencera773bd52006-08-04 18:18:08 +00009511return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009517if { (ac_try="$ac_link"
9518case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524 ac_status=$?
9525 grep -v '^ *+' conftest.er1 >conftest.err
9526 rm -f conftest.er1
9527 cat conftest.err >&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9531 { (case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009537 ac_status=$?
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); }; } &&
9540 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009541 { (case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544esac
9545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; }; then
9550 ac_cv_func_shl_load=yes
9551else
9552 echo "$as_me: failed program was:" >&5
9553sed 's/^/| /' conftest.$ac_ext >&5
9554
Reid Spencera773bd52006-08-04 18:18:08 +00009555 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009556fi
Reid Spencera773bd52006-08-04 18:18:08 +00009557
9558rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009559 conftest$ac_exeext conftest.$ac_ext
9560fi
Reid Spencera773bd52006-08-04 18:18:08 +00009561{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9562echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009563if test $ac_cv_func_shl_load = yes; then
9564
9565cat >>confdefs.h <<\_ACEOF
9566#define HAVE_SHL_LOAD 1
9567_ACEOF
9568
9569else
Reid Spencera773bd52006-08-04 18:18:08 +00009570 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9571echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 ac_check_lib_save_LIBS=$LIBS
9576LIBS="-ldld $LIBS"
9577cat >conftest.$ac_ext <<_ACEOF
9578/* confdefs.h. */
9579_ACEOF
9580cat confdefs.h >>conftest.$ac_ext
9581cat >>conftest.$ac_ext <<_ACEOF
9582/* end confdefs.h. */
9583
Reid Spencera773bd52006-08-04 18:18:08 +00009584/* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009587#ifdef __cplusplus
9588extern "C"
9589#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590char shl_load ();
9591int
9592main ()
9593{
Reid Spencera773bd52006-08-04 18:18:08 +00009594return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595 ;
9596 return 0;
9597}
9598_ACEOF
9599rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009600if { (ac_try="$ac_link"
9601case "(($ac_try" in
9602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9603 *) ac_try_echo=$ac_try;;
9604esac
9605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9606 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9614 { (case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617esac
9618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009624 { (case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627esac
9628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); }; }; then
9633 ac_cv_lib_dld_shl_load=yes
9634else
9635 echo "$as_me: failed program was:" >&5
9636sed 's/^/| /' conftest.$ac_ext >&5
9637
Reid Spencera773bd52006-08-04 18:18:08 +00009638 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009639fi
Reid Spencera773bd52006-08-04 18:18:08 +00009640
9641rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009642 conftest$ac_exeext conftest.$ac_ext
9643LIBS=$ac_check_lib_save_LIBS
9644fi
Reid Spencera773bd52006-08-04 18:18:08 +00009645{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9646echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009647if test $ac_cv_lib_dld_shl_load = yes; then
9648
9649cat >>confdefs.h <<\_ACEOF
9650#define HAVE_SHL_LOAD 1
9651_ACEOF
9652
9653 LIBADD_DL="$LIBADD_DL -ldld"
9654else
Reid Spencera773bd52006-08-04 18:18:08 +00009655 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9656echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9658 echo $ECHO_N "(cached) $ECHO_C" >&6
9659else
9660 ac_check_lib_save_LIBS=$LIBS
9661LIBS="-ldl $LIBS"
9662cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668
Reid Spencera773bd52006-08-04 18:18:08 +00009669/* Override any GCC internal prototype to avoid an error.
9670 Use char because int might match the return type of a GCC
9671 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009672#ifdef __cplusplus
9673extern "C"
9674#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675char dlopen ();
9676int
9677main ()
9678{
Reid Spencera773bd52006-08-04 18:18:08 +00009679return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009680 ;
9681 return 0;
9682}
9683_ACEOF
9684rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009685if { (ac_try="$ac_link"
9686case "(($ac_try" in
9687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688 *) ac_try_echo=$ac_try;;
9689esac
9690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9699 { (case "(($ac_try" in
9700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9701 *) ac_try_echo=$ac_try;;
9702esac
9703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9704 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009709 { (case "(($ac_try" in
9710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711 *) ac_try_echo=$ac_try;;
9712esac
9713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009715 ac_status=$?
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_lib_dl_dlopen=yes
9719else
9720 echo "$as_me: failed program was:" >&5
9721sed 's/^/| /' conftest.$ac_ext >&5
9722
Reid Spencera773bd52006-08-04 18:18:08 +00009723 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009724fi
Reid Spencera773bd52006-08-04 18:18:08 +00009725
9726rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009727 conftest$ac_exeext conftest.$ac_ext
9728LIBS=$ac_check_lib_save_LIBS
9729fi
Reid Spencera773bd52006-08-04 18:18:08 +00009730{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9731echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009732if test $ac_cv_lib_dl_dlopen = yes; then
9733
9734cat >>confdefs.h <<\_ACEOF
9735#define HAVE_LIBDL 1
9736_ACEOF
9737
9738 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9739else
9740 cat >conftest.$ac_ext <<_ACEOF
9741/* confdefs.h. */
9742_ACEOF
9743cat confdefs.h >>conftest.$ac_ext
9744cat >>conftest.$ac_ext <<_ACEOF
9745/* end confdefs.h. */
9746#if HAVE_DLFCN_H
9747# include <dlfcn.h>
9748#endif
9749
9750int
9751main ()
9752{
9753dlopen(0, 0);
9754 ;
9755 return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009759if { (ac_try="$ac_link"
9760case "(($ac_try" in
9761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762 *) ac_try_echo=$ac_try;;
9763esac
9764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009766 ac_status=$?
9767 grep -v '^ *+' conftest.er1 >conftest.err
9768 rm -f conftest.er1
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009783 { (case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009789 ac_status=$?
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); }; }; then
9792
9793cat >>confdefs.h <<\_ACEOF
9794#define HAVE_LIBDL 1
9795_ACEOF
9796 libltdl_cv_func_dlopen="yes"
9797else
9798 echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
Reid Spencera773bd52006-08-04 18:18:08 +00009801 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9802echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009803if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805else
9806 ac_check_lib_save_LIBS=$LIBS
9807LIBS="-lsvld $LIBS"
9808cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h. */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h. */
9814
Reid Spencera773bd52006-08-04 18:18:08 +00009815/* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009818#ifdef __cplusplus
9819extern "C"
9820#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821char dlopen ();
9822int
9823main ()
9824{
Reid Spencera773bd52006-08-04 18:18:08 +00009825return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009826 ;
9827 return 0;
9828}
9829_ACEOF
9830rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009831if { (ac_try="$ac_link"
9832case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835esac
9836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9845 { (case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009855 { (case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009861 ac_status=$?
9862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); }; }; then
9864 ac_cv_lib_svld_dlopen=yes
9865else
9866 echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
Reid Spencera773bd52006-08-04 18:18:08 +00009869 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009870fi
Reid Spencera773bd52006-08-04 18:18:08 +00009871
9872rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009873 conftest$ac_exeext conftest.$ac_ext
9874LIBS=$ac_check_lib_save_LIBS
9875fi
Reid Spencera773bd52006-08-04 18:18:08 +00009876{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9877echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009878if test $ac_cv_lib_svld_dlopen = yes; then
9879
9880cat >>confdefs.h <<\_ACEOF
9881#define HAVE_LIBDL 1
9882_ACEOF
9883
9884 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9885else
Reid Spencera773bd52006-08-04 18:18:08 +00009886 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9887echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891 ac_check_lib_save_LIBS=$LIBS
9892LIBS="-ldld $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */
9899
Reid Spencera773bd52006-08-04 18:18:08 +00009900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009903#ifdef __cplusplus
9904extern "C"
9905#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906char dld_link ();
9907int
9908main ()
9909{
Reid Spencera773bd52006-08-04 18:18:08 +00009910return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_dld_dld_link=yes
9950else
9951 echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
Reid Spencera773bd52006-08-04 18:18:08 +00009954 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009955fi
Reid Spencera773bd52006-08-04 18:18:08 +00009956
9957rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009958 conftest$ac_exeext conftest.$ac_ext
9959LIBS=$ac_check_lib_save_LIBS
9960fi
Reid Spencera773bd52006-08-04 18:18:08 +00009961{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9962echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009963if test $ac_cv_lib_dld_dld_link = yes; then
9964
9965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_DLD 1
9967_ACEOF
9968
9969 LIBADD_DL="$LIBADD_DL -ldld"
9970else
Reid Spencera773bd52006-08-04 18:18:08 +00009971 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9972echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975else
9976 cat >conftest.$ac_ext <<_ACEOF
9977/* confdefs.h. */
9978_ACEOF
9979cat confdefs.h >>conftest.$ac_ext
9980cat >>conftest.$ac_ext <<_ACEOF
9981/* end confdefs.h. */
9982/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984#define _dyld_func_lookup innocuous__dyld_func_lookup
9985
9986/* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char _dyld_func_lookup (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9990
9991#ifdef __STDC__
9992# include <limits.h>
9993#else
9994# include <assert.h>
9995#endif
9996
9997#undef _dyld_func_lookup
9998
Reid Spencera773bd52006-08-04 18:18:08 +00009999/* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010002#ifdef __cplusplus
10003extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010005char _dyld_func_lookup ();
10006/* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010009#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010010choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011#endif
10012
10013int
10014main ()
10015{
Reid Spencera773bd52006-08-04 18:18:08 +000010016return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010017 ;
10018 return 0;
10019}
10020_ACEOF
10021rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010022if { (ac_try="$ac_link"
10023case "(($ac_try" in
10024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10026esac
10027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029 ac_status=$?
10030 grep -v '^ *+' conftest.er1 >conftest.err
10031 rm -f conftest.er1
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10036 { (case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039esac
10040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010042 ac_status=$?
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044 (exit $ac_status); }; } &&
10045 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010046 { (case "(($ac_try" in
10047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10048 *) ac_try_echo=$ac_try;;
10049esac
10050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10051 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; }; then
10055 ac_cv_func__dyld_func_lookup=yes
10056else
10057 echo "$as_me: failed program was:" >&5
10058sed 's/^/| /' conftest.$ac_ext >&5
10059
Reid Spencera773bd52006-08-04 18:18:08 +000010060 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010061fi
Reid Spencera773bd52006-08-04 18:18:08 +000010062
10063rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010064 conftest$ac_exeext conftest.$ac_ext
10065fi
Reid Spencera773bd52006-08-04 18:18:08 +000010066{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10067echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010068if test $ac_cv_func__dyld_func_lookup = yes; then
10069
10070cat >>confdefs.h <<\_ACEOF
10071#define HAVE_DYLD 1
10072_ACEOF
10073
10074fi
10075
10076
10077fi
10078
10079
10080fi
10081
10082
10083fi
Reid Spencera773bd52006-08-04 18:18:08 +000010084
10085rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086 conftest$ac_exeext conftest.$ac_ext
10087
10088fi
10089
10090
10091fi
10092
10093
10094fi
10095
10096
10097if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10098then
10099 lt_save_LIBS="$LIBS"
10100 LIBS="$LIBS $LIBADD_DL"
10101
10102for ac_func in dlerror
10103do
10104as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010105{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10106echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10107if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010108 echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110 cat >conftest.$ac_ext <<_ACEOF
10111/* confdefs.h. */
10112_ACEOF
10113cat confdefs.h >>conftest.$ac_ext
10114cat >>conftest.$ac_ext <<_ACEOF
10115/* end confdefs.h. */
10116/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10118#define $ac_func innocuous_$ac_func
10119
10120/* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char $ac_func (); below.
10122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10123 <limits.h> exists even on freestanding compilers. */
10124
10125#ifdef __STDC__
10126# include <limits.h>
10127#else
10128# include <assert.h>
10129#endif
10130
10131#undef $ac_func
10132
Reid Spencera773bd52006-08-04 18:18:08 +000010133/* Override any GCC internal prototype to avoid an error.
10134 Use char because int might match the return type of a GCC
10135 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010136#ifdef __cplusplus
10137extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010138#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010139char $ac_func ();
10140/* The GNU C library defines this for functions which it implements
10141 to always fail with ENOSYS. Some functions are actually named
10142 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010143#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010144choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010145#endif
10146
10147int
10148main ()
10149{
Reid Spencera773bd52006-08-04 18:18:08 +000010150return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010151 ;
10152 return 0;
10153}
10154_ACEOF
10155rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010156if { (ac_try="$ac_link"
10157case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10160esac
10161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10170 { (case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
10174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10175 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010176 ac_status=$?
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; } &&
10179 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010180 { (case "(($ac_try" in
10181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10183esac
10184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 eval "$as_ac_var=yes"
10190else
10191 echo "$as_me: failed program was:" >&5
10192sed 's/^/| /' conftest.$ac_ext >&5
10193
Reid Spencera773bd52006-08-04 18:18:08 +000010194 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010195fi
Reid Spencera773bd52006-08-04 18:18:08 +000010196
10197rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010198 conftest$ac_exeext conftest.$ac_ext
10199fi
Reid Spencera773bd52006-08-04 18:18:08 +000010200ac_res=`eval echo '${'$as_ac_var'}'`
10201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10202echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010203if test `eval echo '${'$as_ac_var'}'` = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10206_ACEOF
10207
10208fi
10209done
10210
10211 LIBS="$lt_save_LIBS"
10212fi
10213ac_ext=c
10214ac_cpp='$CPP $CPPFLAGS'
10215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217ac_compiler_gnu=$ac_cv_c_compiler_gnu
10218
10219
10220
Reid Spencera773bd52006-08-04 18:18:08 +000010221{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10222echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010223if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 ac_cv_sys_symbol_underscore=no
10227 cat > conftest.$ac_ext <<EOF
10228void nm_test_func(){}
10229int main(){nm_test_func;return 0;}
10230EOF
10231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10232 (eval $ac_compile) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; then
10236 # Now try to grab the symbols.
10237 ac_nlist=conftest.nm
10238 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10239 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10240 ac_status=$?
10241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242 (exit $ac_status); } && test -s "$ac_nlist"; then
10243 # See whether the symbols have a leading underscore.
10244 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10245 ac_cv_sys_symbol_underscore=yes
10246 else
10247 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10248 :
10249 else
10250 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10251 fi
10252 fi
10253 else
10254 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10255 fi
10256 else
10257 echo "configure: failed program was:" >&5
10258 cat conftest.c >&5
10259 fi
10260 rm -rf conftest*
10261
10262fi
Reid Spencera773bd52006-08-04 18:18:08 +000010263{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10264echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010265
10266
10267if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10268 if test x"$libltdl_cv_func_dlopen" = xyes ||
10269 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010270 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10271echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010272if test "${libltdl_cv_need_uscore+set}" = set; then
10273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
10275 libltdl_cv_need_uscore=unknown
10276 save_LIBS="$LIBS"
10277 LIBS="$LIBS $LIBADD_DL"
10278 if test "$cross_compiling" = yes; then :
10279 libltdl_cv_need_uscore=cross
10280else
10281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282 lt_status=$lt_dlunknown
10283 cat > conftest.$ac_ext <<EOF
Reid Spencerac90d5e2006-11-16 23:17:27 +000010284#line 10284 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010285#include "confdefs.h"
10286
10287#if HAVE_DLFCN_H
10288#include <dlfcn.h>
10289#endif
10290
10291#include <stdio.h>
10292
10293#ifdef RTLD_GLOBAL
10294# define LT_DLGLOBAL RTLD_GLOBAL
10295#else
10296# ifdef DL_GLOBAL
10297# define LT_DLGLOBAL DL_GLOBAL
10298# else
10299# define LT_DLGLOBAL 0
10300# endif
10301#endif
10302
10303/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304 find out it does not work in some platform. */
10305#ifndef LT_DLLAZY_OR_NOW
10306# ifdef RTLD_LAZY
10307# define LT_DLLAZY_OR_NOW RTLD_LAZY
10308# else
10309# ifdef DL_LAZY
10310# define LT_DLLAZY_OR_NOW DL_LAZY
10311# else
10312# ifdef RTLD_NOW
10313# define LT_DLLAZY_OR_NOW RTLD_NOW
10314# else
10315# ifdef DL_NOW
10316# define LT_DLLAZY_OR_NOW DL_NOW
10317# else
10318# define LT_DLLAZY_OR_NOW 0
10319# endif
10320# endif
10321# endif
10322# endif
10323#endif
10324
10325#ifdef __cplusplus
10326extern "C" void exit (int);
10327#endif
10328
10329void fnord() { int i=42;}
10330int main ()
10331{
10332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333 int status = $lt_dlunknown;
10334
10335 if (self)
10336 {
10337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339 /* dlclose (self); */
10340 }
Reid Spencera773bd52006-08-04 18:18:08 +000010341 else
10342 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010343
10344 exit (status);
10345}
10346EOF
10347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10348 (eval $ac_link) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010352 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010353 lt_status=$?
10354 case x$lt_status in
10355 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10356 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010357 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010358 esac
10359 else :
10360 # compilation failed
10361
10362 fi
10363fi
10364rm -fr conftest*
10365
10366 LIBS="$save_LIBS"
10367
10368fi
Reid Spencera773bd52006-08-04 18:18:08 +000010369{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10370echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 fi
10372fi
10373
10374if test x"$libltdl_cv_need_uscore" = xyes; then
10375
10376cat >>confdefs.h <<\_ACEOF
10377#define NEED_USCORE 1
10378_ACEOF
10379
10380fi
10381
10382
Reid Spencera773bd52006-08-04 18:18:08 +000010383{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10384echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010385if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10387else
10388 # PORTME does your system automatically load deplibs for dlopen?
10389 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10390 # For now, we just catch OSes we know something about -- in the
10391 # future, we'll try test this programmatically.
10392 libltdl_cv_sys_dlopen_deplibs=unknown
10393 case "$host_os" in
10394 aix3*|aix4.1.*|aix4.2.*)
10395 # Unknown whether this is true for these versions of AIX, but
10396 # we want this `case' here to explicitly catch those versions.
10397 libltdl_cv_sys_dlopen_deplibs=unknown
10398 ;;
10399 aix[45]*)
10400 libltdl_cv_sys_dlopen_deplibs=yes
10401 ;;
10402 darwin*)
10403 # Assuming the user has installed a libdl from somewhere, this is true
10404 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10405 libltdl_cv_sys_dlopen_deplibs=yes
10406 ;;
10407 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10408 # GNU and its variants, using gnu ld.so (Glibc)
10409 libltdl_cv_sys_dlopen_deplibs=yes
10410 ;;
10411 hpux10*|hpux11*)
10412 libltdl_cv_sys_dlopen_deplibs=yes
10413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010414 interix*)
10415 libltdl_cv_sys_dlopen_deplibs=yes
10416 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 irix[12345]*|irix6.[01]*)
10418 # Catch all versions of IRIX before 6.2, and indicate that we don't
10419 # know how it worked for any of those versions.
10420 libltdl_cv_sys_dlopen_deplibs=unknown
10421 ;;
10422 irix*)
10423 # The case above catches anything before 6.2, and it's known that
10424 # at 6.2 and later dlopen does load deplibs.
10425 libltdl_cv_sys_dlopen_deplibs=yes
10426 ;;
10427 netbsd*)
10428 libltdl_cv_sys_dlopen_deplibs=yes
10429 ;;
10430 openbsd*)
10431 libltdl_cv_sys_dlopen_deplibs=yes
10432 ;;
10433 osf[1234]*)
10434 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10435 # it did *not* use an RPATH in a shared library to find objects the
10436 # library depends on, so we explictly say `no'.
10437 libltdl_cv_sys_dlopen_deplibs=no
10438 ;;
10439 osf5.0|osf5.0a|osf5.1)
10440 # dlopen *does* load deplibs and with the right loader patch applied
10441 # it even uses RPATH in a shared library to search for shared objects
10442 # that the library depends on, but there's no easy way to know if that
10443 # patch is installed. Since this is the case, all we can really
10444 # say is unknown -- it depends on the patch being installed. If
10445 # it is, this changes to `yes'. Without it, it would be `no'.
10446 libltdl_cv_sys_dlopen_deplibs=unknown
10447 ;;
10448 osf*)
10449 # the two cases above should catch all versions of osf <= 5.1. Read
10450 # the comments above for what we know about them.
10451 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10452 # is used to find them so we can finally say `yes'.
10453 libltdl_cv_sys_dlopen_deplibs=yes
10454 ;;
10455 solaris*)
10456 libltdl_cv_sys_dlopen_deplibs=yes
10457 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10459 libltdl_cv_sys_dlopen_deplibs=yes
10460 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010461 esac
10462
10463fi
Reid Spencera773bd52006-08-04 18:18:08 +000010464{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10465echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010466if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10467
10468cat >>confdefs.h <<\_ACEOF
10469#define LTDL_DLOPEN_DEPLIBS 1
10470_ACEOF
10471
10472fi
10473
10474
10475for ac_header in argz.h
10476do
10477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483fi
Reid Spencera773bd52006-08-04 18:18:08 +000010484ac_res=`eval echo '${'$as_ac_Header'}'`
10485 { echo "$as_me:$LINENO: result: $ac_res" >&5
10486echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010487else
10488 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010491cat >conftest.$ac_ext <<_ACEOF
10492/* confdefs.h. */
10493_ACEOF
10494cat confdefs.h >>conftest.$ac_ext
10495cat >>conftest.$ac_ext <<_ACEOF
10496/* end confdefs.h. */
10497$ac_includes_default
10498#include <$ac_header>
10499_ACEOF
10500rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010501if { (ac_try="$ac_compile"
10502case "(($ac_try" in
10503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10504 *) ac_try_echo=$ac_try;;
10505esac
10506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10507 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10515 { (case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10518esac
10519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010521 ac_status=$?
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; } &&
10524 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010525 { (case "(($ac_try" in
10526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10527 *) ac_try_echo=$ac_try;;
10528esac
10529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10530 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010531 ac_status=$?
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); }; }; then
10534 ac_header_compiler=yes
10535else
10536 echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
Reid Spencera773bd52006-08-04 18:18:08 +000010539 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010540fi
Reid Spencera773bd52006-08-04 18:18:08 +000010541
10542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10544echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010545
10546# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010547{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549cat >conftest.$ac_ext <<_ACEOF
10550/* confdefs.h. */
10551_ACEOF
10552cat confdefs.h >>conftest.$ac_ext
10553cat >>conftest.$ac_ext <<_ACEOF
10554/* end confdefs.h. */
10555#include <$ac_header>
10556_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010557if { (ac_try="$ac_cpp conftest.$ac_ext"
10558case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10561esac
10562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010564 ac_status=$?
10565 grep -v '^ *+' conftest.er1 >conftest.err
10566 rm -f conftest.er1
10567 cat conftest.err >&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); } >/dev/null; then
10570 if test -s conftest.err; then
10571 ac_cpp_err=$ac_c_preproc_warn_flag
10572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10573 else
10574 ac_cpp_err=
10575 fi
10576else
10577 ac_cpp_err=yes
10578fi
10579if test -z "$ac_cpp_err"; then
10580 ac_header_preproc=yes
10581else
10582 echo "$as_me: failed program was:" >&5
10583sed 's/^/| /' conftest.$ac_ext >&5
10584
10585 ac_header_preproc=no
10586fi
Reid Spencera773bd52006-08-04 18:18:08 +000010587
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010589{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10590echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591
10592# So? What about this header?
10593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10594 yes:no: )
10595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10599 ac_header_preproc=yes
10600 ;;
10601 no:yes:* )
10602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010614 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010615## ----------------------------------- ##
10616## Report this to llvmbugs@cs.uiuc.edu ##
10617## ----------------------------------- ##
10618_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010619 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010620 ;;
10621esac
Reid Spencera773bd52006-08-04 18:18:08 +000010622{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10623echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010625 echo $ECHO_N "(cached) $ECHO_C" >&6
10626else
10627 eval "$as_ac_Header=\$ac_header_preproc"
10628fi
Reid Spencera773bd52006-08-04 18:18:08 +000010629ac_res=`eval echo '${'$as_ac_Header'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010632
10633fi
10634if test `eval echo '${'$as_ac_Header'}'` = yes; then
10635 cat >>confdefs.h <<_ACEOF
10636#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10637_ACEOF
10638
10639fi
10640
10641done
10642
10643
Reid Spencera773bd52006-08-04 18:18:08 +000010644{ echo "$as_me:$LINENO: checking for error_t" >&5
10645echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010646if test "${ac_cv_type_error_t+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649 cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655#if HAVE_ARGZ_H
10656# include <argz.h>
10657#endif
10658
Reid Spencera773bd52006-08-04 18:18:08 +000010659typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010660int
10661main ()
10662{
Reid Spencera773bd52006-08-04 18:18:08 +000010663if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010665if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 return 0;
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010672if { (ac_try="$ac_compile"
10673case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10676esac
10677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010679 ac_status=$?
10680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10686 { (case "(($ac_try" in
10687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10688 *) ac_try_echo=$ac_try;;
10689esac
10690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10691 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692 ac_status=$?
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); }; } &&
10695 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010696 { (case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699esac
10700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; }; then
10705 ac_cv_type_error_t=yes
10706else
10707 echo "$as_me: failed program was:" >&5
10708sed 's/^/| /' conftest.$ac_ext >&5
10709
Reid Spencera773bd52006-08-04 18:18:08 +000010710 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010711fi
Reid Spencera773bd52006-08-04 18:18:08 +000010712
10713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714fi
Reid Spencera773bd52006-08-04 18:18:08 +000010715{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10716echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010717if test $ac_cv_type_error_t = yes; then
10718
10719cat >>confdefs.h <<_ACEOF
10720#define HAVE_ERROR_T 1
10721_ACEOF
10722
10723
10724else
10725
10726cat >>confdefs.h <<\_ACEOF
10727#define error_t int
10728_ACEOF
10729
10730fi
10731
10732
10733
10734
10735
10736
10737
10738for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10739do
10740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745else
10746 cat >conftest.$ac_ext <<_ACEOF
10747/* confdefs.h. */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h. */
10752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10754#define $ac_func innocuous_$ac_func
10755
10756/* System header to define __stub macros and hopefully few prototypes,
10757 which can conflict with char $ac_func (); below.
10758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10759 <limits.h> exists even on freestanding compilers. */
10760
10761#ifdef __STDC__
10762# include <limits.h>
10763#else
10764# include <assert.h>
10765#endif
10766
10767#undef $ac_func
10768
Reid Spencera773bd52006-08-04 18:18:08 +000010769/* Override any GCC internal prototype to avoid an error.
10770 Use char because int might match the return type of a GCC
10771 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010772#ifdef __cplusplus
10773extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010774#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010775char $ac_func ();
10776/* The GNU C library defines this for functions which it implements
10777 to always fail with ENOSYS. Some functions are actually named
10778 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010779#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010780choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010781#endif
10782
10783int
10784main ()
10785{
Reid Spencera773bd52006-08-04 18:18:08 +000010786return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010787 ;
10788 return 0;
10789}
10790_ACEOF
10791rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010792if { (ac_try="$ac_link"
10793case "(($ac_try" in
10794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795 *) ac_try_echo=$ac_try;;
10796esac
10797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799 ac_status=$?
10800 grep -v '^ *+' conftest.er1 >conftest.err
10801 rm -f conftest.er1
10802 cat conftest.err >&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809esac
10810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; } &&
10815 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010816 { (case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819esac
10820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822 ac_status=$?
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_var=yes"
10826else
10827 echo "$as_me: failed program was:" >&5
10828sed 's/^/| /' conftest.$ac_ext >&5
10829
Reid Spencera773bd52006-08-04 18:18:08 +000010830 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010831fi
Reid Spencera773bd52006-08-04 18:18:08 +000010832
10833rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010834 conftest$ac_exeext conftest.$ac_ext
10835fi
Reid Spencera773bd52006-08-04 18:18:08 +000010836ac_res=`eval echo '${'$as_ac_var'}'`
10837 { echo "$as_me:$LINENO: result: $ac_res" >&5
10838echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010839if test `eval echo '${'$as_ac_var'}'` = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10842_ACEOF
10843
10844fi
10845done
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10875 stdio.h unistd.h
10876do
10877as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10880echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883fi
Reid Spencera773bd52006-08-04 18:18:08 +000010884ac_res=`eval echo '${'$as_ac_Header'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887else
10888 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010889{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010891cat >conftest.$ac_ext <<_ACEOF
10892/* confdefs.h. */
10893_ACEOF
10894cat confdefs.h >>conftest.$ac_ext
10895cat >>conftest.$ac_ext <<_ACEOF
10896/* end confdefs.h. */
10897$ac_includes_default
10898#include <$ac_header>
10899_ACEOF
10900rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010901if { (ac_try="$ac_compile"
10902case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905esac
10906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10915 { (case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918esac
10919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010925 { (case "(($ac_try" in
10926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927 *) ac_try_echo=$ac_try;;
10928esac
10929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010931 ac_status=$?
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); }; }; then
10934 ac_header_compiler=yes
10935else
10936 echo "$as_me: failed program was:" >&5
10937sed 's/^/| /' conftest.$ac_ext >&5
10938
Reid Spencera773bd52006-08-04 18:18:08 +000010939 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010940fi
Reid Spencera773bd52006-08-04 18:18:08 +000010941
10942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10944echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010945
10946# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010947{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10948echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949cat >conftest.$ac_ext <<_ACEOF
10950/* confdefs.h. */
10951_ACEOF
10952cat confdefs.h >>conftest.$ac_ext
10953cat >>conftest.$ac_ext <<_ACEOF
10954/* end confdefs.h. */
10955#include <$ac_header>
10956_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010957if { (ac_try="$ac_cpp conftest.$ac_ext"
10958case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10961esac
10962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010964 ac_status=$?
10965 grep -v '^ *+' conftest.er1 >conftest.err
10966 rm -f conftest.er1
10967 cat conftest.err >&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); } >/dev/null; then
10970 if test -s conftest.err; then
10971 ac_cpp_err=$ac_c_preproc_warn_flag
10972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10973 else
10974 ac_cpp_err=
10975 fi
10976else
10977 ac_cpp_err=yes
10978fi
10979if test -z "$ac_cpp_err"; then
10980 ac_header_preproc=yes
10981else
10982 echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
10985 ac_header_preproc=no
10986fi
Reid Spencera773bd52006-08-04 18:18:08 +000010987
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010989{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10990echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991
10992# So? What about this header?
10993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10994 yes:no: )
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10996echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10998echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10999 ac_header_preproc=yes
11000 ;;
11001 no:yes:* )
11002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11007echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11009echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11011echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11013echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011014 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011015## ----------------------------------- ##
11016## Report this to llvmbugs@cs.uiuc.edu ##
11017## ----------------------------------- ##
11018_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011019 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011020 ;;
11021esac
Reid Spencera773bd52006-08-04 18:18:08 +000011022{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011025 echo $ECHO_N "(cached) $ECHO_C" >&6
11026else
11027 eval "$as_ac_Header=\$ac_header_preproc"
11028fi
Reid Spencera773bd52006-08-04 18:18:08 +000011029ac_res=`eval echo '${'$as_ac_Header'}'`
11030 { echo "$as_me:$LINENO: result: $ac_res" >&5
11031echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011032
11033fi
11034if test `eval echo '${'$as_ac_Header'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11037_ACEOF
11038
11039fi
11040
11041done
11042
11043
11044
11045
11046
11047for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11048do
11049as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011050if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11053if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011054 echo $ECHO_N "(cached) $ECHO_C" >&6
11055fi
Reid Spencera773bd52006-08-04 18:18:08 +000011056ac_res=`eval echo '${'$as_ac_Header'}'`
11057 { echo "$as_me:$LINENO: result: $ac_res" >&5
11058echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011059else
11060 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011061{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11062echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063cat >conftest.$ac_ext <<_ACEOF
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069$ac_includes_default
11070#include <$ac_header>
11071_ACEOF
11072rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011073if { (ac_try="$ac_compile"
11074case "(($ac_try" in
11075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11076 *) ac_try_echo=$ac_try;;
11077esac
11078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11079 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080 ac_status=$?
11081 grep -v '^ *+' conftest.er1 >conftest.err
11082 rm -f conftest.er1
11083 cat conftest.err >&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11087 { (case "(($ac_try" in
11088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11089 *) ac_try_echo=$ac_try;;
11090esac
11091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11092 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; } &&
11096 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011097 { (case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100esac
11101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; }; then
11106 ac_header_compiler=yes
11107else
11108 echo "$as_me: failed program was:" >&5
11109sed 's/^/| /' conftest.$ac_ext >&5
11110
Reid Spencera773bd52006-08-04 18:18:08 +000011111 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011112fi
Reid Spencera773bd52006-08-04 18:18:08 +000011113
11114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11115{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011117
11118# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011119{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h. */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h. */
11127#include <$ac_header>
11128_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011129if { (ac_try="$ac_cpp conftest.$ac_ext"
11130case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11133esac
11134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011136 ac_status=$?
11137 grep -v '^ *+' conftest.er1 >conftest.err
11138 rm -f conftest.er1
11139 cat conftest.err >&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } >/dev/null; then
11142 if test -s conftest.err; then
11143 ac_cpp_err=$ac_c_preproc_warn_flag
11144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11145 else
11146 ac_cpp_err=
11147 fi
11148else
11149 ac_cpp_err=yes
11150fi
11151if test -z "$ac_cpp_err"; then
11152 ac_header_preproc=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
11157 ac_header_preproc=no
11158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011161{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11162echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164# So? What about this header?
11165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11166 yes:no: )
11167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11168echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11170echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11171 ac_header_preproc=yes
11172 ;;
11173 no:yes:* )
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11175echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11177echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11179echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11181echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11183echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11185echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011186 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011187## ----------------------------------- ##
11188## Report this to llvmbugs@cs.uiuc.edu ##
11189## ----------------------------------- ##
11190_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011191 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011192 ;;
11193esac
Reid Spencera773bd52006-08-04 18:18:08 +000011194{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11196if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011197 echo $ECHO_N "(cached) $ECHO_C" >&6
11198else
11199 eval "$as_ac_Header=\$ac_header_preproc"
11200fi
Reid Spencera773bd52006-08-04 18:18:08 +000011201ac_res=`eval echo '${'$as_ac_Header'}'`
11202 { echo "$as_me:$LINENO: result: $ac_res" >&5
11203echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011204
11205fi
11206if test `eval echo '${'$as_ac_Header'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11209_ACEOF
11210
11211fi
11212
11213done
11214
11215
11216
11217for ac_header in string.h strings.h
11218do
11219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225fi
Reid Spencera773bd52006-08-04 18:18:08 +000011226ac_res=`eval echo '${'$as_ac_Header'}'`
11227 { echo "$as_me:$LINENO: result: $ac_res" >&5
11228echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011229else
11230 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233cat >conftest.$ac_ext <<_ACEOF
11234/* confdefs.h. */
11235_ACEOF
11236cat confdefs.h >>conftest.$ac_ext
11237cat >>conftest.$ac_ext <<_ACEOF
11238/* end confdefs.h. */
11239$ac_includes_default
11240#include <$ac_header>
11241_ACEOF
11242rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011243if { (ac_try="$ac_compile"
11244case "(($ac_try" in
11245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11247esac
11248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11257 { (case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260esac
11261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011263 ac_status=$?
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); }; } &&
11266 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11270esac
11271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 ac_header_compiler=yes
11277else
11278 echo "$as_me: failed program was:" >&5
11279sed 's/^/| /' conftest.$ac_ext >&5
11280
Reid Spencera773bd52006-08-04 18:18:08 +000011281 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011282fi
Reid Spencera773bd52006-08-04 18:18:08 +000011283
11284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11286echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011287
11288# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291cat >conftest.$ac_ext <<_ACEOF
11292/* confdefs.h. */
11293_ACEOF
11294cat confdefs.h >>conftest.$ac_ext
11295cat >>conftest.$ac_ext <<_ACEOF
11296/* end confdefs.h. */
11297#include <$ac_header>
11298_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011299if { (ac_try="$ac_cpp conftest.$ac_ext"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } >/dev/null; then
11312 if test -s conftest.err; then
11313 ac_cpp_err=$ac_c_preproc_warn_flag
11314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11315 else
11316 ac_cpp_err=
11317 fi
11318else
11319 ac_cpp_err=yes
11320fi
11321if test -z "$ac_cpp_err"; then
11322 ac_header_preproc=yes
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
11327 ac_header_preproc=no
11328fi
Reid Spencera773bd52006-08-04 18:18:08 +000011329
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11332echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333
11334# So? What about this header?
11335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 yes:no: )
11337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11341 ac_header_preproc=yes
11342 ;;
11343 no:yes:* )
11344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011356 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011357## ----------------------------------- ##
11358## Report this to llvmbugs@cs.uiuc.edu ##
11359## ----------------------------------- ##
11360_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011361 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011362 ;;
11363esac
Reid Spencera773bd52006-08-04 18:18:08 +000011364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 eval "$as_ac_Header=\$ac_header_preproc"
11370fi
Reid Spencera773bd52006-08-04 18:18:08 +000011371ac_res=`eval echo '${'$as_ac_Header'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011374
11375fi
11376if test `eval echo '${'$as_ac_Header'}'` = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11379_ACEOF
11380 break
11381fi
11382
11383done
11384
11385
11386
11387
11388for ac_func in strchr index
11389do
11390as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011391{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11392echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011394 echo $ECHO_N "(cached) $ECHO_C" >&6
11395else
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404#define $ac_func innocuous_$ac_func
11405
11406/* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11410
11411#ifdef __STDC__
11412# include <limits.h>
11413#else
11414# include <assert.h>
11415#endif
11416
11417#undef $ac_func
11418
Reid Spencera773bd52006-08-04 18:18:08 +000011419/* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422#ifdef __cplusplus
11423extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011424#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011425char $ac_func ();
11426/* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011429#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011430choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011431#endif
11432
11433int
11434main ()
11435{
Reid Spencera773bd52006-08-04 18:18:08 +000011436return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011437 ;
11438 return 0;
11439}
11440_ACEOF
11441rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011442if { (ac_try="$ac_link"
11443case "(($ac_try" in
11444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11446esac
11447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456 { (case "(($ac_try" in
11457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458 *) ac_try_echo=$ac_try;;
11459esac
11460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; } &&
11465 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011466 { (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
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472 ac_status=$?
11473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474 (exit $ac_status); }; }; then
11475 eval "$as_ac_var=yes"
11476else
11477 echo "$as_me: failed program was:" >&5
11478sed 's/^/| /' conftest.$ac_ext >&5
11479
Reid Spencera773bd52006-08-04 18:18:08 +000011480 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011481fi
Reid Spencera773bd52006-08-04 18:18:08 +000011482
11483rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011484 conftest$ac_exeext conftest.$ac_ext
11485fi
Reid Spencera773bd52006-08-04 18:18:08 +000011486ac_res=`eval echo '${'$as_ac_var'}'`
11487 { echo "$as_me:$LINENO: result: $ac_res" >&5
11488echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011489if test `eval echo '${'$as_ac_var'}'` = yes; then
11490 cat >>confdefs.h <<_ACEOF
11491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11492_ACEOF
11493 break
11494fi
11495done
11496
11497
11498
11499for ac_func in strrchr rindex
11500do
11501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011502{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11504if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011505 echo $ECHO_N "(cached) $ECHO_C" >&6
11506else
11507 cat >conftest.$ac_ext <<_ACEOF
11508/* confdefs.h. */
11509_ACEOF
11510cat confdefs.h >>conftest.$ac_ext
11511cat >>conftest.$ac_ext <<_ACEOF
11512/* end confdefs.h. */
11513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11515#define $ac_func innocuous_$ac_func
11516
11517/* System header to define __stub macros and hopefully few prototypes,
11518 which can conflict with char $ac_func (); below.
11519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11520 <limits.h> exists even on freestanding compilers. */
11521
11522#ifdef __STDC__
11523# include <limits.h>
11524#else
11525# include <assert.h>
11526#endif
11527
11528#undef $ac_func
11529
Reid Spencera773bd52006-08-04 18:18:08 +000011530/* Override any GCC internal prototype to avoid an error.
11531 Use char because int might match the return type of a GCC
11532 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011533#ifdef __cplusplus
11534extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011536char $ac_func ();
11537/* The GNU C library defines this for functions which it implements
11538 to always fail with ENOSYS. Some functions are actually named
11539 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011540#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011541choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011542#endif
11543
11544int
11545main ()
11546{
Reid Spencera773bd52006-08-04 18:18:08 +000011547return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011548 ;
11549 return 0;
11550}
11551_ACEOF
11552rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011553if { (ac_try="$ac_link"
11554case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557esac
11558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11567 { (case "(($ac_try" in
11568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569 *) ac_try_echo=$ac_try;;
11570esac
11571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11572 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11580esac
11581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 eval "$as_ac_var=yes"
11587else
11588 echo "$as_me: failed program was:" >&5
11589sed 's/^/| /' conftest.$ac_ext >&5
11590
Reid Spencera773bd52006-08-04 18:18:08 +000011591 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011592fi
Reid Spencera773bd52006-08-04 18:18:08 +000011593
11594rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011595 conftest$ac_exeext conftest.$ac_ext
11596fi
Reid Spencera773bd52006-08-04 18:18:08 +000011597ac_res=`eval echo '${'$as_ac_var'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011600if test `eval echo '${'$as_ac_var'}'` = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11603_ACEOF
11604 break
11605fi
11606done
11607
11608
11609
11610for ac_func in memcpy bcopy
11611do
11612as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011613{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11614echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11615if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618 cat >conftest.$ac_ext <<_ACEOF
11619/* confdefs.h. */
11620_ACEOF
11621cat confdefs.h >>conftest.$ac_ext
11622cat >>conftest.$ac_ext <<_ACEOF
11623/* end confdefs.h. */
11624/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11626#define $ac_func innocuous_$ac_func
11627
11628/* System header to define __stub macros and hopefully few prototypes,
11629 which can conflict with char $ac_func (); below.
11630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631 <limits.h> exists even on freestanding compilers. */
11632
11633#ifdef __STDC__
11634# include <limits.h>
11635#else
11636# include <assert.h>
11637#endif
11638
11639#undef $ac_func
11640
Reid Spencera773bd52006-08-04 18:18:08 +000011641/* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011644#ifdef __cplusplus
11645extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011647char $ac_func ();
11648/* The GNU C library defines this for functions which it implements
11649 to always fail with ENOSYS. Some functions are actually named
11650 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011651#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011652choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011653#endif
11654
11655int
11656main ()
11657{
Reid Spencera773bd52006-08-04 18:18:08 +000011658return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011659 ;
11660 return 0;
11661}
11662_ACEOF
11663rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011664if { (ac_try="$ac_link"
11665case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668esac
11669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11678 { (case "(($ac_try" in
11679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11680 *) ac_try_echo=$ac_try;;
11681esac
11682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11683 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011684 ac_status=$?
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); }; } &&
11687 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; }; then
11697 eval "$as_ac_var=yes"
11698else
11699 echo "$as_me: failed program was:" >&5
11700sed 's/^/| /' conftest.$ac_ext >&5
11701
Reid Spencera773bd52006-08-04 18:18:08 +000011702 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011703fi
Reid Spencera773bd52006-08-04 18:18:08 +000011704
11705rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011706 conftest$ac_exeext conftest.$ac_ext
11707fi
Reid Spencera773bd52006-08-04 18:18:08 +000011708ac_res=`eval echo '${'$as_ac_var'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011711if test `eval echo '${'$as_ac_var'}'` = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11714_ACEOF
11715 break
11716fi
11717done
11718
11719
11720
11721for ac_func in memmove strcmp
11722do
11723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011724{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 cat >conftest.$ac_ext <<_ACEOF
11730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
11735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11737#define $ac_func innocuous_$ac_func
11738
11739/* System header to define __stub macros and hopefully few prototypes,
11740 which can conflict with char $ac_func (); below.
11741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11742 <limits.h> exists even on freestanding compilers. */
11743
11744#ifdef __STDC__
11745# include <limits.h>
11746#else
11747# include <assert.h>
11748#endif
11749
11750#undef $ac_func
11751
Reid Spencera773bd52006-08-04 18:18:08 +000011752/* Override any GCC internal prototype to avoid an error.
11753 Use char because int might match the return type of a GCC
11754 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011755#ifdef __cplusplus
11756extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011758char $ac_func ();
11759/* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011762#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011763choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011764#endif
11765
11766int
11767main ()
11768{
Reid Spencera773bd52006-08-04 18:18:08 +000011769return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011770 ;
11771 return 0;
11772}
11773_ACEOF
11774rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011775if { (ac_try="$ac_link"
11776case "(($ac_try" in
11777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11778 *) ac_try_echo=$ac_try;;
11779esac
11780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11781 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11789 { (case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
11793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11794 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011795 ac_status=$?
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; } &&
11798 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802esac
11803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805 ac_status=$?
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; }; then
11808 eval "$as_ac_var=yes"
11809else
11810 echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
Reid Spencera773bd52006-08-04 18:18:08 +000011813 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011814fi
Reid Spencera773bd52006-08-04 18:18:08 +000011815
11816rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011817 conftest$ac_exeext conftest.$ac_ext
11818fi
Reid Spencera773bd52006-08-04 18:18:08 +000011819ac_res=`eval echo '${'$as_ac_var'}'`
11820 { echo "$as_me:$LINENO: result: $ac_res" >&5
11821echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011822if test `eval echo '${'$as_ac_var'}'` = yes; then
11823 cat >>confdefs.h <<_ACEOF
11824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11825_ACEOF
11826
11827fi
11828done
11829
11830
11831
11832
11833for ac_func in closedir opendir readdir
11834do
11835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011836{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11849#define $ac_func innocuous_$ac_func
11850
11851/* System header to define __stub macros and hopefully few prototypes,
11852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
11855
11856#ifdef __STDC__
11857# include <limits.h>
11858#else
11859# include <assert.h>
11860#endif
11861
11862#undef $ac_func
11863
Reid Spencera773bd52006-08-04 18:18:08 +000011864/* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011867#ifdef __cplusplus
11868extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011869#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870char $ac_func ();
11871/* The GNU C library defines this for functions which it implements
11872 to always fail with ENOSYS. Some functions are actually named
11873 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011874#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011875choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011876#endif
11877
11878int
11879main ()
11880{
Reid Spencera773bd52006-08-04 18:18:08 +000011881return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011882 ;
11883 return 0;
11884}
11885_ACEOF
11886rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011887if { (ac_try="$ac_link"
11888case "(($ac_try" in
11889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11890 *) ac_try_echo=$ac_try;;
11891esac
11892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11893 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894 ac_status=$?
11895 grep -v '^ *+' conftest.er1 >conftest.err
11896 rm -f conftest.er1
11897 cat conftest.err >&5
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11901 { (case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 eval "$as_ac_var=yes"
11921else
11922 echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
Reid Spencera773bd52006-08-04 18:18:08 +000011925 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011926fi
Reid Spencera773bd52006-08-04 18:18:08 +000011927
11928rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011929 conftest$ac_exeext conftest.$ac_ext
11930fi
Reid Spencera773bd52006-08-04 18:18:08 +000011931ac_res=`eval echo '${'$as_ac_var'}'`
11932 { echo "$as_me:$LINENO: result: $ac_res" >&5
11933echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011934if test `eval echo '${'$as_ac_var'}'` = yes; then
11935 cat >>confdefs.h <<_ACEOF
11936#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11937_ACEOF
11938
11939fi
11940done
11941
11942
Reid Spencera773bd52006-08-04 18:18:08 +000011943# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011945 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011946 case $enableval in
11947 yes) enable_shared=yes ;;
11948 no) enable_shared=no ;;
11949 *)
11950 enable_shared=no
11951 # Look at the argument we got. We use all the common list separators.
11952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11953 for pkg in $enableval; do
11954 IFS="$lt_save_ifs"
11955 if test "X$pkg" = "X$p"; then
11956 enable_shared=yes
11957 fi
11958 done
11959 IFS="$lt_save_ifs"
11960 ;;
11961 esac
11962else
11963 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011964fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965
Reid Spencera773bd52006-08-04 18:18:08 +000011966
11967# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011968if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011969 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011970 case $enableval in
11971 yes) enable_static=yes ;;
11972 no) enable_static=no ;;
11973 *)
11974 enable_static=no
11975 # Look at the argument we got. We use all the common list separators.
11976 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11977 for pkg in $enableval; do
11978 IFS="$lt_save_ifs"
11979 if test "X$pkg" = "X$p"; then
11980 enable_static=yes
11981 fi
11982 done
11983 IFS="$lt_save_ifs"
11984 ;;
11985 esac
11986else
11987 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011988fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011989
Reid Spencera773bd52006-08-04 18:18:08 +000011990
11991# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011993 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 case $enableval in
11995 yes) enable_fast_install=yes ;;
11996 no) enable_fast_install=no ;;
11997 *)
11998 enable_fast_install=no
11999 # Look at the argument we got. We use all the common list separators.
12000 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12001 for pkg in $enableval; do
12002 IFS="$lt_save_ifs"
12003 if test "X$pkg" = "X$p"; then
12004 enable_fast_install=yes
12005 fi
12006 done
12007 IFS="$lt_save_ifs"
12008 ;;
12009 esac
12010else
12011 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012012fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012013
Reid Spencera773bd52006-08-04 18:18:08 +000012014
12015{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12016echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012017if test "${lt_cv_path_SED+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12019else
12020 # Loop through the user's path and test for sed and gsed.
12021# Then use that list of sed's as ones to test for truncation.
12022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for lt_ac_prog in sed gsed; do
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12030 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12031 fi
12032 done
12033 done
12034done
12035lt_ac_max=0
12036lt_ac_count=0
12037# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12038# along with /bin/sed that truncates output.
12039for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012040 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012041 cat /dev/null > conftest.in
12042 lt_ac_count=0
12043 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12044 # Check for GNU sed and select it if it is found.
12045 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12046 lt_cv_path_SED=$lt_ac_sed
12047 break
12048 fi
12049 while true; do
12050 cat conftest.in conftest.in >conftest.tmp
12051 mv conftest.tmp conftest.in
12052 cp conftest.in conftest.nl
12053 echo >>conftest.nl
12054 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12055 cmp -s conftest.out conftest.nl || break
12056 # 10000 chars as input seems more than enough
12057 test $lt_ac_count -gt 10 && break
12058 lt_ac_count=`expr $lt_ac_count + 1`
12059 if test $lt_ac_count -gt $lt_ac_max; then
12060 lt_ac_max=$lt_ac_count
12061 lt_cv_path_SED=$lt_ac_sed
12062 fi
12063 done
12064done
12065
12066fi
12067
12068SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012069{ echo "$as_me:$LINENO: result: $SED" >&5
12070echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012071
12072
Reid Spencera773bd52006-08-04 18:18:08 +000012073# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012074if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012075 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012076else
12077 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012078fi
12079
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012080ac_prog=ld
12081if test "$GCC" = yes; then
12082 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012083 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12084echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012085 case $host in
12086 *-*-mingw*)
12087 # gcc leaves a trailing carriage return which upsets mingw
12088 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12089 *)
12090 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12091 esac
12092 case $ac_prog in
12093 # Accept absolute paths.
12094 [\\/]* | ?:[\\/]*)
12095 re_direlt='/[^/][^/]*/\.\./'
12096 # Canonicalize the pathname of ld
12097 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12098 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12099 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12100 done
12101 test -z "$LD" && LD="$ac_prog"
12102 ;;
12103 "")
12104 # If it fails, then pretend we aren't using GCC.
12105 ac_prog=ld
12106 ;;
12107 *)
12108 # If it is relative, then search for the first ld in PATH.
12109 with_gnu_ld=unknown
12110 ;;
12111 esac
12112elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012113 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12114echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012115else
Reid Spencera773bd52006-08-04 18:18:08 +000012116 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12117echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012118fi
12119if test "${lt_cv_path_LD+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 if test -z "$LD"; then
12123 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12124 for ac_dir in $PATH; do
12125 IFS="$lt_save_ifs"
12126 test -z "$ac_dir" && ac_dir=.
12127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12128 lt_cv_path_LD="$ac_dir/$ac_prog"
12129 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012130 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 # Break only if it was the GNU/non-GNU ld that we prefer.
12132 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12133 *GNU* | *'with BFD'*)
12134 test "$with_gnu_ld" != no && break
12135 ;;
12136 *)
12137 test "$with_gnu_ld" != yes && break
12138 ;;
12139 esac
12140 fi
12141 done
12142 IFS="$lt_save_ifs"
12143else
12144 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12145fi
12146fi
12147
12148LD="$lt_cv_path_LD"
12149if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012150 { echo "$as_me:$LINENO: result: $LD" >&5
12151echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012152else
Reid Spencera773bd52006-08-04 18:18:08 +000012153 { echo "$as_me:$LINENO: result: no" >&5
12154echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012155fi
12156test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12157echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12158 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012159{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12160echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161if test "${lt_cv_prog_gnu_ld+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163else
Reid Spencera773bd52006-08-04 18:18:08 +000012164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012165case `$LD -v 2>&1 </dev/null` in
12166*GNU* | *'with BFD'*)
12167 lt_cv_prog_gnu_ld=yes
12168 ;;
12169*)
12170 lt_cv_prog_gnu_ld=no
12171 ;;
12172esac
12173fi
Reid Spencera773bd52006-08-04 18:18:08 +000012174{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12175echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012176with_gnu_ld=$lt_cv_prog_gnu_ld
12177
12178
Reid Spencera773bd52006-08-04 18:18:08 +000012179{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12180echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012181if test "${lt_cv_ld_reload_flag+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 lt_cv_ld_reload_flag='-r'
12185fi
Reid Spencera773bd52006-08-04 18:18:08 +000012186{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12187echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012188reload_flag=$lt_cv_ld_reload_flag
12189case $reload_flag in
12190"" | " "*) ;;
12191*) reload_flag=" $reload_flag" ;;
12192esac
12193reload_cmds='$LD$reload_flag -o $output$reload_objs'
12194case $host_os in
12195 darwin*)
12196 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012197 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198 else
12199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12200 fi
12201 ;;
12202esac
12203
Reid Spencera773bd52006-08-04 18:18:08 +000012204{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12205echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206if test "${lt_cv_deplibs_check_method+set}" = set; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
12209 lt_cv_file_magic_cmd='$MAGIC_CMD'
12210lt_cv_file_magic_test_file=
12211lt_cv_deplibs_check_method='unknown'
12212# Need to set the preceding variable on all platforms that support
12213# interlibrary dependencies.
12214# 'none' -- dependencies not supported.
12215# `unknown' -- same as none, but documents that we really don't know.
12216# 'pass_all' -- all dependencies passed with no checks.
12217# 'test_compile' -- check by making test program.
12218# 'file_magic [[regex]]' -- check by looking for files in library path
12219# which responds to the $file_magic_cmd with a given extended regex.
12220# If you have `file' or equivalent on your system and you're not sure
12221# whether `pass_all' will *always* work, you probably want this one.
12222
12223case $host_os in
12224aix4* | aix5*)
12225 lt_cv_deplibs_check_method=pass_all
12226 ;;
12227
12228beos*)
12229 lt_cv_deplibs_check_method=pass_all
12230 ;;
12231
12232bsdi[45]*)
12233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12234 lt_cv_file_magic_cmd='/usr/bin/file -L'
12235 lt_cv_file_magic_test_file=/shlib/libc.so
12236 ;;
12237
12238cygwin*)
12239 # func_win32_libid is a shell function defined in ltmain.sh
12240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12241 lt_cv_file_magic_cmd='func_win32_libid'
12242 ;;
12243
12244mingw* | pw32*)
12245 # Base MSYS/MinGW do not provide the 'file' command needed by
12246 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12247 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12248 lt_cv_file_magic_cmd='$OBJDUMP -f'
12249 ;;
12250
12251darwin* | rhapsody*)
12252 lt_cv_deplibs_check_method=pass_all
12253 ;;
12254
Reid Spencera773bd52006-08-04 18:18:08 +000012255freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012256 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12257 case $host_cpu in
12258 i*86 )
12259 # Not sure whether the presence of OpenBSD here was a mistake.
12260 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012261 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 +000012262 lt_cv_file_magic_cmd=/usr/bin/file
12263 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12264 ;;
12265 esac
12266 else
12267 lt_cv_deplibs_check_method=pass_all
12268 fi
12269 ;;
12270
12271gnu*)
12272 lt_cv_deplibs_check_method=pass_all
12273 ;;
12274
12275hpux10.20* | hpux11*)
12276 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012277 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012278 ia64*)
12279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12281 ;;
12282 hppa*64*)
12283 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]'
12284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12285 ;;
12286 *)
12287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12289 ;;
12290 esac
12291 ;;
12292
Reid Spencera773bd52006-08-04 18:18:08 +000012293interix3*)
12294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12296 ;;
12297
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012298irix5* | irix6* | nonstopux*)
12299 case $LD in
12300 *-32|*"-32 ") libmagic=32-bit;;
12301 *-n32|*"-n32 ") libmagic=N32;;
12302 *-64|*"-64 ") libmagic=64-bit;;
12303 *) libmagic=never-match;;
12304 esac
12305 lt_cv_deplibs_check_method=pass_all
12306 ;;
12307
12308# This must be Linux ELF.
12309linux*)
12310 lt_cv_deplibs_check_method=pass_all
12311 ;;
12312
12313netbsd*)
12314 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12316 else
12317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12318 fi
12319 ;;
12320
12321newos6*)
12322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12323 lt_cv_file_magic_cmd=/usr/bin/file
12324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12325 ;;
12326
12327nto-qnx*)
12328 lt_cv_deplibs_check_method=unknown
12329 ;;
12330
12331openbsd*)
12332 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12334 else
12335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12336 fi
12337 ;;
12338
12339osf3* | osf4* | osf5*)
12340 lt_cv_deplibs_check_method=pass_all
12341 ;;
12342
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012343solaris*)
12344 lt_cv_deplibs_check_method=pass_all
12345 ;;
12346
Reid Spencera773bd52006-08-04 18:18:08 +000012347sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012348 case $host_vendor in
12349 motorola)
12350 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]'
12351 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12352 ;;
12353 ncr)
12354 lt_cv_deplibs_check_method=pass_all
12355 ;;
12356 sequent)
12357 lt_cv_file_magic_cmd='/bin/file'
12358 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12359 ;;
12360 sni)
12361 lt_cv_file_magic_cmd='/bin/file'
12362 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12363 lt_cv_file_magic_test_file=/lib/libc.so
12364 ;;
12365 siemens)
12366 lt_cv_deplibs_check_method=pass_all
12367 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012368 pc)
12369 lt_cv_deplibs_check_method=pass_all
12370 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012371 esac
12372 ;;
12373
Reid Spencera773bd52006-08-04 18:18:08 +000012374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012375 lt_cv_deplibs_check_method=pass_all
12376 ;;
12377esac
12378
12379fi
Reid Spencera773bd52006-08-04 18:18:08 +000012380{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12381echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012382file_magic_cmd=$lt_cv_file_magic_cmd
12383deplibs_check_method=$lt_cv_deplibs_check_method
12384test -z "$deplibs_check_method" && deplibs_check_method=unknown
12385
12386
12387
12388# If no C compiler was specified, use CC.
12389LTCC=${LTCC-"$CC"}
12390
Reid Spencera773bd52006-08-04 18:18:08 +000012391# If no C compiler flags were specified, use CFLAGS.
12392LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12393
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394# Allow CC to be a program name with arguments.
12395compiler=$CC
12396
Reid Spencera773bd52006-08-04 18:18:08 +000012397# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012398if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012399 enableval=$enable_libtool_lock;
12400fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012401
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012402test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12403
12404# Some flags need to be propagated to the compiler or linker for good
12405# libtool support.
12406case $host in
12407ia64-*-hpux*)
12408 # Find out which ABI we are using.
12409 echo 'int i;' > conftest.$ac_ext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12411 (eval $ac_compile) 2>&5
12412 ac_status=$?
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; then
12415 case `/usr/bin/file conftest.$ac_objext` in
12416 *ELF-32*)
12417 HPUX_IA64_MODE="32"
12418 ;;
12419 *ELF-64*)
12420 HPUX_IA64_MODE="64"
12421 ;;
12422 esac
12423 fi
12424 rm -rf conftest*
12425 ;;
12426*-*-irix6*)
12427 # Find out which ABI we are using.
Reid Spencerac90d5e2006-11-16 23:17:27 +000012428 echo '#line 12428 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; then
12434 if test "$lt_cv_prog_gnu_ld" = yes; then
12435 case `/usr/bin/file conftest.$ac_objext` in
12436 *32-bit*)
12437 LD="${LD-ld} -melf32bsmip"
12438 ;;
12439 *N32*)
12440 LD="${LD-ld} -melf32bmipn32"
12441 ;;
12442 *64-bit*)
12443 LD="${LD-ld} -melf64bmip"
12444 ;;
12445 esac
12446 else
12447 case `/usr/bin/file conftest.$ac_objext` in
12448 *32-bit*)
12449 LD="${LD-ld} -32"
12450 ;;
12451 *N32*)
12452 LD="${LD-ld} -n32"
12453 ;;
12454 *64-bit*)
12455 LD="${LD-ld} -64"
12456 ;;
12457 esac
12458 fi
12459 fi
12460 rm -rf conftest*
12461 ;;
12462
12463x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12464 # Find out which ABI we are using.
12465 echo 'int i;' > conftest.$ac_ext
12466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012471 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012472 *32-bit*)
12473 case $host in
12474 x86_64-*linux*)
12475 LD="${LD-ld} -m elf_i386"
12476 ;;
12477 ppc64-*linux*|powerpc64-*linux*)
12478 LD="${LD-ld} -m elf32ppclinux"
12479 ;;
12480 s390x-*linux*)
12481 LD="${LD-ld} -m elf_s390"
12482 ;;
12483 sparc64-*linux*)
12484 LD="${LD-ld} -m elf32_sparc"
12485 ;;
12486 esac
12487 ;;
12488 *64-bit*)
12489 case $host in
12490 x86_64-*linux*)
12491 LD="${LD-ld} -m elf_x86_64"
12492 ;;
12493 ppc*-*linux*|powerpc*-*linux*)
12494 LD="${LD-ld} -m elf64ppc"
12495 ;;
12496 s390*-*linux*)
12497 LD="${LD-ld} -m elf64_s390"
12498 ;;
12499 sparc*-*linux*)
12500 LD="${LD-ld} -m elf64_sparc"
12501 ;;
12502 esac
12503 ;;
12504 esac
12505 fi
12506 rm -rf conftest*
12507 ;;
12508
12509*-*-sco3.2v5*)
12510 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12511 SAVE_CFLAGS="$CFLAGS"
12512 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012513 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12514echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012515if test "${lt_cv_cc_needs_belf+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517else
12518 ac_ext=c
12519ac_cpp='$CPP $CPPFLAGS'
12520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523
12524 cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
12530
Reid Spencera773bd52006-08-04 18:18:08 +000012531int
12532main ()
12533{
12534
12535 ;
12536 return 0;
12537}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012538_ACEOF
12539rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012540if { (ac_try="$ac_link"
12541case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12544esac
12545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012547 ac_status=$?
12548 grep -v '^ *+' conftest.er1 >conftest.err
12549 rm -f conftest.er1
12550 cat conftest.err >&5
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12554 { (case "(($ac_try" in
12555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12556 *) ac_try_echo=$ac_try;;
12557esac
12558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12559 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012560 ac_status=$?
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; } &&
12563 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012564 { (case "(($ac_try" in
12565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12566 *) ac_try_echo=$ac_try;;
12567esac
12568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012570 ac_status=$?
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; }; then
12573 lt_cv_cc_needs_belf=yes
12574else
12575 echo "$as_me: failed program was:" >&5
12576sed 's/^/| /' conftest.$ac_ext >&5
12577
Reid Spencera773bd52006-08-04 18:18:08 +000012578 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012579fi
Reid Spencera773bd52006-08-04 18:18:08 +000012580
12581rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012582 conftest$ac_exeext conftest.$ac_ext
12583 ac_ext=c
12584ac_cpp='$CPP $CPPFLAGS'
12585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12587ac_compiler_gnu=$ac_cv_c_compiler_gnu
12588
12589fi
Reid Spencera773bd52006-08-04 18:18:08 +000012590{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12591echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012592 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12593 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12594 CFLAGS="$SAVE_CFLAGS"
12595 fi
12596 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012597sparc*-*solaris*)
12598 # Find out which ABI we are using.
12599 echo 'int i;' > conftest.$ac_ext
12600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12601 (eval $ac_compile) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; then
12605 case `/usr/bin/file conftest.o` in
12606 *64-bit*)
12607 case $lt_cv_prog_gnu_ld in
12608 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12609 *) LD="${LD-ld} -64" ;;
12610 esac
12611 ;;
12612 esac
12613 fi
12614 rm -rf conftest*
12615 ;;
12616
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012617
12618esac
12619
12620need_locks="$enable_libtool_lock"
12621
12622
Reid Spencer2706f8c2004-09-19 23:53:36 +000012623
12624
12625if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12626 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12627 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012628 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012629ac_cpp='$CXXCPP $CPPFLAGS'
12630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012633{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12634echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012635if test -z "$CXXCPP"; then
12636 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012637 echo $ECHO_N "(cached) $ECHO_C" >&6
12638else
John Criswell47fdd832003-07-14 16:52:07 +000012639 # Double quotes because CXXCPP needs to be expanded
12640 for CXXCPP in "$CXX -E" "/lib/cpp"
12641 do
12642 ac_preproc_ok=false
12643for ac_cxx_preproc_warn_flag in '' yes
12644do
12645 # Use a header file that comes with gcc, so configuring glibc
12646 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12648 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012649 # On the NeXT, cc -E runs the code through the compiler's parser,
12650 # not just through cpp. "Syntax error" is here to catch this case.
12651 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */
12657#ifdef __STDC__
12658# include <limits.h>
12659#else
12660# include <assert.h>
12661#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012662 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012663_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012664if { (ac_try="$ac_cpp conftest.$ac_ext"
12665case "(($ac_try" in
12666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12667 *) ac_try_echo=$ac_try;;
12668esac
12669eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012671 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012672 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012673 rm -f conftest.er1
12674 cat conftest.err >&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } >/dev/null; then
12677 if test -s conftest.err; then
12678 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012679 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012680 else
John Criswell47fdd832003-07-14 16:52:07 +000012681 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012682 fi
John Criswell47fdd832003-07-14 16:52:07 +000012683else
12684 ac_cpp_err=yes
12685fi
12686if test -z "$ac_cpp_err"; then
12687 :
12688else
12689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012690sed 's/^/| /' conftest.$ac_ext >&5
12691
John Criswell47fdd832003-07-14 16:52:07 +000012692 # Broken: fails on valid input.
12693continue
12694fi
Reid Spencera773bd52006-08-04 18:18:08 +000012695
John Criswell47fdd832003-07-14 16:52:07 +000012696rm -f conftest.err conftest.$ac_ext
12697
Reid Spencera773bd52006-08-04 18:18:08 +000012698 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012699 # can be detected and how.
12700 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012701/* confdefs.h. */
12702_ACEOF
12703cat confdefs.h >>conftest.$ac_ext
12704cat >>conftest.$ac_ext <<_ACEOF
12705/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012706#include <ac_nonexistent.h>
12707_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012708if { (ac_try="$ac_cpp conftest.$ac_ext"
12709case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12712esac
12713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012715 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012716 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012717 rm -f conftest.er1
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } >/dev/null; then
12721 if test -s conftest.err; then
12722 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012723 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012724 else
12725 ac_cpp_err=
12726 fi
12727else
12728 ac_cpp_err=yes
12729fi
12730if test -z "$ac_cpp_err"; then
12731 # Broken: success on invalid input.
12732continue
12733else
12734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012735sed 's/^/| /' conftest.$ac_ext >&5
12736
John Criswell47fdd832003-07-14 16:52:07 +000012737 # Passes both tests.
12738ac_preproc_ok=:
12739break
12740fi
Reid Spencera773bd52006-08-04 18:18:08 +000012741
John Criswell47fdd832003-07-14 16:52:07 +000012742rm -f conftest.err conftest.$ac_ext
12743
12744done
12745# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12746rm -f conftest.err conftest.$ac_ext
12747if $ac_preproc_ok; then
12748 break
John Criswell7a73b802003-06-30 21:59:07 +000012749fi
12750
John Criswell47fdd832003-07-14 16:52:07 +000012751 done
12752 ac_cv_prog_CXXCPP=$CXXCPP
12753
12754fi
12755 CXXCPP=$ac_cv_prog_CXXCPP
12756else
12757 ac_cv_prog_CXXCPP=$CXXCPP
12758fi
Reid Spencera773bd52006-08-04 18:18:08 +000012759{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12760echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012761ac_preproc_ok=false
12762for ac_cxx_preproc_warn_flag in '' yes
12763do
12764 # Use a header file that comes with gcc, so configuring glibc
12765 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12767 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012768 # On the NeXT, cc -E runs the code through the compiler's parser,
12769 # not just through cpp. "Syntax error" is here to catch this case.
12770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012771/* confdefs.h. */
12772_ACEOF
12773cat confdefs.h >>conftest.$ac_ext
12774cat >>conftest.$ac_ext <<_ACEOF
12775/* end confdefs.h. */
12776#ifdef __STDC__
12777# include <limits.h>
12778#else
12779# include <assert.h>
12780#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012781 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012782_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012783if { (ac_try="$ac_cpp conftest.$ac_ext"
12784case "(($ac_try" in
12785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786 *) ac_try_echo=$ac_try;;
12787esac
12788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012790 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012791 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012792 rm -f conftest.er1
12793 cat conftest.err >&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } >/dev/null; then
12796 if test -s conftest.err; then
12797 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012798 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012799 else
12800 ac_cpp_err=
12801 fi
12802else
12803 ac_cpp_err=yes
12804fi
12805if test -z "$ac_cpp_err"; then
12806 :
12807else
12808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012809sed 's/^/| /' conftest.$ac_ext >&5
12810
John Criswell47fdd832003-07-14 16:52:07 +000012811 # Broken: fails on valid input.
12812continue
12813fi
Reid Spencera773bd52006-08-04 18:18:08 +000012814
John Criswell47fdd832003-07-14 16:52:07 +000012815rm -f conftest.err conftest.$ac_ext
12816
Reid Spencera773bd52006-08-04 18:18:08 +000012817 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012818 # can be detected and how.
12819 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012825#include <ac_nonexistent.h>
12826_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012827if { (ac_try="$ac_cpp conftest.$ac_ext"
12828case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
12832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012834 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012835 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012836 rm -f conftest.er1
12837 cat conftest.err >&5
12838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839 (exit $ac_status); } >/dev/null; then
12840 if test -s conftest.err; then
12841 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012842 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012843 else
12844 ac_cpp_err=
12845 fi
12846else
12847 ac_cpp_err=yes
12848fi
12849if test -z "$ac_cpp_err"; then
12850 # Broken: success on invalid input.
12851continue
12852else
12853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012854sed 's/^/| /' conftest.$ac_ext >&5
12855
John Criswell47fdd832003-07-14 16:52:07 +000012856 # Passes both tests.
12857ac_preproc_ok=:
12858break
12859fi
Reid Spencera773bd52006-08-04 18:18:08 +000012860
John Criswell47fdd832003-07-14 16:52:07 +000012861rm -f conftest.err conftest.$ac_ext
12862
12863done
12864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12865rm -f conftest.err conftest.$ac_ext
12866if $ac_preproc_ok; then
12867 :
12868else
John Criswell0c38eaf2003-09-10 15:17:25 +000012869 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12870See \`config.log' for more details." >&5
12871echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12872See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012873 { (exit 1); exit 1; }; }
12874fi
12875
Reid Spencera773bd52006-08-04 18:18:08 +000012876ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012877ac_cpp='$CXXCPP $CPPFLAGS'
12878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881
Reid Spencer2706f8c2004-09-19 23:53:36 +000012882fi
12883
John Criswell47fdd832003-07-14 16:52:07 +000012884
12885ac_ext=f
12886ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12887ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12888ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12889if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012890 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 +000012891 do
12892 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12893set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012894{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012896if test "${ac_cv_prog_F77+set}" = set; then
12897 echo $ECHO_N "(cached) $ECHO_C" >&6
12898else
12899 if test -n "$F77"; then
12900 ac_cv_prog_F77="$F77" # Let the user override the test.
12901else
12902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903for as_dir in $PATH
12904do
12905 IFS=$as_save_IFS
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012908 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 +000012909 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 break 2
12912 fi
12913done
12914done
Reid Spencera773bd52006-08-04 18:18:08 +000012915IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012916
12917fi
12918fi
12919F77=$ac_cv_prog_F77
12920if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012921 { echo "$as_me:$LINENO: result: $F77" >&5
12922echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012923else
Reid Spencera773bd52006-08-04 18:18:08 +000012924 { echo "$as_me:$LINENO: result: no" >&5
12925echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012926fi
12927
Reid Spencera773bd52006-08-04 18:18:08 +000012928
John Criswell47fdd832003-07-14 16:52:07 +000012929 test -n "$F77" && break
12930 done
12931fi
12932if test -z "$F77"; then
12933 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012934 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 +000012935do
12936 # Extract the first word of "$ac_prog", so it can be a program name with args.
12937set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012938{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012940if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942else
12943 if test -n "$ac_ct_F77"; then
12944 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12945else
12946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12947for as_dir in $PATH
12948do
12949 IFS=$as_save_IFS
12950 test -z "$as_dir" && as_dir=.
12951 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012952 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 +000012953 ac_cv_prog_ac_ct_F77="$ac_prog"
12954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12955 break 2
12956 fi
12957done
12958done
Reid Spencera773bd52006-08-04 18:18:08 +000012959IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012960
12961fi
12962fi
12963ac_ct_F77=$ac_cv_prog_ac_ct_F77
12964if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012965 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12966echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012967else
Reid Spencera773bd52006-08-04 18:18:08 +000012968 { echo "$as_me:$LINENO: result: no" >&5
12969echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012970fi
12971
Reid Spencera773bd52006-08-04 18:18:08 +000012972
John Criswell47fdd832003-07-14 16:52:07 +000012973 test -n "$ac_ct_F77" && break
12974done
12975
Reid Spencera773bd52006-08-04 18:18:08 +000012976 if test "x$ac_ct_F77" = x; then
12977 F77=""
12978 else
12979 case $cross_compiling:$ac_tool_warned in
12980yes:)
12981{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12982whose name does not start with the host triplet. If you think this
12983configuration is useful to you, please write to autoconf@gnu.org." >&5
12984echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12985whose name does not start with the host triplet. If you think this
12986configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12987ac_tool_warned=yes ;;
12988esac
12989 F77=$ac_ct_F77
12990 fi
John Criswell47fdd832003-07-14 16:52:07 +000012991fi
12992
12993
12994# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000012995echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012996ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000012997{ (ac_try="$ac_compiler --version >&5"
12998case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13001esac
13002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013007{ (ac_try="$ac_compiler -v >&5"
13008case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13011esac
13012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013017{ (ac_try="$ac_compiler -V >&5"
13018case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021esac
13022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013027rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013028
13029# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013030# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013031ac_save_ext=$ac_ext
13032ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013033{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13034echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013035if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13037else
13038 cat >conftest.$ac_ext <<_ACEOF
13039 program main
13040#ifndef __GNUC__
13041 choke me
13042#endif
13043
13044 end
13045_ACEOF
13046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013047if { (ac_try="$ac_compile"
13048case "(($ac_try" in
13049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13050 *) ac_try_echo=$ac_try;;
13051esac
13052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13053 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013055 grep -v '^ *+' conftest.er1 >conftest.err
13056 rm -f conftest.er1
13057 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013060 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13061 { (case "(($ac_try" in
13062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063 *) ac_try_echo=$ac_try;;
13064esac
13065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013067 ac_status=$?
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); }; } &&
13070 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013071 { (case "(($ac_try" in
13072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13073 *) ac_try_echo=$ac_try;;
13074esac
13075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13076 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013077 ac_status=$?
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); }; }; then
13080 ac_compiler_gnu=yes
13081else
13082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013083sed 's/^/| /' conftest.$ac_ext >&5
13084
Reid Spencera773bd52006-08-04 18:18:08 +000013085 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013086fi
Reid Spencera773bd52006-08-04 18:18:08 +000013087
13088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013089ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13090
13091fi
Reid Spencera773bd52006-08-04 18:18:08 +000013092{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13093echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013094ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013095ac_test_FFLAGS=${FFLAGS+set}
13096ac_save_FFLAGS=$FFLAGS
13097FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013098{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13099echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013100if test "${ac_cv_prog_f77_g+set}" = set; then
13101 echo $ECHO_N "(cached) $ECHO_C" >&6
13102else
13103 FFLAGS=-g
13104cat >conftest.$ac_ext <<_ACEOF
13105 program main
13106
13107 end
13108_ACEOF
13109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013110if { (ac_try="$ac_compile"
13111case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13114esac
13115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013118 grep -v '^ *+' conftest.er1 >conftest.err
13119 rm -f conftest.er1
13120 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013123 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127esac
13128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013134 { (case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13137esac
13138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013140 ac_status=$?
13141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13142 (exit $ac_status); }; }; then
13143 ac_cv_prog_f77_g=yes
13144else
13145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013146sed 's/^/| /' conftest.$ac_ext >&5
13147
Reid Spencera773bd52006-08-04 18:18:08 +000013148 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013149fi
Reid Spencera773bd52006-08-04 18:18:08 +000013150
13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013152
13153fi
Reid Spencera773bd52006-08-04 18:18:08 +000013154{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13155echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013156if test "$ac_test_FFLAGS" = set; then
13157 FFLAGS=$ac_save_FFLAGS
13158elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013159 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013160 FFLAGS="-g -O2"
13161 else
13162 FFLAGS="-g"
13163 fi
13164else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013165 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013166 FFLAGS="-O2"
13167 else
13168 FFLAGS=
13169 fi
13170fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171
13172G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013173ac_ext=c
13174ac_cpp='$CPP $CPPFLAGS'
13175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13177ac_compiler_gnu=$ac_cv_c_compiler_gnu
13178
13179
13180
13181# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13182
13183# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013184{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13185echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013186if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188else
13189 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013190 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013191
13192 case $build_os in
13193 msdosdjgpp*)
13194 # On DJGPP, this test can blow up pretty badly due to problems in libc
13195 # (any single argument exceeding 2000 bytes causes a buffer overrun
13196 # during glob expansion). Even if it were fixed, the result of this
13197 # check would be larger than it should be.
13198 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13199 ;;
13200
13201 gnu*)
13202 # Under GNU Hurd, this test is not required because there is
13203 # no limit to the length of command line arguments.
13204 # Libtool will interpret -1 as no limit whatsoever
13205 lt_cv_sys_max_cmd_len=-1;
13206 ;;
13207
13208 cygwin* | mingw*)
13209 # On Win9x/ME, this test blows up -- it succeeds, but takes
13210 # about 5 minutes as the teststring grows exponentially.
13211 # Worse, since 9x/ME are not pre-emptively multitasking,
13212 # you end up with a "frozen" computer, even though with patience
13213 # the test eventually succeeds (with a max line length of 256k).
13214 # Instead, let's just punt: use the minimum linelength reported by
13215 # all of the supported platforms: 8192 (on NT/2K/XP).
13216 lt_cv_sys_max_cmd_len=8192;
13217 ;;
13218
Reid Spencer2706f8c2004-09-19 23:53:36 +000013219 amigaos*)
13220 # On AmigaOS with pdksh, this test takes hours, literally.
13221 # So we just punt and use a minimum line length of 8192.
13222 lt_cv_sys_max_cmd_len=8192;
13223 ;;
13224
Reid Spencera773bd52006-08-04 18:18:08 +000013225 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013226 # This has been around since 386BSD, at least. Likely further.
13227 if test -x /sbin/sysctl; then
13228 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13229 elif test -x /usr/sbin/sysctl; then
13230 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13231 else
Reid Spencera773bd52006-08-04 18:18:08 +000013232 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013233 fi
13234 # And add a safety zone
13235 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013236 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013237 ;;
13238
Reid Spencera773bd52006-08-04 18:18:08 +000013239 interix*)
13240 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13241 lt_cv_sys_max_cmd_len=196608
13242 ;;
13243
13244 osf*)
13245 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13246 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13247 # nice to cause kernel panics so lets avoid the loop below.
13248 # First set a reasonable default.
13249 lt_cv_sys_max_cmd_len=16384
13250 #
13251 if test -x /sbin/sysconfig; then
13252 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13253 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13254 esac
13255 fi
13256 ;;
13257 sco3.2v5*)
13258 lt_cv_sys_max_cmd_len=102400
13259 ;;
13260 sysv5* | sco5v6* | sysv4.2uw2*)
13261 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13262 if test -n "$kargmax"; then
13263 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13264 else
13265 lt_cv_sys_max_cmd_len=32768
13266 fi
13267 ;;
13268 *)
John Criswell47fdd832003-07-14 16:52:07 +000013269 # If test is not a shell built-in, we'll probably end up computing a
13270 # maximum length that is only half of the actual maximum length, but
13271 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13273 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13274 = "XX$teststring") >/dev/null 2>&1 &&
13275 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013276 lt_cv_sys_max_cmd_len=$new_result &&
13277 test $i != 17 # 1/2 MB should be enough
13278 do
13279 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013280 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013281 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013282 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013283 # Add a significant safety factor because C++ compilers can tack on massive
13284 # amounts of additional arguments before passing them to the linker.
13285 # It appears as though 1/2 is a usable value.
13286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13287 ;;
13288 esac
13289
13290fi
13291
13292if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013293 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13294echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013295else
Reid Spencera773bd52006-08-04 18:18:08 +000013296 { echo "$as_me:$LINENO: result: none" >&5
13297echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013298fi
13299
13300
13301
13302
13303# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013304{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13305echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013306if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308else
13309
13310# These are sane defaults that work on at least a few old systems.
13311# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13312
13313# Character class describing NM global symbol codes.
13314symcode='[BCDEGRST]'
13315
13316# Regexp to match symbols that can be accessed directly from C.
13317sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13318
John Criswell47fdd832003-07-14 16:52:07 +000013319# Transform an extracted symbol line into a proper C declaration
13320lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13321
13322# Transform an extracted symbol line into symbol name and symbol address
13323lt_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'"
13324
13325# Define system-specific variables.
13326case $host_os in
13327aix*)
13328 symcode='[BCDT]'
13329 ;;
13330cygwin* | mingw* | pw32*)
13331 symcode='[ABCDGISTW]'
13332 ;;
13333hpux*) # Its linker distinguishes data from code symbols
13334 if test "$host_cpu" = ia64; then
13335 symcode='[ABCDEGRST]'
13336 fi
13337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13338 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'"
13339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013340linux*)
13341 if test "$host_cpu" = ia64; then
13342 symcode='[ABCDGIRSTW]'
13343 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13344 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'"
13345 fi
13346 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013347irix* | nonstopux*)
13348 symcode='[BCDEGRST]'
13349 ;;
13350osf*)
13351 symcode='[BCDEGQRST]'
13352 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013353solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013354 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013355 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013356sco3.2v5*)
13357 symcode='[DT]'
13358 ;;
13359sysv4.2uw2*)
13360 symcode='[DT]'
13361 ;;
13362sysv5* | sco5v6* | unixware* | OpenUNIX*)
13363 symcode='[ABDT]'
13364 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013365sysv4)
13366 symcode='[DFNSTU]'
13367 ;;
13368esac
13369
13370# Handle CRLF in mingw tool chain
13371opt_cr=
13372case $build_os in
13373mingw*)
13374 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13375 ;;
13376esac
13377
13378# If we're using GNU nm, then use its standard symbol codes.
13379case `$NM -V 2>&1` in
13380*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013381 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013382esac
13383
13384# Try without a prefix undercore, then with it.
13385for ac_symprfx in "" "_"; do
13386
Reid Spencera773bd52006-08-04 18:18:08 +000013387 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13388 symxfrm="\\1 $ac_symprfx\\2 \\2"
13389
John Criswell47fdd832003-07-14 16:52:07 +000013390 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013391 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 +000013392
13393 # Check to see that the pipe works correctly.
13394 pipe_works=no
13395
13396 rm -f conftest*
13397 cat > conftest.$ac_ext <<EOF
13398#ifdef __cplusplus
13399extern "C" {
13400#endif
13401char nm_test_var;
13402void nm_test_func(){}
13403#ifdef __cplusplus
13404}
13405#endif
13406int main(){nm_test_var='a';nm_test_func();return(0);}
13407EOF
13408
13409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13410 (eval $ac_compile) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; then
13414 # Now try to grab the symbols.
13415 nlist=conftest.nm
13416 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13417 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13418 ac_status=$?
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && test -s "$nlist"; then
13421 # Try sorting and uniquifying the output.
13422 if sort "$nlist" | uniq > "$nlist"T; then
13423 mv -f "$nlist"T "$nlist"
13424 else
13425 rm -f "$nlist"T
13426 fi
13427
13428 # Make sure that we snagged all the symbols we need.
13429 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13430 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13431 cat <<EOF > conftest.$ac_ext
13432#ifdef __cplusplus
13433extern "C" {
13434#endif
13435
13436EOF
13437 # Now generate the symbol file.
13438 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13439
13440 cat <<EOF >> conftest.$ac_ext
13441#if defined (__STDC__) && __STDC__
13442# define lt_ptr_t void *
13443#else
13444# define lt_ptr_t char *
13445# define const
13446#endif
13447
13448/* The mapping between symbol names and symbols. */
13449const struct {
13450 const char *name;
13451 lt_ptr_t address;
13452}
13453lt_preloaded_symbols[] =
13454{
13455EOF
13456 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13457 cat <<\EOF >> conftest.$ac_ext
13458 {0, (lt_ptr_t) 0}
13459};
13460
13461#ifdef __cplusplus
13462}
13463#endif
13464EOF
13465 # Now try linking the two files.
13466 mv conftest.$ac_objext conftstm.$ac_objext
13467 lt_save_LIBS="$LIBS"
13468 lt_save_CFLAGS="$CFLAGS"
13469 LIBS="conftstm.$ac_objext"
13470 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13472 (eval $ac_link) 2>&5
13473 ac_status=$?
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13476 pipe_works=yes
13477 fi
13478 LIBS="$lt_save_LIBS"
13479 CFLAGS="$lt_save_CFLAGS"
13480 else
13481 echo "cannot find nm_test_func in $nlist" >&5
13482 fi
13483 else
13484 echo "cannot find nm_test_var in $nlist" >&5
13485 fi
13486 else
13487 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13488 fi
13489 else
13490 echo "$progname: failed program was:" >&5
13491 cat conftest.$ac_ext >&5
13492 fi
13493 rm -f conftest* conftst*
13494
13495 # Do not use the global_symbol_pipe unless it works.
13496 if test "$pipe_works" = yes; then
13497 break
13498 else
13499 lt_cv_sys_global_symbol_pipe=
13500 fi
13501done
13502
13503fi
13504
13505if test -z "$lt_cv_sys_global_symbol_pipe"; then
13506 lt_cv_sys_global_symbol_to_cdecl=
13507fi
13508if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013509 { echo "$as_me:$LINENO: result: failed" >&5
13510echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013511else
Reid Spencera773bd52006-08-04 18:18:08 +000013512 { echo "$as_me:$LINENO: result: ok" >&5
13513echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013514fi
13515
Reid Spencera773bd52006-08-04 18:18:08 +000013516{ echo "$as_me:$LINENO: checking for objdir" >&5
13517echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013518if test "${lt_cv_objdir+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520else
13521 rm -f .libs 2>/dev/null
13522mkdir .libs 2>/dev/null
13523if test -d .libs; then
13524 lt_cv_objdir=.libs
13525else
13526 # MS-DOS does not allow filenames that begin with a dot.
13527 lt_cv_objdir=_libs
13528fi
13529rmdir .libs 2>/dev/null
13530fi
Reid Spencera773bd52006-08-04 18:18:08 +000013531{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13532echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013533objdir=$lt_cv_objdir
13534
13535
13536
13537
13538
13539case $host_os in
13540aix3*)
13541 # AIX sometimes has problems with the GCC collect2 program. For some
13542 # reason, if we set the COLLECT_NAMES environment variable, the problems
13543 # vanish in a puff of smoke.
13544 if test "X${COLLECT_NAMES+set}" != Xset; then
13545 COLLECT_NAMES=
13546 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013547 fi
13548 ;;
13549esac
13550
John Criswell47fdd832003-07-14 16:52:07 +000013551# Sed substitution that helps us do robust quoting. It backslashifies
13552# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013553Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013554sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13555
13556# Same as above, but do not quote variable references.
13557double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13558
13559# Sed substitution to delay expansion of an escaped shell variable in a
13560# double_quote_subst'ed string.
13561delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13562
13563# Sed substitution to avoid accidental globbing in evaled expressions
13564no_glob_subst='s/\*/\\\*/g'
13565
13566# Constants:
13567rm="rm -f"
13568
13569# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013570default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013571can_build_shared=yes
13572
Reid Spencera773bd52006-08-04 18:18:08 +000013573# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013574# which needs '.lib').
13575libext=a
13576ltmain="$ac_aux_dir/ltmain.sh"
13577ofile="$default_ofile"
13578with_gnu_ld="$lt_cv_prog_gnu_ld"
13579
13580if test -n "$ac_tool_prefix"; then
13581 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13582set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013585if test "${ac_cv_prog_AR+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 if test -n "$AR"; then
13589 ac_cv_prog_AR="$AR" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013597 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 +000013598 ac_cv_prog_AR="${ac_tool_prefix}ar"
13599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602done
13603done
Reid Spencera773bd52006-08-04 18:18:08 +000013604IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013605
13606fi
13607fi
13608AR=$ac_cv_prog_AR
13609if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013610 { echo "$as_me:$LINENO: result: $AR" >&5
13611echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013612else
Reid Spencera773bd52006-08-04 18:18:08 +000013613 { echo "$as_me:$LINENO: result: no" >&5
13614echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013615fi
13616
Reid Spencera773bd52006-08-04 18:18:08 +000013617
John Criswell47fdd832003-07-14 16:52:07 +000013618fi
13619if test -z "$ac_cv_prog_AR"; then
13620 ac_ct_AR=$AR
13621 # Extract the first word of "ar", so it can be a program name with args.
13622set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013625if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 if test -n "$ac_ct_AR"; then
13629 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13630else
13631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13632for as_dir in $PATH
13633do
13634 IFS=$as_save_IFS
13635 test -z "$as_dir" && as_dir=.
13636 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013637 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 +000013638 ac_cv_prog_ac_ct_AR="ar"
13639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13640 break 2
13641 fi
13642done
13643done
Reid Spencera773bd52006-08-04 18:18:08 +000013644IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013645
John Criswell47fdd832003-07-14 16:52:07 +000013646fi
13647fi
13648ac_ct_AR=$ac_cv_prog_ac_ct_AR
13649if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013650 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13651echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013652else
Reid Spencera773bd52006-08-04 18:18:08 +000013653 { echo "$as_me:$LINENO: result: no" >&5
13654echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013655fi
13656
Reid Spencera773bd52006-08-04 18:18:08 +000013657 if test "x$ac_ct_AR" = x; then
13658 AR="false"
13659 else
13660 case $cross_compiling:$ac_tool_warned in
13661yes:)
13662{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13663whose name does not start with the host triplet. If you think this
13664configuration is useful to you, please write to autoconf@gnu.org." >&5
13665echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13666whose name does not start with the host triplet. If you think this
13667configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13668ac_tool_warned=yes ;;
13669esac
13670 AR=$ac_ct_AR
13671 fi
John Criswell47fdd832003-07-14 16:52:07 +000013672else
13673 AR="$ac_cv_prog_AR"
13674fi
13675
John Criswell7a73b802003-06-30 21:59:07 +000013676if test -n "$ac_tool_prefix"; then
13677 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13678set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013679{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013681if test "${ac_cv_prog_RANLIB+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13683else
13684 if test -n "$RANLIB"; then
13685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13686else
13687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688for as_dir in $PATH
13689do
13690 IFS=$as_save_IFS
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013693 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 +000013694 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13696 break 2
13697 fi
13698done
13699done
Reid Spencera773bd52006-08-04 18:18:08 +000013700IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013701
13702fi
13703fi
13704RANLIB=$ac_cv_prog_RANLIB
13705if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013706 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13707echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013708else
Reid Spencera773bd52006-08-04 18:18:08 +000013709 { echo "$as_me:$LINENO: result: no" >&5
13710echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013711fi
13712
Reid Spencera773bd52006-08-04 18:18:08 +000013713
John Criswell7a73b802003-06-30 21:59:07 +000013714fi
13715if test -z "$ac_cv_prog_RANLIB"; then
13716 ac_ct_RANLIB=$RANLIB
13717 # Extract the first word of "ranlib", so it can be a program name with args.
13718set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013719{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013721if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13723else
13724 if test -n "$ac_ct_RANLIB"; then
13725 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13726else
13727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728for as_dir in $PATH
13729do
13730 IFS=$as_save_IFS
13731 test -z "$as_dir" && as_dir=.
13732 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013733 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 +000013734 ac_cv_prog_ac_ct_RANLIB="ranlib"
13735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13736 break 2
13737 fi
13738done
13739done
Reid Spencera773bd52006-08-04 18:18:08 +000013740IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013741
John Criswell7a73b802003-06-30 21:59:07 +000013742fi
13743fi
13744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13745if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013746 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13747echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013748else
Reid Spencera773bd52006-08-04 18:18:08 +000013749 { echo "$as_me:$LINENO: result: no" >&5
13750echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013751fi
13752
Reid Spencera773bd52006-08-04 18:18:08 +000013753 if test "x$ac_ct_RANLIB" = x; then
13754 RANLIB=":"
13755 else
13756 case $cross_compiling:$ac_tool_warned in
13757yes:)
13758{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13759whose name does not start with the host triplet. If you think this
13760configuration is useful to you, please write to autoconf@gnu.org." >&5
13761echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13762whose name does not start with the host triplet. If you think this
13763configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13764ac_tool_warned=yes ;;
13765esac
13766 RANLIB=$ac_ct_RANLIB
13767 fi
John Criswell7a73b802003-06-30 21:59:07 +000013768else
13769 RANLIB="$ac_cv_prog_RANLIB"
13770fi
13771
13772if test -n "$ac_tool_prefix"; then
13773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13774set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013777if test "${ac_cv_prog_STRIP+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13779else
13780 if test -n "$STRIP"; then
13781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13782else
13783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13784for as_dir in $PATH
13785do
13786 IFS=$as_save_IFS
13787 test -z "$as_dir" && as_dir=.
13788 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013789 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 +000013790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13792 break 2
13793 fi
13794done
13795done
Reid Spencera773bd52006-08-04 18:18:08 +000013796IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013797
13798fi
13799fi
13800STRIP=$ac_cv_prog_STRIP
13801if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013802 { echo "$as_me:$LINENO: result: $STRIP" >&5
13803echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013804else
Reid Spencera773bd52006-08-04 18:18:08 +000013805 { echo "$as_me:$LINENO: result: no" >&5
13806echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013807fi
13808
Reid Spencera773bd52006-08-04 18:18:08 +000013809
John Criswell7a73b802003-06-30 21:59:07 +000013810fi
13811if test -z "$ac_cv_prog_STRIP"; then
13812 ac_ct_STRIP=$STRIP
13813 # Extract the first word of "strip", so it can be a program name with args.
13814set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013815{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013817if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13819else
13820 if test -n "$ac_ct_STRIP"; then
13821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13822else
13823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824for as_dir in $PATH
13825do
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013829 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 +000013830 ac_cv_prog_ac_ct_STRIP="strip"
13831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13833 fi
13834done
13835done
Reid Spencera773bd52006-08-04 18:18:08 +000013836IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013837
John Criswell7a73b802003-06-30 21:59:07 +000013838fi
13839fi
13840ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13841if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013842 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13843echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013844else
Reid Spencera773bd52006-08-04 18:18:08 +000013845 { echo "$as_me:$LINENO: result: no" >&5
13846echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013847fi
13848
Reid Spencera773bd52006-08-04 18:18:08 +000013849 if test "x$ac_ct_STRIP" = x; then
13850 STRIP=":"
13851 else
13852 case $cross_compiling:$ac_tool_warned in
13853yes:)
13854{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13855whose name does not start with the host triplet. If you think this
13856configuration is useful to you, please write to autoconf@gnu.org." >&5
13857echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13858whose name does not start with the host triplet. If you think this
13859configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13860ac_tool_warned=yes ;;
13861esac
13862 STRIP=$ac_ct_STRIP
13863 fi
John Criswell7a73b802003-06-30 21:59:07 +000013864else
13865 STRIP="$ac_cv_prog_STRIP"
13866fi
13867
13868
John Criswell7a73b802003-06-30 21:59:07 +000013869old_CC="$CC"
13870old_CFLAGS="$CFLAGS"
13871
13872# Set sane defaults for various variables
13873test -z "$AR" && AR=ar
13874test -z "$AR_FLAGS" && AR_FLAGS=cru
13875test -z "$AS" && AS=as
13876test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013877test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013878test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013879test -z "$DLLTOOL" && DLLTOOL=dlltool
13880test -z "$LD" && LD=ld
13881test -z "$LN_S" && LN_S="ln -s"
13882test -z "$MAGIC_CMD" && MAGIC_CMD=file
13883test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013884test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013885test -z "$OBJDUMP" && OBJDUMP=objdump
13886test -z "$RANLIB" && RANLIB=:
13887test -z "$STRIP" && STRIP=:
13888test -z "$ac_objext" && ac_objext=o
13889
John Criswell7a73b802003-06-30 21:59:07 +000013890# Determine commands to create old-style static archives.
13891old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13892old_postinstall_cmds='chmod 644 $oldlib'
13893old_postuninstall_cmds=
13894
13895if test -n "$RANLIB"; then
13896 case $host_os in
13897 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013899 ;;
13900 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013901 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013902 ;;
13903 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013904 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013905fi
13906
Reid Spencera773bd52006-08-04 18:18:08 +000013907for cc_temp in $compiler""; do
13908 case $cc_temp in
13909 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13910 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13911 \-*) ;;
13912 *) break;;
13913 esac
13914done
13915cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13916
Reid Spencer2706f8c2004-09-19 23:53:36 +000013917
John Criswell47fdd832003-07-14 16:52:07 +000013918# Only perform the check for file, if the check method requires it
13919case $deplibs_check_method in
13920file_magic*)
13921 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013922 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13923echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013924if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013926else
John Criswell47fdd832003-07-14 16:52:07 +000013927 case $MAGIC_CMD in
13928[\\/*] | ?:[\\/]*)
13929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13930 ;;
13931*)
13932 lt_save_MAGIC_CMD="$MAGIC_CMD"
13933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13935 for ac_dir in $ac_dummy; do
13936 IFS="$lt_save_ifs"
13937 test -z "$ac_dir" && ac_dir=.
13938 if test -f $ac_dir/${ac_tool_prefix}file; then
13939 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13940 if test -n "$file_magic_test_file"; then
13941 case $deplibs_check_method in
13942 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013943 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13946 $EGREP "$file_magic_regex" > /dev/null; then
13947 :
13948 else
13949 cat <<EOF 1>&2
13950
13951*** Warning: the command libtool uses to detect shared libraries,
13952*** $file_magic_cmd, produces output that libtool cannot recognize.
13953*** The result is that libtool may fail to recognize shared libraries
13954*** as such. This will affect the creation of libtool libraries that
13955*** depend on shared libraries, but programs linked with such libtool
13956*** libraries will work regardless of this problem. Nevertheless, you
13957*** may want to report the problem to your system manager and/or to
13958*** bug-libtool@gnu.org
13959
13960EOF
13961 fi ;;
13962 esac
13963 fi
13964 break
13965 fi
13966 done
13967 IFS="$lt_save_ifs"
13968 MAGIC_CMD="$lt_save_MAGIC_CMD"
13969 ;;
13970esac
John Criswell7a73b802003-06-30 21:59:07 +000013971fi
John Criswell7a73b802003-06-30 21:59:07 +000013972
John Criswell47fdd832003-07-14 16:52:07 +000013973MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13974if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013975 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13976echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013977else
Reid Spencera773bd52006-08-04 18:18:08 +000013978 { echo "$as_me:$LINENO: result: no" >&5
13979echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013980fi
John Criswell7a73b802003-06-30 21:59:07 +000013981
John Criswell47fdd832003-07-14 16:52:07 +000013982if test -z "$lt_cv_path_MAGIC_CMD"; then
13983 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013984 { echo "$as_me:$LINENO: checking for file" >&5
13985echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013986if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988else
13989 case $MAGIC_CMD in
13990[\\/*] | ?:[\\/]*)
13991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13992 ;;
13993*)
13994 lt_save_MAGIC_CMD="$MAGIC_CMD"
13995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13997 for ac_dir in $ac_dummy; do
13998 IFS="$lt_save_ifs"
13999 test -z "$ac_dir" && ac_dir=.
14000 if test -f $ac_dir/file; then
14001 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14002 if test -n "$file_magic_test_file"; then
14003 case $deplibs_check_method in
14004 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14008 $EGREP "$file_magic_regex" > /dev/null; then
14009 :
14010 else
14011 cat <<EOF 1>&2
14012
14013*** Warning: the command libtool uses to detect shared libraries,
14014*** $file_magic_cmd, produces output that libtool cannot recognize.
14015*** The result is that libtool may fail to recognize shared libraries
14016*** as such. This will affect the creation of libtool libraries that
14017*** depend on shared libraries, but programs linked with such libtool
14018*** libraries will work regardless of this problem. Nevertheless, you
14019*** may want to report the problem to your system manager and/or to
14020*** bug-libtool@gnu.org
14021
14022EOF
14023 fi ;;
14024 esac
14025 fi
14026 break
14027 fi
14028 done
14029 IFS="$lt_save_ifs"
14030 MAGIC_CMD="$lt_save_MAGIC_CMD"
14031 ;;
14032esac
14033fi
14034
14035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14036if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014037 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14038echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014039else
Reid Spencera773bd52006-08-04 18:18:08 +000014040 { echo "$as_me:$LINENO: result: no" >&5
14041echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014042fi
14043
14044 else
14045 MAGIC_CMD=:
14046 fi
14047fi
14048
14049 fi
14050 ;;
14051esac
14052
Reid Spencer17795972004-11-18 09:47:37 +000014053enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014054enable_win32_dll=no
14055
Reid Spencera773bd52006-08-04 18:18:08 +000014056# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014057if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014058 enableval=$enable_libtool_lock;
14059fi
John Criswell47fdd832003-07-14 16:52:07 +000014060
John Criswell47fdd832003-07-14 16:52:07 +000014061test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14062
John Criswell7a73b802003-06-30 21:59:07 +000014063
Reid Spencera773bd52006-08-04 18:18:08 +000014064# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014065if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014066 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014067else
14068 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014069fi
14070
John Criswell7a73b802003-06-30 21:59:07 +000014071test -z "$pic_mode" && pic_mode=default
14072
John Criswell47fdd832003-07-14 16:52:07 +000014073# Use C for the default configuration in the libtool script
14074tagname=
14075lt_save_CC="$CC"
14076ac_ext=c
14077ac_cpp='$CPP $CPPFLAGS'
14078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14080ac_compiler_gnu=$ac_cv_c_compiler_gnu
14081
14082
14083# Source file extension for C test sources.
14084ac_ext=c
14085
14086# Object file extension for compiled C test sources.
14087objext=o
14088objext=$objext
14089
14090# Code to be used in simple compile tests
14091lt_simple_compile_test_code="int some_variable = 0;\n"
14092
14093# Code to be used in simple link tests
14094lt_simple_link_test_code='int main(){return(0);}\n'
14095
14096
14097# If no C compiler was specified, use CC.
14098LTCC=${LTCC-"$CC"}
14099
Reid Spencera773bd52006-08-04 18:18:08 +000014100# If no C compiler flags were specified, use CFLAGS.
14101LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14102
John Criswell47fdd832003-07-14 16:52:07 +000014103# Allow CC to be a program name with arguments.
14104compiler=$CC
14105
14106
Reid Spencera773bd52006-08-04 18:18:08 +000014107# save warnings/boilerplate of simple test code
14108ac_outfile=conftest.$ac_objext
14109printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14110eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14111_lt_compiler_boilerplate=`cat conftest.err`
14112$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014113
Reid Spencera773bd52006-08-04 18:18:08 +000014114ac_outfile=conftest.$ac_objext
14115printf "$lt_simple_link_test_code" >conftest.$ac_ext
14116eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14117_lt_linker_boilerplate=`cat conftest.err`
14118$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014119
14120
John Criswell47fdd832003-07-14 16:52:07 +000014121
14122lt_prog_compiler_no_builtin_flag=
14123
14124if test "$GCC" = yes; then
14125 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14126
Reid Spencer2706f8c2004-09-19 23:53:36 +000014127
Reid Spencera773bd52006-08-04 18:18:08 +000014128{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14129echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014130if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132else
14133 lt_cv_prog_compiler_rtti_exceptions=no
14134 ac_outfile=conftest.$ac_objext
14135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14136 lt_compiler_flag="-fno-rtti -fno-exceptions"
14137 # Insert the option either (1) after the last *FLAGS variable, or
14138 # (2) before a word containing "conftest.", or (3) at the end.
14139 # Note that $ac_compile itself does not contain backslashes and begins
14140 # with a dollar sign (not a hyphen), so the echo should work correctly.
14141 # The option is referenced via a variable to avoid confusing sed.
14142 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14145 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000014146 (eval echo "\"\$as_me:14146: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014147 (eval "$lt_compile" 2>conftest.err)
14148 ac_status=$?
14149 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000014150 echo "$as_me:14150: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014151 if (exit $ac_status) && test -s "$ac_outfile"; then
14152 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014153 # So say no if there are warnings other than the usual output.
14154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014157 lt_cv_prog_compiler_rtti_exceptions=yes
14158 fi
14159 fi
14160 $rm conftest*
14161
14162fi
Reid Spencera773bd52006-08-04 18:18:08 +000014163{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14164echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014165
14166if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14167 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14168else
14169 :
14170fi
14171
14172fi
14173
14174lt_prog_compiler_wl=
14175lt_prog_compiler_pic=
14176lt_prog_compiler_static=
14177
Reid Spencera773bd52006-08-04 18:18:08 +000014178{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14179echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014180
14181 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014182 lt_prog_compiler_wl='-Wl,'
14183 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014184
14185 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014186 aix*)
14187 # All AIX code is PIC.
14188 if test "$host_cpu" = ia64; then
14189 # AIX 5 now supports IA64 processor
14190 lt_prog_compiler_static='-Bstatic'
14191 fi
John Criswell7a73b802003-06-30 21:59:07 +000014192 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014193
John Criswell7a73b802003-06-30 21:59:07 +000014194 amigaos*)
14195 # FIXME: we need at least 68020 code to build shared libraries, but
14196 # adding the `-m68020' flag to GCC prevents building anything better,
14197 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014198 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014199 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014200
14201 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014202 # PIC is the default for these OSes.
14203 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014204
14205 mingw* | pw32* | os2*)
14206 # This hack is so that the source file can tell whether it is being
14207 # built for inclusion in a dll (and should export symbols for example).
14208 lt_prog_compiler_pic='-DDLL_EXPORT'
14209 ;;
14210
John Criswell7a73b802003-06-30 21:59:07 +000014211 darwin* | rhapsody*)
14212 # PIC is the default on this platform
14213 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014214 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014215 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014216
Reid Spencera773bd52006-08-04 18:18:08 +000014217 interix3*)
14218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14219 # Instead, we relocate shared libraries at runtime.
14220 ;;
14221
John Criswell47fdd832003-07-14 16:52:07 +000014222 msdosdjgpp*)
14223 # Just because we use GCC doesn't mean we suddenly get shared libraries
14224 # on systems that don't support them.
14225 lt_prog_compiler_can_build_shared=no
14226 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014227 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014228
John Criswell7a73b802003-06-30 21:59:07 +000014229 sysv4*MP*)
14230 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014231 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014232 fi
14233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014234
14235 hpux*)
14236 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14237 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014238 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014239 hppa*64*|ia64*)
14240 # +Z the default
14241 ;;
14242 *)
14243 lt_prog_compiler_pic='-fPIC'
14244 ;;
14245 esac
14246 ;;
14247
John Criswell7a73b802003-06-30 21:59:07 +000014248 *)
John Criswell47fdd832003-07-14 16:52:07 +000014249 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014250 ;;
14251 esac
14252 else
John Criswell47fdd832003-07-14 16:52:07 +000014253 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014254 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014255 aix*)
14256 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014257 if test "$host_cpu" = ia64; then
14258 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014259 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014260 else
John Criswell47fdd832003-07-14 16:52:07 +000014261 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014262 fi
14263 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014264 darwin*)
14265 # PIC is the default on this platform
14266 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014267 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014268 xlc*)
14269 lt_prog_compiler_pic='-qnocommon'
14270 lt_prog_compiler_wl='-Wl,'
14271 ;;
14272 esac
14273 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014274
John Criswell47fdd832003-07-14 16:52:07 +000014275 mingw* | pw32* | os2*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 lt_prog_compiler_pic='-DDLL_EXPORT'
14279 ;;
14280
John Criswell7a73b802003-06-30 21:59:07 +000014281 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014282 lt_prog_compiler_wl='-Wl,'
14283 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14284 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014285 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014286 hppa*64*|ia64*)
14287 # +Z the default
14288 ;;
14289 *)
14290 lt_prog_compiler_pic='+Z'
14291 ;;
14292 esac
14293 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14294 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014295 ;;
14296
John Criswell47fdd832003-07-14 16:52:07 +000014297 irix5* | irix6* | nonstopux*)
14298 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014299 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014300 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014301 ;;
14302
14303 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014304 lt_prog_compiler_pic='-KPIC'
14305 lt_prog_compiler_static='-Bstatic'
14306 ;;
14307
14308 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014309 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014310 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014311 lt_prog_compiler_wl='-Wl,'
14312 lt_prog_compiler_pic='-KPIC'
14313 lt_prog_compiler_static='-static'
14314 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014315 pgcc* | pgf77* | pgf90* | pgf95*)
14316 # Portland Group compilers (*not* the Pentium gcc compiler,
14317 # which looks to be a dead project)
14318 lt_prog_compiler_wl='-Wl,'
14319 lt_prog_compiler_pic='-fpic'
14320 lt_prog_compiler_static='-Bstatic'
14321 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014322 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014323 lt_prog_compiler_wl='-Wl,'
14324 # All Alpha code is PIC.
14325 lt_prog_compiler_static='-non_shared'
14326 ;;
14327 esac
John Criswell7a73b802003-06-30 21:59:07 +000014328 ;;
14329
14330 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014331 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014332 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014333 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014334 ;;
14335
John Criswell7a73b802003-06-30 21:59:07 +000014336 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014337 lt_prog_compiler_pic='-KPIC'
14338 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014339 case $cc_basename in
14340 f77* | f90* | f95*)
14341 lt_prog_compiler_wl='-Qoption ld ';;
14342 *)
14343 lt_prog_compiler_wl='-Wl,';;
14344 esac
John Criswell7a73b802003-06-30 21:59:07 +000014345 ;;
14346
14347 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014348 lt_prog_compiler_wl='-Qoption ld '
14349 lt_prog_compiler_pic='-PIC'
14350 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014351 ;;
14352
Reid Spencera773bd52006-08-04 18:18:08 +000014353 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014354 lt_prog_compiler_wl='-Wl,'
14355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014357 ;;
14358
14359 sysv4*MP*)
14360 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014361 lt_prog_compiler_pic='-Kconform_pic'
14362 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014363 fi
14364 ;;
14365
Reid Spencera773bd52006-08-04 18:18:08 +000014366 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14367 lt_prog_compiler_wl='-Wl,'
14368 lt_prog_compiler_pic='-KPIC'
14369 lt_prog_compiler_static='-Bstatic'
14370 ;;
14371
14372 unicos*)
14373 lt_prog_compiler_wl='-Wl,'
14374 lt_prog_compiler_can_build_shared=no
14375 ;;
14376
John Criswell47fdd832003-07-14 16:52:07 +000014377 uts4*)
14378 lt_prog_compiler_pic='-pic'
14379 lt_prog_compiler_static='-Bstatic'
14380 ;;
14381
John Criswell7a73b802003-06-30 21:59:07 +000014382 *)
John Criswell47fdd832003-07-14 16:52:07 +000014383 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014384 ;;
14385 esac
14386 fi
14387
Reid Spencera773bd52006-08-04 18:18:08 +000014388{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14389echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014390
John Criswell47fdd832003-07-14 16:52:07 +000014391#
14392# Check to make sure the PIC flag actually works.
14393#
14394if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014395
Reid Spencera773bd52006-08-04 18:18:08 +000014396{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14397echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014398if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_prog_compiler_pic_works=no
14402 ac_outfile=conftest.$ac_objext
14403 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14404 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14405 # Insert the option either (1) after the last *FLAGS variable, or
14406 # (2) before a word containing "conftest.", or (3) at the end.
14407 # Note that $ac_compile itself does not contain backslashes and begins
14408 # with a dollar sign (not a hyphen), so the echo should work correctly.
14409 # The option is referenced via a variable to avoid confusing sed.
14410 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14413 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000014414 (eval echo "\"\$as_me:14414: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014415 (eval "$lt_compile" 2>conftest.err)
14416 ac_status=$?
14417 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000014418 echo "$as_me:14418: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014419 if (exit $ac_status) && test -s "$ac_outfile"; then
14420 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014421 # So say no if there are warnings other than the usual output.
14422 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14423 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14424 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014425 lt_prog_compiler_pic_works=yes
14426 fi
14427 fi
14428 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014429
John Criswell47fdd832003-07-14 16:52:07 +000014430fi
Reid Spencera773bd52006-08-04 18:18:08 +000014431{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14432echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014433
John Criswell47fdd832003-07-14 16:52:07 +000014434if test x"$lt_prog_compiler_pic_works" = xyes; then
14435 case $lt_prog_compiler_pic in
14436 "" | " "*) ;;
14437 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14438 esac
John Criswell7a73b802003-06-30 21:59:07 +000014439else
John Criswell47fdd832003-07-14 16:52:07 +000014440 lt_prog_compiler_pic=
14441 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014442fi
14443
John Criswell7a73b802003-06-30 21:59:07 +000014444fi
Reid Spencera773bd52006-08-04 18:18:08 +000014445case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014446 # For platforms which do not support PIC, -DPIC is meaningless:
14447 *djgpp*)
14448 lt_prog_compiler_pic=
14449 ;;
14450 *)
14451 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14452 ;;
14453esac
John Criswell7a73b802003-06-30 21:59:07 +000014454
Reid Spencera773bd52006-08-04 18:18:08 +000014455#
14456# Check to make sure the static flag actually works.
14457#
14458wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14459{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14460echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14461if test "${lt_prog_compiler_static_works+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14463else
14464 lt_prog_compiler_static_works=no
14465 save_LDFLAGS="$LDFLAGS"
14466 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14467 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14468 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14469 # The linker can only warn and ignore the option if not recognized
14470 # So say no if there are warnings
14471 if test -s conftest.err; then
14472 # Append any errors to the config.log.
14473 cat conftest.err 1>&5
14474 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14476 if diff conftest.exp conftest.er2 >/dev/null; then
14477 lt_prog_compiler_static_works=yes
14478 fi
14479 else
14480 lt_prog_compiler_static_works=yes
14481 fi
14482 fi
14483 $rm conftest*
14484 LDFLAGS="$save_LDFLAGS"
14485
14486fi
14487{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14488echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14489
14490if test x"$lt_prog_compiler_static_works" = xyes; then
14491 :
14492else
14493 lt_prog_compiler_static=
14494fi
14495
14496
14497{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14498echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014499if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501else
John Criswell47fdd832003-07-14 16:52:07 +000014502 lt_cv_prog_compiler_c_o=no
14503 $rm -r conftest 2>/dev/null
14504 mkdir conftest
14505 cd conftest
14506 mkdir out
14507 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014508
John Criswell47fdd832003-07-14 16:52:07 +000014509 lt_compiler_flag="-o out/conftest2.$ac_objext"
14510 # Insert the option either (1) after the last *FLAGS variable, or
14511 # (2) before a word containing "conftest.", or (3) at the end.
14512 # Note that $ac_compile itself does not contain backslashes and begins
14513 # with a dollar sign (not a hyphen), so the echo should work correctly.
14514 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014515 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014516 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14517 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000014518 (eval echo "\"\$as_me:14518: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014519 (eval "$lt_compile" 2>out/conftest.err)
14520 ac_status=$?
14521 cat out/conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000014522 echo "$as_me:14522: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014523 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14524 then
14525 # The compiler can only warn and ignore the option if not recognized
14526 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014527 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14528 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14529 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014530 lt_cv_prog_compiler_c_o=yes
14531 fi
14532 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014533 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014534 $rm conftest*
14535 # SGI C++ compiler will create directory out/ii_files/ for
14536 # template instantiation
14537 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14538 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014539 cd ..
14540 rmdir conftest
14541 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014542
14543fi
Reid Spencera773bd52006-08-04 18:18:08 +000014544{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14545echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014546
John Criswell7a73b802003-06-30 21:59:07 +000014547
John Criswell7a73b802003-06-30 21:59:07 +000014548hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014549if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014550 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014551 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14552echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014553 hard_links=yes
14554 $rm conftest*
14555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14556 touch conftest.a
14557 ln conftest.a conftest.b 2>&5 || hard_links=no
14558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014559 { echo "$as_me:$LINENO: result: $hard_links" >&5
14560echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014561 if test "$hard_links" = no; then
14562 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14563echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14564 need_locks=warn
14565 fi
14566else
14567 need_locks=no
14568fi
John Criswell7a73b802003-06-30 21:59:07 +000014569
Reid Spencera773bd52006-08-04 18:18:08 +000014570{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14571echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014572
14573 runpath_var=
14574 allow_undefined_flag=
14575 enable_shared_with_static_runtimes=no
14576 archive_cmds=
14577 archive_expsym_cmds=
14578 old_archive_From_new_cmds=
14579 old_archive_from_expsyms_cmds=
14580 export_dynamic_flag_spec=
14581 whole_archive_flag_spec=
14582 thread_safe_flag_spec=
14583 hardcode_libdir_flag_spec=
14584 hardcode_libdir_flag_spec_ld=
14585 hardcode_libdir_separator=
14586 hardcode_direct=no
14587 hardcode_minus_L=no
14588 hardcode_shlibpath_var=unsupported
14589 link_all_deplibs=unknown
14590 hardcode_automatic=no
14591 module_cmds=
14592 module_expsym_cmds=
14593 always_export_symbols=no
14594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14595 # include_expsyms should be a list of space-separated symbols to be *always*
14596 # included in the symbol list
14597 include_expsyms=
14598 # exclude_expsyms can be an extended regexp of symbols to exclude
14599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14601 # as well as any symbol that contains `d'.
14602 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14604 # platforms (ab)use it in PIC code, but their linkers get confused if
14605 # the symbol is explicitly referenced. Since portable code cannot
14606 # rely on this symbol name, it's probably fine to never include it in
14607 # preloaded symbol tables.
14608 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014609 # Just being paranoid about ensuring that cc_basename is set.
14610 for cc_temp in $compiler""; do
14611 case $cc_temp in
14612 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14613 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14614 \-*) ;;
14615 *) break;;
14616 esac
14617done
14618cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014619
14620 case $host_os in
14621 cygwin* | mingw* | pw32*)
14622 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14623 # When not using gcc, we currently assume that we are using
14624 # Microsoft Visual C++.
14625 if test "$GCC" != yes; then
14626 with_gnu_ld=no
14627 fi
14628 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014629 interix*)
14630 # we just hope/assume this is gcc and not c89 (= MSVC++)
14631 with_gnu_ld=yes
14632 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014633 openbsd*)
14634 with_gnu_ld=no
14635 ;;
14636 esac
14637
14638 ld_shlibs=yes
14639 if test "$with_gnu_ld" = yes; then
14640 # If archive_cmds runs LD, not CC, wlarc should be empty
14641 wlarc='${wl}'
14642
Reid Spencera773bd52006-08-04 18:18:08 +000014643 # Set some defaults for GNU ld with shared library support. These
14644 # are reset later if shared libraries are not supported. Putting them
14645 # here allows them to be overridden if necessary.
14646 runpath_var=LD_RUN_PATH
14647 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14648 export_dynamic_flag_spec='${wl}--export-dynamic'
14649 # ancient GNU ld didn't support --whole-archive et. al.
14650 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14651 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14652 else
14653 whole_archive_flag_spec=
14654 fi
14655 supports_anon_versioning=no
14656 case `$LD -v 2>/dev/null` in
14657 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14660 *\ 2.11.*) ;; # other 2.11 versions
14661 *) supports_anon_versioning=yes ;;
14662 esac
14663
John Criswell47fdd832003-07-14 16:52:07 +000014664 # See if GNU ld supports shared libraries.
14665 case $host_os in
14666 aix3* | aix4* | aix5*)
14667 # On AIX/PPC, the GNU linker is very broken
14668 if test "$host_cpu" != ia64; then
14669 ld_shlibs=no
14670 cat <<EOF 1>&2
14671
14672*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14673*** to be unable to reliably create shared libraries on AIX.
14674*** Therefore, libtool is disabling shared libraries support. If you
14675*** really care for shared libraries, you may want to modify your PATH
14676*** so that a non-GNU linker is found, and then restart.
14677
14678EOF
14679 fi
14680 ;;
14681
14682 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014683 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 +000014684 hardcode_libdir_flag_spec='-L$libdir'
14685 hardcode_minus_L=yes
14686
14687 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14688 # that the semantics of dynamic libraries on AmigaOS, at least up
14689 # to version 4, is to share data among multiple programs linked
14690 # with the same dynamic library. Since this doesn't match the
14691 # behavior of shared libraries on other platforms, we can't use
14692 # them.
14693 ld_shlibs=no
14694 ;;
14695
14696 beos*)
14697 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14698 allow_undefined_flag=unsupported
14699 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14700 # support --undefined. This deserves some investigation. FIXME
14701 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14702 else
14703 ld_shlibs=no
14704 fi
14705 ;;
14706
14707 cygwin* | mingw* | pw32*)
14708 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14709 # as there is no search path for DLLs.
14710 hardcode_libdir_flag_spec='-L$libdir'
14711 allow_undefined_flag=unsupported
14712 always_export_symbols=no
14713 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014714 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 +000014715
14716 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014717 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 +000014718 # If the export-symbols file already is a .def file (1st line
14719 # is EXPORTS), use it as is; otherwise, prepend...
14720 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14721 cp $export_symbols $output_objdir/$soname.def;
14722 else
14723 echo EXPORTS > $output_objdir/$soname.def;
14724 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014725 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014726 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14727 else
14728 ld_shlibs=no
14729 fi
14730 ;;
14731
14732 interix3*)
14733 hardcode_direct=no
14734 hardcode_shlibpath_var=no
14735 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14736 export_dynamic_flag_spec='${wl}-E'
14737 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14738 # Instead, shared libraries are loaded at an image base (0x10000000 by
14739 # default) and relocated if they conflict, which is a slow very memory
14740 # consuming and fragmenting process. To avoid this, we pick a random,
14741 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14742 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14743 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14744 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'
14745 ;;
14746
14747 linux*)
14748 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14749 tmp_addflag=
14750 case $cc_basename,$host_cpu in
14751 pgcc*) # Portland Group C compiler
14752 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'
14753 tmp_addflag=' $pic_flag'
14754 ;;
14755 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14756 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'
14757 tmp_addflag=' $pic_flag -Mnomain' ;;
14758 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14759 tmp_addflag=' -i_dynamic' ;;
14760 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14761 tmp_addflag=' -i_dynamic -nofor_main' ;;
14762 ifc* | ifort*) # Intel Fortran compiler
14763 tmp_addflag=' -nofor_main' ;;
14764 esac
14765 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14766
14767 if test $supports_anon_versioning = yes; then
14768 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14770 $echo "local: *; };" >> $output_objdir/$libname.ver~
14771 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14772 fi
John Criswell47fdd832003-07-14 16:52:07 +000014773 else
14774 ld_shlibs=no
14775 fi
14776 ;;
14777
14778 netbsd*)
14779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14781 wlarc=
14782 else
14783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14785 fi
14786 ;;
14787
Reid Spencera773bd52006-08-04 18:18:08 +000014788 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14790 ld_shlibs=no
14791 cat <<EOF 1>&2
14792
14793*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14794*** create shared libraries on Solaris systems. Therefore, libtool
14795*** is disabling shared libraries support. We urge you to upgrade GNU
14796*** binutils to release 2.9.1 or newer. Another option is to modify
14797*** your PATH or compiler configuration so that the native linker is
14798*** used, and then restart.
14799
14800EOF
14801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14804 else
14805 ld_shlibs=no
14806 fi
14807 ;;
14808
Reid Spencera773bd52006-08-04 18:18:08 +000014809 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14810 case `$LD -v 2>&1` in
14811 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14812 ld_shlibs=no
14813 cat <<_LT_EOF 1>&2
14814
14815*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14816*** reliably create shared libraries on SCO systems. Therefore, libtool
14817*** is disabling shared libraries support. We urge you to upgrade GNU
14818*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14819*** your PATH or compiler configuration so that the native linker is
14820*** used, and then restart.
14821
14822_LT_EOF
14823 ;;
14824 *)
14825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14826 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14827 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14828 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14829 else
14830 ld_shlibs=no
14831 fi
14832 ;;
14833 esac
14834 ;;
14835
John Criswell47fdd832003-07-14 16:52:07 +000014836 sunos4*)
14837 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14838 wlarc=
14839 hardcode_direct=yes
14840 hardcode_shlibpath_var=no
14841 ;;
14842
14843 *)
14844 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14847 else
14848 ld_shlibs=no
14849 fi
14850 ;;
14851 esac
14852
Reid Spencera773bd52006-08-04 18:18:08 +000014853 if test "$ld_shlibs" = no; then
14854 runpath_var=
14855 hardcode_libdir_flag_spec=
14856 export_dynamic_flag_spec=
14857 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014858 fi
14859 else
14860 # PORTME fill in a description of your system's linker (not GNU ld)
14861 case $host_os in
14862 aix3*)
14863 allow_undefined_flag=unsupported
14864 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014865 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 +000014866 # Note: this linker hardcodes the directories in LIBPATH if there
14867 # are no directories specified by -L.
14868 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014869 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014870 # Neither direct hardcoding nor static linking is supported with a
14871 # broken collect2.
14872 hardcode_direct=unsupported
14873 fi
14874 ;;
14875
14876 aix4* | aix5*)
14877 if test "$host_cpu" = ia64; then
14878 # On IA64, the linker does run time linking by default, so we don't
14879 # have to do anything special.
14880 aix_use_runtimelinking=no
14881 exp_sym_flag='-Bexport'
14882 no_entry_flag=""
14883 else
14884 # If we're using GNU nm, then we don't want the "-C" option.
14885 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14886 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14887 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'
14888 else
14889 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'
14890 fi
14891 aix_use_runtimelinking=no
14892
14893 # Test if we are trying to use run time linking or normal
14894 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14895 # need to do runtime linking.
14896 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14897 for ld_flag in $LDFLAGS; do
14898 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14899 aix_use_runtimelinking=yes
14900 break
14901 fi
14902 done
Reid Spencera773bd52006-08-04 18:18:08 +000014903 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014904 esac
14905
14906 exp_sym_flag='-bexport'
14907 no_entry_flag='-bnoentry'
14908 fi
14909
14910 # When large executables or shared objects are built, AIX ld can
14911 # have problems creating the table of contents. If linking a library
14912 # or program results in "error TOC overflow" add -mminimal-toc to
14913 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14914 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14915
14916 archive_cmds=''
14917 hardcode_direct=yes
14918 hardcode_libdir_separator=':'
14919 link_all_deplibs=yes
14920
14921 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014922 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014923 # We only want to do this on AIX 4.2 and lower, the check
14924 # below for broken collect2 doesn't work under 4.3+
14925 collect2name=`${CC} -print-prog-name=collect2`
14926 if test -f "$collect2name" && \
14927 strings "$collect2name" | grep resolve_lib_name >/dev/null
14928 then
14929 # We have reworked collect2
14930 hardcode_direct=yes
14931 else
14932 # We have old collect2
14933 hardcode_direct=unsupported
14934 # It fails to find uninstalled libraries when the uninstalled
14935 # path is not listed in the libpath. Setting hardcode_minus_L
14936 # to unsupported forces relinking
14937 hardcode_minus_L=yes
14938 hardcode_libdir_flag_spec='-L$libdir'
14939 hardcode_libdir_separator=
14940 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014941 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014942 esac
14943 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014944 if test "$aix_use_runtimelinking" = yes; then
14945 shared_flag="$shared_flag "'${wl}-G'
14946 fi
John Criswell47fdd832003-07-14 16:52:07 +000014947 else
14948 # not using gcc
14949 if test "$host_cpu" = ia64; then
14950 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14951 # chokes on -Wl,-G. The following line is correct:
14952 shared_flag='-G'
14953 else
Reid Spencera773bd52006-08-04 18:18:08 +000014954 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014955 shared_flag='${wl}-G'
14956 else
14957 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014958 fi
John Criswell47fdd832003-07-14 16:52:07 +000014959 fi
14960 fi
14961
14962 # It seems that -bexpall does not export symbols beginning with
14963 # underscore (_), so it is better to generate a list of symbols to export.
14964 always_export_symbols=yes
14965 if test "$aix_use_runtimelinking" = yes; then
14966 # Warning - without using the other runtime loading flags (-brtl),
14967 # -berok will link without error, but may produce a broken library.
14968 allow_undefined_flag='-berok'
14969 # Determine the default libpath from the value encoded in an empty executable.
14970 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014971/* confdefs.h. */
14972_ACEOF
14973cat confdefs.h >>conftest.$ac_ext
14974cat >>conftest.$ac_ext <<_ACEOF
14975/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014976
John Criswell7a73b802003-06-30 21:59:07 +000014977int
14978main ()
14979{
John Criswell47fdd832003-07-14 16:52:07 +000014980
John Criswell7a73b802003-06-30 21:59:07 +000014981 ;
14982 return 0;
14983}
14984_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000014985rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000014986if { (ac_try="$ac_link"
14987case "(($ac_try" in
14988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14989 *) ac_try_echo=$ac_try;;
14990esac
14991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14992 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014993 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000014999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15000 { (case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15003esac
15004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015006 ac_status=$?
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); }; } &&
15009 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015010 { (case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15013esac
15014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015019
John Criswell47fdd832003-07-14 16:52:07 +000015020aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15021}'`
15022# Check for a 64-bit object if we didn't find anything.
15023if 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; }
15024}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015025else
15026 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015027sed 's/^/| /' conftest.$ac_ext >&5
15028
Reid Spencera773bd52006-08-04 18:18:08 +000015029
John Criswell7a73b802003-06-30 21:59:07 +000015030fi
Reid Spencera773bd52006-08-04 18:18:08 +000015031
15032rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015033 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015034if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015035
John Criswell47fdd832003-07-14 16:52:07 +000015036 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015037 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 +000015038 else
15039 if test "$host_cpu" = ia64; then
15040 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15041 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015042 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 +000015043 else
15044 # Determine the default libpath from the value encoded in an empty executable.
15045 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015046/* confdefs.h. */
15047_ACEOF
15048cat confdefs.h >>conftest.$ac_ext
15049cat >>conftest.$ac_ext <<_ACEOF
15050/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015051
John Criswell47fdd832003-07-14 16:52:07 +000015052int
15053main ()
15054{
John Criswell7a73b802003-06-30 21:59:07 +000015055
John Criswell47fdd832003-07-14 16:52:07 +000015056 ;
15057 return 0;
15058}
15059_ACEOF
15060rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015061if { (ac_try="$ac_link"
15062case "(($ac_try" in
15063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15064 *) ac_try_echo=$ac_try;;
15065esac
15066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15067 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015069 grep -v '^ *+' conftest.er1 >conftest.err
15070 rm -f conftest.er1
15071 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15075 { (case "(($ac_try" in
15076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15077 *) ac_try_echo=$ac_try;;
15078esac
15079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15080 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015081 ac_status=$?
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015085 { (case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088esac
15089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015091 ac_status=$?
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015094
John Criswell47fdd832003-07-14 16:52:07 +000015095aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15096}'`
15097# Check for a 64-bit object if we didn't find anything.
15098if 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; }
15099}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015100else
John Criswell47fdd832003-07-14 16:52:07 +000015101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015102sed 's/^/| /' conftest.$ac_ext >&5
15103
Reid Spencera773bd52006-08-04 18:18:08 +000015104
John Criswell47fdd832003-07-14 16:52:07 +000015105fi
Reid Spencera773bd52006-08-04 18:18:08 +000015106
15107rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015108 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015109if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015110
John Criswell47fdd832003-07-14 16:52:07 +000015111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15112 # Warning - without using the other run time loading flags,
15113 # -berok will link without error, but may produce a broken library.
15114 no_undefined_flag=' ${wl}-bernotok'
15115 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015116 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015117 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015118 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015119 # This is similar to how AIX traditionally builds its shared libraries.
15120 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 +000015121 fi
15122 fi
John Criswell7a73b802003-06-30 21:59:07 +000015123 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015124
15125 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015126 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 +000015127 hardcode_libdir_flag_spec='-L$libdir'
15128 hardcode_minus_L=yes
15129 # see comment about different semantics on the GNU ld section
15130 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015131 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015132
Reid Spencer2706f8c2004-09-19 23:53:36 +000015133 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015134 export_dynamic_flag_spec=-rdynamic
15135 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015136
John Criswell47fdd832003-07-14 16:52:07 +000015137 cygwin* | mingw* | pw32*)
15138 # When not using gcc, we currently assume that we are using
15139 # Microsoft Visual C++.
15140 # hardcode_libdir_flag_spec is actually meaningless, as there is
15141 # no search path for DLLs.
15142 hardcode_libdir_flag_spec=' '
15143 allow_undefined_flag=unsupported
15144 # Tell ltmain to make .lib files, not .a files.
15145 libext=lib
15146 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015147 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015148 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015149 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015150 # The linker will automatically build a .lib file if we build a DLL.
15151 old_archive_From_new_cmds='true'
15152 # FIXME: Should let the user specify the lib program.
15153 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15154 fix_srcfile_path='`cygpath -w "$srcfile"`'
15155 enable_shared_with_static_runtimes=yes
15156 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015157
John Criswell47fdd832003-07-14 16:52:07 +000015158 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015159 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015160 rhapsody* | darwin1.[012])
15161 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15162 ;;
15163 *) # Darwin 1.3 on
15164 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15165 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15166 else
15167 case ${MACOSX_DEPLOYMENT_TARGET} in
15168 10.[012])
15169 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15170 ;;
15171 10.*)
15172 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15173 ;;
15174 esac
15175 fi
15176 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015177 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015178 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015179 hardcode_direct=no
15180 hardcode_automatic=yes
15181 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015182 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015183 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015184 if test "$GCC" = yes ; then
15185 output_verbose_link_cmd='echo'
15186 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15187 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015188 # 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 +000015189 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}'
15190 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 +000015191 else
Reid Spencera773bd52006-08-04 18:18:08 +000015192 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015193 xlc*)
15194 output_verbose_link_cmd='echo'
15195 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15196 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015197 # 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 +000015198 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}'
15199 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 +000015200 ;;
15201 *)
15202 ld_shlibs=no
15203 ;;
15204 esac
John Criswell7a73b802003-06-30 21:59:07 +000015205 fi
John Criswell47fdd832003-07-14 16:52:07 +000015206 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015207
John Criswell47fdd832003-07-14 16:52:07 +000015208 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015210 hardcode_libdir_flag_spec='-L$libdir'
15211 hardcode_shlibpath_var=no
15212 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015213
John Criswell47fdd832003-07-14 16:52:07 +000015214 freebsd1*)
15215 ld_shlibs=no
15216 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015217
John Criswell47fdd832003-07-14 16:52:07 +000015218 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15219 # support. Future versions do this automatically, but an explicit c++rt0.o
15220 # does not break anything, and helps significantly (at the cost of a little
15221 # extra space).
15222 freebsd2.2*)
15223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15224 hardcode_libdir_flag_spec='-R$libdir'
15225 hardcode_direct=yes
15226 hardcode_shlibpath_var=no
15227 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015228
John Criswell47fdd832003-07-14 16:52:07 +000015229 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15230 freebsd2*)
15231 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15232 hardcode_direct=yes
15233 hardcode_minus_L=yes
15234 hardcode_shlibpath_var=no
15235 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015236
John Criswell47fdd832003-07-14 16:52:07 +000015237 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015238 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015239 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15240 hardcode_libdir_flag_spec='-R$libdir'
15241 hardcode_direct=yes
15242 hardcode_shlibpath_var=no
15243 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015244
John Criswell47fdd832003-07-14 16:52:07 +000015245 hpux9*)
15246 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015247 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 +000015248 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015249 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 +000015250 fi
15251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15252 hardcode_libdir_separator=:
15253 hardcode_direct=yes
15254
15255 # hardcode_minus_L: Not really in the search PATH,
15256 # but as the default location of the library.
15257 hardcode_minus_L=yes
15258 export_dynamic_flag_spec='${wl}-E'
15259 ;;
15260
Reid Spencera773bd52006-08-04 18:18:08 +000015261 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015262 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015263 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15264 else
15265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15266 fi
15267 if test "$with_gnu_ld" = no; then
15268 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15269 hardcode_libdir_separator=:
15270
15271 hardcode_direct=yes
15272 export_dynamic_flag_spec='${wl}-E'
15273
15274 # hardcode_minus_L: Not really in the search PATH,
15275 # but as the default location of the library.
15276 hardcode_minus_L=yes
15277 fi
15278 ;;
15279
15280 hpux11*)
15281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15282 case $host_cpu in
15283 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015284 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15285 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015286 ia64*)
15287 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15288 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015289 *)
15290 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15291 ;;
15292 esac
15293 else
Reid Spencera773bd52006-08-04 18:18:08 +000015294 case $host_cpu in
15295 hppa*64*)
15296 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15297 ;;
15298 ia64*)
15299 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015300 ;;
15301 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015302 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 +000015303 ;;
15304 esac
15305 fi
15306 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15308 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015309
Reid Spencera773bd52006-08-04 18:18:08 +000015310 case $host_cpu in
15311 hppa*64*|ia64*)
15312 hardcode_libdir_flag_spec_ld='+b $libdir'
15313 hardcode_direct=no
15314 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015315 ;;
15316 *)
John Criswell47fdd832003-07-14 16:52:07 +000015317 hardcode_direct=yes
15318 export_dynamic_flag_spec='${wl}-E'
15319
15320 # hardcode_minus_L: Not really in the search PATH,
15321 # but as the default location of the library.
15322 hardcode_minus_L=yes
15323 ;;
15324 esac
15325 fi
15326 ;;
15327
15328 irix5* | irix6* | nonstopux*)
15329 if test "$GCC" = yes; then
15330 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'
15331 else
15332 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'
15333 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15334 fi
15335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15336 hardcode_libdir_separator=:
15337 link_all_deplibs=yes
15338 ;;
15339
15340 netbsd*)
15341 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15342 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15343 else
15344 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15345 fi
15346 hardcode_libdir_flag_spec='-R$libdir'
15347 hardcode_direct=yes
15348 hardcode_shlibpath_var=no
15349 ;;
15350
15351 newsos6)
15352 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15353 hardcode_direct=yes
15354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15355 hardcode_libdir_separator=:
15356 hardcode_shlibpath_var=no
15357 ;;
15358
15359 openbsd*)
15360 hardcode_direct=yes
15361 hardcode_shlibpath_var=no
15362 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015364 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 +000015365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15366 export_dynamic_flag_spec='${wl}-E'
15367 else
15368 case $host_os in
15369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_libdir_flag_spec='-R$libdir'
15372 ;;
15373 *)
15374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15376 ;;
15377 esac
15378 fi
15379 ;;
15380
15381 os2*)
15382 hardcode_libdir_flag_spec='-L$libdir'
15383 hardcode_minus_L=yes
15384 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015385 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 +000015386 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15387 ;;
15388
15389 osf3*)
15390 if test "$GCC" = yes; then
15391 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15392 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'
15393 else
15394 allow_undefined_flag=' -expect_unresolved \*'
15395 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'
15396 fi
15397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15398 hardcode_libdir_separator=:
15399 ;;
15400
15401 osf4* | osf5*) # as osf3* with the addition of -msym flag
15402 if test "$GCC" = yes; then
15403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15404 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'
15405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15406 else
15407 allow_undefined_flag=' -expect_unresolved \*'
15408 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 +000015409 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 +000015410 $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 +000015411
John Criswell47fdd832003-07-14 16:52:07 +000015412 # Both c and cxx compiler support -rpath directly
15413 hardcode_libdir_flag_spec='-rpath $libdir'
15414 fi
15415 hardcode_libdir_separator=:
15416 ;;
15417
John Criswell47fdd832003-07-14 16:52:07 +000015418 solaris*)
15419 no_undefined_flag=' -z text'
15420 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015421 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015422 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015423 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15424 $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 +000015425 else
Reid Spencera773bd52006-08-04 18:18:08 +000015426 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015427 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015428 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15429 $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 +000015430 fi
15431 hardcode_libdir_flag_spec='-R$libdir'
15432 hardcode_shlibpath_var=no
15433 case $host_os in
15434 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015435 *)
15436 # The compiler driver will combine linker options so we
15437 # cannot just pass the convience library names through
15438 # without $wl, iff we do not link with $LD.
15439 # Luckily, gcc supports the same syntax we need for Sun Studio.
15440 # Supported since Solaris 2.6 (maybe 2.5.1?)
15441 case $wlarc in
15442 '')
15443 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15444 *)
15445 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' ;;
15446 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015447 esac
15448 link_all_deplibs=yes
15449 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015450
John Criswell47fdd832003-07-14 16:52:07 +000015451 sunos4*)
15452 if test "x$host_vendor" = xsequent; then
15453 # Use $CC to link under sequent, because it throws in some extra .o
15454 # files that make .init and .fini sections work.
15455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15456 else
15457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15458 fi
15459 hardcode_libdir_flag_spec='-L$libdir'
15460 hardcode_direct=yes
15461 hardcode_minus_L=yes
15462 hardcode_shlibpath_var=no
15463 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015464
John Criswell47fdd832003-07-14 16:52:07 +000015465 sysv4)
15466 case $host_vendor in
15467 sni)
15468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15469 hardcode_direct=yes # is this really true???
15470 ;;
15471 siemens)
15472 ## LD is ld it makes a PLAMLIB
15473 ## CC just makes a GrossModule.
15474 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15475 reload_cmds='$CC -r -o $output$reload_objs'
15476 hardcode_direct=no
15477 ;;
15478 motorola)
15479 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15480 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15481 ;;
15482 esac
15483 runpath_var='LD_RUN_PATH'
15484 hardcode_shlibpath_var=no
15485 ;;
15486
15487 sysv4.3*)
15488 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15489 hardcode_shlibpath_var=no
15490 export_dynamic_flag_spec='-Bexport'
15491 ;;
15492
15493 sysv4*MP*)
15494 if test -d /usr/nec; then
15495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15496 hardcode_shlibpath_var=no
15497 runpath_var=LD_RUN_PATH
15498 hardcode_runpath_var=yes
15499 ld_shlibs=yes
15500 fi
15501 ;;
15502
Reid Spencera773bd52006-08-04 18:18:08 +000015503 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15504 no_undefined_flag='${wl}-z,text'
15505 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015506 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015507 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015508
John Criswell47fdd832003-07-14 16:52:07 +000015509 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015510 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15511 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 +000015512 else
Reid Spencera773bd52006-08-04 18:18:08 +000015513 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15514 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 +000015515 fi
John Criswell47fdd832003-07-14 16:52:07 +000015516 ;;
15517
Reid Spencera773bd52006-08-04 18:18:08 +000015518 sysv5* | sco3.2v5* | sco5v6*)
15519 # Note: We can NOT use -z defs as we might desire, because we do not
15520 # link with -lc, and that would cause any symbols used from libc to
15521 # always be unresolved, which means just about no library would
15522 # ever link correctly. If we're not using GNU ld we use -z text
15523 # though, which does catch some bad symbols but isn't as heavy-handed
15524 # as -z defs.
15525 no_undefined_flag='${wl}-z,text'
15526 allow_undefined_flag='${wl}-z,nodefs'
15527 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015528 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015529 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15530 hardcode_libdir_separator=':'
15531 link_all_deplibs=yes
15532 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015533 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015534
15535 if test "$GCC" = yes; then
15536 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538 else
15539 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15540 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15541 fi
John Criswell47fdd832003-07-14 16:52:07 +000015542 ;;
15543
15544 uts4*)
15545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15546 hardcode_libdir_flag_spec='-L$libdir'
15547 hardcode_shlibpath_var=no
15548 ;;
15549
15550 *)
15551 ld_shlibs=no
15552 ;;
15553 esac
15554 fi
15555
Reid Spencera773bd52006-08-04 18:18:08 +000015556{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15557echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015558test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015559
John Criswell47fdd832003-07-14 16:52:07 +000015560#
15561# Do we need to explicitly link libc?
15562#
15563case "x$archive_cmds_need_lc" in
15564x|xyes)
15565 # Assume -lc should be added
15566 archive_cmds_need_lc=yes
15567
15568 if test "$enable_shared" = yes && test "$GCC" = yes; then
15569 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015570 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015571 # FIXME: we may have to deal with multi-command sequences.
15572 ;;
15573 '$CC '*)
15574 # Test whether the compiler implicitly links with -lc since on some
15575 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15576 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015577 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15578echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015579 $rm conftest*
15580 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15581
15582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15583 (eval $ac_compile) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } 2>conftest.err; then
15587 soname=conftest
15588 lib=conftest
15589 libobjs=conftest.$ac_objext
15590 deplibs=
15591 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015592 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015593 compiler_flags=-v
15594 linker_flags=-v
15595 verstring=
15596 output_objdir=.
15597 libname=conftest
15598 lt_save_allow_undefined_flag=$allow_undefined_flag
15599 allow_undefined_flag=
15600 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15601 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }
15605 then
15606 archive_cmds_need_lc=no
15607 else
15608 archive_cmds_need_lc=yes
15609 fi
15610 allow_undefined_flag=$lt_save_allow_undefined_flag
15611 else
15612 cat conftest.err 1>&5
15613 fi
15614 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015615 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15616echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015617 ;;
15618 esac
15619 fi
15620 ;;
15621esac
15622
Reid Spencera773bd52006-08-04 18:18:08 +000015623{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15624echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015625library_names_spec=
15626libname_spec='lib$name'
15627soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015628shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015629postinstall_cmds=
15630postuninstall_cmds=
15631finish_cmds=
15632finish_eval=
15633shlibpath_var=
15634shlibpath_overrides_runpath=unknown
15635version_type=none
15636dynamic_linker="$host_os ld.so"
15637sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015638if test "$GCC" = yes; then
15639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15641 # if the path contains ";" then we assume it to be the separator
15642 # otherwise default to the standard path separator (i.e. ":") - it is
15643 # assumed that no part of a normal pathname contains ";" but that should
15644 # okay in the real world where ";" in dirpaths is itself problematic.
15645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15646 else
15647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15648 fi
15649else
15650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15651fi
15652need_lib_prefix=unknown
15653hardcode_into_libs=no
15654
15655# when you set need_version to no, make sure it does not cause -set_version
15656# flags to be left without arguments
15657need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015658
15659case $host_os in
15660aix3*)
15661 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015663 shlibpath_var=LIBPATH
15664
John Criswell47fdd832003-07-14 16:52:07 +000015665 # AIX 3 has no versioning support, so we append a major version to the name.
15666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015667 ;;
15668
15669aix4* | aix5*)
15670 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015671 need_lib_prefix=no
15672 need_version=no
15673 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015674 if test "$host_cpu" = ia64; then
15675 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015677 shlibpath_var=LD_LIBRARY_PATH
15678 else
15679 # With GCC up to 2.95.x, collect2 would create an import file
15680 # for dependence libraries. The import file would start with
15681 # the line `#! .'. This would cause the generated library to
15682 # depend on `.', always an invalid library. This was fixed in
15683 # development snapshots of GCC prior to 3.0.
15684 case $host_os in
15685 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15687 echo ' yes '
15688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15689 :
15690 else
15691 can_build_shared=no
15692 fi
15693 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015694 esac
John Criswell47fdd832003-07-14 16:52:07 +000015695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15696 # soname into executable. Probably we can add versioning support to
15697 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015698 if test "$aix_use_runtimelinking" = yes; then
15699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15700 # instead of lib<name>.a to let people know that these are not
15701 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015703 else
15704 # We preserve .a as extension for shared libraries through AIX4.2
15705 # and later when we are not doing run time linking.
15706 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015707 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015708 fi
15709 shlibpath_var=LIBPATH
15710 fi
15711 ;;
15712
15713amigaos*)
15714 library_names_spec='$libname.ixlibrary $libname.a'
15715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015716 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 +000015717 ;;
15718
15719beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015720 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015721 dynamic_linker="$host_os ld.so"
15722 shlibpath_var=LIBRARY_PATH
15723 ;;
15724
Reid Spencer2706f8c2004-09-19 23:53:36 +000015725bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015726 version_type=linux
15727 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15729 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15731 shlibpath_var=LD_LIBRARY_PATH
15732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015734 # the default ld.so.conf also contains /usr/contrib/lib and
15735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15736 # libtool to hard-code these into programs
15737 ;;
15738
15739cygwin* | mingw* | pw32*)
15740 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015741 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015742 need_version=no
15743 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015744
John Criswell7a73b802003-06-30 21:59:07 +000015745 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015746 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015747 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015749 postinstall_cmds='base_file=`basename \${file}`~
15750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15751 dldir=$destdir/`dirname \$dlpath`~
15752 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015753 $install_prog $dir/$dlname \$dldir/$dlname~
15754 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15756 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015757 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015758 shlibpath_overrides_runpath=yes
15759
15760 case $host_os in
15761 cygwin*)
15762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15763 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 +000015764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015765 ;;
15766 mingw*)
15767 # MinGW DLLs use traditional 'lib' prefix
15768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15771 # It is most probably a Windows format PATH printed by
15772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15773 # path with ; separators, and with drive letters. We can handle the
15774 # drive letters (cygwin fileutils understands them), so leave them,
15775 # especially as we might pass files found there to a mingw objdump,
15776 # which wouldn't understand a cygwinified path. Ahh.
15777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15778 else
15779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15780 fi
15781 ;;
15782 pw32*)
15783 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015784 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 +000015785 ;;
15786 esac
John Criswell7a73b802003-06-30 21:59:07 +000015787 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015788
John Criswell7a73b802003-06-30 21:59:07 +000015789 *)
John Criswell47fdd832003-07-14 16:52:07 +000015790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015791 ;;
15792 esac
15793 dynamic_linker='Win32 ld.exe'
15794 # FIXME: first we should search . and the directory the executable is in
15795 shlibpath_var=PATH
15796 ;;
15797
15798darwin* | rhapsody*)
15799 dynamic_linker="$host_os dyld"
15800 version_type=darwin
15801 need_lib_prefix=no
15802 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015804 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015805 shlibpath_overrides_runpath=yes
15806 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015807 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015809 if test "$GCC" = yes; then
15810 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"`
15811 else
15812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015813 fi
15814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15815 ;;
15816
15817dgux*)
15818 version_type=linux
15819 need_lib_prefix=no
15820 need_version=no
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015824 ;;
15825
15826freebsd1*)
15827 dynamic_linker=no
15828 ;;
15829
Reid Spencer2706f8c2004-09-19 23:53:36 +000015830kfreebsd*-gnu)
15831 version_type=linux
15832 need_lib_prefix=no
15833 need_version=no
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=no
15838 hardcode_into_libs=yes
15839 dynamic_linker='GNU ld.so'
15840 ;;
15841
Reid Spencera773bd52006-08-04 18:18:08 +000015842freebsd* | dragonfly*)
15843 # DragonFly does not have aout. When/if they implement a new
15844 # versioning mechanism, adjust this.
15845 if test -x /usr/bin/objformat; then
15846 objformat=`/usr/bin/objformat`
15847 else
15848 case $host_os in
15849 freebsd[123]*) objformat=aout ;;
15850 *) objformat=elf ;;
15851 esac
15852 fi
John Criswell7a73b802003-06-30 21:59:07 +000015853 version_type=freebsd-$objformat
15854 case $version_type in
15855 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015857 need_version=no
15858 need_lib_prefix=no
15859 ;;
15860 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015862 need_version=yes
15863 ;;
15864 esac
15865 shlibpath_var=LD_LIBRARY_PATH
15866 case $host_os in
15867 freebsd2*)
15868 shlibpath_overrides_runpath=yes
15869 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015870 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015871 shlibpath_overrides_runpath=yes
15872 hardcode_into_libs=yes
15873 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015876 shlibpath_overrides_runpath=no
15877 hardcode_into_libs=yes
15878 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015879 freebsd*) # from 4.6 on
15880 shlibpath_overrides_runpath=yes
15881 hardcode_into_libs=yes
15882 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015883 esac
15884 ;;
15885
15886gnu*)
15887 version_type=linux
15888 need_lib_prefix=no
15889 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015892 shlibpath_var=LD_LIBRARY_PATH
15893 hardcode_into_libs=yes
15894 ;;
15895
15896hpux9* | hpux10* | hpux11*)
15897 # Give a soname corresponding to the major version so that dld.sl refuses to
15898 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015899 version_type=sunos
15900 need_lib_prefix=no
15901 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015902 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015903 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015904 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015905 hardcode_into_libs=yes
15906 dynamic_linker="$host_os dld.so"
15907 shlibpath_var=LD_LIBRARY_PATH
15908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910 soname_spec='${libname}${release}${shared_ext}$major'
15911 if test "X$HPUX_IA64_MODE" = X32; then
15912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15913 else
15914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15915 fi
15916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15917 ;;
15918 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015919 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015920 hardcode_into_libs=yes
15921 dynamic_linker="$host_os dld.sl"
15922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15928 ;;
15929 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015930 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015931 dynamic_linker="$host_os dld.sl"
15932 shlibpath_var=SHLIB_PATH
15933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 ;;
15937 esac
John Criswell7a73b802003-06-30 21:59:07 +000015938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15939 postinstall_cmds='chmod 555 $lib'
15940 ;;
15941
Reid Spencera773bd52006-08-04 18:18:08 +000015942interix3*)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=no
15951 hardcode_into_libs=yes
15952 ;;
15953
John Criswell47fdd832003-07-14 16:52:07 +000015954irix5* | irix6* | nonstopux*)
15955 case $host_os in
15956 nonstopux*) version_type=nonstopux ;;
15957 *)
15958 if test "$lt_cv_prog_gnu_ld" = yes; then
15959 version_type=linux
15960 else
15961 version_type=irix
15962 fi ;;
15963 esac
John Criswell7a73b802003-06-30 21:59:07 +000015964 need_lib_prefix=no
15965 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015966 soname_spec='${libname}${release}${shared_ext}$major'
15967 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 +000015968 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015969 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015970 libsuff= shlibsuff=
15971 ;;
15972 *)
15973 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975 libsuff= shlibsuff= libmagic=32-bit;;
15976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977 libsuff=32 shlibsuff=N32 libmagic=N32;;
15978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015980 *) libsuff= shlibsuff= libmagic=never-match;;
15981 esac
15982 ;;
15983 esac
15984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985 shlibpath_overrides_runpath=no
15986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000015988 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015989 ;;
15990
15991# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000015992linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000015993 dynamic_linker=no
15994 ;;
15995
15996# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000015997linux*)
John Criswell7a73b802003-06-30 21:59:07 +000015998 version_type=linux
15999 need_lib_prefix=no
16000 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16004 shlibpath_var=LD_LIBRARY_PATH
16005 shlibpath_overrides_runpath=no
16006 # This implies no fast_install, which is unacceptable.
16007 # Some rework will be needed to allow for fast_install
16008 # before this can be enabled.
16009 hardcode_into_libs=yes
16010
Reid Spencer2706f8c2004-09-19 23:53:36 +000016011 # Append ld.so.conf contents to the search path
16012 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016013 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 +000016014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16015 fi
16016
John Criswell7a73b802003-06-30 21:59:07 +000016017 # We used to test for /lib/ld.so.1 and disable shared libraries on
16018 # powerpc, because MkLinux only supported shared libraries with the
16019 # GNU dynamic linker. Since this was broken with cross compilers,
16020 # most powerpc-linux boxes support dynamic linking these days and
16021 # people can always --disable-shared, the test was removed, and we
16022 # assume the GNU/Linux dynamic linker is in use.
16023 dynamic_linker='GNU/Linux ld.so'
16024 ;;
16025
Reid Spencer2706f8c2004-09-19 23:53:36 +000016026knetbsd*-gnu)
16027 version_type=linux
16028 need_lib_prefix=no
16029 need_version=no
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 shlibpath_overrides_runpath=no
16034 hardcode_into_libs=yes
16035 dynamic_linker='GNU ld.so'
16036 ;;
16037
John Criswell7a73b802003-06-30 21:59:07 +000016038netbsd*)
16039 version_type=sunos
16040 need_lib_prefix=no
16041 need_version=no
16042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16045 dynamic_linker='NetBSD (a.out) ld.so'
16046 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016048 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016049 dynamic_linker='NetBSD ld.elf_so'
16050 fi
16051 shlibpath_var=LD_LIBRARY_PATH
16052 shlibpath_overrides_runpath=yes
16053 hardcode_into_libs=yes
16054 ;;
16055
16056newsos6)
16057 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059 shlibpath_var=LD_LIBRARY_PATH
16060 shlibpath_overrides_runpath=yes
16061 ;;
16062
Reid Spencer2706f8c2004-09-19 23:53:36 +000016063nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016064 version_type=linux
16065 need_lib_prefix=no
16066 need_version=no
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16071 ;;
16072
16073openbsd*)
16074 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016075 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016076 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16078 case $host_os in
16079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16080 *) need_version=no ;;
16081 esac
John Criswell47fdd832003-07-14 16:52:07 +000016082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16084 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016085 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 +000016086 case $host_os in
16087 openbsd2.[89] | openbsd2.[89].*)
16088 shlibpath_overrides_runpath=no
16089 ;;
16090 *)
16091 shlibpath_overrides_runpath=yes
16092 ;;
16093 esac
John Criswell7a73b802003-06-30 21:59:07 +000016094 else
16095 shlibpath_overrides_runpath=yes
16096 fi
John Criswell7a73b802003-06-30 21:59:07 +000016097 ;;
16098
16099os2*)
16100 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016101 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016102 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016103 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016104 dynamic_linker='OS/2 ld.exe'
16105 shlibpath_var=LIBPATH
16106 ;;
16107
16108osf3* | osf4* | osf5*)
16109 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016110 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016111 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016112 soname_spec='${libname}${release}${shared_ext}$major'
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016114 shlibpath_var=LD_LIBRARY_PATH
16115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16117 ;;
16118
John Criswell7a73b802003-06-30 21:59:07 +000016119solaris*)
16120 version_type=linux
16121 need_lib_prefix=no
16122 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16124 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016125 shlibpath_var=LD_LIBRARY_PATH
16126 shlibpath_overrides_runpath=yes
16127 hardcode_into_libs=yes
16128 # ldd complains unless libraries are executable
16129 postinstall_cmds='chmod +x $lib'
16130 ;;
16131
16132sunos4*)
16133 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 if test "$with_gnu_ld" = yes; then
16139 need_lib_prefix=no
16140 fi
16141 need_version=yes
16142 ;;
16143
Reid Spencera773bd52006-08-04 18:18:08 +000016144sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016145 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016148 shlibpath_var=LD_LIBRARY_PATH
16149 case $host_vendor in
16150 sni)
16151 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016152 need_lib_prefix=no
16153 export_dynamic_flag_spec='${wl}-Blargedynsym'
16154 runpath_var=LD_RUN_PATH
16155 ;;
16156 siemens)
16157 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016158 ;;
16159 motorola)
16160 need_lib_prefix=no
16161 need_version=no
16162 shlibpath_overrides_runpath=no
16163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16164 ;;
16165 esac
16166 ;;
16167
John Criswell7a73b802003-06-30 21:59:07 +000016168sysv4*MP*)
16169 if test -d /usr/nec ;then
16170 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16172 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016173 shlibpath_var=LD_LIBRARY_PATH
16174 fi
16175 ;;
16176
Reid Spencera773bd52006-08-04 18:18:08 +000016177sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16178 version_type=freebsd-elf
16179 need_lib_prefix=no
16180 need_version=no
16181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16182 soname_spec='${libname}${release}${shared_ext}$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 hardcode_into_libs=yes
16185 if test "$with_gnu_ld" = yes; then
16186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16187 shlibpath_overrides_runpath=no
16188 else
16189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16190 shlibpath_overrides_runpath=yes
16191 case $host_os in
16192 sco3.2v5*)
16193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16194 ;;
16195 esac
16196 fi
16197 sys_lib_dlsearch_path_spec='/usr/lib'
16198 ;;
16199
John Criswell47fdd832003-07-14 16:52:07 +000016200uts4*)
16201 version_type=linux
16202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16203 soname_spec='${libname}${release}${shared_ext}$major'
16204 shlibpath_var=LD_LIBRARY_PATH
16205 ;;
16206
John Criswell7a73b802003-06-30 21:59:07 +000016207*)
16208 dynamic_linker=no
16209 ;;
16210esac
Reid Spencera773bd52006-08-04 18:18:08 +000016211{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16212echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016213test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016214
Reid Spencera773bd52006-08-04 18:18:08 +000016215variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16216if test "$GCC" = yes; then
16217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16218fi
16219
16220{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16221echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016222hardcode_action=
16223if test -n "$hardcode_libdir_flag_spec" || \
16224 test -n "$runpath_var" || \
16225 test "X$hardcode_automatic" = "Xyes" ; then
16226
16227 # We can hardcode non-existant directories.
16228 if test "$hardcode_direct" != no &&
16229 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16230 # have to relink, otherwise we might link with an installed library
16231 # when we should be linking with a yet-to-be-installed one
16232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16233 test "$hardcode_minus_L" != no; then
16234 # Linking always hardcodes the temporary library directory.
16235 hardcode_action=relink
16236 else
16237 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16238 hardcode_action=immediate
16239 fi
16240else
16241 # We cannot hardcode anything, or else we can only hardcode existing
16242 # directories.
16243 hardcode_action=unsupported
16244fi
Reid Spencera773bd52006-08-04 18:18:08 +000016245{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16246echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016247
16248if test "$hardcode_action" = relink; then
16249 # Fast installation is not supported
16250 enable_fast_install=no
16251elif test "$shlibpath_overrides_runpath" = yes ||
16252 test "$enable_shared" = no; then
16253 # Fast installation is not necessary
16254 enable_fast_install=needless
16255fi
16256
16257striplib=
16258old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016259{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16260echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016261if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16262 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16263 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016264 { echo "$as_me:$LINENO: result: yes" >&5
16265echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016266else
16267# FIXME - insert some real tests, host_os isn't really good enough
16268 case $host_os in
16269 darwin*)
16270 if test -n "$STRIP" ; then
16271 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016272 { echo "$as_me:$LINENO: result: yes" >&5
16273echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016274 else
Reid Spencera773bd52006-08-04 18:18:08 +000016275 { echo "$as_me:$LINENO: result: no" >&5
16276echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016277fi
16278 ;;
16279 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016280 { echo "$as_me:$LINENO: result: no" >&5
16281echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016282 ;;
16283 esac
16284fi
16285
John Criswell7a73b802003-06-30 21:59:07 +000016286if test "x$enable_dlopen" != xyes; then
16287 enable_dlopen=unknown
16288 enable_dlopen_self=unknown
16289 enable_dlopen_self_static=unknown
16290else
16291 lt_cv_dlopen=no
16292 lt_cv_dlopen_libs=
16293
16294 case $host_os in
16295 beos*)
16296 lt_cv_dlopen="load_add_on"
16297 lt_cv_dlopen_libs=
16298 lt_cv_dlopen_self=yes
16299 ;;
16300
John Criswell47fdd832003-07-14 16:52:07 +000016301 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016302 lt_cv_dlopen="LoadLibrary"
16303 lt_cv_dlopen_libs=
16304 ;;
16305
John Criswell47fdd832003-07-14 16:52:07 +000016306 cygwin*)
16307 lt_cv_dlopen="dlopen"
16308 lt_cv_dlopen_libs=
16309 ;;
16310
16311 darwin*)
16312 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016313 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16314echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016315if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16316 echo $ECHO_N "(cached) $ECHO_C" >&6
16317else
16318 ac_check_lib_save_LIBS=$LIBS
16319LIBS="-ldl $LIBS"
16320cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016326
Reid Spencera773bd52006-08-04 18:18:08 +000016327/* Override any GCC internal prototype to avoid an error.
16328 Use char because int might match the return type of a GCC
16329 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016330#ifdef __cplusplus
16331extern "C"
16332#endif
John Criswell47fdd832003-07-14 16:52:07 +000016333char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016334int
16335main ()
16336{
Reid Spencera773bd52006-08-04 18:18:08 +000016337return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016343if { (ac_try="$ac_link"
16344case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16347esac
16348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16357 { (case "(($ac_try" in
16358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359 *) ac_try_echo=$ac_try;;
16360esac
16361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016363 ac_status=$?
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); }; } &&
16366 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016367 { (case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16370esac
16371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016373 ac_status=$?
16374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); }; }; then
16376 ac_cv_lib_dl_dlopen=yes
16377else
16378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016379sed 's/^/| /' conftest.$ac_ext >&5
16380
Reid Spencera773bd52006-08-04 18:18:08 +000016381 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016382fi
Reid Spencera773bd52006-08-04 18:18:08 +000016383
16384rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016385 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016386LIBS=$ac_check_lib_save_LIBS
16387fi
Reid Spencera773bd52006-08-04 18:18:08 +000016388{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16389echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016390if test $ac_cv_lib_dl_dlopen = yes; then
16391 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16392else
16393
16394 lt_cv_dlopen="dyld"
16395 lt_cv_dlopen_libs=
16396 lt_cv_dlopen_self=yes
16397
16398fi
16399
16400 ;;
16401
John Criswell7a73b802003-06-30 21:59:07 +000016402 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016403 { echo "$as_me:$LINENO: checking for shl_load" >&5
16404echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016405if test "${ac_cv_func_shl_load+set}" = set; then
16406 echo $ECHO_N "(cached) $ECHO_C" >&6
16407else
16408 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016409/* confdefs.h. */
16410_ACEOF
16411cat confdefs.h >>conftest.$ac_ext
16412cat >>conftest.$ac_ext <<_ACEOF
16413/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016414/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16416#define shl_load innocuous_shl_load
16417
John Criswell7a73b802003-06-30 21:59:07 +000016418/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016419 which can conflict with char shl_load (); below.
16420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16421 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016422
John Criswell0c38eaf2003-09-10 15:17:25 +000016423#ifdef __STDC__
16424# include <limits.h>
16425#else
16426# include <assert.h>
16427#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016428
16429#undef shl_load
16430
Reid Spencera773bd52006-08-04 18:18:08 +000016431/* Override any GCC internal prototype to avoid an error.
16432 Use char because int might match the return type of a GCC
16433 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016434#ifdef __cplusplus
16435extern "C"
16436#endif
John Criswell7a73b802003-06-30 21:59:07 +000016437char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016438/* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016441#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016442choke me
John Criswell7a73b802003-06-30 21:59:07 +000016443#endif
16444
John Criswell0c38eaf2003-09-10 15:17:25 +000016445int
16446main ()
16447{
Reid Spencera773bd52006-08-04 18:18:08 +000016448return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016454if { (ac_try="$ac_link"
16455case "(($ac_try" in
16456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457 *) ac_try_echo=$ac_try;;
16458esac
16459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16460 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016462 grep -v '^ *+' conftest.er1 >conftest.err
16463 rm -f conftest.er1
16464 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16468 { (case "(($ac_try" in
16469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16470 *) ac_try_echo=$ac_try;;
16471esac
16472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16473 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016474 ac_status=$?
16475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16476 (exit $ac_status); }; } &&
16477 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016478 { (case "(($ac_try" in
16479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16480 *) ac_try_echo=$ac_try;;
16481esac
16482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16483 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016484 ac_status=$?
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; }; then
16487 ac_cv_func_shl_load=yes
16488else
16489 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016490sed 's/^/| /' conftest.$ac_ext >&5
16491
Reid Spencera773bd52006-08-04 18:18:08 +000016492 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016493fi
Reid Spencera773bd52006-08-04 18:18:08 +000016494
16495rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016496 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016497fi
Reid Spencera773bd52006-08-04 18:18:08 +000016498{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16499echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016500if test $ac_cv_func_shl_load = yes; then
16501 lt_cv_dlopen="shl_load"
16502else
Reid Spencera773bd52006-08-04 18:18:08 +000016503 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16504echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016505if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16506 echo $ECHO_N "(cached) $ECHO_C" >&6
16507else
16508 ac_check_lib_save_LIBS=$LIBS
16509LIBS="-ldld $LIBS"
16510cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016511/* confdefs.h. */
16512_ACEOF
16513cat confdefs.h >>conftest.$ac_ext
16514cat >>conftest.$ac_ext <<_ACEOF
16515/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016516
Reid Spencera773bd52006-08-04 18:18:08 +000016517/* Override any GCC internal prototype to avoid an error.
16518 Use char because int might match the return type of a GCC
16519 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016520#ifdef __cplusplus
16521extern "C"
16522#endif
John Criswell7a73b802003-06-30 21:59:07 +000016523char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016524int
16525main ()
16526{
Reid Spencera773bd52006-08-04 18:18:08 +000016527return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016528 ;
16529 return 0;
16530}
16531_ACEOF
16532rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016533if { (ac_try="$ac_link"
16534case "(($ac_try" in
16535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16536 *) ac_try_echo=$ac_try;;
16537esac
16538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16539 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541 grep -v '^ *+' conftest.er1 >conftest.err
16542 rm -f conftest.er1
16543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16547 { (case "(($ac_try" in
16548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16549 *) ac_try_echo=$ac_try;;
16550esac
16551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16552 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560esac
16561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_lib_dld_shl_load=yes
16567else
16568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016569sed 's/^/| /' conftest.$ac_ext >&5
16570
Reid Spencera773bd52006-08-04 18:18:08 +000016571 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016572fi
Reid Spencera773bd52006-08-04 18:18:08 +000016573
16574rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016575 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016576LIBS=$ac_check_lib_save_LIBS
16577fi
Reid Spencera773bd52006-08-04 18:18:08 +000016578{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16579echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016580if test $ac_cv_lib_dld_shl_load = yes; then
16581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16582else
Reid Spencera773bd52006-08-04 18:18:08 +000016583 { echo "$as_me:$LINENO: checking for dlopen" >&5
16584echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016585if test "${ac_cv_func_dlopen+set}" = set; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587else
16588 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016589/* confdefs.h. */
16590_ACEOF
16591cat confdefs.h >>conftest.$ac_ext
16592cat >>conftest.$ac_ext <<_ACEOF
16593/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016594/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16596#define dlopen innocuous_dlopen
16597
John Criswell7a73b802003-06-30 21:59:07 +000016598/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016599 which can conflict with char dlopen (); below.
16600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16601 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016602
John Criswell0c38eaf2003-09-10 15:17:25 +000016603#ifdef __STDC__
16604# include <limits.h>
16605#else
16606# include <assert.h>
16607#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016608
16609#undef dlopen
16610
Reid Spencera773bd52006-08-04 18:18:08 +000016611/* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016614#ifdef __cplusplus
16615extern "C"
16616#endif
John Criswell7a73b802003-06-30 21:59:07 +000016617char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016618/* The GNU C library defines this for functions which it implements
16619 to always fail with ENOSYS. Some functions are actually named
16620 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016621#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016622choke me
John Criswell7a73b802003-06-30 21:59:07 +000016623#endif
16624
John Criswell0c38eaf2003-09-10 15:17:25 +000016625int
16626main ()
16627{
Reid Spencera773bd52006-08-04 18:18:08 +000016628return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016629 ;
16630 return 0;
16631}
16632_ACEOF
16633rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016634if { (ac_try="$ac_link"
16635case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_func_dlopen=yes
16668else
16669 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016670sed 's/^/| /' conftest.$ac_ext >&5
16671
Reid Spencera773bd52006-08-04 18:18:08 +000016672 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016673fi
Reid Spencera773bd52006-08-04 18:18:08 +000016674
16675rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016676 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016677fi
Reid Spencera773bd52006-08-04 18:18:08 +000016678{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16679echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016680if test $ac_cv_func_dlopen = yes; then
16681 lt_cv_dlopen="dlopen"
16682else
Reid Spencera773bd52006-08-04 18:18:08 +000016683 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16684echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016685if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16686 echo $ECHO_N "(cached) $ECHO_C" >&6
16687else
16688 ac_check_lib_save_LIBS=$LIBS
16689LIBS="-ldl $LIBS"
16690cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016691/* confdefs.h. */
16692_ACEOF
16693cat confdefs.h >>conftest.$ac_ext
16694cat >>conftest.$ac_ext <<_ACEOF
16695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016696
Reid Spencera773bd52006-08-04 18:18:08 +000016697/* Override any GCC internal prototype to avoid an error.
16698 Use char because int might match the return type of a GCC
16699 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016700#ifdef __cplusplus
16701extern "C"
16702#endif
John Criswell7a73b802003-06-30 21:59:07 +000016703char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016704int
16705main ()
16706{
Reid Spencera773bd52006-08-04 18:18:08 +000016707return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016708 ;
16709 return 0;
16710}
16711_ACEOF
16712rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016713if { (ac_try="$ac_link"
16714case "(($ac_try" in
16715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716 *) ac_try_echo=$ac_try;;
16717esac
16718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16727 { (case "(($ac_try" in
16728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16729 *) ac_try_echo=$ac_try;;
16730esac
16731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16732 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016737 { (case "(($ac_try" in
16738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739 *) ac_try_echo=$ac_try;;
16740esac
16741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016743 ac_status=$?
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; }; then
16746 ac_cv_lib_dl_dlopen=yes
16747else
16748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016749sed 's/^/| /' conftest.$ac_ext >&5
16750
Reid Spencera773bd52006-08-04 18:18:08 +000016751 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016752fi
Reid Spencera773bd52006-08-04 18:18:08 +000016753
16754rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016755 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016756LIBS=$ac_check_lib_save_LIBS
16757fi
Reid Spencera773bd52006-08-04 18:18:08 +000016758{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16759echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016760if test $ac_cv_lib_dl_dlopen = yes; then
16761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16762else
Reid Spencera773bd52006-08-04 18:18:08 +000016763 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16764echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016765if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 ac_check_lib_save_LIBS=$LIBS
16769LIBS="-lsvld $LIBS"
16770cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016776
Reid Spencera773bd52006-08-04 18:18:08 +000016777/* Override any GCC internal prototype to avoid an error.
16778 Use char because int might match the return type of a GCC
16779 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016780#ifdef __cplusplus
16781extern "C"
16782#endif
John Criswell7a73b802003-06-30 21:59:07 +000016783char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016784int
16785main ()
16786{
Reid Spencera773bd52006-08-04 18:18:08 +000016787return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016788 ;
16789 return 0;
16790}
16791_ACEOF
16792rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016793if { (ac_try="$ac_link"
16794case "(($ac_try" in
16795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16796 *) ac_try_echo=$ac_try;;
16797esac
16798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16799 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016800 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16807 { (case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16810esac
16811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016813 ac_status=$?
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); }; } &&
16816 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016817 { (case "(($ac_try" in
16818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819 *) ac_try_echo=$ac_try;;
16820esac
16821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16822 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016823 ac_status=$?
16824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16825 (exit $ac_status); }; }; then
16826 ac_cv_lib_svld_dlopen=yes
16827else
16828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016829sed 's/^/| /' conftest.$ac_ext >&5
16830
Reid Spencera773bd52006-08-04 18:18:08 +000016831 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016832fi
Reid Spencera773bd52006-08-04 18:18:08 +000016833
16834rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016835 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016836LIBS=$ac_check_lib_save_LIBS
16837fi
Reid Spencera773bd52006-08-04 18:18:08 +000016838{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16839echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016840if test $ac_cv_lib_svld_dlopen = yes; then
16841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16842else
Reid Spencera773bd52006-08-04 18:18:08 +000016843 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16844echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016845if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16846 echo $ECHO_N "(cached) $ECHO_C" >&6
16847else
16848 ac_check_lib_save_LIBS=$LIBS
16849LIBS="-ldld $LIBS"
16850cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016851/* confdefs.h. */
16852_ACEOF
16853cat confdefs.h >>conftest.$ac_ext
16854cat >>conftest.$ac_ext <<_ACEOF
16855/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016856
Reid Spencera773bd52006-08-04 18:18:08 +000016857/* Override any GCC internal prototype to avoid an error.
16858 Use char because int might match the return type of a GCC
16859 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016860#ifdef __cplusplus
16861extern "C"
16862#endif
John Criswell7a73b802003-06-30 21:59:07 +000016863char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016864int
16865main ()
16866{
Reid Spencera773bd52006-08-04 18:18:08 +000016867return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016868 ;
16869 return 0;
16870}
16871_ACEOF
16872rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016873if { (ac_try="$ac_link"
16874case "(($ac_try" in
16875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876 *) ac_try_echo=$ac_try;;
16877esac
16878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016880 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 grep -v '^ *+' conftest.er1 >conftest.err
16882 rm -f conftest.er1
16883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16887 { (case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016893 ac_status=$?
16894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895 (exit $ac_status); }; } &&
16896 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016897 { (case "(($ac_try" in
16898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899 *) ac_try_echo=$ac_try;;
16900esac
16901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016903 ac_status=$?
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16906 ac_cv_lib_dld_dld_link=yes
16907else
16908 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016909sed 's/^/| /' conftest.$ac_ext >&5
16910
Reid Spencera773bd52006-08-04 18:18:08 +000016911 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016912fi
Reid Spencera773bd52006-08-04 18:18:08 +000016913
16914rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016915 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016916LIBS=$ac_check_lib_save_LIBS
16917fi
Reid Spencera773bd52006-08-04 18:18:08 +000016918{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16919echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016920if test $ac_cv_lib_dld_dld_link = yes; then
16921 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16922fi
16923
16924
16925fi
16926
16927
16928fi
16929
16930
16931fi
16932
16933
16934fi
16935
16936
16937fi
16938
16939 ;;
16940 esac
16941
16942 if test "x$lt_cv_dlopen" != xno; then
16943 enable_dlopen=yes
16944 else
16945 enable_dlopen=no
16946 fi
16947
16948 case $lt_cv_dlopen in
16949 dlopen)
16950 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016951 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016952
16953 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016954 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016955
16956 save_LIBS="$LIBS"
16957 LIBS="$lt_cv_dlopen_libs $LIBS"
16958
Reid Spencera773bd52006-08-04 18:18:08 +000016959 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16960echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016961if test "${lt_cv_dlopen_self+set}" = set; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16963else
16964 if test "$cross_compiling" = yes; then :
16965 lt_cv_dlopen_self=cross
16966else
John Criswell47fdd832003-07-14 16:52:07 +000016967 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016968 lt_status=$lt_dlunknown
16969 cat > conftest.$ac_ext <<EOF
Reid Spencerac90d5e2006-11-16 23:17:27 +000016970#line 16970 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016971#include "confdefs.h"
16972
16973#if HAVE_DLFCN_H
16974#include <dlfcn.h>
16975#endif
16976
16977#include <stdio.h>
16978
16979#ifdef RTLD_GLOBAL
16980# define LT_DLGLOBAL RTLD_GLOBAL
16981#else
16982# ifdef DL_GLOBAL
16983# define LT_DLGLOBAL DL_GLOBAL
16984# else
16985# define LT_DLGLOBAL 0
16986# endif
16987#endif
16988
16989/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16990 find out it does not work in some platform. */
16991#ifndef LT_DLLAZY_OR_NOW
16992# ifdef RTLD_LAZY
16993# define LT_DLLAZY_OR_NOW RTLD_LAZY
16994# else
16995# ifdef DL_LAZY
16996# define LT_DLLAZY_OR_NOW DL_LAZY
16997# else
16998# ifdef RTLD_NOW
16999# define LT_DLLAZY_OR_NOW RTLD_NOW
17000# else
17001# ifdef DL_NOW
17002# define LT_DLLAZY_OR_NOW DL_NOW
17003# else
17004# define LT_DLLAZY_OR_NOW 0
17005# endif
17006# endif
17007# endif
17008# endif
17009#endif
17010
17011#ifdef __cplusplus
17012extern "C" void exit (int);
17013#endif
17014
17015void fnord() { int i=42;}
17016int main ()
17017{
17018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17019 int status = $lt_dlunknown;
17020
17021 if (self)
17022 {
17023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17025 /* dlclose (self); */
17026 }
Reid Spencera773bd52006-08-04 18:18:08 +000017027 else
17028 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017029
17030 exit (status);
17031}
17032EOF
17033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17034 (eval $ac_link) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017038 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017039 lt_status=$?
17040 case x$lt_status in
17041 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17042 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017043 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017044 esac
17045 else :
17046 # compilation failed
17047 lt_cv_dlopen_self=no
17048 fi
17049fi
17050rm -fr conftest*
17051
17052
17053fi
Reid Spencera773bd52006-08-04 18:18:08 +000017054{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17055echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017056
17057 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017058 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17059 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17060echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017061if test "${lt_cv_dlopen_self_static+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
17064 if test "$cross_compiling" = yes; then :
17065 lt_cv_dlopen_self_static=cross
17066else
John Criswell47fdd832003-07-14 16:52:07 +000017067 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017068 lt_status=$lt_dlunknown
17069 cat > conftest.$ac_ext <<EOF
Reid Spencerac90d5e2006-11-16 23:17:27 +000017070#line 17070 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017071#include "confdefs.h"
17072
17073#if HAVE_DLFCN_H
17074#include <dlfcn.h>
17075#endif
17076
17077#include <stdio.h>
17078
17079#ifdef RTLD_GLOBAL
17080# define LT_DLGLOBAL RTLD_GLOBAL
17081#else
17082# ifdef DL_GLOBAL
17083# define LT_DLGLOBAL DL_GLOBAL
17084# else
17085# define LT_DLGLOBAL 0
17086# endif
17087#endif
17088
17089/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17090 find out it does not work in some platform. */
17091#ifndef LT_DLLAZY_OR_NOW
17092# ifdef RTLD_LAZY
17093# define LT_DLLAZY_OR_NOW RTLD_LAZY
17094# else
17095# ifdef DL_LAZY
17096# define LT_DLLAZY_OR_NOW DL_LAZY
17097# else
17098# ifdef RTLD_NOW
17099# define LT_DLLAZY_OR_NOW RTLD_NOW
17100# else
17101# ifdef DL_NOW
17102# define LT_DLLAZY_OR_NOW DL_NOW
17103# else
17104# define LT_DLLAZY_OR_NOW 0
17105# endif
17106# endif
17107# endif
17108# endif
17109#endif
17110
17111#ifdef __cplusplus
17112extern "C" void exit (int);
17113#endif
17114
17115void fnord() { int i=42;}
17116int main ()
17117{
17118 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17119 int status = $lt_dlunknown;
17120
17121 if (self)
17122 {
17123 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17124 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17125 /* dlclose (self); */
17126 }
Reid Spencera773bd52006-08-04 18:18:08 +000017127 else
17128 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017129
17130 exit (status);
17131}
17132EOF
17133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17134 (eval $ac_link) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017138 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017139 lt_status=$?
17140 case x$lt_status in
17141 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17142 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017143 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017144 esac
17145 else :
17146 # compilation failed
17147 lt_cv_dlopen_self_static=no
17148 fi
17149fi
17150rm -fr conftest*
17151
17152
17153fi
Reid Spencera773bd52006-08-04 18:18:08 +000017154{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17155echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017156 fi
17157
17158 CPPFLAGS="$save_CPPFLAGS"
17159 LDFLAGS="$save_LDFLAGS"
17160 LIBS="$save_LIBS"
17161 ;;
17162 esac
17163
17164 case $lt_cv_dlopen_self in
17165 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17166 *) enable_dlopen_self=unknown ;;
17167 esac
17168
17169 case $lt_cv_dlopen_self_static in
17170 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17171 *) enable_dlopen_self_static=unknown ;;
17172 esac
17173fi
17174
17175
Reid Spencera773bd52006-08-04 18:18:08 +000017176# Report which library types will actually be built
17177{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17178echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17179{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17180echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017181
Reid Spencera773bd52006-08-04 18:18:08 +000017182{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17183echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017184test "$can_build_shared" = "no" && enable_shared=no
17185
17186# On AIX, shared libraries and static libraries use the same namespace, and
17187# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017188case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017189aix3*)
17190 test "$enable_shared" = yes && enable_static=no
17191 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017192 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017193 postinstall_cmds='$RANLIB $lib'
17194 fi
17195 ;;
17196
Reid Spencer2706f8c2004-09-19 23:53:36 +000017197aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017198 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17199 test "$enable_shared" = yes && enable_static=no
17200 fi
John Criswell7a73b802003-06-30 21:59:07 +000017201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017202esac
Reid Spencera773bd52006-08-04 18:18:08 +000017203{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17204echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017205
Reid Spencera773bd52006-08-04 18:18:08 +000017206{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17207echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017208# Make sure either enable_shared or enable_static is yes.
17209test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017210{ echo "$as_me:$LINENO: result: $enable_static" >&5
17211echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017212
17213# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017214# libtool distribution, otherwise you forgot to ship ltmain.sh
17215# with your package, and you will get complaints that there are
17216# no rules to generate ltmain.sh.
17217if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017218 # See if we are running on zsh, and set the options which allow our commands through
17219 # without removal of \ escapes.
17220 if test -n "${ZSH_VERSION+set}" ; then
17221 setopt NO_GLOB_SUBST
17222 fi
John Criswell7a73b802003-06-30 21:59:07 +000017223 # Now quote all the things that may contain metacharacters while being
17224 # careful not to overquote the AC_SUBSTed values. We take copies of the
17225 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017226 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 +000017227 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017228 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17229 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17230 deplibs_check_method reload_flag reload_cmds need_locks \
17231 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17232 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017233 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017234 old_postinstall_cmds old_postuninstall_cmds \
17235 compiler \
17236 CC \
17237 LD \
17238 lt_prog_compiler_wl \
17239 lt_prog_compiler_pic \
17240 lt_prog_compiler_static \
17241 lt_prog_compiler_no_builtin_flag \
17242 export_dynamic_flag_spec \
17243 thread_safe_flag_spec \
17244 whole_archive_flag_spec \
17245 enable_shared_with_static_runtimes \
17246 old_archive_cmds \
17247 old_archive_from_new_cmds \
17248 predep_objects \
17249 postdep_objects \
17250 predeps \
17251 postdeps \
17252 compiler_lib_search_path \
17253 archive_cmds \
17254 archive_expsym_cmds \
17255 postinstall_cmds \
17256 postuninstall_cmds \
17257 old_archive_from_expsyms_cmds \
17258 allow_undefined_flag \
17259 no_undefined_flag \
17260 export_symbols_cmds \
17261 hardcode_libdir_flag_spec \
17262 hardcode_libdir_flag_spec_ld \
17263 hardcode_libdir_separator \
17264 hardcode_automatic \
17265 module_cmds \
17266 module_expsym_cmds \
17267 lt_cv_prog_compiler_c_o \
17268 exclude_expsyms \
17269 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017270
17271 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017272 old_archive_cmds | \
17273 old_archive_from_new_cmds | \
17274 archive_cmds | \
17275 archive_expsym_cmds | \
17276 module_cmds | \
17277 module_expsym_cmds | \
17278 old_archive_from_expsyms_cmds | \
17279 export_symbols_cmds | \
17280 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017281 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017282 old_postinstall_cmds | old_postuninstall_cmds | \
17283 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017284 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017285 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 +000017286 ;;
17287 *)
17288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17289 ;;
17290 esac
17291 done
17292
John Criswell47fdd832003-07-14 16:52:07 +000017293 case $lt_echo in
17294 *'\$0 --fallback-echo"')
17295 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17296 ;;
17297 esac
17298
17299cfgfile="${ofile}T"
17300 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17301 $rm -f "$cfgfile"
17302 { echo "$as_me:$LINENO: creating $ofile" >&5
17303echo "$as_me: creating $ofile" >&6;}
17304
17305 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017306#! $SHELL
17307
John Criswell47fdd832003-07-14 16:52:07 +000017308# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017309# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17310# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17311#
John Criswell47fdd832003-07-14 16:52:07 +000017312# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17313# Free Software Foundation, Inc.
17314#
17315# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017316# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17317#
17318# This program is free software; you can redistribute it and/or modify
17319# it under the terms of the GNU General Public License as published by
17320# the Free Software Foundation; either version 2 of the License, or
17321# (at your option) any later version.
17322#
17323# This program is distributed in the hope that it will be useful, but
17324# WITHOUT ANY WARRANTY; without even the implied warranty of
17325# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17326# General Public License for more details.
17327#
17328# You should have received a copy of the GNU General Public License
17329# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017330# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017331#
17332# As a special exception to the GNU General Public License, if you
17333# distribute this file as part of a program that contains a
17334# configuration script generated by Autoconf, you may include it under
17335# the same distribution terms that you use for the rest of that program.
17336
John Criswell47fdd832003-07-14 16:52:07 +000017337# A sed program that does not truncate output.
17338SED=$lt_SED
17339
John Criswell7a73b802003-06-30 21:59:07 +000017340# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017341Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017342
17343# The HP-UX ksh and POSIX shell print the target directory to stdout
17344# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017345(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017346
John Criswell47fdd832003-07-14 16:52:07 +000017347# The names of the tagged configurations supported by this script.
17348available_tags=
17349
John Criswell7a73b802003-06-30 21:59:07 +000017350# ### BEGIN LIBTOOL CONFIG
17351
17352# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17353
17354# Shell to use when invoking shell scripts.
17355SHELL=$lt_SHELL
17356
17357# Whether or not to build shared libraries.
17358build_libtool_libs=$enable_shared
17359
17360# Whether or not to build static libraries.
17361build_old_libs=$enable_static
17362
17363# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017364build_libtool_need_lc=$archive_cmds_need_lc
17365
17366# Whether or not to disallow shared libs when runtime libs are static
17367allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017368
17369# Whether or not to optimize for fast installation.
17370fast_install=$enable_fast_install
17371
17372# The host system.
17373host_alias=$host_alias
17374host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017375host_os=$host_os
17376
17377# The build system.
17378build_alias=$build_alias
17379build=$build
17380build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017381
17382# An echo program that does not interpret backslashes.
17383echo=$lt_echo
17384
17385# The archiver.
17386AR=$lt_AR
17387AR_FLAGS=$lt_AR_FLAGS
17388
John Criswell47fdd832003-07-14 16:52:07 +000017389# A C compiler.
17390LTCC=$lt_LTCC
17391
Reid Spencera773bd52006-08-04 18:18:08 +000017392# LTCC compiler flags.
17393LTCFLAGS=$lt_LTCFLAGS
17394
John Criswell47fdd832003-07-14 16:52:07 +000017395# A language-specific compiler.
17396CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017397
17398# Is the compiler the GNU C compiler?
17399with_gcc=$GCC
17400
John Criswell47fdd832003-07-14 16:52:07 +000017401# An ERE matcher.
17402EGREP=$lt_EGREP
17403
John Criswell7a73b802003-06-30 21:59:07 +000017404# The linker used to build libraries.
17405LD=$lt_LD
17406
17407# Whether we need hard or soft links.
17408LN_S=$lt_LN_S
17409
17410# A BSD-compatible nm program.
17411NM=$lt_NM
17412
17413# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017414STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017415
17416# Used to examine libraries when file_magic_cmd begins "file"
17417MAGIC_CMD=$MAGIC_CMD
17418
17419# Used on cygwin: DLL creation program.
17420DLLTOOL="$DLLTOOL"
17421
17422# Used on cygwin: object dumper.
17423OBJDUMP="$OBJDUMP"
17424
17425# Used on cygwin: assembler.
17426AS="$AS"
17427
17428# The name of the directory that contains temporary libtool files.
17429objdir=$objdir
17430
17431# How to create reloadable object files.
17432reload_flag=$lt_reload_flag
17433reload_cmds=$lt_reload_cmds
17434
17435# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017436wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017437
17438# Object file suffix (normally "o").
17439objext="$ac_objext"
17440
17441# Old archive suffix (normally "a").
17442libext="$libext"
17443
John Criswell47fdd832003-07-14 16:52:07 +000017444# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017445shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017446
John Criswell7a73b802003-06-30 21:59:07 +000017447# Executable file suffix (normally "").
17448exeext="$exeext"
17449
17450# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017451pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017452pic_mode=$pic_mode
17453
John Criswell47fdd832003-07-14 16:52:07 +000017454# What is the maximum length of a command?
17455max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017456
John Criswell47fdd832003-07-14 16:52:07 +000017457# Does compiler simultaneously support -c and -o options?
17458compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017459
Reid Spencera773bd52006-08-04 18:18:08 +000017460# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017461need_locks=$lt_need_locks
17462
17463# Do we need the lib prefix for modules?
17464need_lib_prefix=$need_lib_prefix
17465
17466# Do we need a version for libraries?
17467need_version=$need_version
17468
17469# Whether dlopen is supported.
17470dlopen_support=$enable_dlopen
17471
17472# Whether dlopen of programs is supported.
17473dlopen_self=$enable_dlopen_self
17474
17475# Whether dlopen of statically linked programs is supported.
17476dlopen_self_static=$enable_dlopen_self_static
17477
17478# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017479link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017480
17481# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017482no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017483
17484# Compiler flag to allow reflexive dlopens.
17485export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17486
17487# Compiler flag to generate shared objects directly from archives.
17488whole_archive_flag_spec=$lt_whole_archive_flag_spec
17489
17490# Compiler flag to generate thread-safe objects.
17491thread_safe_flag_spec=$lt_thread_safe_flag_spec
17492
17493# Library versioning type.
17494version_type=$version_type
17495
17496# Format of library name prefix.
17497libname_spec=$lt_libname_spec
17498
17499# List of archive names. First name is the real one, the rest are links.
17500# The last name is the one that the linker finds with -lNAME.
17501library_names_spec=$lt_library_names_spec
17502
17503# The coded name of the library, if different from the real name.
17504soname_spec=$lt_soname_spec
17505
17506# Commands used to build and install an old-style archive.
17507RANLIB=$lt_RANLIB
17508old_archive_cmds=$lt_old_archive_cmds
17509old_postinstall_cmds=$lt_old_postinstall_cmds
17510old_postuninstall_cmds=$lt_old_postuninstall_cmds
17511
17512# Create an old-style archive from a shared archive.
17513old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17514
17515# Create a temporary old-style archive to link instead of a shared archive.
17516old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17517
17518# Commands used to build and install a shared archive.
17519archive_cmds=$lt_archive_cmds
17520archive_expsym_cmds=$lt_archive_expsym_cmds
17521postinstall_cmds=$lt_postinstall_cmds
17522postuninstall_cmds=$lt_postuninstall_cmds
17523
John Criswell47fdd832003-07-14 16:52:07 +000017524# Commands used to build a loadable module (assumed same as above if empty)
17525module_cmds=$lt_module_cmds
17526module_expsym_cmds=$lt_module_expsym_cmds
17527
John Criswell7a73b802003-06-30 21:59:07 +000017528# Commands to strip libraries.
17529old_striplib=$lt_old_striplib
17530striplib=$lt_striplib
17531
John Criswell47fdd832003-07-14 16:52:07 +000017532# Dependencies to place before the objects being linked to create a
17533# shared library.
17534predep_objects=$lt_predep_objects
17535
17536# Dependencies to place after the objects being linked to create a
17537# shared library.
17538postdep_objects=$lt_postdep_objects
17539
17540# Dependencies to place before the objects being linked to create a
17541# shared library.
17542predeps=$lt_predeps
17543
17544# Dependencies to place after the objects being linked to create a
17545# shared library.
17546postdeps=$lt_postdeps
17547
17548# The library search path used internally by the compiler when linking
17549# a shared library.
17550compiler_lib_search_path=$lt_compiler_lib_search_path
17551
John Criswell7a73b802003-06-30 21:59:07 +000017552# Method to check whether dependent libraries are shared objects.
17553deplibs_check_method=$lt_deplibs_check_method
17554
17555# Command to use when deplibs_check_method == file_magic.
17556file_magic_cmd=$lt_file_magic_cmd
17557
17558# Flag that allows shared libraries with undefined symbols to be built.
17559allow_undefined_flag=$lt_allow_undefined_flag
17560
17561# Flag that forces no undefined symbols.
17562no_undefined_flag=$lt_no_undefined_flag
17563
17564# Commands used to finish a libtool library installation in a directory.
17565finish_cmds=$lt_finish_cmds
17566
17567# Same as above, but a single script fragment to be evaled but not shown.
17568finish_eval=$lt_finish_eval
17569
17570# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017571global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017572
17573# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017574global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017575
17576# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017577global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017578
17579# This is the shared library runtime path variable.
17580runpath_var=$runpath_var
17581
17582# This is the shared library path variable.
17583shlibpath_var=$shlibpath_var
17584
17585# Is shlibpath searched before the hard-coded library search path?
17586shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17587
17588# How to hardcode a shared library path into an executable.
17589hardcode_action=$hardcode_action
17590
17591# Whether we should hardcode library paths into libraries.
17592hardcode_into_libs=$hardcode_into_libs
17593
17594# Flag to hardcode \$libdir into a binary during linking.
17595# This must work even if \$libdir does not exist.
17596hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17597
John Criswell47fdd832003-07-14 16:52:07 +000017598# If ld is used when linking, flag to hardcode \$libdir into
17599# a binary during linking. This must work even if \$libdir does
17600# not exist.
17601hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17602
John Criswell7a73b802003-06-30 21:59:07 +000017603# Whether we need a single -rpath flag with a separated argument.
17604hardcode_libdir_separator=$lt_hardcode_libdir_separator
17605
John Criswell47fdd832003-07-14 16:52:07 +000017606# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017607# resulting binary.
17608hardcode_direct=$hardcode_direct
17609
17610# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17611# resulting binary.
17612hardcode_minus_L=$hardcode_minus_L
17613
17614# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17615# the resulting binary.
17616hardcode_shlibpath_var=$hardcode_shlibpath_var
17617
John Criswell47fdd832003-07-14 16:52:07 +000017618# Set to yes if building a shared library automatically hardcodes DIR into the library
17619# and all subsequent libraries and executables linked against it.
17620hardcode_automatic=$hardcode_automatic
17621
John Criswell7a73b802003-06-30 21:59:07 +000017622# Variables whose values should be saved in libtool wrapper scripts and
17623# restored at relink time.
17624variables_saved_for_relink="$variables_saved_for_relink"
17625
17626# Whether libtool must link a program against all its dependency libraries.
17627link_all_deplibs=$link_all_deplibs
17628
17629# Compile-time system search path for libraries
17630sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17631
17632# Run-time system search path for libraries
17633sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17634
17635# Fix the shell variable \$srcfile for the compiler.
17636fix_srcfile_path="$fix_srcfile_path"
17637
17638# Set to yes if exported symbols are required.
17639always_export_symbols=$always_export_symbols
17640
17641# The commands to list exported symbols.
17642export_symbols_cmds=$lt_export_symbols_cmds
17643
17644# The commands to extract the exported symbol list from a shared archive.
17645extract_expsyms_cmds=$lt_extract_expsyms_cmds
17646
17647# Symbols that should not be listed in the preloaded symbols.
17648exclude_expsyms=$lt_exclude_expsyms
17649
17650# Symbols that must always be exported.
17651include_expsyms=$lt_include_expsyms
17652
17653# ### END LIBTOOL CONFIG
17654
17655__EOF__
17656
John Criswell47fdd832003-07-14 16:52:07 +000017657
John Criswell7a73b802003-06-30 21:59:07 +000017658 case $host_os in
17659 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017660 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017661
17662# AIX sometimes has problems with the GCC collect2 program. For some
17663# reason, if we set the COLLECT_NAMES environment variable, the problems
17664# vanish in a puff of smoke.
17665if test "X${COLLECT_NAMES+set}" != Xset; then
17666 COLLECT_NAMES=
17667 export COLLECT_NAMES
17668fi
17669EOF
17670 ;;
17671 esac
17672
John Criswell7a73b802003-06-30 21:59:07 +000017673 # We use sed instead of cat because bash on DJGPP gets confused if
17674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17675 # text mode, it properly converts lines to CR/LF. This bash problem
17676 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017677 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017678
John Criswell47fdd832003-07-14 16:52:07 +000017679 mv -f "$cfgfile" "$ofile" || \
17680 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017681 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017682
17683else
17684 # If there is no Makefile yet, we rely on a make rule to execute
17685 # `config.status --recheck' to rerun these tests and create the
17686 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017687 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17688 if test -f "$ltmain_in"; then
17689 test -f Makefile && make "$ltmain"
17690 fi
John Criswell7a73b802003-06-30 21:59:07 +000017691fi
John Criswell7a73b802003-06-30 21:59:07 +000017692
17693
John Criswell47fdd832003-07-14 16:52:07 +000017694ac_ext=c
17695ac_cpp='$CPP $CPPFLAGS'
17696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17698ac_compiler_gnu=$ac_cv_c_compiler_gnu
17699
17700CC="$lt_save_CC"
17701
17702
Reid Spencera773bd52006-08-04 18:18:08 +000017703# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017704if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017705 withval=$with_tags; tagnames="$withval"
17706fi
17707
John Criswell47fdd832003-07-14 16:52:07 +000017708
17709if test -f "$ltmain" && test -n "$tagnames"; then
17710 if test ! -f "${ofile}"; then
17711 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17712echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17713 fi
17714
17715 if test -z "$LTCC"; then
17716 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17717 if test -z "$LTCC"; then
17718 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17719echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17720 else
17721 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17722echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17723 fi
17724 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017725 if test -z "$LTCFLAGS"; then
17726 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17727 fi
John Criswell47fdd832003-07-14 16:52:07 +000017728
17729 # Extract list of available tagged configurations in $ofile.
17730 # Note that this assumes the entire list is on one line.
17731 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17732
17733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17734 for tagname in $tagnames; do
17735 IFS="$lt_save_ifs"
17736 # Check whether tagname contains only valid characters
17737 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17738 "") ;;
17739 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17740echo "$as_me: error: invalid tag name: $tagname" >&2;}
17741 { (exit 1); exit 1; }; }
17742 ;;
17743 esac
17744
17745 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17746 then
17747 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17748echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17749 { (exit 1); exit 1; }; }
17750 fi
17751
17752 # Update the list of available tags.
17753 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017754 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017755
17756 case $tagname in
17757 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17759 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17760 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017761 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017762ac_cpp='$CXXCPP $CPPFLAGS'
17763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17766
17767
17768
17769
17770archive_cmds_need_lc_CXX=no
17771allow_undefined_flag_CXX=
17772always_export_symbols_CXX=no
17773archive_expsym_cmds_CXX=
17774export_dynamic_flag_spec_CXX=
17775hardcode_direct_CXX=no
17776hardcode_libdir_flag_spec_CXX=
17777hardcode_libdir_flag_spec_ld_CXX=
17778hardcode_libdir_separator_CXX=
17779hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017780hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017781hardcode_automatic_CXX=no
17782module_cmds_CXX=
17783module_expsym_cmds_CXX=
17784link_all_deplibs_CXX=unknown
17785old_archive_cmds_CXX=$old_archive_cmds
17786no_undefined_flag_CXX=
17787whole_archive_flag_spec_CXX=
17788enable_shared_with_static_runtimes_CXX=no
17789
17790# Dependencies to place before and after the object being linked:
17791predep_objects_CXX=
17792postdep_objects_CXX=
17793predeps_CXX=
17794postdeps_CXX=
17795compiler_lib_search_path_CXX=
17796
17797# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017798ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017799
17800# Object file extension for compiled C++ test sources.
17801objext=o
17802objext_CXX=$objext
17803
17804# Code to be used in simple compile tests
17805lt_simple_compile_test_code="int some_variable = 0;\n"
17806
17807# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017808lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017809
17810# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17811
17812# If no C compiler was specified, use CC.
17813LTCC=${LTCC-"$CC"}
17814
Reid Spencera773bd52006-08-04 18:18:08 +000017815# If no C compiler flags were specified, use CFLAGS.
17816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17817
John Criswell47fdd832003-07-14 16:52:07 +000017818# Allow CC to be a program name with arguments.
17819compiler=$CC
17820
17821
Reid Spencera773bd52006-08-04 18:18:08 +000017822# save warnings/boilerplate of simple test code
17823ac_outfile=conftest.$ac_objext
17824printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17826_lt_compiler_boilerplate=`cat conftest.err`
17827$rm conftest*
17828
17829ac_outfile=conftest.$ac_objext
17830printf "$lt_simple_link_test_code" >conftest.$ac_ext
17831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17832_lt_linker_boilerplate=`cat conftest.err`
17833$rm conftest*
17834
17835
John Criswell47fdd832003-07-14 16:52:07 +000017836# Allow CC to be a program name with arguments.
17837lt_save_CC=$CC
17838lt_save_LD=$LD
17839lt_save_GCC=$GCC
17840GCC=$GXX
17841lt_save_with_gnu_ld=$with_gnu_ld
17842lt_save_path_LD=$lt_cv_path_LD
17843if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17844 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17845else
Reid Spencera773bd52006-08-04 18:18:08 +000017846 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017847fi
17848if test -n "${lt_cv_path_LDCXX+set}"; then
17849 lt_cv_path_LD=$lt_cv_path_LDCXX
17850else
Reid Spencera773bd52006-08-04 18:18:08 +000017851 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017852fi
17853test -z "${LDCXX+set}" || LD=$LDCXX
17854CC=${CXX-"c++"}
17855compiler=$CC
17856compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017857for cc_temp in $compiler""; do
17858 case $cc_temp in
17859 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17860 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17861 \-*) ;;
17862 *) break;;
17863 esac
17864done
17865cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17866
John Criswell47fdd832003-07-14 16:52:07 +000017867
17868# We don't want -fno-exception wen compiling C++ code, so set the
17869# no_builtin_flag separately
17870if test "$GXX" = yes; then
17871 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17872else
17873 lt_prog_compiler_no_builtin_flag_CXX=
17874fi
17875
17876if test "$GXX" = yes; then
17877 # Set up default GNU C++ configuration
17878
17879
Reid Spencera773bd52006-08-04 18:18:08 +000017880# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017881if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017882 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017883else
17884 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017885fi
17886
John Criswell47fdd832003-07-14 16:52:07 +000017887ac_prog=ld
17888if test "$GCC" = yes; then
17889 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017890 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17891echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017892 case $host in
17893 *-*-mingw*)
17894 # gcc leaves a trailing carriage return which upsets mingw
17895 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17896 *)
17897 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17898 esac
17899 case $ac_prog in
17900 # Accept absolute paths.
17901 [\\/]* | ?:[\\/]*)
17902 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017903 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017904 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17905 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17906 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17907 done
17908 test -z "$LD" && LD="$ac_prog"
17909 ;;
17910 "")
17911 # If it fails, then pretend we aren't using GCC.
17912 ac_prog=ld
17913 ;;
17914 *)
17915 # If it is relative, then search for the first ld in PATH.
17916 with_gnu_ld=unknown
17917 ;;
17918 esac
17919elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017920 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17921echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017922else
Reid Spencera773bd52006-08-04 18:18:08 +000017923 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17924echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017925fi
17926if test "${lt_cv_path_LD+set}" = set; then
17927 echo $ECHO_N "(cached) $ECHO_C" >&6
17928else
17929 if test -z "$LD"; then
17930 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17931 for ac_dir in $PATH; do
17932 IFS="$lt_save_ifs"
17933 test -z "$ac_dir" && ac_dir=.
17934 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17935 lt_cv_path_LD="$ac_dir/$ac_prog"
17936 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017937 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017938 # Break only if it was the GNU/non-GNU ld that we prefer.
17939 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17940 *GNU* | *'with BFD'*)
17941 test "$with_gnu_ld" != no && break
17942 ;;
17943 *)
17944 test "$with_gnu_ld" != yes && break
17945 ;;
17946 esac
17947 fi
17948 done
17949 IFS="$lt_save_ifs"
17950else
17951 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17952fi
17953fi
17954
17955LD="$lt_cv_path_LD"
17956if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017957 { echo "$as_me:$LINENO: result: $LD" >&5
17958echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017959else
Reid Spencera773bd52006-08-04 18:18:08 +000017960 { echo "$as_me:$LINENO: result: no" >&5
17961echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017962fi
17963test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17964echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17965 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017966{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17967echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017968if test "${lt_cv_prog_gnu_ld+set}" = set; then
17969 echo $ECHO_N "(cached) $ECHO_C" >&6
17970else
Reid Spencera773bd52006-08-04 18:18:08 +000017971 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017972case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017973*GNU* | *'with BFD'*)
17974 lt_cv_prog_gnu_ld=yes
17975 ;;
17976*)
17977 lt_cv_prog_gnu_ld=no
17978 ;;
17979esac
17980fi
Reid Spencera773bd52006-08-04 18:18:08 +000017981{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
17982echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017983with_gnu_ld=$lt_cv_prog_gnu_ld
17984
17985
17986
17987 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17988 # archiving commands below assume that GNU ld is being used.
17989 if test "$with_gnu_ld" = yes; then
17990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17991 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'
17992
17993 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17995
17996 # If archive_cmds runs LD, not CC, wlarc should be empty
17997 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17998 # investigate it a little bit more. (MM)
17999 wlarc='${wl}'
18000
18001 # ancient GNU ld didn't support --whole-archive et. al.
18002 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18003 grep 'no-whole-archive' > /dev/null; then
18004 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18005 else
18006 whole_archive_flag_spec_CXX=
18007 fi
18008 else
18009 with_gnu_ld=no
18010 wlarc=
18011
18012 # A generic and very simple default shared library creation
18013 # command for GNU C++ for the case where it uses the native
18014 # linker, instead of GNU ld. If possible, this setting should
18015 # overridden to take advantage of the native linker features on
18016 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018017 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018018 fi
18019
18020 # Commands to make compiler produce verbose output that lists
18021 # what "hidden" libraries, object files and flags are used when
18022 # linking a shared library.
18023 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18024
18025else
18026 GXX=no
18027 with_gnu_ld=no
18028 wlarc=
18029fi
18030
18031# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018032{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18033echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018034ld_shlibs_CXX=yes
18035case $host_os in
18036 aix3*)
18037 # FIXME: insert proper C++ library support
18038 ld_shlibs_CXX=no
18039 ;;
18040 aix4* | aix5*)
18041 if test "$host_cpu" = ia64; then
18042 # On IA64, the linker does run time linking by default, so we don't
18043 # have to do anything special.
18044 aix_use_runtimelinking=no
18045 exp_sym_flag='-Bexport'
18046 no_entry_flag=""
18047 else
18048 aix_use_runtimelinking=no
18049
18050 # Test if we are trying to use run time linking or normal
18051 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18052 # need to do runtime linking.
18053 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18054 for ld_flag in $LDFLAGS; do
18055 case $ld_flag in
18056 *-brtl*)
18057 aix_use_runtimelinking=yes
18058 break
18059 ;;
18060 esac
18061 done
Reid Spencera773bd52006-08-04 18:18:08 +000018062 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018063 esac
18064
18065 exp_sym_flag='-bexport'
18066 no_entry_flag='-bnoentry'
18067 fi
18068
18069 # When large executables or shared objects are built, AIX ld can
18070 # have problems creating the table of contents. If linking a library
18071 # or program results in "error TOC overflow" add -mminimal-toc to
18072 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18073 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18074
18075 archive_cmds_CXX=''
18076 hardcode_direct_CXX=yes
18077 hardcode_libdir_separator_CXX=':'
18078 link_all_deplibs_CXX=yes
18079
18080 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018081 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018082 # We only want to do this on AIX 4.2 and lower, the check
18083 # below for broken collect2 doesn't work under 4.3+
18084 collect2name=`${CC} -print-prog-name=collect2`
18085 if test -f "$collect2name" && \
18086 strings "$collect2name" | grep resolve_lib_name >/dev/null
18087 then
18088 # We have reworked collect2
18089 hardcode_direct_CXX=yes
18090 else
18091 # We have old collect2
18092 hardcode_direct_CXX=unsupported
18093 # It fails to find uninstalled libraries when the uninstalled
18094 # path is not listed in the libpath. Setting hardcode_minus_L
18095 # to unsupported forces relinking
18096 hardcode_minus_L_CXX=yes
18097 hardcode_libdir_flag_spec_CXX='-L$libdir'
18098 hardcode_libdir_separator_CXX=
18099 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018100 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018101 esac
18102 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018103 if test "$aix_use_runtimelinking" = yes; then
18104 shared_flag="$shared_flag "'${wl}-G'
18105 fi
John Criswell47fdd832003-07-14 16:52:07 +000018106 else
18107 # not using gcc
18108 if test "$host_cpu" = ia64; then
18109 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18110 # chokes on -Wl,-G. The following line is correct:
18111 shared_flag='-G'
18112 else
18113 if test "$aix_use_runtimelinking" = yes; then
18114 shared_flag='${wl}-G'
18115 else
18116 shared_flag='${wl}-bM:SRE'
18117 fi
18118 fi
18119 fi
18120
18121 # It seems that -bexpall does not export symbols beginning with
18122 # underscore (_), so it is better to generate a list of symbols to export.
18123 always_export_symbols_CXX=yes
18124 if test "$aix_use_runtimelinking" = yes; then
18125 # Warning - without using the other runtime loading flags (-brtl),
18126 # -berok will link without error, but may produce a broken library.
18127 allow_undefined_flag_CXX='-berok'
18128 # Determine the default libpath from the value encoded in an empty executable.
18129 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018130/* confdefs.h. */
18131_ACEOF
18132cat confdefs.h >>conftest.$ac_ext
18133cat >>conftest.$ac_ext <<_ACEOF
18134/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018135
John Criswell47fdd832003-07-14 16:52:07 +000018136int
18137main ()
18138{
18139
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018145if { (ac_try="$ac_link"
18146case "(($ac_try" in
18147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18148 *) ac_try_echo=$ac_try;;
18149esac
18150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18151 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018153 grep -v '^ *+' conftest.er1 >conftest.err
18154 rm -f conftest.er1
18155 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18157 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18159 { (case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18162esac
18163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018169 { (case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18172esac
18173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; }; then
18178
18179aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18180}'`
18181# Check for a 64-bit object if we didn't find anything.
18182if 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; }
18183}'`; fi
18184else
18185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018186sed 's/^/| /' conftest.$ac_ext >&5
18187
Reid Spencera773bd52006-08-04 18:18:08 +000018188
John Criswell47fdd832003-07-14 16:52:07 +000018189fi
Reid Spencera773bd52006-08-04 18:18:08 +000018190
18191rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018192 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018193if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18194
18195 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18196
Reid Spencera773bd52006-08-04 18:18:08 +000018197 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 +000018198 else
18199 if test "$host_cpu" = ia64; then
18200 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18201 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018202 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 +000018203 else
18204 # Determine the default libpath from the value encoded in an empty executable.
18205 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018206/* confdefs.h. */
18207_ACEOF
18208cat confdefs.h >>conftest.$ac_ext
18209cat >>conftest.$ac_ext <<_ACEOF
18210/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018211
John Criswell47fdd832003-07-14 16:52:07 +000018212int
18213main ()
18214{
18215
18216 ;
18217 return 0;
18218}
18219_ACEOF
18220rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018221if { (ac_try="$ac_link"
18222case "(($ac_try" in
18223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18224 *) ac_try_echo=$ac_try;;
18225esac
18226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18227 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018228 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018229 grep -v '^ *+' conftest.er1 >conftest.err
18230 rm -f conftest.er1
18231 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18235 { (case "(($ac_try" in
18236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18237 *) ac_try_echo=$ac_try;;
18238esac
18239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18240 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018241 ac_status=$?
18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243 (exit $ac_status); }; } &&
18244 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018245 { (case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18248esac
18249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018251 ac_status=$?
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); }; }; then
18254
18255aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18256}'`
18257# Check for a 64-bit object if we didn't find anything.
18258if 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; }
18259}'`; fi
18260else
18261 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018262sed 's/^/| /' conftest.$ac_ext >&5
18263
Reid Spencera773bd52006-08-04 18:18:08 +000018264
John Criswell47fdd832003-07-14 16:52:07 +000018265fi
Reid Spencera773bd52006-08-04 18:18:08 +000018266
18267rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018268 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18270
18271 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18272 # Warning - without using the other run time loading flags,
18273 # -berok will link without error, but may produce a broken library.
18274 no_undefined_flag_CXX=' ${wl}-bernotok'
18275 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018276 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018277 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018278 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018279 # This is similar to how AIX traditionally builds its shared libraries.
18280 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 +000018281 fi
18282 fi
18283 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018284
18285 beos*)
18286 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18287 allow_undefined_flag_CXX=unsupported
18288 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18289 # support --undefined. This deserves some investigation. FIXME
18290 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18291 else
18292 ld_shlibs_CXX=no
18293 fi
18294 ;;
18295
John Criswell47fdd832003-07-14 16:52:07 +000018296 chorus*)
18297 case $cc_basename in
18298 *)
18299 # FIXME: insert proper C++ library support
18300 ld_shlibs_CXX=no
18301 ;;
18302 esac
18303 ;;
18304
18305 cygwin* | mingw* | pw32*)
18306 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18307 # as there is no search path for DLLs.
18308 hardcode_libdir_flag_spec_CXX='-L$libdir'
18309 allow_undefined_flag_CXX=unsupported
18310 always_export_symbols_CXX=no
18311 enable_shared_with_static_runtimes_CXX=yes
18312
18313 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018314 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 +000018315 # If the export-symbols file already is a .def file (1st line
18316 # is EXPORTS), use it as is; otherwise, prepend...
18317 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18318 cp $export_symbols $output_objdir/$soname.def;
18319 else
18320 echo EXPORTS > $output_objdir/$soname.def;
18321 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018322 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018323 $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 +000018324 else
18325 ld_shlibs_CXX=no
18326 fi
18327 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018328 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018329 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018330 rhapsody* | darwin1.[012])
18331 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18332 ;;
18333 *) # Darwin 1.3 on
18334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18335 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18336 else
18337 case ${MACOSX_DEPLOYMENT_TARGET} in
18338 10.[012])
18339 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18340 ;;
18341 10.*)
18342 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18343 ;;
18344 esac
18345 fi
18346 ;;
18347 esac
18348 archive_cmds_need_lc_CXX=no
18349 hardcode_direct_CXX=no
18350 hardcode_automatic_CXX=yes
18351 hardcode_shlibpath_var_CXX=unsupported
18352 whole_archive_flag_spec_CXX=''
18353 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018354
Reid Spencer2706f8c2004-09-19 23:53:36 +000018355 if test "$GXX" = yes ; then
18356 lt_int_apple_cc_single_mod=no
18357 output_verbose_link_cmd='echo'
18358 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18359 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018360 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018361 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018362 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 +000018363 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018364 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 +000018365 fi
18366 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018367 # 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 +000018368 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018369 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 +000018370 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018371 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 +000018372 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018373 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 +000018374 else
Reid Spencera773bd52006-08-04 18:18:08 +000018375 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018376 xlc*)
18377 output_verbose_link_cmd='echo'
18378 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'
18379 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018380 # 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 +000018381 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}'
18382 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 +000018383 ;;
18384 *)
18385 ld_shlibs_CXX=no
18386 ;;
18387 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018388 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018389 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018390
18391 dgux*)
18392 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018393 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018394 # FIXME: insert proper C++ library support
18395 ld_shlibs_CXX=no
18396 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018397 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018398 # Green Hills C++ Compiler
18399 # FIXME: insert proper C++ library support
18400 ld_shlibs_CXX=no
18401 ;;
18402 *)
18403 # FIXME: insert proper C++ library support
18404 ld_shlibs_CXX=no
18405 ;;
18406 esac
18407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018408 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018409 # C++ shared libraries reported to be fairly broken before switch to ELF
18410 ld_shlibs_CXX=no
18411 ;;
18412 freebsd-elf*)
18413 archive_cmds_need_lc_CXX=no
18414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018415 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018416 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18417 # conventions
18418 ld_shlibs_CXX=yes
18419 ;;
18420 gnu*)
18421 ;;
18422 hpux9*)
18423 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18424 hardcode_libdir_separator_CXX=:
18425 export_dynamic_flag_spec_CXX='${wl}-E'
18426 hardcode_direct_CXX=yes
18427 hardcode_minus_L_CXX=yes # Not in the search PATH,
18428 # but as the default
18429 # location of the library.
18430
18431 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018432 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018433 # FIXME: insert proper C++ library support
18434 ld_shlibs_CXX=no
18435 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018436 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018437 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 +000018438 # Commands to make compiler produce verbose output that lists
18439 # what "hidden" libraries, object files and flags are used when
18440 # linking a shared library.
18441 #
18442 # There doesn't appear to be a way to prevent this compiler from
18443 # explicitly linking system object files so we need to strip them
18444 # from the output so that they don't get included in the library
18445 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018446 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 +000018447 ;;
18448 *)
18449 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018450 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 +000018451 else
18452 # FIXME: insert proper C++ library support
18453 ld_shlibs_CXX=no
18454 fi
18455 ;;
18456 esac
18457 ;;
18458 hpux10*|hpux11*)
18459 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018460 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18461 hardcode_libdir_separator_CXX=:
18462
18463 case $host_cpu in
18464 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018465 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018466 ;;
18467 *)
John Criswell47fdd832003-07-14 16:52:07 +000018468 export_dynamic_flag_spec_CXX='${wl}-E'
18469 ;;
18470 esac
18471 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018472 case $host_cpu in
18473 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018474 hardcode_direct_CXX=no
18475 hardcode_shlibpath_var_CXX=no
18476 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018477 *)
18478 hardcode_direct_CXX=yes
18479 hardcode_minus_L_CXX=yes # Not in the search PATH,
18480 # but as the default
18481 # location of the library.
18482 ;;
18483 esac
18484
18485 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018486 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018487 # FIXME: insert proper C++ library support
18488 ld_shlibs_CXX=no
18489 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018490 aCC*)
18491 case $host_cpu in
18492 hppa*64*)
18493 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18494 ;;
18495 ia64*)
18496 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 +000018497 ;;
18498 *)
18499 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18500 ;;
18501 esac
18502 # Commands to make compiler produce verbose output that lists
18503 # what "hidden" libraries, object files and flags are used when
18504 # linking a shared library.
18505 #
18506 # There doesn't appear to be a way to prevent this compiler from
18507 # explicitly linking system object files so we need to strip them
18508 # from the output so that they don't get included in the library
18509 # dependencies.
18510 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'
18511 ;;
18512 *)
18513 if test "$GXX" = yes; then
18514 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018515 case $host_cpu in
18516 hppa*64*)
18517 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518 ;;
18519 ia64*)
18520 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 +000018521 ;;
18522 *)
18523 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'
18524 ;;
18525 esac
18526 fi
18527 else
18528 # FIXME: insert proper C++ library support
18529 ld_shlibs_CXX=no
18530 fi
18531 ;;
18532 esac
18533 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018534 interix3*)
18535 hardcode_direct_CXX=no
18536 hardcode_shlibpath_var_CXX=no
18537 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18538 export_dynamic_flag_spec_CXX='${wl}-E'
18539 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18540 # Instead, shared libraries are loaded at an image base (0x10000000 by
18541 # default) and relocated if they conflict, which is a slow very memory
18542 # consuming and fragmenting process. To avoid this, we pick a random,
18543 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18544 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18545 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'
18546 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'
18547 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018548 irix5* | irix6*)
18549 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018550 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018551 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018552 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 +000018553
18554 # Archives containing C++ object files must be created using
18555 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18556 # necessary to make sure instantiated templates are included
18557 # in the archive.
18558 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18559 ;;
18560 *)
18561 if test "$GXX" = yes; then
18562 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018563 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 +000018564 else
18565 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'
18566 fi
18567 fi
18568 link_all_deplibs_CXX=yes
18569 ;;
18570 esac
18571 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18572 hardcode_libdir_separator_CXX=:
18573 ;;
18574 linux*)
18575 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018576 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018577 # Kuck and Associates, Inc. (KAI) C++ Compiler
18578
18579 # KCC will only create a shared library if the output file
18580 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18581 # to its proper name (with version) after linking.
18582 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'
18583 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'
18584 # Commands to make compiler produce verbose output that lists
18585 # what "hidden" libraries, object files and flags are used when
18586 # linking a shared library.
18587 #
18588 # There doesn't appear to be a way to prevent this compiler from
18589 # explicitly linking system object files so we need to strip them
18590 # from the output so that they don't get included in the library
18591 # dependencies.
18592 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'
18593
18594 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18595 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18596
18597 # Archives containing C++ object files must be created using
18598 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18599 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18600 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018601 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018602 # Intel C++
18603 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018604 # version 8.0 and above of icpc choke on multiply defined symbols
18605 # if we add $predep_objects and $postdep_objects, however 7.1 and
18606 # earlier do not add the objects themselves.
18607 case `$CC -V 2>&1` in
18608 *"Version 7."*)
18609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610 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'
18611 ;;
18612 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018613 tmp_idyn=
18614 case $host_cpu in
18615 ia64*) tmp_idyn=' -i_dynamic';;
18616 esac
18617 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18618 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 +000018619 ;;
18620 esac
John Criswell47fdd832003-07-14 16:52:07 +000018621 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018622 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18624 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18625 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018626 pgCC*)
18627 # Portland Group C++ compiler
18628 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18629 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'
18630
18631 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18633 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'
18634 ;;
18635 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018636 # Compaq C++
18637 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18638 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'
18639
18640 runpath_var=LD_RUN_PATH
18641 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18642 hardcode_libdir_separator_CXX=:
18643
18644 # Commands to make compiler produce verbose output that lists
18645 # what "hidden" libraries, object files and flags are used when
18646 # linking a shared library.
18647 #
18648 # There doesn't appear to be a way to prevent this compiler from
18649 # explicitly linking system object files so we need to strip them
18650 # from the output so that they don't get included in the library
18651 # dependencies.
18652 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'
18653 ;;
18654 esac
18655 ;;
18656 lynxos*)
18657 # FIXME: insert proper C++ library support
18658 ld_shlibs_CXX=no
18659 ;;
18660 m88k*)
18661 # FIXME: insert proper C++ library support
18662 ld_shlibs_CXX=no
18663 ;;
18664 mvs*)
18665 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018666 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018667 # FIXME: insert proper C++ library support
18668 ld_shlibs_CXX=no
18669 ;;
18670 *)
18671 # FIXME: insert proper C++ library support
18672 ld_shlibs_CXX=no
18673 ;;
18674 esac
18675 ;;
18676 netbsd*)
18677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18678 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18679 wlarc=
18680 hardcode_libdir_flag_spec_CXX='-R$libdir'
18681 hardcode_direct_CXX=yes
18682 hardcode_shlibpath_var_CXX=no
18683 fi
18684 # Workaround some broken pre-1.5 toolchains
18685 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18686 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018687 openbsd2*)
18688 # C++ shared libraries are fairly broken
18689 ld_shlibs_CXX=no
18690 ;;
18691 openbsd*)
18692 hardcode_direct_CXX=yes
18693 hardcode_shlibpath_var_CXX=no
18694 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18697 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18698 export_dynamic_flag_spec_CXX='${wl}-E'
18699 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18700 fi
18701 output_verbose_link_cmd='echo'
18702 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018703 osf3*)
18704 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018705 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018706 # Kuck and Associates, Inc. (KAI) C++ Compiler
18707
18708 # KCC will only create a shared library if the output file
18709 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18710 # to its proper name (with version) after linking.
18711 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'
18712
18713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714 hardcode_libdir_separator_CXX=:
18715
18716 # Archives containing C++ object files must be created using
18717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18719
18720 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018721 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018722 # Rational C++ 2.4.1
18723 # FIXME: insert proper C++ library support
18724 ld_shlibs_CXX=no
18725 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018726 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018727 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018728 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 +000018729
18730 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18731 hardcode_libdir_separator_CXX=:
18732
18733 # Commands to make compiler produce verbose output that lists
18734 # what "hidden" libraries, object files and flags are used when
18735 # linking a shared library.
18736 #
18737 # There doesn't appear to be a way to prevent this compiler from
18738 # explicitly linking system object files so we need to strip them
18739 # from the output so that they don't get included in the library
18740 # dependencies.
18741 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'
18742 ;;
18743 *)
18744 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018746 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 +000018747
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18750
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18754 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18755
18756 else
18757 # FIXME: insert proper C++ library support
18758 ld_shlibs_CXX=no
18759 fi
18760 ;;
18761 esac
18762 ;;
18763 osf4* | osf5*)
18764 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018765 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018766 # Kuck and Associates, Inc. (KAI) C++ Compiler
18767
18768 # KCC will only create a shared library if the output file
18769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18770 # to its proper name (with version) after linking.
18771 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'
18772
18773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18774 hardcode_libdir_separator_CXX=:
18775
18776 # Archives containing C++ object files must be created using
18777 # the KAI C++ compiler.
18778 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18779 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018780 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018781 # Rational C++ 2.4.1
18782 # FIXME: insert proper C++ library support
18783 ld_shlibs_CXX=no
18784 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018785 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018786 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018787 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 +000018788 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18789 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018790 $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 +000018791 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018792
18793 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18794 hardcode_libdir_separator_CXX=:
18795
18796 # Commands to make compiler produce verbose output that lists
18797 # what "hidden" libraries, object files and flags are used when
18798 # linking a shared library.
18799 #
18800 # There doesn't appear to be a way to prevent this compiler from
18801 # explicitly linking system object files so we need to strip them
18802 # from the output so that they don't get included in the library
18803 # dependencies.
18804 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'
18805 ;;
18806 *)
18807 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18808 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018809 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 +000018810
18811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18812 hardcode_libdir_separator_CXX=:
18813
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18817 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18818
18819 else
18820 # FIXME: insert proper C++ library support
18821 ld_shlibs_CXX=no
18822 fi
18823 ;;
18824 esac
18825 ;;
18826 psos*)
18827 # FIXME: insert proper C++ library support
18828 ld_shlibs_CXX=no
18829 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018830 sunos4*)
18831 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018832 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018833 # Sun C++ 4.x
18834 # FIXME: insert proper C++ library support
18835 ld_shlibs_CXX=no
18836 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018837 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018838 # Lucid
18839 # FIXME: insert proper C++ library support
18840 ld_shlibs_CXX=no
18841 ;;
18842 *)
18843 # FIXME: insert proper C++ library support
18844 ld_shlibs_CXX=no
18845 ;;
18846 esac
18847 ;;
18848 solaris*)
18849 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018850 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018851 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018852 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018853 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018854 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 +000018855 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 +000018856 $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 +000018857
18858 hardcode_libdir_flag_spec_CXX='-R$libdir'
18859 hardcode_shlibpath_var_CXX=no
18860 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018861 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018862 *)
18863 # The C++ compiler is used as linker so we must use $wl
18864 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018865 # linker. We must also pass each convience library through
18866 # to the system linker between allextract/defaultextract.
18867 # The C++ compiler will combine linker options so we
18868 # cannot just pass the convience library names through
18869 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018870 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018871 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 +000018872 ;;
18873 esac
18874 link_all_deplibs_CXX=yes
18875
Reid Spencera773bd52006-08-04 18:18:08 +000018876 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018877
18878 # Archives containing C++ object files must be created using
18879 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18880 # necessary to make sure instantiated templates are included
18881 # in the archive.
18882 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18883 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018884 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018885 # Green Hills C++ Compiler
18886 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18887
18888 # The C++ compiler must be used to create the archive.
18889 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18890 ;;
18891 *)
18892 # GNU C++ compiler with Solaris linker
18893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18894 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18895 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018896 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 +000018897 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18898 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18899
John Criswell47fdd832003-07-14 16:52:07 +000018900 # Commands to make compiler produce verbose output that lists
18901 # what "hidden" libraries, object files and flags are used when
18902 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018903 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018904 else
18905 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18906 # platform.
18907 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 +000018908 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18909 $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 +000018910
18911 # Commands to make compiler produce verbose output that lists
18912 # what "hidden" libraries, object files and flags are used when
18913 # linking a shared library.
18914 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18915 fi
18916
18917 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18918 fi
18919 ;;
18920 esac
18921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18923 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018924 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018925 hardcode_shlibpath_var_CXX=no
18926 runpath_var='LD_RUN_PATH'
18927
18928 case $cc_basename in
18929 CC*)
18930 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18931 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18932 ;;
18933 *)
18934 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18935 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18936 ;;
18937 esac
18938 ;;
18939 sysv5* | sco3.2v5* | sco5v6*)
18940 # Note: We can NOT use -z defs as we might desire, because we do not
18941 # link with -lc, and that would cause any symbols used from libc to
18942 # always be unresolved, which means just about no library would
18943 # ever link correctly. If we're not using GNU ld we use -z text
18944 # though, which does catch some bad symbols but isn't as heavy-handed
18945 # as -z defs.
18946 # For security reasons, it is highly recommended that you always
18947 # use absolute paths for naming shared libraries, and exclude the
18948 # DT_RUNPATH tag from executables and libraries. But doing so
18949 # requires that you compile everything twice, which is a pain.
18950 # So that behaviour is only enabled if SCOABSPATH is set to a
18951 # non-empty value in the environment. Most likely only useful for
18952 # creating official distributions of packages.
18953 # This is a hack until libtool officially supports absolute path
18954 # names for shared libraries.
18955 no_undefined_flag_CXX='${wl}-z,text'
18956 allow_undefined_flag_CXX='${wl}-z,nodefs'
18957 archive_cmds_need_lc_CXX=no
18958 hardcode_shlibpath_var_CXX=no
18959 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18960 hardcode_libdir_separator_CXX=':'
18961 link_all_deplibs_CXX=yes
18962 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18963 runpath_var='LD_RUN_PATH'
18964
18965 case $cc_basename in
18966 CC*)
18967 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18968 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18969 ;;
18970 *)
18971 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18972 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18973 ;;
18974 esac
John Criswell47fdd832003-07-14 16:52:07 +000018975 ;;
18976 tandem*)
18977 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018978 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018979 # NonStop-UX NCC 3.20
18980 # FIXME: insert proper C++ library support
18981 ld_shlibs_CXX=no
18982 ;;
18983 *)
18984 # FIXME: insert proper C++ library support
18985 ld_shlibs_CXX=no
18986 ;;
18987 esac
18988 ;;
18989 vxworks*)
18990 # FIXME: insert proper C++ library support
18991 ld_shlibs_CXX=no
18992 ;;
18993 *)
18994 # FIXME: insert proper C++ library support
18995 ld_shlibs_CXX=no
18996 ;;
18997esac
Reid Spencera773bd52006-08-04 18:18:08 +000018998{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18999echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019000test "$ld_shlibs_CXX" = no && can_build_shared=no
19001
19002GCC_CXX="$GXX"
19003LD_CXX="$LD"
19004
John Criswell47fdd832003-07-14 16:52:07 +000019005
19006cat > conftest.$ac_ext <<EOF
19007class Foo
19008{
19009public:
19010 Foo (void) { a = 0; }
19011private:
19012 int a;
19013};
19014EOF
19015
19016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19017 (eval $ac_compile) 2>&5
19018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; then
19021 # Parse the compiler output and extract the necessary
19022 # objects, libraries and library flags.
19023
19024 # Sentinel used to keep track of whether or not we are before
19025 # the conftest object file.
19026 pre_test_object_deps_done=no
19027
19028 # The `*' in the case matches for architectures that use `case' in
19029 # $output_verbose_cmd can trigger glob expansion during the loop
19030 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019031 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019032
19033 for p in `eval $output_verbose_link_cmd`; do
19034 case $p in
19035
19036 -L* | -R* | -l*)
19037 # Some compilers place space between "-{L,R}" and the path.
19038 # Remove the space.
19039 if test $p = "-L" \
19040 || test $p = "-R"; then
19041 prev=$p
19042 continue
19043 else
19044 prev=
19045 fi
19046
19047 if test "$pre_test_object_deps_done" = no; then
19048 case $p in
19049 -L* | -R*)
19050 # Internal compiler library paths should come after those
19051 # provided the user. The postdeps already come after the
19052 # user supplied libs so there is no need to process them.
19053 if test -z "$compiler_lib_search_path_CXX"; then
19054 compiler_lib_search_path_CXX="${prev}${p}"
19055 else
19056 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19057 fi
19058 ;;
19059 # The "-l" case would never come before the object being
19060 # linked, so don't bother handling this case.
19061 esac
19062 else
19063 if test -z "$postdeps_CXX"; then
19064 postdeps_CXX="${prev}${p}"
19065 else
19066 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19067 fi
19068 fi
19069 ;;
19070
19071 *.$objext)
19072 # This assumes that the test object file only shows up
19073 # once in the compiler output.
19074 if test "$p" = "conftest.$objext"; then
19075 pre_test_object_deps_done=yes
19076 continue
19077 fi
19078
19079 if test "$pre_test_object_deps_done" = no; then
19080 if test -z "$predep_objects_CXX"; then
19081 predep_objects_CXX="$p"
19082 else
19083 predep_objects_CXX="$predep_objects_CXX $p"
19084 fi
19085 else
19086 if test -z "$postdep_objects_CXX"; then
19087 postdep_objects_CXX="$p"
19088 else
19089 postdep_objects_CXX="$postdep_objects_CXX $p"
19090 fi
19091 fi
19092 ;;
19093
19094 *) ;; # Ignore the rest.
19095
19096 esac
19097 done
19098
19099 # Clean up.
19100 rm -f a.out a.exe
19101else
19102 echo "libtool.m4: error: problem compiling CXX test program"
19103fi
19104
19105$rm -f confest.$objext
19106
Reid Spencera773bd52006-08-04 18:18:08 +000019107# PORTME: override above test on systems where it is broken
19108case $host_os in
19109interix3*)
19110 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19111 # hack all around it, let's just trust "g++" to DTRT.
19112 predep_objects_CXX=
19113 postdep_objects_CXX=
19114 postdeps_CXX=
19115 ;;
19116
19117solaris*)
19118 case $cc_basename in
19119 CC*)
19120 # Adding this requires a known-good setup of shared libraries for
19121 # Sun compiler versions before 5.6, else PIC objects from an old
19122 # archive will be linked into the output, leading to subtle bugs.
19123 postdeps_CXX='-lCstd -lCrun'
19124 ;;
19125 esac
19126 ;;
19127esac
19128
19129
John Criswell47fdd832003-07-14 16:52:07 +000019130case " $postdeps_CXX " in
19131*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19132esac
19133
19134lt_prog_compiler_wl_CXX=
19135lt_prog_compiler_pic_CXX=
19136lt_prog_compiler_static_CXX=
19137
Reid Spencera773bd52006-08-04 18:18:08 +000019138{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19139echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019140
19141 # C++ specific cases for pic, static, wl, etc.
19142 if test "$GXX" = yes; then
19143 lt_prog_compiler_wl_CXX='-Wl,'
19144 lt_prog_compiler_static_CXX='-static'
19145
19146 case $host_os in
19147 aix*)
19148 # All AIX code is PIC.
19149 if test "$host_cpu" = ia64; then
19150 # AIX 5 now supports IA64 processor
19151 lt_prog_compiler_static_CXX='-Bstatic'
19152 fi
19153 ;;
19154 amigaos*)
19155 # FIXME: we need at least 68020 code to build shared libraries, but
19156 # adding the `-m68020' flag to GCC prevents building anything better,
19157 # like `-m68040'.
19158 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19159 ;;
19160 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19161 # PIC is the default for these OSes.
19162 ;;
19163 mingw* | os2* | pw32*)
19164 # This hack is so that the source file can tell whether it is being
19165 # built for inclusion in a dll (and should export symbols for example).
19166 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19167 ;;
19168 darwin* | rhapsody*)
19169 # PIC is the default on this platform
19170 # Common symbols not allowed in MH_DYLIB files
19171 lt_prog_compiler_pic_CXX='-fno-common'
19172 ;;
19173 *djgpp*)
19174 # DJGPP does not support shared libraries at all
19175 lt_prog_compiler_pic_CXX=
19176 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019177 interix3*)
19178 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19179 # Instead, we relocate shared libraries at runtime.
19180 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019181 sysv4*MP*)
19182 if test -d /usr/nec; then
19183 lt_prog_compiler_pic_CXX=-Kconform_pic
19184 fi
19185 ;;
19186 hpux*)
19187 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19188 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019189 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019190 hppa*64*|ia64*)
19191 ;;
19192 *)
19193 lt_prog_compiler_pic_CXX='-fPIC'
19194 ;;
19195 esac
19196 ;;
19197 *)
19198 lt_prog_compiler_pic_CXX='-fPIC'
19199 ;;
19200 esac
19201 else
19202 case $host_os in
19203 aix4* | aix5*)
19204 # All AIX code is PIC.
19205 if test "$host_cpu" = ia64; then
19206 # AIX 5 now supports IA64 processor
19207 lt_prog_compiler_static_CXX='-Bstatic'
19208 else
19209 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19210 fi
19211 ;;
19212 chorus*)
19213 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019214 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019215 # Green Hills C++ Compiler
19216 # _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"
19217 ;;
19218 esac
19219 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019220 darwin*)
19221 # PIC is the default on this platform
19222 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019223 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019224 xlc*)
19225 lt_prog_compiler_pic_CXX='-qnocommon'
19226 lt_prog_compiler_wl_CXX='-Wl,'
19227 ;;
19228 esac
19229 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019230 dgux*)
19231 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019232 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019233 lt_prog_compiler_pic_CXX='-KPIC'
19234 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019235 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019236 # Green Hills C++ Compiler
19237 lt_prog_compiler_pic_CXX='-pic'
19238 ;;
19239 *)
19240 ;;
19241 esac
19242 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019243 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019244 # FreeBSD uses GNU C++
19245 ;;
19246 hpux9* | hpux10* | hpux11*)
19247 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019248 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019249 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019250 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019251 if test "$host_cpu" != ia64; then
19252 lt_prog_compiler_pic_CXX='+Z'
19253 fi
19254 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019255 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019256 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019257 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19258 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019259 hppa*64*|ia64*)
19260 # +Z the default
19261 ;;
19262 *)
19263 lt_prog_compiler_pic_CXX='+Z'
19264 ;;
19265 esac
19266 ;;
19267 *)
19268 ;;
19269 esac
19270 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019271 interix*)
19272 # This is c89, which is MS Visual C++ (no shared libs)
19273 # Anyone wants to do a port?
19274 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019275 irix5* | irix6* | nonstopux*)
19276 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019277 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019278 lt_prog_compiler_wl_CXX='-Wl,'
19279 lt_prog_compiler_static_CXX='-non_shared'
19280 # CC pic flag -KPIC is the default.
19281 ;;
19282 *)
19283 ;;
19284 esac
19285 ;;
19286 linux*)
19287 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019288 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019289 # KAI C++ Compiler
19290 lt_prog_compiler_wl_CXX='--backend -Wl,'
19291 lt_prog_compiler_pic_CXX='-fPIC'
19292 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019293 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019294 # Intel C++
19295 lt_prog_compiler_wl_CXX='-Wl,'
19296 lt_prog_compiler_pic_CXX='-KPIC'
19297 lt_prog_compiler_static_CXX='-static'
19298 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019299 pgCC*)
19300 # Portland Group C++ compiler.
19301 lt_prog_compiler_wl_CXX='-Wl,'
19302 lt_prog_compiler_pic_CXX='-fpic'
19303 lt_prog_compiler_static_CXX='-Bstatic'
19304 ;;
19305 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019306 # Compaq C++
19307 # Make sure the PIC flag is empty. It appears that all Alpha
19308 # Linux and Compaq Tru64 Unix objects are PIC.
19309 lt_prog_compiler_pic_CXX=
19310 lt_prog_compiler_static_CXX='-non_shared'
19311 ;;
19312 *)
19313 ;;
19314 esac
19315 ;;
19316 lynxos*)
19317 ;;
19318 m88k*)
19319 ;;
19320 mvs*)
19321 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019322 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019323 lt_prog_compiler_pic_CXX='-W c,exportall'
19324 ;;
19325 *)
19326 ;;
19327 esac
19328 ;;
19329 netbsd*)
19330 ;;
19331 osf3* | osf4* | osf5*)
19332 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019333 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019334 lt_prog_compiler_wl_CXX='--backend -Wl,'
19335 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019336 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 # Rational C++ 2.4.1
19338 lt_prog_compiler_pic_CXX='-pic'
19339 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019340 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019341 # Digital/Compaq C++
19342 lt_prog_compiler_wl_CXX='-Wl,'
19343 # Make sure the PIC flag is empty. It appears that all Alpha
19344 # Linux and Compaq Tru64 Unix objects are PIC.
19345 lt_prog_compiler_pic_CXX=
19346 lt_prog_compiler_static_CXX='-non_shared'
19347 ;;
19348 *)
19349 ;;
19350 esac
19351 ;;
19352 psos*)
19353 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019354 solaris*)
19355 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019356 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019357 # Sun C++ 4.2, 5.x and Centerline C++
19358 lt_prog_compiler_pic_CXX='-KPIC'
19359 lt_prog_compiler_static_CXX='-Bstatic'
19360 lt_prog_compiler_wl_CXX='-Qoption ld '
19361 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019362 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019363 # Green Hills C++ Compiler
19364 lt_prog_compiler_pic_CXX='-PIC'
19365 ;;
19366 *)
19367 ;;
19368 esac
19369 ;;
19370 sunos4*)
19371 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019372 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019373 # Sun C++ 4.x
19374 lt_prog_compiler_pic_CXX='-pic'
19375 lt_prog_compiler_static_CXX='-Bstatic'
19376 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019377 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019378 # Lucid
19379 lt_prog_compiler_pic_CXX='-pic'
19380 ;;
19381 *)
19382 ;;
19383 esac
19384 ;;
19385 tandem*)
19386 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019387 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019388 # NonStop-UX NCC 3.20
19389 lt_prog_compiler_pic_CXX='-KPIC'
19390 ;;
19391 *)
19392 ;;
19393 esac
19394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019395 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19396 case $cc_basename in
19397 CC*)
19398 lt_prog_compiler_wl_CXX='-Wl,'
19399 lt_prog_compiler_pic_CXX='-KPIC'
19400 lt_prog_compiler_static_CXX='-Bstatic'
19401 ;;
19402 esac
John Criswell47fdd832003-07-14 16:52:07 +000019403 ;;
19404 vxworks*)
19405 ;;
19406 *)
19407 lt_prog_compiler_can_build_shared_CXX=no
19408 ;;
19409 esac
19410 fi
19411
Reid Spencera773bd52006-08-04 18:18:08 +000019412{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19413echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019414
19415#
19416# Check to make sure the PIC flag actually works.
19417#
19418if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019419
Reid Spencera773bd52006-08-04 18:18:08 +000019420{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19421echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019422if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 lt_prog_compiler_pic_works_CXX=no
19426 ac_outfile=conftest.$ac_objext
19427 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19428 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19429 # Insert the option either (1) after the last *FLAGS variable, or
19430 # (2) before a word containing "conftest.", or (3) at the end.
19431 # Note that $ac_compile itself does not contain backslashes and begins
19432 # with a dollar sign (not a hyphen), so the echo should work correctly.
19433 # The option is referenced via a variable to avoid confusing sed.
19434 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19437 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000019438 (eval echo "\"\$as_me:19438: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019439 (eval "$lt_compile" 2>conftest.err)
19440 ac_status=$?
19441 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000019442 echo "$as_me:19442: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019443 if (exit $ac_status) && test -s "$ac_outfile"; then
19444 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019445 # So say no if there are warnings other than the usual output.
19446 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19447 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19448 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019449 lt_prog_compiler_pic_works_CXX=yes
19450 fi
19451 fi
19452 $rm conftest*
19453
19454fi
Reid Spencera773bd52006-08-04 18:18:08 +000019455{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19456echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019457
19458if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19459 case $lt_prog_compiler_pic_CXX in
19460 "" | " "*) ;;
19461 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19462 esac
19463else
19464 lt_prog_compiler_pic_CXX=
19465 lt_prog_compiler_can_build_shared_CXX=no
19466fi
19467
19468fi
Reid Spencera773bd52006-08-04 18:18:08 +000019469case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019470 # For platforms which do not support PIC, -DPIC is meaningless:
19471 *djgpp*)
19472 lt_prog_compiler_pic_CXX=
19473 ;;
19474 *)
19475 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19476 ;;
19477esac
19478
Reid Spencera773bd52006-08-04 18:18:08 +000019479#
19480# Check to make sure the static flag actually works.
19481#
19482wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19483{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19484echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19485if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19487else
19488 lt_prog_compiler_static_works_CXX=no
19489 save_LDFLAGS="$LDFLAGS"
19490 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19491 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19493 # The linker can only warn and ignore the option if not recognized
19494 # So say no if there are warnings
19495 if test -s conftest.err; then
19496 # Append any errors to the config.log.
19497 cat conftest.err 1>&5
19498 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19500 if diff conftest.exp conftest.er2 >/dev/null; then
19501 lt_prog_compiler_static_works_CXX=yes
19502 fi
19503 else
19504 lt_prog_compiler_static_works_CXX=yes
19505 fi
19506 fi
19507 $rm conftest*
19508 LDFLAGS="$save_LDFLAGS"
19509
19510fi
19511{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19512echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19513
19514if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19515 :
19516else
19517 lt_prog_compiler_static_CXX=
19518fi
19519
19520
19521{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19522echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019523if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525else
19526 lt_cv_prog_compiler_c_o_CXX=no
19527 $rm -r conftest 2>/dev/null
19528 mkdir conftest
19529 cd conftest
19530 mkdir out
19531 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19532
John Criswell47fdd832003-07-14 16:52:07 +000019533 lt_compiler_flag="-o out/conftest2.$ac_objext"
19534 # Insert the option either (1) after the last *FLAGS variable, or
19535 # (2) before a word containing "conftest.", or (3) at the end.
19536 # Note that $ac_compile itself does not contain backslashes and begins
19537 # with a dollar sign (not a hyphen), so the echo should work correctly.
19538 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19541 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000019542 (eval echo "\"\$as_me:19542: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019543 (eval "$lt_compile" 2>out/conftest.err)
19544 ac_status=$?
19545 cat out/conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000019546 echo "$as_me:19546: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19548 then
19549 # The compiler can only warn and ignore the option if not recognized
19550 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019551 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019554 lt_cv_prog_compiler_c_o_CXX=yes
19555 fi
19556 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019557 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019558 $rm conftest*
19559 # SGI C++ compiler will create directory out/ii_files/ for
19560 # template instantiation
19561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19562 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019563 cd ..
19564 rmdir conftest
19565 $rm conftest*
19566
19567fi
Reid Spencera773bd52006-08-04 18:18:08 +000019568{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19569echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019570
19571
19572hard_links="nottested"
19573if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19574 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019575 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19576echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019577 hard_links=yes
19578 $rm conftest*
19579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19580 touch conftest.a
19581 ln conftest.a conftest.b 2>&5 || hard_links=no
19582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019583 { echo "$as_me:$LINENO: result: $hard_links" >&5
19584echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019585 if test "$hard_links" = no; then
19586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19587echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19588 need_locks=warn
19589 fi
19590else
19591 need_locks=no
19592fi
19593
Reid Spencera773bd52006-08-04 18:18:08 +000019594{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19595echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019596
19597 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19598 case $host_os in
19599 aix4* | aix5*)
19600 # If we're using GNU nm, then we don't want the "-C" option.
19601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19603 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'
19604 else
19605 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'
19606 fi
19607 ;;
19608 pw32*)
19609 export_symbols_cmds_CXX="$ltdll_cmds"
19610 ;;
19611 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019612 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 +000019613 ;;
19614 *)
19615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19616 ;;
19617 esac
19618
Reid Spencera773bd52006-08-04 18:18:08 +000019619{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19620echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019621test "$ld_shlibs_CXX" = no && can_build_shared=no
19622
John Criswell47fdd832003-07-14 16:52:07 +000019623#
19624# Do we need to explicitly link libc?
19625#
19626case "x$archive_cmds_need_lc_CXX" in
19627x|xyes)
19628 # Assume -lc should be added
19629 archive_cmds_need_lc_CXX=yes
19630
19631 if test "$enable_shared" = yes && test "$GCC" = yes; then
19632 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019633 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019634 # FIXME: we may have to deal with multi-command sequences.
19635 ;;
19636 '$CC '*)
19637 # Test whether the compiler implicitly links with -lc since on some
19638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19639 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019640 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19641echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019642 $rm conftest*
19643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19644
19645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19646 (eval $ac_compile) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); } 2>conftest.err; then
19650 soname=conftest
19651 lib=conftest
19652 libobjs=conftest.$ac_objext
19653 deplibs=
19654 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019655 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019656 compiler_flags=-v
19657 linker_flags=-v
19658 verstring=
19659 output_objdir=.
19660 libname=conftest
19661 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19662 allow_undefined_flag_CXX=
19663 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19664 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }
19668 then
19669 archive_cmds_need_lc_CXX=no
19670 else
19671 archive_cmds_need_lc_CXX=yes
19672 fi
19673 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19674 else
19675 cat conftest.err 1>&5
19676 fi
19677 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019678 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19679echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019680 ;;
19681 esac
19682 fi
19683 ;;
19684esac
19685
Reid Spencera773bd52006-08-04 18:18:08 +000019686{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19687echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019688library_names_spec=
19689libname_spec='lib$name'
19690soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019691shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019692postinstall_cmds=
19693postuninstall_cmds=
19694finish_cmds=
19695finish_eval=
19696shlibpath_var=
19697shlibpath_overrides_runpath=unknown
19698version_type=none
19699dynamic_linker="$host_os ld.so"
19700sys_lib_dlsearch_path_spec="/lib /usr/lib"
19701if test "$GCC" = yes; then
19702 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19703 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19704 # if the path contains ";" then we assume it to be the separator
19705 # otherwise default to the standard path separator (i.e. ":") - it is
19706 # assumed that no part of a normal pathname contains ";" but that should
19707 # okay in the real world where ";" in dirpaths is itself problematic.
19708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19709 else
19710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19711 fi
19712else
19713 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19714fi
19715need_lib_prefix=unknown
19716hardcode_into_libs=no
19717
19718# when you set need_version to no, make sure it does not cause -set_version
19719# flags to be left without arguments
19720need_version=unknown
19721
19722case $host_os in
19723aix3*)
19724 version_type=linux
19725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19726 shlibpath_var=LIBPATH
19727
19728 # AIX 3 has no versioning support, so we append a major version to the name.
19729 soname_spec='${libname}${release}${shared_ext}$major'
19730 ;;
19731
19732aix4* | aix5*)
19733 version_type=linux
19734 need_lib_prefix=no
19735 need_version=no
19736 hardcode_into_libs=yes
19737 if test "$host_cpu" = ia64; then
19738 # AIX 5 supports IA64
19739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19740 shlibpath_var=LD_LIBRARY_PATH
19741 else
19742 # With GCC up to 2.95.x, collect2 would create an import file
19743 # for dependence libraries. The import file would start with
19744 # the line `#! .'. This would cause the generated library to
19745 # depend on `.', always an invalid library. This was fixed in
19746 # development snapshots of GCC prior to 3.0.
19747 case $host_os in
19748 aix4 | aix4.[01] | aix4.[01].*)
19749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19750 echo ' yes '
19751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19752 :
19753 else
19754 can_build_shared=no
19755 fi
19756 ;;
19757 esac
19758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19759 # soname into executable. Probably we can add versioning support to
19760 # collect2, so additional links can be useful in future.
19761 if test "$aix_use_runtimelinking" = yes; then
19762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19763 # instead of lib<name>.a to let people know that these are not
19764 # typical AIX shared libraries.
19765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19766 else
19767 # We preserve .a as extension for shared libraries through AIX4.2
19768 # and later when we are not doing run time linking.
19769 library_names_spec='${libname}${release}.a $libname.a'
19770 soname_spec='${libname}${release}${shared_ext}$major'
19771 fi
19772 shlibpath_var=LIBPATH
19773 fi
19774 ;;
19775
19776amigaos*)
19777 library_names_spec='$libname.ixlibrary $libname.a'
19778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019779 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 +000019780 ;;
19781
19782beos*)
19783 library_names_spec='${libname}${shared_ext}'
19784 dynamic_linker="$host_os ld.so"
19785 shlibpath_var=LIBRARY_PATH
19786 ;;
19787
Reid Spencer2706f8c2004-09-19 23:53:36 +000019788bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019789 version_type=linux
19790 need_version=no
19791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19792 soname_spec='${libname}${release}${shared_ext}$major'
19793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19794 shlibpath_var=LD_LIBRARY_PATH
19795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19797 # the default ld.so.conf also contains /usr/contrib/lib and
19798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19799 # libtool to hard-code these into programs
19800 ;;
19801
19802cygwin* | mingw* | pw32*)
19803 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019804 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019805 need_version=no
19806 need_lib_prefix=no
19807
19808 case $GCC,$host_os in
19809 yes,cygwin* | yes,mingw* | yes,pw32*)
19810 library_names_spec='$libname.dll.a'
19811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019812 postinstall_cmds='base_file=`basename \${file}`~
19813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19814 dldir=$destdir/`dirname \$dlpath`~
19815 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019816 $install_prog $dir/$dlname \$dldir/$dlname~
19817 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19819 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019820 $rm \$dlpath'
19821 shlibpath_overrides_runpath=yes
19822
19823 case $host_os in
19824 cygwin*)
19825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19826 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 +000019827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019828 ;;
19829 mingw*)
19830 # MinGW DLLs use traditional 'lib' prefix
19831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19834 # It is most probably a Windows format PATH printed by
19835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19836 # path with ; separators, and with drive letters. We can handle the
19837 # drive letters (cygwin fileutils understands them), so leave them,
19838 # especially as we might pass files found there to a mingw objdump,
19839 # which wouldn't understand a cygwinified path. Ahh.
19840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19841 else
19842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19843 fi
19844 ;;
19845 pw32*)
19846 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019847 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 +000019848 ;;
19849 esac
19850 ;;
19851
19852 *)
19853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19854 ;;
19855 esac
19856 dynamic_linker='Win32 ld.exe'
19857 # FIXME: first we should search . and the directory the executable is in
19858 shlibpath_var=PATH
19859 ;;
19860
19861darwin* | rhapsody*)
19862 dynamic_linker="$host_os dyld"
19863 version_type=darwin
19864 need_lib_prefix=no
19865 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019867 soname_spec='${libname}${release}${major}$shared_ext'
19868 shlibpath_overrides_runpath=yes
19869 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019872 if test "$GCC" = yes; then
19873 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"`
19874 else
19875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019876 fi
19877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19878 ;;
19879
19880dgux*)
19881 version_type=linux
19882 need_lib_prefix=no
19883 need_version=no
19884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19885 soname_spec='${libname}${release}${shared_ext}$major'
19886 shlibpath_var=LD_LIBRARY_PATH
19887 ;;
19888
19889freebsd1*)
19890 dynamic_linker=no
19891 ;;
19892
Reid Spencer2706f8c2004-09-19 23:53:36 +000019893kfreebsd*-gnu)
19894 version_type=linux
19895 need_lib_prefix=no
19896 need_version=no
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19898 soname_spec='${libname}${release}${shared_ext}$major'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 shlibpath_overrides_runpath=no
19901 hardcode_into_libs=yes
19902 dynamic_linker='GNU ld.so'
19903 ;;
19904
Reid Spencera773bd52006-08-04 18:18:08 +000019905freebsd* | dragonfly*)
19906 # DragonFly does not have aout. When/if they implement a new
19907 # versioning mechanism, adjust this.
19908 if test -x /usr/bin/objformat; then
19909 objformat=`/usr/bin/objformat`
19910 else
19911 case $host_os in
19912 freebsd[123]*) objformat=aout ;;
19913 *) objformat=elf ;;
19914 esac
19915 fi
John Criswell47fdd832003-07-14 16:52:07 +000019916 version_type=freebsd-$objformat
19917 case $version_type in
19918 freebsd-elf*)
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19920 need_version=no
19921 need_lib_prefix=no
19922 ;;
19923 freebsd-*)
19924 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19925 need_version=yes
19926 ;;
19927 esac
19928 shlibpath_var=LD_LIBRARY_PATH
19929 case $host_os in
19930 freebsd2*)
19931 shlibpath_overrides_runpath=yes
19932 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019933 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019934 shlibpath_overrides_runpath=yes
19935 hardcode_into_libs=yes
19936 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019937 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19938 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019939 shlibpath_overrides_runpath=no
19940 hardcode_into_libs=yes
19941 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019942 freebsd*) # from 4.6 on
19943 shlibpath_overrides_runpath=yes
19944 hardcode_into_libs=yes
19945 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019946 esac
19947 ;;
19948
19949gnu*)
19950 version_type=linux
19951 need_lib_prefix=no
19952 need_version=no
19953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19954 soname_spec='${libname}${release}${shared_ext}$major'
19955 shlibpath_var=LD_LIBRARY_PATH
19956 hardcode_into_libs=yes
19957 ;;
19958
19959hpux9* | hpux10* | hpux11*)
19960 # Give a soname corresponding to the major version so that dld.sl refuses to
19961 # link against other versions.
19962 version_type=sunos
19963 need_lib_prefix=no
19964 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019965 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019966 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019967 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019968 hardcode_into_libs=yes
19969 dynamic_linker="$host_os dld.so"
19970 shlibpath_var=LD_LIBRARY_PATH
19971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19973 soname_spec='${libname}${release}${shared_ext}$major'
19974 if test "X$HPUX_IA64_MODE" = X32; then
19975 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19976 else
19977 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19978 fi
19979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19980 ;;
19981 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019982 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019983 hardcode_into_libs=yes
19984 dynamic_linker="$host_os dld.sl"
19985 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19988 soname_spec='${libname}${release}${shared_ext}$major'
19989 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19991 ;;
19992 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019993 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000019994 dynamic_linker="$host_os dld.sl"
19995 shlibpath_var=SHLIB_PATH
19996 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19998 soname_spec='${libname}${release}${shared_ext}$major'
19999 ;;
20000 esac
20001 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20002 postinstall_cmds='chmod 555 $lib'
20003 ;;
20004
Reid Spencera773bd52006-08-04 18:18:08 +000020005interix3*)
20006 version_type=linux
20007 need_lib_prefix=no
20008 need_version=no
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20010 soname_spec='${libname}${release}${shared_ext}$major'
20011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20012 shlibpath_var=LD_LIBRARY_PATH
20013 shlibpath_overrides_runpath=no
20014 hardcode_into_libs=yes
20015 ;;
20016
John Criswell47fdd832003-07-14 16:52:07 +000020017irix5* | irix6* | nonstopux*)
20018 case $host_os in
20019 nonstopux*) version_type=nonstopux ;;
20020 *)
20021 if test "$lt_cv_prog_gnu_ld" = yes; then
20022 version_type=linux
20023 else
20024 version_type=irix
20025 fi ;;
20026 esac
20027 need_lib_prefix=no
20028 need_version=no
20029 soname_spec='${libname}${release}${shared_ext}$major'
20030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20031 case $host_os in
20032 irix5* | nonstopux*)
20033 libsuff= shlibsuff=
20034 ;;
20035 *)
20036 case $LD in # libtool.m4 will add one of these switches to LD
20037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20038 libsuff= shlibsuff= libmagic=32-bit;;
20039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20040 libsuff=32 shlibsuff=N32 libmagic=N32;;
20041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20043 *) libsuff= shlibsuff= libmagic=never-match;;
20044 esac
20045 ;;
20046 esac
20047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20048 shlibpath_overrides_runpath=no
20049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20051 hardcode_into_libs=yes
20052 ;;
20053
20054# No shared lib support for Linux oldld, aout, or coff.
20055linux*oldld* | linux*aout* | linux*coff*)
20056 dynamic_linker=no
20057 ;;
20058
20059# This must be Linux ELF.
20060linux*)
20061 version_type=linux
20062 need_lib_prefix=no
20063 need_version=no
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20065 soname_spec='${libname}${release}${shared_ext}$major'
20066 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20067 shlibpath_var=LD_LIBRARY_PATH
20068 shlibpath_overrides_runpath=no
20069 # This implies no fast_install, which is unacceptable.
20070 # Some rework will be needed to allow for fast_install
20071 # before this can be enabled.
20072 hardcode_into_libs=yes
20073
Reid Spencer2706f8c2004-09-19 23:53:36 +000020074 # Append ld.so.conf contents to the search path
20075 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020076 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 +000020077 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20078 fi
20079
John Criswell47fdd832003-07-14 16:52:07 +000020080 # We used to test for /lib/ld.so.1 and disable shared libraries on
20081 # powerpc, because MkLinux only supported shared libraries with the
20082 # GNU dynamic linker. Since this was broken with cross compilers,
20083 # most powerpc-linux boxes support dynamic linking these days and
20084 # people can always --disable-shared, the test was removed, and we
20085 # assume the GNU/Linux dynamic linker is in use.
20086 dynamic_linker='GNU/Linux ld.so'
20087 ;;
20088
Reid Spencer2706f8c2004-09-19 23:53:36 +000020089knetbsd*-gnu)
20090 version_type=linux
20091 need_lib_prefix=no
20092 need_version=no
20093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20094 soname_spec='${libname}${release}${shared_ext}$major'
20095 shlibpath_var=LD_LIBRARY_PATH
20096 shlibpath_overrides_runpath=no
20097 hardcode_into_libs=yes
20098 dynamic_linker='GNU ld.so'
20099 ;;
20100
John Criswell47fdd832003-07-14 16:52:07 +000020101netbsd*)
20102 version_type=sunos
20103 need_lib_prefix=no
20104 need_version=no
20105 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20108 dynamic_linker='NetBSD (a.out) ld.so'
20109 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020111 soname_spec='${libname}${release}${shared_ext}$major'
20112 dynamic_linker='NetBSD ld.elf_so'
20113 fi
20114 shlibpath_var=LD_LIBRARY_PATH
20115 shlibpath_overrides_runpath=yes
20116 hardcode_into_libs=yes
20117 ;;
20118
20119newsos6)
20120 version_type=linux
20121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20122 shlibpath_var=LD_LIBRARY_PATH
20123 shlibpath_overrides_runpath=yes
20124 ;;
20125
Reid Spencer2706f8c2004-09-19 23:53:36 +000020126nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020127 version_type=linux
20128 need_lib_prefix=no
20129 need_version=no
20130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20131 soname_spec='${libname}${release}${shared_ext}$major'
20132 shlibpath_var=LD_LIBRARY_PATH
20133 shlibpath_overrides_runpath=yes
20134 ;;
20135
20136openbsd*)
20137 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020138 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020139 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020140 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20141 case $host_os in
20142 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20143 *) need_version=no ;;
20144 esac
John Criswell47fdd832003-07-14 16:52:07 +000020145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20146 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20147 shlibpath_var=LD_LIBRARY_PATH
20148 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20149 case $host_os in
20150 openbsd2.[89] | openbsd2.[89].*)
20151 shlibpath_overrides_runpath=no
20152 ;;
20153 *)
20154 shlibpath_overrides_runpath=yes
20155 ;;
20156 esac
20157 else
20158 shlibpath_overrides_runpath=yes
20159 fi
20160 ;;
20161
20162os2*)
20163 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020164 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020165 need_lib_prefix=no
20166 library_names_spec='$libname${shared_ext} $libname.a'
20167 dynamic_linker='OS/2 ld.exe'
20168 shlibpath_var=LIBPATH
20169 ;;
20170
20171osf3* | osf4* | osf5*)
20172 version_type=osf
20173 need_lib_prefix=no
20174 need_version=no
20175 soname_spec='${libname}${release}${shared_ext}$major'
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177 shlibpath_var=LD_LIBRARY_PATH
20178 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20179 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20180 ;;
20181
John Criswell47fdd832003-07-14 16:52:07 +000020182solaris*)
20183 version_type=linux
20184 need_lib_prefix=no
20185 need_version=no
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20187 soname_spec='${libname}${release}${shared_ext}$major'
20188 shlibpath_var=LD_LIBRARY_PATH
20189 shlibpath_overrides_runpath=yes
20190 hardcode_into_libs=yes
20191 # ldd complains unless libraries are executable
20192 postinstall_cmds='chmod +x $lib'
20193 ;;
20194
20195sunos4*)
20196 version_type=sunos
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20198 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=yes
20201 if test "$with_gnu_ld" = yes; then
20202 need_lib_prefix=no
20203 fi
20204 need_version=yes
20205 ;;
20206
Reid Spencera773bd52006-08-04 18:18:08 +000020207sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020208 version_type=linux
20209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20210 soname_spec='${libname}${release}${shared_ext}$major'
20211 shlibpath_var=LD_LIBRARY_PATH
20212 case $host_vendor in
20213 sni)
20214 shlibpath_overrides_runpath=no
20215 need_lib_prefix=no
20216 export_dynamic_flag_spec='${wl}-Blargedynsym'
20217 runpath_var=LD_RUN_PATH
20218 ;;
20219 siemens)
20220 need_lib_prefix=no
20221 ;;
20222 motorola)
20223 need_lib_prefix=no
20224 need_version=no
20225 shlibpath_overrides_runpath=no
20226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20227 ;;
20228 esac
20229 ;;
20230
20231sysv4*MP*)
20232 if test -d /usr/nec ;then
20233 version_type=linux
20234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20235 soname_spec='$libname${shared_ext}.$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 fi
20238 ;;
20239
Reid Spencera773bd52006-08-04 18:18:08 +000020240sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20241 version_type=freebsd-elf
20242 need_lib_prefix=no
20243 need_version=no
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 shlibpath_var=LD_LIBRARY_PATH
20247 hardcode_into_libs=yes
20248 if test "$with_gnu_ld" = yes; then
20249 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20250 shlibpath_overrides_runpath=no
20251 else
20252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20253 shlibpath_overrides_runpath=yes
20254 case $host_os in
20255 sco3.2v5*)
20256 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20257 ;;
20258 esac
20259 fi
20260 sys_lib_dlsearch_path_spec='/usr/lib'
20261 ;;
20262
John Criswell47fdd832003-07-14 16:52:07 +000020263uts4*)
20264 version_type=linux
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20266 soname_spec='${libname}${release}${shared_ext}$major'
20267 shlibpath_var=LD_LIBRARY_PATH
20268 ;;
20269
20270*)
20271 dynamic_linker=no
20272 ;;
20273esac
Reid Spencera773bd52006-08-04 18:18:08 +000020274{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20275echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020276test "$dynamic_linker" = no && can_build_shared=no
20277
Reid Spencera773bd52006-08-04 18:18:08 +000020278variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20279if test "$GCC" = yes; then
20280 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20281fi
20282
20283{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20284echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020285hardcode_action_CXX=
20286if test -n "$hardcode_libdir_flag_spec_CXX" || \
20287 test -n "$runpath_var_CXX" || \
20288 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20289
20290 # We can hardcode non-existant directories.
20291 if test "$hardcode_direct_CXX" != no &&
20292 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20293 # have to relink, otherwise we might link with an installed library
20294 # when we should be linking with a yet-to-be-installed one
20295 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20296 test "$hardcode_minus_L_CXX" != no; then
20297 # Linking always hardcodes the temporary library directory.
20298 hardcode_action_CXX=relink
20299 else
20300 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20301 hardcode_action_CXX=immediate
20302 fi
20303else
20304 # We cannot hardcode anything, or else we can only hardcode existing
20305 # directories.
20306 hardcode_action_CXX=unsupported
20307fi
Reid Spencera773bd52006-08-04 18:18:08 +000020308{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20309echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020310
20311if test "$hardcode_action_CXX" = relink; then
20312 # Fast installation is not supported
20313 enable_fast_install=no
20314elif test "$shlibpath_overrides_runpath" = yes ||
20315 test "$enable_shared" = no; then
20316 # Fast installation is not necessary
20317 enable_fast_install=needless
20318fi
20319
John Criswell47fdd832003-07-14 16:52:07 +000020320
20321# The else clause should only fire when bootstrapping the
20322# libtool distribution, otherwise you forgot to ship ltmain.sh
20323# with your package, and you will get complaints that there are
20324# no rules to generate ltmain.sh.
20325if test -f "$ltmain"; then
20326 # See if we are running on zsh, and set the options which allow our commands through
20327 # without removal of \ escapes.
20328 if test -n "${ZSH_VERSION+set}" ; then
20329 setopt NO_GLOB_SUBST
20330 fi
20331 # Now quote all the things that may contain metacharacters while being
20332 # careful not to overquote the AC_SUBSTed values. We take copies of the
20333 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020334 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 +000020335 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020336 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20337 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20338 deplibs_check_method reload_flag reload_cmds need_locks \
20339 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20340 lt_cv_sys_global_symbol_to_c_name_address \
20341 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20342 old_postinstall_cmds old_postuninstall_cmds \
20343 compiler_CXX \
20344 CC_CXX \
20345 LD_CXX \
20346 lt_prog_compiler_wl_CXX \
20347 lt_prog_compiler_pic_CXX \
20348 lt_prog_compiler_static_CXX \
20349 lt_prog_compiler_no_builtin_flag_CXX \
20350 export_dynamic_flag_spec_CXX \
20351 thread_safe_flag_spec_CXX \
20352 whole_archive_flag_spec_CXX \
20353 enable_shared_with_static_runtimes_CXX \
20354 old_archive_cmds_CXX \
20355 old_archive_from_new_cmds_CXX \
20356 predep_objects_CXX \
20357 postdep_objects_CXX \
20358 predeps_CXX \
20359 postdeps_CXX \
20360 compiler_lib_search_path_CXX \
20361 archive_cmds_CXX \
20362 archive_expsym_cmds_CXX \
20363 postinstall_cmds_CXX \
20364 postuninstall_cmds_CXX \
20365 old_archive_from_expsyms_cmds_CXX \
20366 allow_undefined_flag_CXX \
20367 no_undefined_flag_CXX \
20368 export_symbols_cmds_CXX \
20369 hardcode_libdir_flag_spec_CXX \
20370 hardcode_libdir_flag_spec_ld_CXX \
20371 hardcode_libdir_separator_CXX \
20372 hardcode_automatic_CXX \
20373 module_cmds_CXX \
20374 module_expsym_cmds_CXX \
20375 lt_cv_prog_compiler_c_o_CXX \
20376 exclude_expsyms_CXX \
20377 include_expsyms_CXX; do
20378
20379 case $var in
20380 old_archive_cmds_CXX | \
20381 old_archive_from_new_cmds_CXX | \
20382 archive_cmds_CXX | \
20383 archive_expsym_cmds_CXX | \
20384 module_cmds_CXX | \
20385 module_expsym_cmds_CXX | \
20386 old_archive_from_expsyms_cmds_CXX | \
20387 export_symbols_cmds_CXX | \
20388 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20389 postinstall_cmds | postuninstall_cmds | \
20390 old_postinstall_cmds | old_postuninstall_cmds | \
20391 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20392 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020393 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 +000020394 ;;
20395 *)
20396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20397 ;;
20398 esac
20399 done
20400
20401 case $lt_echo in
20402 *'\$0 --fallback-echo"')
20403 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20404 ;;
20405 esac
20406
20407cfgfile="$ofile"
20408
20409 cat <<__EOF__ >> "$cfgfile"
20410# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20411
20412# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20413
20414# Shell to use when invoking shell scripts.
20415SHELL=$lt_SHELL
20416
20417# Whether or not to build shared libraries.
20418build_libtool_libs=$enable_shared
20419
20420# Whether or not to build static libraries.
20421build_old_libs=$enable_static
20422
20423# Whether or not to add -lc for building shared libraries.
20424build_libtool_need_lc=$archive_cmds_need_lc_CXX
20425
20426# Whether or not to disallow shared libs when runtime libs are static
20427allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20428
20429# Whether or not to optimize for fast installation.
20430fast_install=$enable_fast_install
20431
20432# The host system.
20433host_alias=$host_alias
20434host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020435host_os=$host_os
20436
20437# The build system.
20438build_alias=$build_alias
20439build=$build
20440build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020441
20442# An echo program that does not interpret backslashes.
20443echo=$lt_echo
20444
20445# The archiver.
20446AR=$lt_AR
20447AR_FLAGS=$lt_AR_FLAGS
20448
20449# A C compiler.
20450LTCC=$lt_LTCC
20451
Reid Spencera773bd52006-08-04 18:18:08 +000020452# LTCC compiler flags.
20453LTCFLAGS=$lt_LTCFLAGS
20454
John Criswell47fdd832003-07-14 16:52:07 +000020455# A language-specific compiler.
20456CC=$lt_compiler_CXX
20457
20458# Is the compiler the GNU C compiler?
20459with_gcc=$GCC_CXX
20460
20461# An ERE matcher.
20462EGREP=$lt_EGREP
20463
20464# The linker used to build libraries.
20465LD=$lt_LD_CXX
20466
20467# Whether we need hard or soft links.
20468LN_S=$lt_LN_S
20469
20470# A BSD-compatible nm program.
20471NM=$lt_NM
20472
20473# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020474STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020475
20476# Used to examine libraries when file_magic_cmd begins "file"
20477MAGIC_CMD=$MAGIC_CMD
20478
20479# Used on cygwin: DLL creation program.
20480DLLTOOL="$DLLTOOL"
20481
20482# Used on cygwin: object dumper.
20483OBJDUMP="$OBJDUMP"
20484
20485# Used on cygwin: assembler.
20486AS="$AS"
20487
20488# The name of the directory that contains temporary libtool files.
20489objdir=$objdir
20490
20491# How to create reloadable object files.
20492reload_flag=$lt_reload_flag
20493reload_cmds=$lt_reload_cmds
20494
20495# How to pass a linker flag through the compiler.
20496wl=$lt_lt_prog_compiler_wl_CXX
20497
20498# Object file suffix (normally "o").
20499objext="$ac_objext"
20500
20501# Old archive suffix (normally "a").
20502libext="$libext"
20503
20504# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020505shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020506
20507# Executable file suffix (normally "").
20508exeext="$exeext"
20509
20510# Additional compiler flags for building library objects.
20511pic_flag=$lt_lt_prog_compiler_pic_CXX
20512pic_mode=$pic_mode
20513
20514# What is the maximum length of a command?
20515max_cmd_len=$lt_cv_sys_max_cmd_len
20516
20517# Does compiler simultaneously support -c and -o options?
20518compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20519
Reid Spencera773bd52006-08-04 18:18:08 +000020520# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020521need_locks=$lt_need_locks
20522
20523# Do we need the lib prefix for modules?
20524need_lib_prefix=$need_lib_prefix
20525
20526# Do we need a version for libraries?
20527need_version=$need_version
20528
20529# Whether dlopen is supported.
20530dlopen_support=$enable_dlopen
20531
20532# Whether dlopen of programs is supported.
20533dlopen_self=$enable_dlopen_self
20534
20535# Whether dlopen of statically linked programs is supported.
20536dlopen_self_static=$enable_dlopen_self_static
20537
20538# Compiler flag to prevent dynamic linking.
20539link_static_flag=$lt_lt_prog_compiler_static_CXX
20540
20541# Compiler flag to turn off builtin functions.
20542no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20543
20544# Compiler flag to allow reflexive dlopens.
20545export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20546
20547# Compiler flag to generate shared objects directly from archives.
20548whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20549
20550# Compiler flag to generate thread-safe objects.
20551thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20552
20553# Library versioning type.
20554version_type=$version_type
20555
20556# Format of library name prefix.
20557libname_spec=$lt_libname_spec
20558
20559# List of archive names. First name is the real one, the rest are links.
20560# The last name is the one that the linker finds with -lNAME.
20561library_names_spec=$lt_library_names_spec
20562
20563# The coded name of the library, if different from the real name.
20564soname_spec=$lt_soname_spec
20565
20566# Commands used to build and install an old-style archive.
20567RANLIB=$lt_RANLIB
20568old_archive_cmds=$lt_old_archive_cmds_CXX
20569old_postinstall_cmds=$lt_old_postinstall_cmds
20570old_postuninstall_cmds=$lt_old_postuninstall_cmds
20571
20572# Create an old-style archive from a shared archive.
20573old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20574
20575# Create a temporary old-style archive to link instead of a shared archive.
20576old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20577
20578# Commands used to build and install a shared archive.
20579archive_cmds=$lt_archive_cmds_CXX
20580archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20581postinstall_cmds=$lt_postinstall_cmds
20582postuninstall_cmds=$lt_postuninstall_cmds
20583
20584# Commands used to build a loadable module (assumed same as above if empty)
20585module_cmds=$lt_module_cmds_CXX
20586module_expsym_cmds=$lt_module_expsym_cmds_CXX
20587
20588# Commands to strip libraries.
20589old_striplib=$lt_old_striplib
20590striplib=$lt_striplib
20591
20592# Dependencies to place before the objects being linked to create a
20593# shared library.
20594predep_objects=$lt_predep_objects_CXX
20595
20596# Dependencies to place after the objects being linked to create a
20597# shared library.
20598postdep_objects=$lt_postdep_objects_CXX
20599
20600# Dependencies to place before the objects being linked to create a
20601# shared library.
20602predeps=$lt_predeps_CXX
20603
20604# Dependencies to place after the objects being linked to create a
20605# shared library.
20606postdeps=$lt_postdeps_CXX
20607
20608# The library search path used internally by the compiler when linking
20609# a shared library.
20610compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20611
20612# Method to check whether dependent libraries are shared objects.
20613deplibs_check_method=$lt_deplibs_check_method
20614
20615# Command to use when deplibs_check_method == file_magic.
20616file_magic_cmd=$lt_file_magic_cmd
20617
20618# Flag that allows shared libraries with undefined symbols to be built.
20619allow_undefined_flag=$lt_allow_undefined_flag_CXX
20620
20621# Flag that forces no undefined symbols.
20622no_undefined_flag=$lt_no_undefined_flag_CXX
20623
20624# Commands used to finish a libtool library installation in a directory.
20625finish_cmds=$lt_finish_cmds
20626
20627# Same as above, but a single script fragment to be evaled but not shown.
20628finish_eval=$lt_finish_eval
20629
20630# Take the output of nm and produce a listing of raw symbols and C names.
20631global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20632
20633# Transform the output of nm in a proper C declaration
20634global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20635
20636# Transform the output of nm in a C name address pair
20637global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20638
20639# This is the shared library runtime path variable.
20640runpath_var=$runpath_var
20641
20642# This is the shared library path variable.
20643shlibpath_var=$shlibpath_var
20644
20645# Is shlibpath searched before the hard-coded library search path?
20646shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20647
20648# How to hardcode a shared library path into an executable.
20649hardcode_action=$hardcode_action_CXX
20650
20651# Whether we should hardcode library paths into libraries.
20652hardcode_into_libs=$hardcode_into_libs
20653
20654# Flag to hardcode \$libdir into a binary during linking.
20655# This must work even if \$libdir does not exist.
20656hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20657
20658# If ld is used when linking, flag to hardcode \$libdir into
20659# a binary during linking. This must work even if \$libdir does
20660# not exist.
20661hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20662
20663# Whether we need a single -rpath flag with a separated argument.
20664hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20665
20666# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20667# resulting binary.
20668hardcode_direct=$hardcode_direct_CXX
20669
20670# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20671# resulting binary.
20672hardcode_minus_L=$hardcode_minus_L_CXX
20673
20674# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20675# the resulting binary.
20676hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20677
20678# Set to yes if building a shared library automatically hardcodes DIR into the library
20679# and all subsequent libraries and executables linked against it.
20680hardcode_automatic=$hardcode_automatic_CXX
20681
20682# Variables whose values should be saved in libtool wrapper scripts and
20683# restored at relink time.
20684variables_saved_for_relink="$variables_saved_for_relink"
20685
20686# Whether libtool must link a program against all its dependency libraries.
20687link_all_deplibs=$link_all_deplibs_CXX
20688
20689# Compile-time system search path for libraries
20690sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20691
20692# Run-time system search path for libraries
20693sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20694
20695# Fix the shell variable \$srcfile for the compiler.
20696fix_srcfile_path="$fix_srcfile_path_CXX"
20697
20698# Set to yes if exported symbols are required.
20699always_export_symbols=$always_export_symbols_CXX
20700
20701# The commands to list exported symbols.
20702export_symbols_cmds=$lt_export_symbols_cmds_CXX
20703
20704# The commands to extract the exported symbol list from a shared archive.
20705extract_expsyms_cmds=$lt_extract_expsyms_cmds
20706
20707# Symbols that should not be listed in the preloaded symbols.
20708exclude_expsyms=$lt_exclude_expsyms_CXX
20709
20710# Symbols that must always be exported.
20711include_expsyms=$lt_include_expsyms_CXX
20712
20713# ### END LIBTOOL TAG CONFIG: $tagname
20714
20715__EOF__
20716
20717
20718else
20719 # If there is no Makefile yet, we rely on a make rule to execute
20720 # `config.status --recheck' to rerun these tests and create the
20721 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020722 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20723 if test -f "$ltmain_in"; then
20724 test -f Makefile && make "$ltmain"
20725 fi
John Criswell47fdd832003-07-14 16:52:07 +000020726fi
20727
20728
20729ac_ext=c
20730ac_cpp='$CPP $CPPFLAGS'
20731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20733ac_compiler_gnu=$ac_cv_c_compiler_gnu
20734
20735CC=$lt_save_CC
20736LDCXX=$LD
20737LD=$lt_save_LD
20738GCC=$lt_save_GCC
20739with_gnu_ldcxx=$with_gnu_ld
20740with_gnu_ld=$lt_save_with_gnu_ld
20741lt_cv_path_LDCXX=$lt_cv_path_LD
20742lt_cv_path_LD=$lt_save_path_LD
20743lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20744lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20745
20746 else
20747 tagname=""
20748 fi
20749 ;;
20750
20751 F77)
20752 if test -n "$F77" && test "X$F77" != "Xno"; then
20753
20754ac_ext=f
20755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20758
20759
20760archive_cmds_need_lc_F77=no
20761allow_undefined_flag_F77=
20762always_export_symbols_F77=no
20763archive_expsym_cmds_F77=
20764export_dynamic_flag_spec_F77=
20765hardcode_direct_F77=no
20766hardcode_libdir_flag_spec_F77=
20767hardcode_libdir_flag_spec_ld_F77=
20768hardcode_libdir_separator_F77=
20769hardcode_minus_L_F77=no
20770hardcode_automatic_F77=no
20771module_cmds_F77=
20772module_expsym_cmds_F77=
20773link_all_deplibs_F77=unknown
20774old_archive_cmds_F77=$old_archive_cmds
20775no_undefined_flag_F77=
20776whole_archive_flag_spec_F77=
20777enable_shared_with_static_runtimes_F77=no
20778
20779# Source file extension for f77 test sources.
20780ac_ext=f
20781
20782# Object file extension for compiled f77 test sources.
20783objext=o
20784objext_F77=$objext
20785
20786# Code to be used in simple compile tests
20787lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20788
20789# Code to be used in simple link tests
20790lt_simple_link_test_code=" program t\n end\n"
20791
20792# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20793
20794# If no C compiler was specified, use CC.
20795LTCC=${LTCC-"$CC"}
20796
Reid Spencera773bd52006-08-04 18:18:08 +000020797# If no C compiler flags were specified, use CFLAGS.
20798LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20799
John Criswell47fdd832003-07-14 16:52:07 +000020800# Allow CC to be a program name with arguments.
20801compiler=$CC
20802
20803
Reid Spencera773bd52006-08-04 18:18:08 +000020804# save warnings/boilerplate of simple test code
20805ac_outfile=conftest.$ac_objext
20806printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20807eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20808_lt_compiler_boilerplate=`cat conftest.err`
20809$rm conftest*
20810
20811ac_outfile=conftest.$ac_objext
20812printf "$lt_simple_link_test_code" >conftest.$ac_ext
20813eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20814_lt_linker_boilerplate=`cat conftest.err`
20815$rm conftest*
20816
20817
John Criswell47fdd832003-07-14 16:52:07 +000020818# Allow CC to be a program name with arguments.
20819lt_save_CC="$CC"
20820CC=${F77-"f77"}
20821compiler=$CC
20822compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020823for cc_temp in $compiler""; do
20824 case $cc_temp in
20825 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20826 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20827 \-*) ;;
20828 *) break;;
20829 esac
20830done
20831cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020832
John Criswell47fdd832003-07-14 16:52:07 +000020833
Reid Spencera773bd52006-08-04 18:18:08 +000020834{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20835echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20836{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20837echo "${ECHO_T}$can_build_shared" >&6; }
20838
20839{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20840echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020841test "$can_build_shared" = "no" && enable_shared=no
20842
20843# On AIX, shared libraries and static libraries use the same namespace, and
20844# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020845case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020846aix3*)
20847 test "$enable_shared" = yes && enable_static=no
20848 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020849 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020850 postinstall_cmds='$RANLIB $lib'
20851 fi
20852 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020853aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020854 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20855 test "$enable_shared" = yes && enable_static=no
20856 fi
John Criswell47fdd832003-07-14 16:52:07 +000020857 ;;
20858esac
Reid Spencera773bd52006-08-04 18:18:08 +000020859{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20860echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020861
Reid Spencera773bd52006-08-04 18:18:08 +000020862{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20863echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020864# Make sure either enable_shared or enable_static is yes.
20865test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020866{ echo "$as_me:$LINENO: result: $enable_static" >&5
20867echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020868
20869GCC_F77="$G77"
20870LD_F77="$LD"
20871
20872lt_prog_compiler_wl_F77=
20873lt_prog_compiler_pic_F77=
20874lt_prog_compiler_static_F77=
20875
Reid Spencera773bd52006-08-04 18:18:08 +000020876{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20877echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020878
20879 if test "$GCC" = yes; then
20880 lt_prog_compiler_wl_F77='-Wl,'
20881 lt_prog_compiler_static_F77='-static'
20882
20883 case $host_os in
20884 aix*)
20885 # All AIX code is PIC.
20886 if test "$host_cpu" = ia64; then
20887 # AIX 5 now supports IA64 processor
20888 lt_prog_compiler_static_F77='-Bstatic'
20889 fi
20890 ;;
20891
20892 amigaos*)
20893 # FIXME: we need at least 68020 code to build shared libraries, but
20894 # adding the `-m68020' flag to GCC prevents building anything better,
20895 # like `-m68040'.
20896 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20897 ;;
20898
20899 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20900 # PIC is the default for these OSes.
20901 ;;
20902
20903 mingw* | pw32* | os2*)
20904 # This hack is so that the source file can tell whether it is being
20905 # built for inclusion in a dll (and should export symbols for example).
20906 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20907 ;;
20908
20909 darwin* | rhapsody*)
20910 # PIC is the default on this platform
20911 # Common symbols not allowed in MH_DYLIB files
20912 lt_prog_compiler_pic_F77='-fno-common'
20913 ;;
20914
Reid Spencera773bd52006-08-04 18:18:08 +000020915 interix3*)
20916 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20917 # Instead, we relocate shared libraries at runtime.
20918 ;;
20919
John Criswell47fdd832003-07-14 16:52:07 +000020920 msdosdjgpp*)
20921 # Just because we use GCC doesn't mean we suddenly get shared libraries
20922 # on systems that don't support them.
20923 lt_prog_compiler_can_build_shared_F77=no
20924 enable_shared=no
20925 ;;
20926
20927 sysv4*MP*)
20928 if test -d /usr/nec; then
20929 lt_prog_compiler_pic_F77=-Kconform_pic
20930 fi
20931 ;;
20932
20933 hpux*)
20934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20935 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020936 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020937 hppa*64*|ia64*)
20938 # +Z the default
20939 ;;
20940 *)
20941 lt_prog_compiler_pic_F77='-fPIC'
20942 ;;
20943 esac
20944 ;;
20945
20946 *)
20947 lt_prog_compiler_pic_F77='-fPIC'
20948 ;;
20949 esac
20950 else
20951 # PORTME Check for flag to pass linker flags through the system compiler.
20952 case $host_os in
20953 aix*)
20954 lt_prog_compiler_wl_F77='-Wl,'
20955 if test "$host_cpu" = ia64; then
20956 # AIX 5 now supports IA64 processor
20957 lt_prog_compiler_static_F77='-Bstatic'
20958 else
20959 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20960 fi
20961 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020962 darwin*)
20963 # PIC is the default on this platform
20964 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020965 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020966 xlc*)
20967 lt_prog_compiler_pic_F77='-qnocommon'
20968 lt_prog_compiler_wl_F77='-Wl,'
20969 ;;
20970 esac
20971 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020972
20973 mingw* | pw32* | os2*)
20974 # This hack is so that the source file can tell whether it is being
20975 # built for inclusion in a dll (and should export symbols for example).
20976 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20977 ;;
20978
20979 hpux9* | hpux10* | hpux11*)
20980 lt_prog_compiler_wl_F77='-Wl,'
20981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20982 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020983 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020984 hppa*64*|ia64*)
20985 # +Z the default
20986 ;;
20987 *)
20988 lt_prog_compiler_pic_F77='+Z'
20989 ;;
20990 esac
20991 # Is there a better lt_prog_compiler_static that works with the bundled CC?
20992 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
20993 ;;
20994
20995 irix5* | irix6* | nonstopux*)
20996 lt_prog_compiler_wl_F77='-Wl,'
20997 # PIC (with -KPIC) is the default.
20998 lt_prog_compiler_static_F77='-non_shared'
20999 ;;
21000
21001 newsos6)
21002 lt_prog_compiler_pic_F77='-KPIC'
21003 lt_prog_compiler_static_F77='-Bstatic'
21004 ;;
21005
21006 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021007 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021008 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021009 lt_prog_compiler_wl_F77='-Wl,'
21010 lt_prog_compiler_pic_F77='-KPIC'
21011 lt_prog_compiler_static_F77='-static'
21012 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021013 pgcc* | pgf77* | pgf90* | pgf95*)
21014 # Portland Group compilers (*not* the Pentium gcc compiler,
21015 # which looks to be a dead project)
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 lt_prog_compiler_pic_F77='-fpic'
21018 lt_prog_compiler_static_F77='-Bstatic'
21019 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021020 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021021 lt_prog_compiler_wl_F77='-Wl,'
21022 # All Alpha code is PIC.
21023 lt_prog_compiler_static_F77='-non_shared'
21024 ;;
21025 esac
21026 ;;
21027
21028 osf3* | osf4* | osf5*)
21029 lt_prog_compiler_wl_F77='-Wl,'
21030 # All OSF/1 code is PIC.
21031 lt_prog_compiler_static_F77='-non_shared'
21032 ;;
21033
John Criswell47fdd832003-07-14 16:52:07 +000021034 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021035 lt_prog_compiler_pic_F77='-KPIC'
21036 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021037 case $cc_basename in
21038 f77* | f90* | f95*)
21039 lt_prog_compiler_wl_F77='-Qoption ld ';;
21040 *)
21041 lt_prog_compiler_wl_F77='-Wl,';;
21042 esac
John Criswell47fdd832003-07-14 16:52:07 +000021043 ;;
21044
21045 sunos4*)
21046 lt_prog_compiler_wl_F77='-Qoption ld '
21047 lt_prog_compiler_pic_F77='-PIC'
21048 lt_prog_compiler_static_F77='-Bstatic'
21049 ;;
21050
Reid Spencera773bd52006-08-04 18:18:08 +000021051 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021052 lt_prog_compiler_wl_F77='-Wl,'
21053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
21055 ;;
21056
21057 sysv4*MP*)
21058 if test -d /usr/nec ;then
21059 lt_prog_compiler_pic_F77='-Kconform_pic'
21060 lt_prog_compiler_static_F77='-Bstatic'
21061 fi
21062 ;;
21063
Reid Spencera773bd52006-08-04 18:18:08 +000021064 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21065 lt_prog_compiler_wl_F77='-Wl,'
21066 lt_prog_compiler_pic_F77='-KPIC'
21067 lt_prog_compiler_static_F77='-Bstatic'
21068 ;;
21069
21070 unicos*)
21071 lt_prog_compiler_wl_F77='-Wl,'
21072 lt_prog_compiler_can_build_shared_F77=no
21073 ;;
21074
John Criswell47fdd832003-07-14 16:52:07 +000021075 uts4*)
21076 lt_prog_compiler_pic_F77='-pic'
21077 lt_prog_compiler_static_F77='-Bstatic'
21078 ;;
21079
21080 *)
21081 lt_prog_compiler_can_build_shared_F77=no
21082 ;;
21083 esac
21084 fi
21085
Reid Spencera773bd52006-08-04 18:18:08 +000021086{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21087echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021088
21089#
21090# Check to make sure the PIC flag actually works.
21091#
21092if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021093
Reid Spencera773bd52006-08-04 18:18:08 +000021094{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21095echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021096if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21097 echo $ECHO_N "(cached) $ECHO_C" >&6
21098else
21099 lt_prog_compiler_pic_works_F77=no
21100 ac_outfile=conftest.$ac_objext
21101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21102 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21103 # Insert the option either (1) after the last *FLAGS variable, or
21104 # (2) before a word containing "conftest.", or (3) at the end.
21105 # Note that $ac_compile itself does not contain backslashes and begins
21106 # with a dollar sign (not a hyphen), so the echo should work correctly.
21107 # The option is referenced via a variable to avoid confusing sed.
21108 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021109 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021110 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21111 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000021112 (eval echo "\"\$as_me:21112: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021113 (eval "$lt_compile" 2>conftest.err)
21114 ac_status=$?
21115 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000021116 echo "$as_me:21116: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021117 if (exit $ac_status) && test -s "$ac_outfile"; then
21118 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021119 # So say no if there are warnings other than the usual output.
21120 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21121 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21122 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021123 lt_prog_compiler_pic_works_F77=yes
21124 fi
21125 fi
21126 $rm conftest*
21127
21128fi
Reid Spencera773bd52006-08-04 18:18:08 +000021129{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21130echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021131
21132if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21133 case $lt_prog_compiler_pic_F77 in
21134 "" | " "*) ;;
21135 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21136 esac
21137else
21138 lt_prog_compiler_pic_F77=
21139 lt_prog_compiler_can_build_shared_F77=no
21140fi
21141
21142fi
Reid Spencera773bd52006-08-04 18:18:08 +000021143case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021144 # For platforms which do not support PIC, -DPIC is meaningless:
21145 *djgpp*)
21146 lt_prog_compiler_pic_F77=
21147 ;;
21148 *)
21149 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21150 ;;
21151esac
21152
Reid Spencera773bd52006-08-04 18:18:08 +000021153#
21154# Check to make sure the static flag actually works.
21155#
21156wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21157{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21158echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21159if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161else
21162 lt_prog_compiler_static_works_F77=no
21163 save_LDFLAGS="$LDFLAGS"
21164 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21165 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21166 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21167 # The linker can only warn and ignore the option if not recognized
21168 # So say no if there are warnings
21169 if test -s conftest.err; then
21170 # Append any errors to the config.log.
21171 cat conftest.err 1>&5
21172 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21174 if diff conftest.exp conftest.er2 >/dev/null; then
21175 lt_prog_compiler_static_works_F77=yes
21176 fi
21177 else
21178 lt_prog_compiler_static_works_F77=yes
21179 fi
21180 fi
21181 $rm conftest*
21182 LDFLAGS="$save_LDFLAGS"
21183
21184fi
21185{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21186echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21187
21188if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21189 :
21190else
21191 lt_prog_compiler_static_F77=
21192fi
21193
21194
21195{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21196echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021197if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21198 echo $ECHO_N "(cached) $ECHO_C" >&6
21199else
21200 lt_cv_prog_compiler_c_o_F77=no
21201 $rm -r conftest 2>/dev/null
21202 mkdir conftest
21203 cd conftest
21204 mkdir out
21205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21206
John Criswell47fdd832003-07-14 16:52:07 +000021207 lt_compiler_flag="-o out/conftest2.$ac_objext"
21208 # Insert the option either (1) after the last *FLAGS variable, or
21209 # (2) before a word containing "conftest.", or (3) at the end.
21210 # Note that $ac_compile itself does not contain backslashes and begins
21211 # with a dollar sign (not a hyphen), so the echo should work correctly.
21212 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21215 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000021216 (eval echo "\"\$as_me:21216: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021217 (eval "$lt_compile" 2>out/conftest.err)
21218 ac_status=$?
21219 cat out/conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000021220 echo "$as_me:21220: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21222 then
21223 # The compiler can only warn and ignore the option if not recognized
21224 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021225 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021228 lt_cv_prog_compiler_c_o_F77=yes
21229 fi
21230 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021231 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021232 $rm conftest*
21233 # SGI C++ compiler will create directory out/ii_files/ for
21234 # template instantiation
21235 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21236 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021237 cd ..
21238 rmdir conftest
21239 $rm conftest*
21240
21241fi
Reid Spencera773bd52006-08-04 18:18:08 +000021242{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21243echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021244
21245
21246hard_links="nottested"
21247if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21248 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021249 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21250echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021251 hard_links=yes
21252 $rm conftest*
21253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21254 touch conftest.a
21255 ln conftest.a conftest.b 2>&5 || hard_links=no
21256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021257 { echo "$as_me:$LINENO: result: $hard_links" >&5
21258echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021259 if test "$hard_links" = no; then
21260 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21261echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21262 need_locks=warn
21263 fi
21264else
21265 need_locks=no
21266fi
21267
Reid Spencera773bd52006-08-04 18:18:08 +000021268{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21269echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021270
21271 runpath_var=
21272 allow_undefined_flag_F77=
21273 enable_shared_with_static_runtimes_F77=no
21274 archive_cmds_F77=
21275 archive_expsym_cmds_F77=
21276 old_archive_From_new_cmds_F77=
21277 old_archive_from_expsyms_cmds_F77=
21278 export_dynamic_flag_spec_F77=
21279 whole_archive_flag_spec_F77=
21280 thread_safe_flag_spec_F77=
21281 hardcode_libdir_flag_spec_F77=
21282 hardcode_libdir_flag_spec_ld_F77=
21283 hardcode_libdir_separator_F77=
21284 hardcode_direct_F77=no
21285 hardcode_minus_L_F77=no
21286 hardcode_shlibpath_var_F77=unsupported
21287 link_all_deplibs_F77=unknown
21288 hardcode_automatic_F77=no
21289 module_cmds_F77=
21290 module_expsym_cmds_F77=
21291 always_export_symbols_F77=no
21292 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21293 # include_expsyms should be a list of space-separated symbols to be *always*
21294 # included in the symbol list
21295 include_expsyms_F77=
21296 # exclude_expsyms can be an extended regexp of symbols to exclude
21297 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21298 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21299 # as well as any symbol that contains `d'.
21300 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21301 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21302 # platforms (ab)use it in PIC code, but their linkers get confused if
21303 # the symbol is explicitly referenced. Since portable code cannot
21304 # rely on this symbol name, it's probably fine to never include it in
21305 # preloaded symbol tables.
21306 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021307 # Just being paranoid about ensuring that cc_basename is set.
21308 for cc_temp in $compiler""; do
21309 case $cc_temp in
21310 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21311 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21312 \-*) ;;
21313 *) break;;
21314 esac
21315done
21316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021317
21318 case $host_os in
21319 cygwin* | mingw* | pw32*)
21320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21321 # When not using gcc, we currently assume that we are using
21322 # Microsoft Visual C++.
21323 if test "$GCC" != yes; then
21324 with_gnu_ld=no
21325 fi
21326 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021327 interix*)
21328 # we just hope/assume this is gcc and not c89 (= MSVC++)
21329 with_gnu_ld=yes
21330 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021331 openbsd*)
21332 with_gnu_ld=no
21333 ;;
21334 esac
21335
21336 ld_shlibs_F77=yes
21337 if test "$with_gnu_ld" = yes; then
21338 # If archive_cmds runs LD, not CC, wlarc should be empty
21339 wlarc='${wl}'
21340
Reid Spencera773bd52006-08-04 18:18:08 +000021341 # Set some defaults for GNU ld with shared library support. These
21342 # are reset later if shared libraries are not supported. Putting them
21343 # here allows them to be overridden if necessary.
21344 runpath_var=LD_RUN_PATH
21345 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21346 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21347 # ancient GNU ld didn't support --whole-archive et. al.
21348 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21349 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21350 else
21351 whole_archive_flag_spec_F77=
21352 fi
21353 supports_anon_versioning=no
21354 case `$LD -v 2>/dev/null` in
21355 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21356 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21357 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21358 *\ 2.11.*) ;; # other 2.11 versions
21359 *) supports_anon_versioning=yes ;;
21360 esac
21361
John Criswell47fdd832003-07-14 16:52:07 +000021362 # See if GNU ld supports shared libraries.
21363 case $host_os in
21364 aix3* | aix4* | aix5*)
21365 # On AIX/PPC, the GNU linker is very broken
21366 if test "$host_cpu" != ia64; then
21367 ld_shlibs_F77=no
21368 cat <<EOF 1>&2
21369
21370*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21371*** to be unable to reliably create shared libraries on AIX.
21372*** Therefore, libtool is disabling shared libraries support. If you
21373*** really care for shared libraries, you may want to modify your PATH
21374*** so that a non-GNU linker is found, and then restart.
21375
21376EOF
21377 fi
21378 ;;
21379
21380 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021381 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 +000021382 hardcode_libdir_flag_spec_F77='-L$libdir'
21383 hardcode_minus_L_F77=yes
21384
21385 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21386 # that the semantics of dynamic libraries on AmigaOS, at least up
21387 # to version 4, is to share data among multiple programs linked
21388 # with the same dynamic library. Since this doesn't match the
21389 # behavior of shared libraries on other platforms, we can't use
21390 # them.
21391 ld_shlibs_F77=no
21392 ;;
21393
21394 beos*)
21395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21396 allow_undefined_flag_F77=unsupported
21397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21398 # support --undefined. This deserves some investigation. FIXME
21399 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21400 else
21401 ld_shlibs_F77=no
21402 fi
21403 ;;
21404
21405 cygwin* | mingw* | pw32*)
21406 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21407 # as there is no search path for DLLs.
21408 hardcode_libdir_flag_spec_F77='-L$libdir'
21409 allow_undefined_flag_F77=unsupported
21410 always_export_symbols_F77=no
21411 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021412 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 +000021413
21414 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021415 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 +000021416 # If the export-symbols file already is a .def file (1st line
21417 # is EXPORTS), use it as is; otherwise, prepend...
21418 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21419 cp $export_symbols $output_objdir/$soname.def;
21420 else
21421 echo EXPORTS > $output_objdir/$soname.def;
21422 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021423 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021424 $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 +000021425 else
Reid Spencera773bd52006-08-04 18:18:08 +000021426 ld_shlibs_F77=no
21427 fi
21428 ;;
21429
21430 interix3*)
21431 hardcode_direct_F77=no
21432 hardcode_shlibpath_var_F77=no
21433 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21434 export_dynamic_flag_spec_F77='${wl}-E'
21435 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21436 # Instead, shared libraries are loaded at an image base (0x10000000 by
21437 # default) and relocated if they conflict, which is a slow very memory
21438 # consuming and fragmenting process. To avoid this, we pick a random,
21439 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21440 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21441 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'
21442 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'
21443 ;;
21444
21445 linux*)
21446 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21447 tmp_addflag=
21448 case $cc_basename,$host_cpu in
21449 pgcc*) # Portland Group C compiler
21450 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'
21451 tmp_addflag=' $pic_flag'
21452 ;;
21453 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21454 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'
21455 tmp_addflag=' $pic_flag -Mnomain' ;;
21456 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21457 tmp_addflag=' -i_dynamic' ;;
21458 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21459 tmp_addflag=' -i_dynamic -nofor_main' ;;
21460 ifc* | ifort*) # Intel Fortran compiler
21461 tmp_addflag=' -nofor_main' ;;
21462 esac
21463 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21464
21465 if test $supports_anon_versioning = yes; then
21466 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21468 $echo "local: *; };" >> $output_objdir/$libname.ver~
21469 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21470 fi
21471 else
21472 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021473 fi
21474 ;;
21475
21476 netbsd*)
21477 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21478 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21479 wlarc=
21480 else
21481 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21483 fi
21484 ;;
21485
Reid Spencera773bd52006-08-04 18:18:08 +000021486 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021487 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21488 ld_shlibs_F77=no
21489 cat <<EOF 1>&2
21490
21491*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21492*** create shared libraries on Solaris systems. Therefore, libtool
21493*** is disabling shared libraries support. We urge you to upgrade GNU
21494*** binutils to release 2.9.1 or newer. Another option is to modify
21495*** your PATH or compiler configuration so that the native linker is
21496*** used, and then restart.
21497
21498EOF
21499 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21500 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21501 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21502 else
21503 ld_shlibs_F77=no
21504 fi
21505 ;;
21506
Reid Spencera773bd52006-08-04 18:18:08 +000021507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21508 case `$LD -v 2>&1` in
21509 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21510 ld_shlibs_F77=no
21511 cat <<_LT_EOF 1>&2
21512
21513*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21514*** reliably create shared libraries on SCO systems. Therefore, libtool
21515*** is disabling shared libraries support. We urge you to upgrade GNU
21516*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21517*** your PATH or compiler configuration so that the native linker is
21518*** used, and then restart.
21519
21520_LT_EOF
21521 ;;
21522 *)
21523 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21524 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21525 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21526 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21527 else
21528 ld_shlibs_F77=no
21529 fi
21530 ;;
21531 esac
21532 ;;
21533
John Criswell47fdd832003-07-14 16:52:07 +000021534 sunos4*)
21535 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21536 wlarc=
21537 hardcode_direct_F77=yes
21538 hardcode_shlibpath_var_F77=no
21539 ;;
21540
21541 *)
21542 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21545 else
21546 ld_shlibs_F77=no
21547 fi
21548 ;;
21549 esac
21550
Reid Spencera773bd52006-08-04 18:18:08 +000021551 if test "$ld_shlibs_F77" = no; then
21552 runpath_var=
21553 hardcode_libdir_flag_spec_F77=
21554 export_dynamic_flag_spec_F77=
21555 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021556 fi
21557 else
21558 # PORTME fill in a description of your system's linker (not GNU ld)
21559 case $host_os in
21560 aix3*)
21561 allow_undefined_flag_F77=unsupported
21562 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021563 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 +000021564 # Note: this linker hardcodes the directories in LIBPATH if there
21565 # are no directories specified by -L.
21566 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021568 # Neither direct hardcoding nor static linking is supported with a
21569 # broken collect2.
21570 hardcode_direct_F77=unsupported
21571 fi
21572 ;;
21573
21574 aix4* | aix5*)
21575 if test "$host_cpu" = ia64; then
21576 # On IA64, the linker does run time linking by default, so we don't
21577 # have to do anything special.
21578 aix_use_runtimelinking=no
21579 exp_sym_flag='-Bexport'
21580 no_entry_flag=""
21581 else
21582 # If we're using GNU nm, then we don't want the "-C" option.
21583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21584 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21585 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'
21586 else
21587 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'
21588 fi
21589 aix_use_runtimelinking=no
21590
21591 # Test if we are trying to use run time linking or normal
21592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21593 # need to do runtime linking.
21594 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21595 for ld_flag in $LDFLAGS; do
21596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21597 aix_use_runtimelinking=yes
21598 break
21599 fi
21600 done
Reid Spencera773bd52006-08-04 18:18:08 +000021601 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021602 esac
21603
21604 exp_sym_flag='-bexport'
21605 no_entry_flag='-bnoentry'
21606 fi
21607
21608 # When large executables or shared objects are built, AIX ld can
21609 # have problems creating the table of contents. If linking a library
21610 # or program results in "error TOC overflow" add -mminimal-toc to
21611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21613
21614 archive_cmds_F77=''
21615 hardcode_direct_F77=yes
21616 hardcode_libdir_separator_F77=':'
21617 link_all_deplibs_F77=yes
21618
21619 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021620 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021621 # We only want to do this on AIX 4.2 and lower, the check
21622 # below for broken collect2 doesn't work under 4.3+
21623 collect2name=`${CC} -print-prog-name=collect2`
21624 if test -f "$collect2name" && \
21625 strings "$collect2name" | grep resolve_lib_name >/dev/null
21626 then
21627 # We have reworked collect2
21628 hardcode_direct_F77=yes
21629 else
21630 # We have old collect2
21631 hardcode_direct_F77=unsupported
21632 # It fails to find uninstalled libraries when the uninstalled
21633 # path is not listed in the libpath. Setting hardcode_minus_L
21634 # to unsupported forces relinking
21635 hardcode_minus_L_F77=yes
21636 hardcode_libdir_flag_spec_F77='-L$libdir'
21637 hardcode_libdir_separator_F77=
21638 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021639 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021640 esac
21641 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021642 if test "$aix_use_runtimelinking" = yes; then
21643 shared_flag="$shared_flag "'${wl}-G'
21644 fi
John Criswell47fdd832003-07-14 16:52:07 +000021645 else
21646 # not using gcc
21647 if test "$host_cpu" = ia64; then
21648 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21649 # chokes on -Wl,-G. The following line is correct:
21650 shared_flag='-G'
21651 else
Reid Spencera773bd52006-08-04 18:18:08 +000021652 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021653 shared_flag='${wl}-G'
21654 else
21655 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021656 fi
John Criswell47fdd832003-07-14 16:52:07 +000021657 fi
21658 fi
21659
21660 # It seems that -bexpall does not export symbols beginning with
21661 # underscore (_), so it is better to generate a list of symbols to export.
21662 always_export_symbols_F77=yes
21663 if test "$aix_use_runtimelinking" = yes; then
21664 # Warning - without using the other runtime loading flags (-brtl),
21665 # -berok will link without error, but may produce a broken library.
21666 allow_undefined_flag_F77='-berok'
21667 # Determine the default libpath from the value encoded in an empty executable.
21668 cat >conftest.$ac_ext <<_ACEOF
21669 program main
21670
21671 end
21672_ACEOF
21673rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021674if { (ac_try="$ac_link"
21675case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678esac
21679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021681 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021687 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691esac
21692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701esac
21702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707
21708aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21709}'`
21710# Check for a 64-bit object if we didn't find anything.
21711if 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; }
21712}'`; fi
21713else
21714 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021715sed 's/^/| /' conftest.$ac_ext >&5
21716
Reid Spencera773bd52006-08-04 18:18:08 +000021717
John Criswell47fdd832003-07-14 16:52:07 +000021718fi
Reid Spencera773bd52006-08-04 18:18:08 +000021719
21720rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021721 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021722if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21723
21724 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021725 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 +000021726 else
21727 if test "$host_cpu" = ia64; then
21728 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21729 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021730 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 +000021731 else
21732 # Determine the default libpath from the value encoded in an empty executable.
21733 cat >conftest.$ac_ext <<_ACEOF
21734 program main
21735
21736 end
21737_ACEOF
21738rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021739if { (ac_try="$ac_link"
21740case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743esac
21744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021746 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021752 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21753 { (case "(($ac_try" in
21754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755 *) ac_try_echo=$ac_try;;
21756esac
21757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021763 { (case "(($ac_try" in
21764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21765 *) ac_try_echo=$ac_try;;
21766esac
21767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21768 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021769 ac_status=$?
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772
21773aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21774}'`
21775# Check for a 64-bit object if we didn't find anything.
21776if 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; }
21777}'`; fi
21778else
21779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021780sed 's/^/| /' conftest.$ac_ext >&5
21781
Reid Spencera773bd52006-08-04 18:18:08 +000021782
John Criswell47fdd832003-07-14 16:52:07 +000021783fi
Reid Spencera773bd52006-08-04 18:18:08 +000021784
21785rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021786 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021787if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21788
21789 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21790 # Warning - without using the other run time loading flags,
21791 # -berok will link without error, but may produce a broken library.
21792 no_undefined_flag_F77=' ${wl}-bernotok'
21793 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021794 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021795 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021796 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021797 # This is similar to how AIX traditionally builds its shared libraries.
21798 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 +000021799 fi
21800 fi
21801 ;;
21802
21803 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021804 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 +000021805 hardcode_libdir_flag_spec_F77='-L$libdir'
21806 hardcode_minus_L_F77=yes
21807 # see comment about different semantics on the GNU ld section
21808 ld_shlibs_F77=no
21809 ;;
21810
Reid Spencer2706f8c2004-09-19 23:53:36 +000021811 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021812 export_dynamic_flag_spec_F77=-rdynamic
21813 ;;
21814
21815 cygwin* | mingw* | pw32*)
21816 # When not using gcc, we currently assume that we are using
21817 # Microsoft Visual C++.
21818 # hardcode_libdir_flag_spec is actually meaningless, as there is
21819 # no search path for DLLs.
21820 hardcode_libdir_flag_spec_F77=' '
21821 allow_undefined_flag_F77=unsupported
21822 # Tell ltmain to make .lib files, not .a files.
21823 libext=lib
21824 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021825 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021826 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021827 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 +000021828 # The linker will automatically build a .lib file if we build a DLL.
21829 old_archive_From_new_cmds_F77='true'
21830 # FIXME: Should let the user specify the lib program.
21831 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021832 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021833 enable_shared_with_static_runtimes_F77=yes
21834 ;;
21835
21836 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021837 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021838 rhapsody* | darwin1.[012])
21839 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21840 ;;
21841 *) # Darwin 1.3 on
21842 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21843 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21844 else
21845 case ${MACOSX_DEPLOYMENT_TARGET} in
21846 10.[012])
21847 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21848 ;;
21849 10.*)
21850 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21851 ;;
21852 esac
21853 fi
21854 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021855 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021856 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021857 hardcode_direct_F77=no
21858 hardcode_automatic_F77=yes
21859 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021860 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021861 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021862 if test "$GCC" = yes ; then
21863 output_verbose_link_cmd='echo'
21864 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21865 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021866 # 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 +000021867 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}'
21868 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 +000021869 else
Reid Spencera773bd52006-08-04 18:18:08 +000021870 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021871 xlc*)
21872 output_verbose_link_cmd='echo'
21873 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21874 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021875 # 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 +000021876 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}'
21877 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 +000021878 ;;
21879 *)
21880 ld_shlibs_F77=no
21881 ;;
21882 esac
John Criswell47fdd832003-07-14 16:52:07 +000021883 fi
21884 ;;
21885
21886 dgux*)
21887 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21888 hardcode_libdir_flag_spec_F77='-L$libdir'
21889 hardcode_shlibpath_var_F77=no
21890 ;;
21891
21892 freebsd1*)
21893 ld_shlibs_F77=no
21894 ;;
21895
21896 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21897 # support. Future versions do this automatically, but an explicit c++rt0.o
21898 # does not break anything, and helps significantly (at the cost of a little
21899 # extra space).
21900 freebsd2.2*)
21901 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21902 hardcode_libdir_flag_spec_F77='-R$libdir'
21903 hardcode_direct_F77=yes
21904 hardcode_shlibpath_var_F77=no
21905 ;;
21906
21907 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21908 freebsd2*)
21909 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910 hardcode_direct_F77=yes
21911 hardcode_minus_L_F77=yes
21912 hardcode_shlibpath_var_F77=no
21913 ;;
21914
21915 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021916 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021917 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21918 hardcode_libdir_flag_spec_F77='-R$libdir'
21919 hardcode_direct_F77=yes
21920 hardcode_shlibpath_var_F77=no
21921 ;;
21922
21923 hpux9*)
21924 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021925 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 +000021926 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021927 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 +000021928 fi
21929 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21930 hardcode_libdir_separator_F77=:
21931 hardcode_direct_F77=yes
21932
21933 # hardcode_minus_L: Not really in the search PATH,
21934 # but as the default location of the library.
21935 hardcode_minus_L_F77=yes
21936 export_dynamic_flag_spec_F77='${wl}-E'
21937 ;;
21938
Reid Spencera773bd52006-08-04 18:18:08 +000021939 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021940 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021941 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21942 else
21943 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21944 fi
21945 if test "$with_gnu_ld" = no; then
21946 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21947 hardcode_libdir_separator_F77=:
21948
21949 hardcode_direct_F77=yes
21950 export_dynamic_flag_spec_F77='${wl}-E'
21951
21952 # hardcode_minus_L: Not really in the search PATH,
21953 # but as the default location of the library.
21954 hardcode_minus_L_F77=yes
21955 fi
21956 ;;
21957
21958 hpux11*)
21959 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21960 case $host_cpu in
21961 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021962 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21963 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021964 ia64*)
21965 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21966 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021967 *)
21968 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21969 ;;
21970 esac
21971 else
Reid Spencera773bd52006-08-04 18:18:08 +000021972 case $host_cpu in
21973 hppa*64*)
21974 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21975 ;;
21976 ia64*)
21977 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021978 ;;
21979 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021980 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 +000021981 ;;
21982 esac
21983 fi
21984 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021985 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21986 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000021987
Reid Spencera773bd52006-08-04 18:18:08 +000021988 case $host_cpu in
21989 hppa*64*|ia64*)
21990 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
21991 hardcode_direct_F77=no
21992 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021993 ;;
21994 *)
John Criswell47fdd832003-07-14 16:52:07 +000021995 hardcode_direct_F77=yes
21996 export_dynamic_flag_spec_F77='${wl}-E'
21997
21998 # hardcode_minus_L: Not really in the search PATH,
21999 # but as the default location of the library.
22000 hardcode_minus_L_F77=yes
22001 ;;
22002 esac
22003 fi
22004 ;;
22005
22006 irix5* | irix6* | nonstopux*)
22007 if test "$GCC" = yes; then
22008 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'
22009 else
22010 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'
22011 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22012 fi
22013 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22014 hardcode_libdir_separator_F77=:
22015 link_all_deplibs_F77=yes
22016 ;;
22017
22018 netbsd*)
22019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22020 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22021 else
22022 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22023 fi
22024 hardcode_libdir_flag_spec_F77='-R$libdir'
22025 hardcode_direct_F77=yes
22026 hardcode_shlibpath_var_F77=no
22027 ;;
22028
22029 newsos6)
22030 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_direct_F77=yes
22032 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22033 hardcode_libdir_separator_F77=:
22034 hardcode_shlibpath_var_F77=no
22035 ;;
22036
22037 openbsd*)
22038 hardcode_direct_F77=yes
22039 hardcode_shlibpath_var_F77=no
22040 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22041 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022042 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 +000022043 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22044 export_dynamic_flag_spec_F77='${wl}-E'
22045 else
22046 case $host_os in
22047 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22048 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22049 hardcode_libdir_flag_spec_F77='-R$libdir'
22050 ;;
22051 *)
22052 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22053 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22054 ;;
22055 esac
22056 fi
22057 ;;
22058
22059 os2*)
22060 hardcode_libdir_flag_spec_F77='-L$libdir'
22061 hardcode_minus_L_F77=yes
22062 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022063 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 +000022064 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22065 ;;
22066
22067 osf3*)
22068 if test "$GCC" = yes; then
22069 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22070 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'
22071 else
22072 allow_undefined_flag_F77=' -expect_unresolved \*'
22073 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'
22074 fi
22075 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22076 hardcode_libdir_separator_F77=:
22077 ;;
22078
22079 osf4* | osf5*) # as osf3* with the addition of -msym flag
22080 if test "$GCC" = yes; then
22081 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22082 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'
22083 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22084 else
22085 allow_undefined_flag_F77=' -expect_unresolved \*'
22086 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 +000022087 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 +000022088 $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 +000022089
John Criswell47fdd832003-07-14 16:52:07 +000022090 # Both c and cxx compiler support -rpath directly
22091 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22092 fi
22093 hardcode_libdir_separator_F77=:
22094 ;;
22095
John Criswell47fdd832003-07-14 16:52:07 +000022096 solaris*)
22097 no_undefined_flag_F77=' -z text'
22098 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022099 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022100 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022101 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22102 $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 +000022103 else
Reid Spencera773bd52006-08-04 18:18:08 +000022104 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022105 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022106 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22107 $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 +000022108 fi
22109 hardcode_libdir_flag_spec_F77='-R$libdir'
22110 hardcode_shlibpath_var_F77=no
22111 case $host_os in
22112 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022113 *)
22114 # The compiler driver will combine linker options so we
22115 # cannot just pass the convience library names through
22116 # without $wl, iff we do not link with $LD.
22117 # Luckily, gcc supports the same syntax we need for Sun Studio.
22118 # Supported since Solaris 2.6 (maybe 2.5.1?)
22119 case $wlarc in
22120 '')
22121 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22122 *)
22123 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' ;;
22124 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022125 esac
22126 link_all_deplibs_F77=yes
22127 ;;
22128
22129 sunos4*)
22130 if test "x$host_vendor" = xsequent; then
22131 # Use $CC to link under sequent, because it throws in some extra .o
22132 # files that make .init and .fini sections work.
22133 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22134 else
22135 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22136 fi
22137 hardcode_libdir_flag_spec_F77='-L$libdir'
22138 hardcode_direct_F77=yes
22139 hardcode_minus_L_F77=yes
22140 hardcode_shlibpath_var_F77=no
22141 ;;
22142
22143 sysv4)
22144 case $host_vendor in
22145 sni)
22146 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22147 hardcode_direct_F77=yes # is this really true???
22148 ;;
22149 siemens)
22150 ## LD is ld it makes a PLAMLIB
22151 ## CC just makes a GrossModule.
22152 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22153 reload_cmds_F77='$CC -r -o $output$reload_objs'
22154 hardcode_direct_F77=no
22155 ;;
22156 motorola)
22157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22159 ;;
22160 esac
22161 runpath_var='LD_RUN_PATH'
22162 hardcode_shlibpath_var_F77=no
22163 ;;
22164
22165 sysv4.3*)
22166 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22167 hardcode_shlibpath_var_F77=no
22168 export_dynamic_flag_spec_F77='-Bexport'
22169 ;;
22170
22171 sysv4*MP*)
22172 if test -d /usr/nec; then
22173 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22174 hardcode_shlibpath_var_F77=no
22175 runpath_var=LD_RUN_PATH
22176 hardcode_runpath_var=yes
22177 ld_shlibs_F77=yes
22178 fi
22179 ;;
22180
Reid Spencera773bd52006-08-04 18:18:08 +000022181 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22182 no_undefined_flag_F77='${wl}-z,text'
22183 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022184 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022185 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022186
John Criswell47fdd832003-07-14 16:52:07 +000022187 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022188 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22189 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 +000022190 else
Reid Spencera773bd52006-08-04 18:18:08 +000022191 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22192 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 +000022193 fi
John Criswell47fdd832003-07-14 16:52:07 +000022194 ;;
22195
Reid Spencera773bd52006-08-04 18:18:08 +000022196 sysv5* | sco3.2v5* | sco5v6*)
22197 # Note: We can NOT use -z defs as we might desire, because we do not
22198 # link with -lc, and that would cause any symbols used from libc to
22199 # always be unresolved, which means just about no library would
22200 # ever link correctly. If we're not using GNU ld we use -z text
22201 # though, which does catch some bad symbols but isn't as heavy-handed
22202 # as -z defs.
22203 no_undefined_flag_F77='${wl}-z,text'
22204 allow_undefined_flag_F77='${wl}-z,nodefs'
22205 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022206 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022207 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22208 hardcode_libdir_separator_F77=':'
22209 link_all_deplibs_F77=yes
22210 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022211 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022212
22213 if test "$GCC" = yes; then
22214 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22215 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22216 else
22217 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22218 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22219 fi
John Criswell47fdd832003-07-14 16:52:07 +000022220 ;;
22221
22222 uts4*)
22223 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22224 hardcode_libdir_flag_spec_F77='-L$libdir'
22225 hardcode_shlibpath_var_F77=no
22226 ;;
22227
22228 *)
22229 ld_shlibs_F77=no
22230 ;;
22231 esac
22232 fi
22233
Reid Spencera773bd52006-08-04 18:18:08 +000022234{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22235echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022236test "$ld_shlibs_F77" = no && can_build_shared=no
22237
John Criswell47fdd832003-07-14 16:52:07 +000022238#
22239# Do we need to explicitly link libc?
22240#
22241case "x$archive_cmds_need_lc_F77" in
22242x|xyes)
22243 # Assume -lc should be added
22244 archive_cmds_need_lc_F77=yes
22245
22246 if test "$enable_shared" = yes && test "$GCC" = yes; then
22247 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022248 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022249 # FIXME: we may have to deal with multi-command sequences.
22250 ;;
22251 '$CC '*)
22252 # Test whether the compiler implicitly links with -lc since on some
22253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22254 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022255 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22256echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022257 $rm conftest*
22258 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22259
22260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22261 (eval $ac_compile) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); } 2>conftest.err; then
22265 soname=conftest
22266 lib=conftest
22267 libobjs=conftest.$ac_objext
22268 deplibs=
22269 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022270 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022271 compiler_flags=-v
22272 linker_flags=-v
22273 verstring=
22274 output_objdir=.
22275 libname=conftest
22276 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22277 allow_undefined_flag_F77=
22278 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22279 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); }
22283 then
22284 archive_cmds_need_lc_F77=no
22285 else
22286 archive_cmds_need_lc_F77=yes
22287 fi
22288 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22289 else
22290 cat conftest.err 1>&5
22291 fi
22292 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022293 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22294echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022295 ;;
22296 esac
22297 fi
22298 ;;
22299esac
22300
Reid Spencera773bd52006-08-04 18:18:08 +000022301{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22302echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022303library_names_spec=
22304libname_spec='lib$name'
22305soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022306shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022307postinstall_cmds=
22308postuninstall_cmds=
22309finish_cmds=
22310finish_eval=
22311shlibpath_var=
22312shlibpath_overrides_runpath=unknown
22313version_type=none
22314dynamic_linker="$host_os ld.so"
22315sys_lib_dlsearch_path_spec="/lib /usr/lib"
22316if test "$GCC" = yes; then
22317 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22318 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22319 # if the path contains ";" then we assume it to be the separator
22320 # otherwise default to the standard path separator (i.e. ":") - it is
22321 # assumed that no part of a normal pathname contains ";" but that should
22322 # okay in the real world where ";" in dirpaths is itself problematic.
22323 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22324 else
22325 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22326 fi
22327else
22328 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22329fi
22330need_lib_prefix=unknown
22331hardcode_into_libs=no
22332
22333# when you set need_version to no, make sure it does not cause -set_version
22334# flags to be left without arguments
22335need_version=unknown
22336
22337case $host_os in
22338aix3*)
22339 version_type=linux
22340 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22341 shlibpath_var=LIBPATH
22342
22343 # AIX 3 has no versioning support, so we append a major version to the name.
22344 soname_spec='${libname}${release}${shared_ext}$major'
22345 ;;
22346
22347aix4* | aix5*)
22348 version_type=linux
22349 need_lib_prefix=no
22350 need_version=no
22351 hardcode_into_libs=yes
22352 if test "$host_cpu" = ia64; then
22353 # AIX 5 supports IA64
22354 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22355 shlibpath_var=LD_LIBRARY_PATH
22356 else
22357 # With GCC up to 2.95.x, collect2 would create an import file
22358 # for dependence libraries. The import file would start with
22359 # the line `#! .'. This would cause the generated library to
22360 # depend on `.', always an invalid library. This was fixed in
22361 # development snapshots of GCC prior to 3.0.
22362 case $host_os in
22363 aix4 | aix4.[01] | aix4.[01].*)
22364 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22365 echo ' yes '
22366 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22367 :
22368 else
22369 can_build_shared=no
22370 fi
22371 ;;
22372 esac
22373 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22374 # soname into executable. Probably we can add versioning support to
22375 # collect2, so additional links can be useful in future.
22376 if test "$aix_use_runtimelinking" = yes; then
22377 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22378 # instead of lib<name>.a to let people know that these are not
22379 # typical AIX shared libraries.
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22381 else
22382 # We preserve .a as extension for shared libraries through AIX4.2
22383 # and later when we are not doing run time linking.
22384 library_names_spec='${libname}${release}.a $libname.a'
22385 soname_spec='${libname}${release}${shared_ext}$major'
22386 fi
22387 shlibpath_var=LIBPATH
22388 fi
22389 ;;
22390
22391amigaos*)
22392 library_names_spec='$libname.ixlibrary $libname.a'
22393 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022394 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 +000022395 ;;
22396
22397beos*)
22398 library_names_spec='${libname}${shared_ext}'
22399 dynamic_linker="$host_os ld.so"
22400 shlibpath_var=LIBRARY_PATH
22401 ;;
22402
Reid Spencer2706f8c2004-09-19 23:53:36 +000022403bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022404 version_type=linux
22405 need_version=no
22406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22407 soname_spec='${libname}${release}${shared_ext}$major'
22408 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22409 shlibpath_var=LD_LIBRARY_PATH
22410 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22411 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22412 # the default ld.so.conf also contains /usr/contrib/lib and
22413 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22414 # libtool to hard-code these into programs
22415 ;;
22416
22417cygwin* | mingw* | pw32*)
22418 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022420 need_version=no
22421 need_lib_prefix=no
22422
22423 case $GCC,$host_os in
22424 yes,cygwin* | yes,mingw* | yes,pw32*)
22425 library_names_spec='$libname.dll.a'
22426 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022427 postinstall_cmds='base_file=`basename \${file}`~
22428 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22429 dldir=$destdir/`dirname \$dlpath`~
22430 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022431 $install_prog $dir/$dlname \$dldir/$dlname~
22432 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022433 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22434 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022435 $rm \$dlpath'
22436 shlibpath_overrides_runpath=yes
22437
22438 case $host_os in
22439 cygwin*)
22440 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22441 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 +000022442 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022443 ;;
22444 mingw*)
22445 # MinGW DLLs use traditional 'lib' prefix
22446 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22447 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22448 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22449 # It is most probably a Windows format PATH printed by
22450 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22451 # path with ; separators, and with drive letters. We can handle the
22452 # drive letters (cygwin fileutils understands them), so leave them,
22453 # especially as we might pass files found there to a mingw objdump,
22454 # which wouldn't understand a cygwinified path. Ahh.
22455 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22456 else
22457 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22458 fi
22459 ;;
22460 pw32*)
22461 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022462 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 +000022463 ;;
22464 esac
22465 ;;
22466
22467 *)
22468 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22469 ;;
22470 esac
22471 dynamic_linker='Win32 ld.exe'
22472 # FIXME: first we should search . and the directory the executable is in
22473 shlibpath_var=PATH
22474 ;;
22475
22476darwin* | rhapsody*)
22477 dynamic_linker="$host_os dyld"
22478 version_type=darwin
22479 need_lib_prefix=no
22480 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022481 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022482 soname_spec='${libname}${release}${major}$shared_ext'
22483 shlibpath_overrides_runpath=yes
22484 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022485 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022486 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022487 if test "$GCC" = yes; then
22488 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"`
22489 else
22490 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022491 fi
22492 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22493 ;;
22494
22495dgux*)
22496 version_type=linux
22497 need_lib_prefix=no
22498 need_version=no
22499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22500 soname_spec='${libname}${release}${shared_ext}$major'
22501 shlibpath_var=LD_LIBRARY_PATH
22502 ;;
22503
22504freebsd1*)
22505 dynamic_linker=no
22506 ;;
22507
Reid Spencer2706f8c2004-09-19 23:53:36 +000022508kfreebsd*-gnu)
22509 version_type=linux
22510 need_lib_prefix=no
22511 need_version=no
22512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22513 soname_spec='${libname}${release}${shared_ext}$major'
22514 shlibpath_var=LD_LIBRARY_PATH
22515 shlibpath_overrides_runpath=no
22516 hardcode_into_libs=yes
22517 dynamic_linker='GNU ld.so'
22518 ;;
22519
Reid Spencera773bd52006-08-04 18:18:08 +000022520freebsd* | dragonfly*)
22521 # DragonFly does not have aout. When/if they implement a new
22522 # versioning mechanism, adjust this.
22523 if test -x /usr/bin/objformat; then
22524 objformat=`/usr/bin/objformat`
22525 else
22526 case $host_os in
22527 freebsd[123]*) objformat=aout ;;
22528 *) objformat=elf ;;
22529 esac
22530 fi
John Criswell47fdd832003-07-14 16:52:07 +000022531 version_type=freebsd-$objformat
22532 case $version_type in
22533 freebsd-elf*)
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22535 need_version=no
22536 need_lib_prefix=no
22537 ;;
22538 freebsd-*)
22539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22540 need_version=yes
22541 ;;
22542 esac
22543 shlibpath_var=LD_LIBRARY_PATH
22544 case $host_os in
22545 freebsd2*)
22546 shlibpath_overrides_runpath=yes
22547 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022548 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022549 shlibpath_overrides_runpath=yes
22550 hardcode_into_libs=yes
22551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022552 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22553 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022554 shlibpath_overrides_runpath=no
22555 hardcode_into_libs=yes
22556 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022557 freebsd*) # from 4.6 on
22558 shlibpath_overrides_runpath=yes
22559 hardcode_into_libs=yes
22560 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022561 esac
22562 ;;
22563
22564gnu*)
22565 version_type=linux
22566 need_lib_prefix=no
22567 need_version=no
22568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22569 soname_spec='${libname}${release}${shared_ext}$major'
22570 shlibpath_var=LD_LIBRARY_PATH
22571 hardcode_into_libs=yes
22572 ;;
22573
22574hpux9* | hpux10* | hpux11*)
22575 # Give a soname corresponding to the major version so that dld.sl refuses to
22576 # link against other versions.
22577 version_type=sunos
22578 need_lib_prefix=no
22579 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022580 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022581 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022582 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022583 hardcode_into_libs=yes
22584 dynamic_linker="$host_os dld.so"
22585 shlibpath_var=LD_LIBRARY_PATH
22586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 if test "X$HPUX_IA64_MODE" = X32; then
22590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22591 else
22592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22593 fi
22594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22595 ;;
22596 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022597 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022598 hardcode_into_libs=yes
22599 dynamic_linker="$host_os dld.sl"
22600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22603 soname_spec='${libname}${release}${shared_ext}$major'
22604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22606 ;;
22607 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022608 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022609 dynamic_linker="$host_os dld.sl"
22610 shlibpath_var=SHLIB_PATH
22611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22613 soname_spec='${libname}${release}${shared_ext}$major'
22614 ;;
22615 esac
22616 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22617 postinstall_cmds='chmod 555 $lib'
22618 ;;
22619
Reid Spencera773bd52006-08-04 18:18:08 +000022620interix3*)
22621 version_type=linux
22622 need_lib_prefix=no
22623 need_version=no
22624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22625 soname_spec='${libname}${release}${shared_ext}$major'
22626 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22627 shlibpath_var=LD_LIBRARY_PATH
22628 shlibpath_overrides_runpath=no
22629 hardcode_into_libs=yes
22630 ;;
22631
John Criswell47fdd832003-07-14 16:52:07 +000022632irix5* | irix6* | nonstopux*)
22633 case $host_os in
22634 nonstopux*) version_type=nonstopux ;;
22635 *)
22636 if test "$lt_cv_prog_gnu_ld" = yes; then
22637 version_type=linux
22638 else
22639 version_type=irix
22640 fi ;;
22641 esac
22642 need_lib_prefix=no
22643 need_version=no
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22646 case $host_os in
22647 irix5* | nonstopux*)
22648 libsuff= shlibsuff=
22649 ;;
22650 *)
22651 case $LD in # libtool.m4 will add one of these switches to LD
22652 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22653 libsuff= shlibsuff= libmagic=32-bit;;
22654 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22655 libsuff=32 shlibsuff=N32 libmagic=N32;;
22656 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22657 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22658 *) libsuff= shlibsuff= libmagic=never-match;;
22659 esac
22660 ;;
22661 esac
22662 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22663 shlibpath_overrides_runpath=no
22664 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22665 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22666 hardcode_into_libs=yes
22667 ;;
22668
22669# No shared lib support for Linux oldld, aout, or coff.
22670linux*oldld* | linux*aout* | linux*coff*)
22671 dynamic_linker=no
22672 ;;
22673
22674# This must be Linux ELF.
22675linux*)
22676 version_type=linux
22677 need_lib_prefix=no
22678 need_version=no
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22680 soname_spec='${libname}${release}${shared_ext}$major'
22681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22682 shlibpath_var=LD_LIBRARY_PATH
22683 shlibpath_overrides_runpath=no
22684 # This implies no fast_install, which is unacceptable.
22685 # Some rework will be needed to allow for fast_install
22686 # before this can be enabled.
22687 hardcode_into_libs=yes
22688
Reid Spencer2706f8c2004-09-19 23:53:36 +000022689 # Append ld.so.conf contents to the search path
22690 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022691 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 +000022692 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22693 fi
22694
John Criswell47fdd832003-07-14 16:52:07 +000022695 # We used to test for /lib/ld.so.1 and disable shared libraries on
22696 # powerpc, because MkLinux only supported shared libraries with the
22697 # GNU dynamic linker. Since this was broken with cross compilers,
22698 # most powerpc-linux boxes support dynamic linking these days and
22699 # people can always --disable-shared, the test was removed, and we
22700 # assume the GNU/Linux dynamic linker is in use.
22701 dynamic_linker='GNU/Linux ld.so'
22702 ;;
22703
Reid Spencer2706f8c2004-09-19 23:53:36 +000022704knetbsd*-gnu)
22705 version_type=linux
22706 need_lib_prefix=no
22707 need_version=no
22708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22709 soname_spec='${libname}${release}${shared_ext}$major'
22710 shlibpath_var=LD_LIBRARY_PATH
22711 shlibpath_overrides_runpath=no
22712 hardcode_into_libs=yes
22713 dynamic_linker='GNU ld.so'
22714 ;;
22715
John Criswell47fdd832003-07-14 16:52:07 +000022716netbsd*)
22717 version_type=sunos
22718 need_lib_prefix=no
22719 need_version=no
22720 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22723 dynamic_linker='NetBSD (a.out) ld.so'
22724 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022726 soname_spec='${libname}${release}${shared_ext}$major'
22727 dynamic_linker='NetBSD ld.elf_so'
22728 fi
22729 shlibpath_var=LD_LIBRARY_PATH
22730 shlibpath_overrides_runpath=yes
22731 hardcode_into_libs=yes
22732 ;;
22733
22734newsos6)
22735 version_type=linux
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22737 shlibpath_var=LD_LIBRARY_PATH
22738 shlibpath_overrides_runpath=yes
22739 ;;
22740
Reid Spencer2706f8c2004-09-19 23:53:36 +000022741nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022742 version_type=linux
22743 need_lib_prefix=no
22744 need_version=no
22745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22746 soname_spec='${libname}${release}${shared_ext}$major'
22747 shlibpath_var=LD_LIBRARY_PATH
22748 shlibpath_overrides_runpath=yes
22749 ;;
22750
22751openbsd*)
22752 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022753 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022754 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022755 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22756 case $host_os in
22757 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22758 *) need_version=no ;;
22759 esac
John Criswell47fdd832003-07-14 16:52:07 +000022760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22762 shlibpath_var=LD_LIBRARY_PATH
22763 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22764 case $host_os in
22765 openbsd2.[89] | openbsd2.[89].*)
22766 shlibpath_overrides_runpath=no
22767 ;;
22768 *)
22769 shlibpath_overrides_runpath=yes
22770 ;;
22771 esac
22772 else
22773 shlibpath_overrides_runpath=yes
22774 fi
22775 ;;
22776
22777os2*)
22778 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022779 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022780 need_lib_prefix=no
22781 library_names_spec='$libname${shared_ext} $libname.a'
22782 dynamic_linker='OS/2 ld.exe'
22783 shlibpath_var=LIBPATH
22784 ;;
22785
22786osf3* | osf4* | osf5*)
22787 version_type=osf
22788 need_lib_prefix=no
22789 need_version=no
22790 soname_spec='${libname}${release}${shared_ext}$major'
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 shlibpath_var=LD_LIBRARY_PATH
22793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22794 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22795 ;;
22796
John Criswell47fdd832003-07-14 16:52:07 +000022797solaris*)
22798 version_type=linux
22799 need_lib_prefix=no
22800 need_version=no
22801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22802 soname_spec='${libname}${release}${shared_ext}$major'
22803 shlibpath_var=LD_LIBRARY_PATH
22804 shlibpath_overrides_runpath=yes
22805 hardcode_into_libs=yes
22806 # ldd complains unless libraries are executable
22807 postinstall_cmds='chmod +x $lib'
22808 ;;
22809
22810sunos4*)
22811 version_type=sunos
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22814 shlibpath_var=LD_LIBRARY_PATH
22815 shlibpath_overrides_runpath=yes
22816 if test "$with_gnu_ld" = yes; then
22817 need_lib_prefix=no
22818 fi
22819 need_version=yes
22820 ;;
22821
Reid Spencera773bd52006-08-04 18:18:08 +000022822sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022823 version_type=linux
22824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22825 soname_spec='${libname}${release}${shared_ext}$major'
22826 shlibpath_var=LD_LIBRARY_PATH
22827 case $host_vendor in
22828 sni)
22829 shlibpath_overrides_runpath=no
22830 need_lib_prefix=no
22831 export_dynamic_flag_spec='${wl}-Blargedynsym'
22832 runpath_var=LD_RUN_PATH
22833 ;;
22834 siemens)
22835 need_lib_prefix=no
22836 ;;
22837 motorola)
22838 need_lib_prefix=no
22839 need_version=no
22840 shlibpath_overrides_runpath=no
22841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22842 ;;
22843 esac
22844 ;;
22845
22846sysv4*MP*)
22847 if test -d /usr/nec ;then
22848 version_type=linux
22849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22850 soname_spec='$libname${shared_ext}.$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 fi
22853 ;;
22854
Reid Spencera773bd52006-08-04 18:18:08 +000022855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22856 version_type=freebsd-elf
22857 need_lib_prefix=no
22858 need_version=no
22859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22860 soname_spec='${libname}${release}${shared_ext}$major'
22861 shlibpath_var=LD_LIBRARY_PATH
22862 hardcode_into_libs=yes
22863 if test "$with_gnu_ld" = yes; then
22864 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22865 shlibpath_overrides_runpath=no
22866 else
22867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22868 shlibpath_overrides_runpath=yes
22869 case $host_os in
22870 sco3.2v5*)
22871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22872 ;;
22873 esac
22874 fi
22875 sys_lib_dlsearch_path_spec='/usr/lib'
22876 ;;
22877
John Criswell47fdd832003-07-14 16:52:07 +000022878uts4*)
22879 version_type=linux
22880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22881 soname_spec='${libname}${release}${shared_ext}$major'
22882 shlibpath_var=LD_LIBRARY_PATH
22883 ;;
22884
22885*)
22886 dynamic_linker=no
22887 ;;
22888esac
Reid Spencera773bd52006-08-04 18:18:08 +000022889{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22890echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022891test "$dynamic_linker" = no && can_build_shared=no
22892
Reid Spencera773bd52006-08-04 18:18:08 +000022893variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22894if test "$GCC" = yes; then
22895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22896fi
22897
22898{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22899echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022900hardcode_action_F77=
22901if test -n "$hardcode_libdir_flag_spec_F77" || \
22902 test -n "$runpath_var_F77" || \
22903 test "X$hardcode_automatic_F77" = "Xyes" ; then
22904
22905 # We can hardcode non-existant directories.
22906 if test "$hardcode_direct_F77" != no &&
22907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22908 # have to relink, otherwise we might link with an installed library
22909 # when we should be linking with a yet-to-be-installed one
22910 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22911 test "$hardcode_minus_L_F77" != no; then
22912 # Linking always hardcodes the temporary library directory.
22913 hardcode_action_F77=relink
22914 else
22915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22916 hardcode_action_F77=immediate
22917 fi
22918else
22919 # We cannot hardcode anything, or else we can only hardcode existing
22920 # directories.
22921 hardcode_action_F77=unsupported
22922fi
Reid Spencera773bd52006-08-04 18:18:08 +000022923{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22924echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022925
22926if test "$hardcode_action_F77" = relink; then
22927 # Fast installation is not supported
22928 enable_fast_install=no
22929elif test "$shlibpath_overrides_runpath" = yes ||
22930 test "$enable_shared" = no; then
22931 # Fast installation is not necessary
22932 enable_fast_install=needless
22933fi
22934
John Criswell47fdd832003-07-14 16:52:07 +000022935
22936# The else clause should only fire when bootstrapping the
22937# libtool distribution, otherwise you forgot to ship ltmain.sh
22938# with your package, and you will get complaints that there are
22939# no rules to generate ltmain.sh.
22940if test -f "$ltmain"; then
22941 # See if we are running on zsh, and set the options which allow our commands through
22942 # without removal of \ escapes.
22943 if test -n "${ZSH_VERSION+set}" ; then
22944 setopt NO_GLOB_SUBST
22945 fi
22946 # Now quote all the things that may contain metacharacters while being
22947 # careful not to overquote the AC_SUBSTed values. We take copies of the
22948 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022949 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 +000022950 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022951 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22952 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22953 deplibs_check_method reload_flag reload_cmds need_locks \
22954 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22955 lt_cv_sys_global_symbol_to_c_name_address \
22956 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22957 old_postinstall_cmds old_postuninstall_cmds \
22958 compiler_F77 \
22959 CC_F77 \
22960 LD_F77 \
22961 lt_prog_compiler_wl_F77 \
22962 lt_prog_compiler_pic_F77 \
22963 lt_prog_compiler_static_F77 \
22964 lt_prog_compiler_no_builtin_flag_F77 \
22965 export_dynamic_flag_spec_F77 \
22966 thread_safe_flag_spec_F77 \
22967 whole_archive_flag_spec_F77 \
22968 enable_shared_with_static_runtimes_F77 \
22969 old_archive_cmds_F77 \
22970 old_archive_from_new_cmds_F77 \
22971 predep_objects_F77 \
22972 postdep_objects_F77 \
22973 predeps_F77 \
22974 postdeps_F77 \
22975 compiler_lib_search_path_F77 \
22976 archive_cmds_F77 \
22977 archive_expsym_cmds_F77 \
22978 postinstall_cmds_F77 \
22979 postuninstall_cmds_F77 \
22980 old_archive_from_expsyms_cmds_F77 \
22981 allow_undefined_flag_F77 \
22982 no_undefined_flag_F77 \
22983 export_symbols_cmds_F77 \
22984 hardcode_libdir_flag_spec_F77 \
22985 hardcode_libdir_flag_spec_ld_F77 \
22986 hardcode_libdir_separator_F77 \
22987 hardcode_automatic_F77 \
22988 module_cmds_F77 \
22989 module_expsym_cmds_F77 \
22990 lt_cv_prog_compiler_c_o_F77 \
22991 exclude_expsyms_F77 \
22992 include_expsyms_F77; do
22993
22994 case $var in
22995 old_archive_cmds_F77 | \
22996 old_archive_from_new_cmds_F77 | \
22997 archive_cmds_F77 | \
22998 archive_expsym_cmds_F77 | \
22999 module_cmds_F77 | \
23000 module_expsym_cmds_F77 | \
23001 old_archive_from_expsyms_cmds_F77 | \
23002 export_symbols_cmds_F77 | \
23003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23004 postinstall_cmds | postuninstall_cmds | \
23005 old_postinstall_cmds | old_postuninstall_cmds | \
23006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23007 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008 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 +000023009 ;;
23010 *)
23011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23012 ;;
23013 esac
23014 done
23015
23016 case $lt_echo in
23017 *'\$0 --fallback-echo"')
23018 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23019 ;;
23020 esac
23021
23022cfgfile="$ofile"
23023
23024 cat <<__EOF__ >> "$cfgfile"
23025# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23026
23027# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23028
23029# Shell to use when invoking shell scripts.
23030SHELL=$lt_SHELL
23031
23032# Whether or not to build shared libraries.
23033build_libtool_libs=$enable_shared
23034
23035# Whether or not to build static libraries.
23036build_old_libs=$enable_static
23037
23038# Whether or not to add -lc for building shared libraries.
23039build_libtool_need_lc=$archive_cmds_need_lc_F77
23040
23041# Whether or not to disallow shared libs when runtime libs are static
23042allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23043
23044# Whether or not to optimize for fast installation.
23045fast_install=$enable_fast_install
23046
23047# The host system.
23048host_alias=$host_alias
23049host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023050host_os=$host_os
23051
23052# The build system.
23053build_alias=$build_alias
23054build=$build
23055build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023056
23057# An echo program that does not interpret backslashes.
23058echo=$lt_echo
23059
23060# The archiver.
23061AR=$lt_AR
23062AR_FLAGS=$lt_AR_FLAGS
23063
23064# A C compiler.
23065LTCC=$lt_LTCC
23066
Reid Spencera773bd52006-08-04 18:18:08 +000023067# LTCC compiler flags.
23068LTCFLAGS=$lt_LTCFLAGS
23069
John Criswell47fdd832003-07-14 16:52:07 +000023070# A language-specific compiler.
23071CC=$lt_compiler_F77
23072
23073# Is the compiler the GNU C compiler?
23074with_gcc=$GCC_F77
23075
23076# An ERE matcher.
23077EGREP=$lt_EGREP
23078
23079# The linker used to build libraries.
23080LD=$lt_LD_F77
23081
23082# Whether we need hard or soft links.
23083LN_S=$lt_LN_S
23084
23085# A BSD-compatible nm program.
23086NM=$lt_NM
23087
23088# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023089STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023090
23091# Used to examine libraries when file_magic_cmd begins "file"
23092MAGIC_CMD=$MAGIC_CMD
23093
23094# Used on cygwin: DLL creation program.
23095DLLTOOL="$DLLTOOL"
23096
23097# Used on cygwin: object dumper.
23098OBJDUMP="$OBJDUMP"
23099
23100# Used on cygwin: assembler.
23101AS="$AS"
23102
23103# The name of the directory that contains temporary libtool files.
23104objdir=$objdir
23105
23106# How to create reloadable object files.
23107reload_flag=$lt_reload_flag
23108reload_cmds=$lt_reload_cmds
23109
23110# How to pass a linker flag through the compiler.
23111wl=$lt_lt_prog_compiler_wl_F77
23112
23113# Object file suffix (normally "o").
23114objext="$ac_objext"
23115
23116# Old archive suffix (normally "a").
23117libext="$libext"
23118
23119# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023120shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023121
23122# Executable file suffix (normally "").
23123exeext="$exeext"
23124
23125# Additional compiler flags for building library objects.
23126pic_flag=$lt_lt_prog_compiler_pic_F77
23127pic_mode=$pic_mode
23128
23129# What is the maximum length of a command?
23130max_cmd_len=$lt_cv_sys_max_cmd_len
23131
23132# Does compiler simultaneously support -c and -o options?
23133compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23134
Reid Spencera773bd52006-08-04 18:18:08 +000023135# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023136need_locks=$lt_need_locks
23137
23138# Do we need the lib prefix for modules?
23139need_lib_prefix=$need_lib_prefix
23140
23141# Do we need a version for libraries?
23142need_version=$need_version
23143
23144# Whether dlopen is supported.
23145dlopen_support=$enable_dlopen
23146
23147# Whether dlopen of programs is supported.
23148dlopen_self=$enable_dlopen_self
23149
23150# Whether dlopen of statically linked programs is supported.
23151dlopen_self_static=$enable_dlopen_self_static
23152
23153# Compiler flag to prevent dynamic linking.
23154link_static_flag=$lt_lt_prog_compiler_static_F77
23155
23156# Compiler flag to turn off builtin functions.
23157no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23158
23159# Compiler flag to allow reflexive dlopens.
23160export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23161
23162# Compiler flag to generate shared objects directly from archives.
23163whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23164
23165# Compiler flag to generate thread-safe objects.
23166thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23167
23168# Library versioning type.
23169version_type=$version_type
23170
23171# Format of library name prefix.
23172libname_spec=$lt_libname_spec
23173
23174# List of archive names. First name is the real one, the rest are links.
23175# The last name is the one that the linker finds with -lNAME.
23176library_names_spec=$lt_library_names_spec
23177
23178# The coded name of the library, if different from the real name.
23179soname_spec=$lt_soname_spec
23180
23181# Commands used to build and install an old-style archive.
23182RANLIB=$lt_RANLIB
23183old_archive_cmds=$lt_old_archive_cmds_F77
23184old_postinstall_cmds=$lt_old_postinstall_cmds
23185old_postuninstall_cmds=$lt_old_postuninstall_cmds
23186
23187# Create an old-style archive from a shared archive.
23188old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23189
23190# Create a temporary old-style archive to link instead of a shared archive.
23191old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23192
23193# Commands used to build and install a shared archive.
23194archive_cmds=$lt_archive_cmds_F77
23195archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23196postinstall_cmds=$lt_postinstall_cmds
23197postuninstall_cmds=$lt_postuninstall_cmds
23198
23199# Commands used to build a loadable module (assumed same as above if empty)
23200module_cmds=$lt_module_cmds_F77
23201module_expsym_cmds=$lt_module_expsym_cmds_F77
23202
23203# Commands to strip libraries.
23204old_striplib=$lt_old_striplib
23205striplib=$lt_striplib
23206
23207# Dependencies to place before the objects being linked to create a
23208# shared library.
23209predep_objects=$lt_predep_objects_F77
23210
23211# Dependencies to place after the objects being linked to create a
23212# shared library.
23213postdep_objects=$lt_postdep_objects_F77
23214
23215# Dependencies to place before the objects being linked to create a
23216# shared library.
23217predeps=$lt_predeps_F77
23218
23219# Dependencies to place after the objects being linked to create a
23220# shared library.
23221postdeps=$lt_postdeps_F77
23222
23223# The library search path used internally by the compiler when linking
23224# a shared library.
23225compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23226
23227# Method to check whether dependent libraries are shared objects.
23228deplibs_check_method=$lt_deplibs_check_method
23229
23230# Command to use when deplibs_check_method == file_magic.
23231file_magic_cmd=$lt_file_magic_cmd
23232
23233# Flag that allows shared libraries with undefined symbols to be built.
23234allow_undefined_flag=$lt_allow_undefined_flag_F77
23235
23236# Flag that forces no undefined symbols.
23237no_undefined_flag=$lt_no_undefined_flag_F77
23238
23239# Commands used to finish a libtool library installation in a directory.
23240finish_cmds=$lt_finish_cmds
23241
23242# Same as above, but a single script fragment to be evaled but not shown.
23243finish_eval=$lt_finish_eval
23244
23245# Take the output of nm and produce a listing of raw symbols and C names.
23246global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23247
23248# Transform the output of nm in a proper C declaration
23249global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23250
23251# Transform the output of nm in a C name address pair
23252global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23253
23254# This is the shared library runtime path variable.
23255runpath_var=$runpath_var
23256
23257# This is the shared library path variable.
23258shlibpath_var=$shlibpath_var
23259
23260# Is shlibpath searched before the hard-coded library search path?
23261shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23262
23263# How to hardcode a shared library path into an executable.
23264hardcode_action=$hardcode_action_F77
23265
23266# Whether we should hardcode library paths into libraries.
23267hardcode_into_libs=$hardcode_into_libs
23268
23269# Flag to hardcode \$libdir into a binary during linking.
23270# This must work even if \$libdir does not exist.
23271hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23272
23273# If ld is used when linking, flag to hardcode \$libdir into
23274# a binary during linking. This must work even if \$libdir does
23275# not exist.
23276hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23277
23278# Whether we need a single -rpath flag with a separated argument.
23279hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23280
23281# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23282# resulting binary.
23283hardcode_direct=$hardcode_direct_F77
23284
23285# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23286# resulting binary.
23287hardcode_minus_L=$hardcode_minus_L_F77
23288
23289# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23290# the resulting binary.
23291hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23292
23293# Set to yes if building a shared library automatically hardcodes DIR into the library
23294# and all subsequent libraries and executables linked against it.
23295hardcode_automatic=$hardcode_automatic_F77
23296
23297# Variables whose values should be saved in libtool wrapper scripts and
23298# restored at relink time.
23299variables_saved_for_relink="$variables_saved_for_relink"
23300
23301# Whether libtool must link a program against all its dependency libraries.
23302link_all_deplibs=$link_all_deplibs_F77
23303
23304# Compile-time system search path for libraries
23305sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23306
23307# Run-time system search path for libraries
23308sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23309
23310# Fix the shell variable \$srcfile for the compiler.
23311fix_srcfile_path="$fix_srcfile_path_F77"
23312
23313# Set to yes if exported symbols are required.
23314always_export_symbols=$always_export_symbols_F77
23315
23316# The commands to list exported symbols.
23317export_symbols_cmds=$lt_export_symbols_cmds_F77
23318
23319# The commands to extract the exported symbol list from a shared archive.
23320extract_expsyms_cmds=$lt_extract_expsyms_cmds
23321
23322# Symbols that should not be listed in the preloaded symbols.
23323exclude_expsyms=$lt_exclude_expsyms_F77
23324
23325# Symbols that must always be exported.
23326include_expsyms=$lt_include_expsyms_F77
23327
23328# ### END LIBTOOL TAG CONFIG: $tagname
23329
23330__EOF__
23331
23332
23333else
23334 # If there is no Makefile yet, we rely on a make rule to execute
23335 # `config.status --recheck' to rerun these tests and create the
23336 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23338 if test -f "$ltmain_in"; then
23339 test -f Makefile && make "$ltmain"
23340 fi
John Criswell47fdd832003-07-14 16:52:07 +000023341fi
23342
23343
23344ac_ext=c
23345ac_cpp='$CPP $CPPFLAGS'
23346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23348ac_compiler_gnu=$ac_cv_c_compiler_gnu
23349
23350CC="$lt_save_CC"
23351
23352 else
23353 tagname=""
23354 fi
23355 ;;
23356
23357 GCJ)
23358 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023359 ac_ext=c
23360ac_cpp='$CPP $CPPFLAGS'
23361ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23362ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23363ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023364
23365
23366# Source file extension for Java test sources.
23367ac_ext=java
23368
23369# Object file extension for compiled Java test sources.
23370objext=o
23371objext_GCJ=$objext
23372
23373# Code to be used in simple compile tests
23374lt_simple_compile_test_code="class foo {}\n"
23375
23376# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023377lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023378
23379# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23380
23381# If no C compiler was specified, use CC.
23382LTCC=${LTCC-"$CC"}
23383
Reid Spencera773bd52006-08-04 18:18:08 +000023384# If no C compiler flags were specified, use CFLAGS.
23385LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23386
John Criswell47fdd832003-07-14 16:52:07 +000023387# Allow CC to be a program name with arguments.
23388compiler=$CC
23389
23390
Reid Spencera773bd52006-08-04 18:18:08 +000023391# save warnings/boilerplate of simple test code
23392ac_outfile=conftest.$ac_objext
23393printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23394eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23395_lt_compiler_boilerplate=`cat conftest.err`
23396$rm conftest*
23397
23398ac_outfile=conftest.$ac_objext
23399printf "$lt_simple_link_test_code" >conftest.$ac_ext
23400eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23401_lt_linker_boilerplate=`cat conftest.err`
23402$rm conftest*
23403
23404
John Criswell47fdd832003-07-14 16:52:07 +000023405# Allow CC to be a program name with arguments.
23406lt_save_CC="$CC"
23407CC=${GCJ-"gcj"}
23408compiler=$CC
23409compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023410for cc_temp in $compiler""; do
23411 case $cc_temp in
23412 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23413 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23414 \-*) ;;
23415 *) break;;
23416 esac
23417done
23418cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23419
John Criswell47fdd832003-07-14 16:52:07 +000023420
23421# GCJ did not exist at the time GCC didn't implicitly link libc in.
23422archive_cmds_need_lc_GCJ=no
23423
Reid Spencera773bd52006-08-04 18:18:08 +000023424old_archive_cmds_GCJ=$old_archive_cmds
23425
John Criswell47fdd832003-07-14 16:52:07 +000023426
23427lt_prog_compiler_no_builtin_flag_GCJ=
23428
23429if test "$GCC" = yes; then
23430 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23431
Reid Spencer2706f8c2004-09-19 23:53:36 +000023432
Reid Spencera773bd52006-08-04 18:18:08 +000023433{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23434echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023435if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23436 echo $ECHO_N "(cached) $ECHO_C" >&6
23437else
23438 lt_cv_prog_compiler_rtti_exceptions=no
23439 ac_outfile=conftest.$ac_objext
23440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23441 lt_compiler_flag="-fno-rtti -fno-exceptions"
23442 # Insert the option either (1) after the last *FLAGS variable, or
23443 # (2) before a word containing "conftest.", or (3) at the end.
23444 # Note that $ac_compile itself does not contain backslashes and begins
23445 # with a dollar sign (not a hyphen), so the echo should work correctly.
23446 # The option is referenced via a variable to avoid confusing sed.
23447 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023448 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023449 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23450 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000023451 (eval echo "\"\$as_me:23451: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023452 (eval "$lt_compile" 2>conftest.err)
23453 ac_status=$?
23454 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000023455 echo "$as_me:23455: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023456 if (exit $ac_status) && test -s "$ac_outfile"; then
23457 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023458 # So say no if there are warnings other than the usual output.
23459 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23460 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23461 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023462 lt_cv_prog_compiler_rtti_exceptions=yes
23463 fi
23464 fi
23465 $rm conftest*
23466
23467fi
Reid Spencera773bd52006-08-04 18:18:08 +000023468{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23469echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023470
23471if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23472 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23473else
23474 :
23475fi
23476
23477fi
23478
23479lt_prog_compiler_wl_GCJ=
23480lt_prog_compiler_pic_GCJ=
23481lt_prog_compiler_static_GCJ=
23482
Reid Spencera773bd52006-08-04 18:18:08 +000023483{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23484echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023485
23486 if test "$GCC" = yes; then
23487 lt_prog_compiler_wl_GCJ='-Wl,'
23488 lt_prog_compiler_static_GCJ='-static'
23489
23490 case $host_os in
23491 aix*)
23492 # All AIX code is PIC.
23493 if test "$host_cpu" = ia64; then
23494 # AIX 5 now supports IA64 processor
23495 lt_prog_compiler_static_GCJ='-Bstatic'
23496 fi
23497 ;;
23498
23499 amigaos*)
23500 # FIXME: we need at least 68020 code to build shared libraries, but
23501 # adding the `-m68020' flag to GCC prevents building anything better,
23502 # like `-m68040'.
23503 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23504 ;;
23505
23506 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23507 # PIC is the default for these OSes.
23508 ;;
23509
23510 mingw* | pw32* | os2*)
23511 # This hack is so that the source file can tell whether it is being
23512 # built for inclusion in a dll (and should export symbols for example).
23513 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23514 ;;
23515
23516 darwin* | rhapsody*)
23517 # PIC is the default on this platform
23518 # Common symbols not allowed in MH_DYLIB files
23519 lt_prog_compiler_pic_GCJ='-fno-common'
23520 ;;
23521
Reid Spencera773bd52006-08-04 18:18:08 +000023522 interix3*)
23523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23524 # Instead, we relocate shared libraries at runtime.
23525 ;;
23526
John Criswell47fdd832003-07-14 16:52:07 +000023527 msdosdjgpp*)
23528 # Just because we use GCC doesn't mean we suddenly get shared libraries
23529 # on systems that don't support them.
23530 lt_prog_compiler_can_build_shared_GCJ=no
23531 enable_shared=no
23532 ;;
23533
23534 sysv4*MP*)
23535 if test -d /usr/nec; then
23536 lt_prog_compiler_pic_GCJ=-Kconform_pic
23537 fi
23538 ;;
23539
23540 hpux*)
23541 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23542 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023543 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023544 hppa*64*|ia64*)
23545 # +Z the default
23546 ;;
23547 *)
23548 lt_prog_compiler_pic_GCJ='-fPIC'
23549 ;;
23550 esac
23551 ;;
23552
23553 *)
23554 lt_prog_compiler_pic_GCJ='-fPIC'
23555 ;;
23556 esac
23557 else
23558 # PORTME Check for flag to pass linker flags through the system compiler.
23559 case $host_os in
23560 aix*)
23561 lt_prog_compiler_wl_GCJ='-Wl,'
23562 if test "$host_cpu" = ia64; then
23563 # AIX 5 now supports IA64 processor
23564 lt_prog_compiler_static_GCJ='-Bstatic'
23565 else
23566 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23567 fi
23568 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023569 darwin*)
23570 # PIC is the default on this platform
23571 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023572 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573 xlc*)
23574 lt_prog_compiler_pic_GCJ='-qnocommon'
23575 lt_prog_compiler_wl_GCJ='-Wl,'
23576 ;;
23577 esac
23578 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023579
23580 mingw* | pw32* | os2*)
23581 # This hack is so that the source file can tell whether it is being
23582 # built for inclusion in a dll (and should export symbols for example).
23583 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23584 ;;
23585
23586 hpux9* | hpux10* | hpux11*)
23587 lt_prog_compiler_wl_GCJ='-Wl,'
23588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23589 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023590 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023591 hppa*64*|ia64*)
23592 # +Z the default
23593 ;;
23594 *)
23595 lt_prog_compiler_pic_GCJ='+Z'
23596 ;;
23597 esac
23598 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23599 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23600 ;;
23601
23602 irix5* | irix6* | nonstopux*)
23603 lt_prog_compiler_wl_GCJ='-Wl,'
23604 # PIC (with -KPIC) is the default.
23605 lt_prog_compiler_static_GCJ='-non_shared'
23606 ;;
23607
23608 newsos6)
23609 lt_prog_compiler_pic_GCJ='-KPIC'
23610 lt_prog_compiler_static_GCJ='-Bstatic'
23611 ;;
23612
23613 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023614 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023615 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023616 lt_prog_compiler_wl_GCJ='-Wl,'
23617 lt_prog_compiler_pic_GCJ='-KPIC'
23618 lt_prog_compiler_static_GCJ='-static'
23619 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023620 pgcc* | pgf77* | pgf90* | pgf95*)
23621 # Portland Group compilers (*not* the Pentium gcc compiler,
23622 # which looks to be a dead project)
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 lt_prog_compiler_pic_GCJ='-fpic'
23625 lt_prog_compiler_static_GCJ='-Bstatic'
23626 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023627 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023628 lt_prog_compiler_wl_GCJ='-Wl,'
23629 # All Alpha code is PIC.
23630 lt_prog_compiler_static_GCJ='-non_shared'
23631 ;;
23632 esac
23633 ;;
23634
23635 osf3* | osf4* | osf5*)
23636 lt_prog_compiler_wl_GCJ='-Wl,'
23637 # All OSF/1 code is PIC.
23638 lt_prog_compiler_static_GCJ='-non_shared'
23639 ;;
23640
John Criswell47fdd832003-07-14 16:52:07 +000023641 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023642 lt_prog_compiler_pic_GCJ='-KPIC'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023644 case $cc_basename in
23645 f77* | f90* | f95*)
23646 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23647 *)
23648 lt_prog_compiler_wl_GCJ='-Wl,';;
23649 esac
John Criswell47fdd832003-07-14 16:52:07 +000023650 ;;
23651
23652 sunos4*)
23653 lt_prog_compiler_wl_GCJ='-Qoption ld '
23654 lt_prog_compiler_pic_GCJ='-PIC'
23655 lt_prog_compiler_static_GCJ='-Bstatic'
23656 ;;
23657
Reid Spencera773bd52006-08-04 18:18:08 +000023658 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023659 lt_prog_compiler_wl_GCJ='-Wl,'
23660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
23662 ;;
23663
23664 sysv4*MP*)
23665 if test -d /usr/nec ;then
23666 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23667 lt_prog_compiler_static_GCJ='-Bstatic'
23668 fi
23669 ;;
23670
Reid Spencera773bd52006-08-04 18:18:08 +000023671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23672 lt_prog_compiler_wl_GCJ='-Wl,'
23673 lt_prog_compiler_pic_GCJ='-KPIC'
23674 lt_prog_compiler_static_GCJ='-Bstatic'
23675 ;;
23676
23677 unicos*)
23678 lt_prog_compiler_wl_GCJ='-Wl,'
23679 lt_prog_compiler_can_build_shared_GCJ=no
23680 ;;
23681
John Criswell47fdd832003-07-14 16:52:07 +000023682 uts4*)
23683 lt_prog_compiler_pic_GCJ='-pic'
23684 lt_prog_compiler_static_GCJ='-Bstatic'
23685 ;;
23686
23687 *)
23688 lt_prog_compiler_can_build_shared_GCJ=no
23689 ;;
23690 esac
23691 fi
23692
Reid Spencera773bd52006-08-04 18:18:08 +000023693{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23694echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023695
23696#
23697# Check to make sure the PIC flag actually works.
23698#
23699if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023700
Reid Spencera773bd52006-08-04 18:18:08 +000023701{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23702echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023703if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23704 echo $ECHO_N "(cached) $ECHO_C" >&6
23705else
23706 lt_prog_compiler_pic_works_GCJ=no
23707 ac_outfile=conftest.$ac_objext
23708 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23709 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23710 # Insert the option either (1) after the last *FLAGS variable, or
23711 # (2) before a word containing "conftest.", or (3) at the end.
23712 # Note that $ac_compile itself does not contain backslashes and begins
23713 # with a dollar sign (not a hyphen), so the echo should work correctly.
23714 # The option is referenced via a variable to avoid confusing sed.
23715 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023716 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023717 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23718 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000023719 (eval echo "\"\$as_me:23719: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023720 (eval "$lt_compile" 2>conftest.err)
23721 ac_status=$?
23722 cat conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000023723 echo "$as_me:23723: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023724 if (exit $ac_status) && test -s "$ac_outfile"; then
23725 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023726 # So say no if there are warnings other than the usual output.
23727 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23728 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23729 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023730 lt_prog_compiler_pic_works_GCJ=yes
23731 fi
23732 fi
23733 $rm conftest*
23734
23735fi
Reid Spencera773bd52006-08-04 18:18:08 +000023736{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23737echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023738
23739if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23740 case $lt_prog_compiler_pic_GCJ in
23741 "" | " "*) ;;
23742 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23743 esac
23744else
23745 lt_prog_compiler_pic_GCJ=
23746 lt_prog_compiler_can_build_shared_GCJ=no
23747fi
23748
23749fi
Reid Spencera773bd52006-08-04 18:18:08 +000023750case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023751 # For platforms which do not support PIC, -DPIC is meaningless:
23752 *djgpp*)
23753 lt_prog_compiler_pic_GCJ=
23754 ;;
23755 *)
23756 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23757 ;;
23758esac
23759
Reid Spencera773bd52006-08-04 18:18:08 +000023760#
23761# Check to make sure the static flag actually works.
23762#
23763wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23764{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23765echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23766if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23767 echo $ECHO_N "(cached) $ECHO_C" >&6
23768else
23769 lt_prog_compiler_static_works_GCJ=no
23770 save_LDFLAGS="$LDFLAGS"
23771 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23772 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23773 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23774 # The linker can only warn and ignore the option if not recognized
23775 # So say no if there are warnings
23776 if test -s conftest.err; then
23777 # Append any errors to the config.log.
23778 cat conftest.err 1>&5
23779 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23781 if diff conftest.exp conftest.er2 >/dev/null; then
23782 lt_prog_compiler_static_works_GCJ=yes
23783 fi
23784 else
23785 lt_prog_compiler_static_works_GCJ=yes
23786 fi
23787 fi
23788 $rm conftest*
23789 LDFLAGS="$save_LDFLAGS"
23790
23791fi
23792{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23793echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23794
23795if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23796 :
23797else
23798 lt_prog_compiler_static_GCJ=
23799fi
23800
23801
23802{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23803echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023804if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23805 echo $ECHO_N "(cached) $ECHO_C" >&6
23806else
23807 lt_cv_prog_compiler_c_o_GCJ=no
23808 $rm -r conftest 2>/dev/null
23809 mkdir conftest
23810 cd conftest
23811 mkdir out
23812 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23813
John Criswell47fdd832003-07-14 16:52:07 +000023814 lt_compiler_flag="-o out/conftest2.$ac_objext"
23815 # Insert the option either (1) after the last *FLAGS variable, or
23816 # (2) before a word containing "conftest.", or (3) at the end.
23817 # Note that $ac_compile itself does not contain backslashes and begins
23818 # with a dollar sign (not a hyphen), so the echo should work correctly.
23819 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23822 -e 's:$: $lt_compiler_flag:'`
Reid Spencerac90d5e2006-11-16 23:17:27 +000023823 (eval echo "\"\$as_me:23823: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023824 (eval "$lt_compile" 2>out/conftest.err)
23825 ac_status=$?
23826 cat out/conftest.err >&5
Reid Spencerac90d5e2006-11-16 23:17:27 +000023827 echo "$as_me:23827: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23829 then
23830 # The compiler can only warn and ignore the option if not recognized
23831 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023832 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023835 lt_cv_prog_compiler_c_o_GCJ=yes
23836 fi
23837 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023838 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023839 $rm conftest*
23840 # SGI C++ compiler will create directory out/ii_files/ for
23841 # template instantiation
23842 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23843 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023844 cd ..
23845 rmdir conftest
23846 $rm conftest*
23847
23848fi
Reid Spencera773bd52006-08-04 18:18:08 +000023849{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23850echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023851
23852
23853hard_links="nottested"
23854if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23855 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023856 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23857echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023858 hard_links=yes
23859 $rm conftest*
23860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23861 touch conftest.a
23862 ln conftest.a conftest.b 2>&5 || hard_links=no
23863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023864 { echo "$as_me:$LINENO: result: $hard_links" >&5
23865echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023866 if test "$hard_links" = no; then
23867 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23868echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23869 need_locks=warn
23870 fi
23871else
23872 need_locks=no
23873fi
23874
Reid Spencera773bd52006-08-04 18:18:08 +000023875{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23876echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023877
23878 runpath_var=
23879 allow_undefined_flag_GCJ=
23880 enable_shared_with_static_runtimes_GCJ=no
23881 archive_cmds_GCJ=
23882 archive_expsym_cmds_GCJ=
23883 old_archive_From_new_cmds_GCJ=
23884 old_archive_from_expsyms_cmds_GCJ=
23885 export_dynamic_flag_spec_GCJ=
23886 whole_archive_flag_spec_GCJ=
23887 thread_safe_flag_spec_GCJ=
23888 hardcode_libdir_flag_spec_GCJ=
23889 hardcode_libdir_flag_spec_ld_GCJ=
23890 hardcode_libdir_separator_GCJ=
23891 hardcode_direct_GCJ=no
23892 hardcode_minus_L_GCJ=no
23893 hardcode_shlibpath_var_GCJ=unsupported
23894 link_all_deplibs_GCJ=unknown
23895 hardcode_automatic_GCJ=no
23896 module_cmds_GCJ=
23897 module_expsym_cmds_GCJ=
23898 always_export_symbols_GCJ=no
23899 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23900 # include_expsyms should be a list of space-separated symbols to be *always*
23901 # included in the symbol list
23902 include_expsyms_GCJ=
23903 # exclude_expsyms can be an extended regexp of symbols to exclude
23904 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23905 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23906 # as well as any symbol that contains `d'.
23907 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23908 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23909 # platforms (ab)use it in PIC code, but their linkers get confused if
23910 # the symbol is explicitly referenced. Since portable code cannot
23911 # rely on this symbol name, it's probably fine to never include it in
23912 # preloaded symbol tables.
23913 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023914 # Just being paranoid about ensuring that cc_basename is set.
23915 for cc_temp in $compiler""; do
23916 case $cc_temp in
23917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23919 \-*) ;;
23920 *) break;;
23921 esac
23922done
23923cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023924
23925 case $host_os in
23926 cygwin* | mingw* | pw32*)
23927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23928 # When not using gcc, we currently assume that we are using
23929 # Microsoft Visual C++.
23930 if test "$GCC" != yes; then
23931 with_gnu_ld=no
23932 fi
23933 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023934 interix*)
23935 # we just hope/assume this is gcc and not c89 (= MSVC++)
23936 with_gnu_ld=yes
23937 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023938 openbsd*)
23939 with_gnu_ld=no
23940 ;;
23941 esac
23942
23943 ld_shlibs_GCJ=yes
23944 if test "$with_gnu_ld" = yes; then
23945 # If archive_cmds runs LD, not CC, wlarc should be empty
23946 wlarc='${wl}'
23947
Reid Spencera773bd52006-08-04 18:18:08 +000023948 # Set some defaults for GNU ld with shared library support. These
23949 # are reset later if shared libraries are not supported. Putting them
23950 # here allows them to be overridden if necessary.
23951 runpath_var=LD_RUN_PATH
23952 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23953 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23954 # ancient GNU ld didn't support --whole-archive et. al.
23955 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23956 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23957 else
23958 whole_archive_flag_spec_GCJ=
23959 fi
23960 supports_anon_versioning=no
23961 case `$LD -v 2>/dev/null` in
23962 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23963 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23964 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23965 *\ 2.11.*) ;; # other 2.11 versions
23966 *) supports_anon_versioning=yes ;;
23967 esac
23968
John Criswell47fdd832003-07-14 16:52:07 +000023969 # See if GNU ld supports shared libraries.
23970 case $host_os in
23971 aix3* | aix4* | aix5*)
23972 # On AIX/PPC, the GNU linker is very broken
23973 if test "$host_cpu" != ia64; then
23974 ld_shlibs_GCJ=no
23975 cat <<EOF 1>&2
23976
23977*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23978*** to be unable to reliably create shared libraries on AIX.
23979*** Therefore, libtool is disabling shared libraries support. If you
23980*** really care for shared libraries, you may want to modify your PATH
23981*** so that a non-GNU linker is found, and then restart.
23982
23983EOF
23984 fi
23985 ;;
23986
23987 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000023988 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 +000023989 hardcode_libdir_flag_spec_GCJ='-L$libdir'
23990 hardcode_minus_L_GCJ=yes
23991
23992 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
23993 # that the semantics of dynamic libraries on AmigaOS, at least up
23994 # to version 4, is to share data among multiple programs linked
23995 # with the same dynamic library. Since this doesn't match the
23996 # behavior of shared libraries on other platforms, we can't use
23997 # them.
23998 ld_shlibs_GCJ=no
23999 ;;
24000
24001 beos*)
24002 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24003 allow_undefined_flag_GCJ=unsupported
24004 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24005 # support --undefined. This deserves some investigation. FIXME
24006 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24007 else
24008 ld_shlibs_GCJ=no
24009 fi
24010 ;;
24011
24012 cygwin* | mingw* | pw32*)
24013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24014 # as there is no search path for DLLs.
24015 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24016 allow_undefined_flag_GCJ=unsupported
24017 always_export_symbols_GCJ=no
24018 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024019 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 +000024020
24021 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024022 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 +000024023 # If the export-symbols file already is a .def file (1st line
24024 # is EXPORTS), use it as is; otherwise, prepend...
24025 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24026 cp $export_symbols $output_objdir/$soname.def;
24027 else
24028 echo EXPORTS > $output_objdir/$soname.def;
24029 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024030 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024031 $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 +000024032 else
Reid Spencera773bd52006-08-04 18:18:08 +000024033 ld_shlibs_GCJ=no
24034 fi
24035 ;;
24036
24037 interix3*)
24038 hardcode_direct_GCJ=no
24039 hardcode_shlibpath_var_GCJ=no
24040 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24041 export_dynamic_flag_spec_GCJ='${wl}-E'
24042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24043 # Instead, shared libraries are loaded at an image base (0x10000000 by
24044 # default) and relocated if they conflict, which is a slow very memory
24045 # consuming and fragmenting process. To avoid this, we pick a random,
24046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24048 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'
24049 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'
24050 ;;
24051
24052 linux*)
24053 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24054 tmp_addflag=
24055 case $cc_basename,$host_cpu in
24056 pgcc*) # Portland Group C compiler
24057 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'
24058 tmp_addflag=' $pic_flag'
24059 ;;
24060 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24061 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'
24062 tmp_addflag=' $pic_flag -Mnomain' ;;
24063 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24064 tmp_addflag=' -i_dynamic' ;;
24065 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24066 tmp_addflag=' -i_dynamic -nofor_main' ;;
24067 ifc* | ifort*) # Intel Fortran compiler
24068 tmp_addflag=' -nofor_main' ;;
24069 esac
24070 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24071
24072 if test $supports_anon_versioning = yes; then
24073 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24074 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24075 $echo "local: *; };" >> $output_objdir/$libname.ver~
24076 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24077 fi
24078 else
24079 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024080 fi
24081 ;;
24082
24083 netbsd*)
24084 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24085 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24086 wlarc=
24087 else
24088 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24090 fi
24091 ;;
24092
Reid Spencera773bd52006-08-04 18:18:08 +000024093 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024094 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24095 ld_shlibs_GCJ=no
24096 cat <<EOF 1>&2
24097
24098*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24099*** create shared libraries on Solaris systems. Therefore, libtool
24100*** is disabling shared libraries support. We urge you to upgrade GNU
24101*** binutils to release 2.9.1 or newer. Another option is to modify
24102*** your PATH or compiler configuration so that the native linker is
24103*** used, and then restart.
24104
24105EOF
24106 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24107 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24108 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24109 else
24110 ld_shlibs_GCJ=no
24111 fi
24112 ;;
24113
Reid Spencera773bd52006-08-04 18:18:08 +000024114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24115 case `$LD -v 2>&1` in
24116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24117 ld_shlibs_GCJ=no
24118 cat <<_LT_EOF 1>&2
24119
24120*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24121*** reliably create shared libraries on SCO systems. Therefore, libtool
24122*** is disabling shared libraries support. We urge you to upgrade GNU
24123*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24124*** your PATH or compiler configuration so that the native linker is
24125*** used, and then restart.
24126
24127_LT_EOF
24128 ;;
24129 *)
24130 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24131 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24132 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24133 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24134 else
24135 ld_shlibs_GCJ=no
24136 fi
24137 ;;
24138 esac
24139 ;;
24140
John Criswell47fdd832003-07-14 16:52:07 +000024141 sunos4*)
24142 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24143 wlarc=
24144 hardcode_direct_GCJ=yes
24145 hardcode_shlibpath_var_GCJ=no
24146 ;;
24147
24148 *)
24149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24152 else
24153 ld_shlibs_GCJ=no
24154 fi
24155 ;;
24156 esac
24157
Reid Spencera773bd52006-08-04 18:18:08 +000024158 if test "$ld_shlibs_GCJ" = no; then
24159 runpath_var=
24160 hardcode_libdir_flag_spec_GCJ=
24161 export_dynamic_flag_spec_GCJ=
24162 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024163 fi
24164 else
24165 # PORTME fill in a description of your system's linker (not GNU ld)
24166 case $host_os in
24167 aix3*)
24168 allow_undefined_flag_GCJ=unsupported
24169 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024170 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 +000024171 # Note: this linker hardcodes the directories in LIBPATH if there
24172 # are no directories specified by -L.
24173 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024174 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024175 # Neither direct hardcoding nor static linking is supported with a
24176 # broken collect2.
24177 hardcode_direct_GCJ=unsupported
24178 fi
24179 ;;
24180
24181 aix4* | aix5*)
24182 if test "$host_cpu" = ia64; then
24183 # On IA64, the linker does run time linking by default, so we don't
24184 # have to do anything special.
24185 aix_use_runtimelinking=no
24186 exp_sym_flag='-Bexport'
24187 no_entry_flag=""
24188 else
24189 # If we're using GNU nm, then we don't want the "-C" option.
24190 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24191 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24192 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'
24193 else
24194 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'
24195 fi
24196 aix_use_runtimelinking=no
24197
24198 # Test if we are trying to use run time linking or normal
24199 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24200 # need to do runtime linking.
24201 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24202 for ld_flag in $LDFLAGS; do
24203 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24204 aix_use_runtimelinking=yes
24205 break
24206 fi
24207 done
Reid Spencera773bd52006-08-04 18:18:08 +000024208 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024209 esac
24210
24211 exp_sym_flag='-bexport'
24212 no_entry_flag='-bnoentry'
24213 fi
24214
24215 # When large executables or shared objects are built, AIX ld can
24216 # have problems creating the table of contents. If linking a library
24217 # or program results in "error TOC overflow" add -mminimal-toc to
24218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24220
24221 archive_cmds_GCJ=''
24222 hardcode_direct_GCJ=yes
24223 hardcode_libdir_separator_GCJ=':'
24224 link_all_deplibs_GCJ=yes
24225
24226 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024227 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024228 # We only want to do this on AIX 4.2 and lower, the check
24229 # below for broken collect2 doesn't work under 4.3+
24230 collect2name=`${CC} -print-prog-name=collect2`
24231 if test -f "$collect2name" && \
24232 strings "$collect2name" | grep resolve_lib_name >/dev/null
24233 then
24234 # We have reworked collect2
24235 hardcode_direct_GCJ=yes
24236 else
24237 # We have old collect2
24238 hardcode_direct_GCJ=unsupported
24239 # It fails to find uninstalled libraries when the uninstalled
24240 # path is not listed in the libpath. Setting hardcode_minus_L
24241 # to unsupported forces relinking
24242 hardcode_minus_L_GCJ=yes
24243 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24244 hardcode_libdir_separator_GCJ=
24245 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024246 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024247 esac
24248 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024249 if test "$aix_use_runtimelinking" = yes; then
24250 shared_flag="$shared_flag "'${wl}-G'
24251 fi
John Criswell47fdd832003-07-14 16:52:07 +000024252 else
24253 # not using gcc
24254 if test "$host_cpu" = ia64; then
24255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24256 # chokes on -Wl,-G. The following line is correct:
24257 shared_flag='-G'
24258 else
Reid Spencera773bd52006-08-04 18:18:08 +000024259 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024260 shared_flag='${wl}-G'
24261 else
24262 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024263 fi
John Criswell47fdd832003-07-14 16:52:07 +000024264 fi
24265 fi
24266
24267 # It seems that -bexpall does not export symbols beginning with
24268 # underscore (_), so it is better to generate a list of symbols to export.
24269 always_export_symbols_GCJ=yes
24270 if test "$aix_use_runtimelinking" = yes; then
24271 # Warning - without using the other runtime loading flags (-brtl),
24272 # -berok will link without error, but may produce a broken library.
24273 allow_undefined_flag_GCJ='-berok'
24274 # Determine the default libpath from the value encoded in an empty executable.
24275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024276/* confdefs.h. */
24277_ACEOF
24278cat confdefs.h >>conftest.$ac_ext
24279cat >>conftest.$ac_ext <<_ACEOF
24280/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024281
John Criswell47fdd832003-07-14 16:52:07 +000024282int
24283main ()
24284{
24285
24286 ;
24287 return 0;
24288}
24289_ACEOF
24290rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024291if { (ac_try="$ac_link"
24292case "(($ac_try" in
24293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294 *) ac_try_echo=$ac_try;;
24295esac
24296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024299 grep -v '^ *+' conftest.er1 >conftest.err
24300 rm -f conftest.er1
24301 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24303 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24305 { (case "(($ac_try" in
24306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24307 *) ac_try_echo=$ac_try;;
24308esac
24309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24310 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024315 { (case "(($ac_try" in
24316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317 *) ac_try_echo=$ac_try;;
24318esac
24319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024321 ac_status=$?
24322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); }; }; then
24324
24325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24326}'`
24327# Check for a 64-bit object if we didn't find anything.
24328if 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; }
24329}'`; fi
24330else
24331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024332sed 's/^/| /' conftest.$ac_ext >&5
24333
Reid Spencera773bd52006-08-04 18:18:08 +000024334
John Criswell47fdd832003-07-14 16:52:07 +000024335fi
Reid Spencera773bd52006-08-04 18:18:08 +000024336
24337rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024338 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024339if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24340
24341 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024342 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 +000024343 else
24344 if test "$host_cpu" = ia64; then
24345 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24346 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024347 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 +000024348 else
24349 # Determine the default libpath from the value encoded in an empty executable.
24350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024351/* confdefs.h. */
24352_ACEOF
24353cat confdefs.h >>conftest.$ac_ext
24354cat >>conftest.$ac_ext <<_ACEOF
24355/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024356
John Criswell47fdd832003-07-14 16:52:07 +000024357int
24358main ()
24359{
24360
24361 ;
24362 return 0;
24363}
24364_ACEOF
24365rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024366if { (ac_try="$ac_link"
24367case "(($ac_try" in
24368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369 *) ac_try_echo=$ac_try;;
24370esac
24371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24380 { (case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24383esac
24384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024390 { (case "(($ac_try" in
24391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392 *) ac_try_echo=$ac_try;;
24393esac
24394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024396 ac_status=$?
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); }; }; then
24399
24400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24401}'`
24402# Check for a 64-bit object if we didn't find anything.
24403if 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; }
24404}'`; fi
24405else
24406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024407sed 's/^/| /' conftest.$ac_ext >&5
24408
Reid Spencera773bd52006-08-04 18:18:08 +000024409
John Criswell47fdd832003-07-14 16:52:07 +000024410fi
Reid Spencera773bd52006-08-04 18:18:08 +000024411
24412rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024413 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24415
24416 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24417 # Warning - without using the other run time loading flags,
24418 # -berok will link without error, but may produce a broken library.
24419 no_undefined_flag_GCJ=' ${wl}-bernotok'
24420 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024421 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024422 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024423 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024424 # This is similar to how AIX traditionally builds its shared libraries.
24425 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 +000024426 fi
24427 fi
24428 ;;
24429
24430 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024431 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 +000024432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24433 hardcode_minus_L_GCJ=yes
24434 # see comment about different semantics on the GNU ld section
24435 ld_shlibs_GCJ=no
24436 ;;
24437
Reid Spencer2706f8c2004-09-19 23:53:36 +000024438 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024439 export_dynamic_flag_spec_GCJ=-rdynamic
24440 ;;
24441
24442 cygwin* | mingw* | pw32*)
24443 # When not using gcc, we currently assume that we are using
24444 # Microsoft Visual C++.
24445 # hardcode_libdir_flag_spec is actually meaningless, as there is
24446 # no search path for DLLs.
24447 hardcode_libdir_flag_spec_GCJ=' '
24448 allow_undefined_flag_GCJ=unsupported
24449 # Tell ltmain to make .lib files, not .a files.
24450 libext=lib
24451 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024452 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024453 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024454 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 +000024455 # The linker will automatically build a .lib file if we build a DLL.
24456 old_archive_From_new_cmds_GCJ='true'
24457 # FIXME: Should let the user specify the lib program.
24458 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024459 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024460 enable_shared_with_static_runtimes_GCJ=yes
24461 ;;
24462
24463 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024464 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024465 rhapsody* | darwin1.[012])
24466 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24467 ;;
24468 *) # Darwin 1.3 on
24469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24470 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24471 else
24472 case ${MACOSX_DEPLOYMENT_TARGET} in
24473 10.[012])
24474 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24475 ;;
24476 10.*)
24477 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24478 ;;
24479 esac
24480 fi
24481 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024482 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024483 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024484 hardcode_direct_GCJ=no
24485 hardcode_automatic_GCJ=yes
24486 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024487 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024488 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024489 if test "$GCC" = yes ; then
24490 output_verbose_link_cmd='echo'
24491 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24492 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024493 # 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 +000024494 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}'
24495 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 +000024496 else
Reid Spencera773bd52006-08-04 18:18:08 +000024497 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024498 xlc*)
24499 output_verbose_link_cmd='echo'
24500 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24501 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024502 # 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 +000024503 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}'
24504 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 +000024505 ;;
24506 *)
24507 ld_shlibs_GCJ=no
24508 ;;
24509 esac
John Criswell47fdd832003-07-14 16:52:07 +000024510 fi
24511 ;;
24512
24513 dgux*)
24514 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24515 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24516 hardcode_shlibpath_var_GCJ=no
24517 ;;
24518
24519 freebsd1*)
24520 ld_shlibs_GCJ=no
24521 ;;
24522
24523 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24524 # support. Future versions do this automatically, but an explicit c++rt0.o
24525 # does not break anything, and helps significantly (at the cost of a little
24526 # extra space).
24527 freebsd2.2*)
24528 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24529 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24530 hardcode_direct_GCJ=yes
24531 hardcode_shlibpath_var_GCJ=no
24532 ;;
24533
24534 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24535 freebsd2*)
24536 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24537 hardcode_direct_GCJ=yes
24538 hardcode_minus_L_GCJ=yes
24539 hardcode_shlibpath_var_GCJ=no
24540 ;;
24541
24542 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024543 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024544 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24545 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24546 hardcode_direct_GCJ=yes
24547 hardcode_shlibpath_var_GCJ=no
24548 ;;
24549
24550 hpux9*)
24551 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024552 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 +000024553 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024554 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 +000024555 fi
24556 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24557 hardcode_libdir_separator_GCJ=:
24558 hardcode_direct_GCJ=yes
24559
24560 # hardcode_minus_L: Not really in the search PATH,
24561 # but as the default location of the library.
24562 hardcode_minus_L_GCJ=yes
24563 export_dynamic_flag_spec_GCJ='${wl}-E'
24564 ;;
24565
Reid Spencera773bd52006-08-04 18:18:08 +000024566 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024567 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024568 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24569 else
24570 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24571 fi
24572 if test "$with_gnu_ld" = no; then
24573 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24574 hardcode_libdir_separator_GCJ=:
24575
24576 hardcode_direct_GCJ=yes
24577 export_dynamic_flag_spec_GCJ='${wl}-E'
24578
24579 # hardcode_minus_L: Not really in the search PATH,
24580 # but as the default location of the library.
24581 hardcode_minus_L_GCJ=yes
24582 fi
24583 ;;
24584
24585 hpux11*)
24586 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24587 case $host_cpu in
24588 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024589 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24590 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024591 ia64*)
24592 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024594 *)
24595 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24596 ;;
24597 esac
24598 else
Reid Spencera773bd52006-08-04 18:18:08 +000024599 case $host_cpu in
24600 hppa*64*)
24601 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24602 ;;
24603 ia64*)
24604 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024605 ;;
24606 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024607 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 +000024608 ;;
24609 esac
24610 fi
24611 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024612 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24613 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024614
Reid Spencera773bd52006-08-04 18:18:08 +000024615 case $host_cpu in
24616 hppa*64*|ia64*)
24617 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24618 hardcode_direct_GCJ=no
24619 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024620 ;;
24621 *)
John Criswell47fdd832003-07-14 16:52:07 +000024622 hardcode_direct_GCJ=yes
24623 export_dynamic_flag_spec_GCJ='${wl}-E'
24624
24625 # hardcode_minus_L: Not really in the search PATH,
24626 # but as the default location of the library.
24627 hardcode_minus_L_GCJ=yes
24628 ;;
24629 esac
24630 fi
24631 ;;
24632
24633 irix5* | irix6* | nonstopux*)
24634 if test "$GCC" = yes; then
24635 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'
24636 else
24637 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'
24638 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24639 fi
24640 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24641 hardcode_libdir_separator_GCJ=:
24642 link_all_deplibs_GCJ=yes
24643 ;;
24644
24645 netbsd*)
24646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24647 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24648 else
24649 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24650 fi
24651 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24652 hardcode_direct_GCJ=yes
24653 hardcode_shlibpath_var_GCJ=no
24654 ;;
24655
24656 newsos6)
24657 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24658 hardcode_direct_GCJ=yes
24659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24660 hardcode_libdir_separator_GCJ=:
24661 hardcode_shlibpath_var_GCJ=no
24662 ;;
24663
24664 openbsd*)
24665 hardcode_direct_GCJ=yes
24666 hardcode_shlibpath_var_GCJ=no
24667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24668 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024669 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 +000024670 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24671 export_dynamic_flag_spec_GCJ='${wl}-E'
24672 else
24673 case $host_os in
24674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24675 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24676 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24677 ;;
24678 *)
24679 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24680 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24681 ;;
24682 esac
24683 fi
24684 ;;
24685
24686 os2*)
24687 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24688 hardcode_minus_L_GCJ=yes
24689 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024690 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 +000024691 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24692 ;;
24693
24694 osf3*)
24695 if test "$GCC" = yes; then
24696 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24697 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'
24698 else
24699 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24700 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'
24701 fi
24702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24703 hardcode_libdir_separator_GCJ=:
24704 ;;
24705
24706 osf4* | osf5*) # as osf3* with the addition of -msym flag
24707 if test "$GCC" = yes; then
24708 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24709 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'
24710 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24711 else
24712 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24713 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 +000024714 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 +000024715 $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 +000024716
John Criswell47fdd832003-07-14 16:52:07 +000024717 # Both c and cxx compiler support -rpath directly
24718 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24719 fi
24720 hardcode_libdir_separator_GCJ=:
24721 ;;
24722
John Criswell47fdd832003-07-14 16:52:07 +000024723 solaris*)
24724 no_undefined_flag_GCJ=' -z text'
24725 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024726 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024727 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024728 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24729 $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 +000024730 else
Reid Spencera773bd52006-08-04 18:18:08 +000024731 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024732 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024733 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24734 $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 +000024735 fi
24736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24737 hardcode_shlibpath_var_GCJ=no
24738 case $host_os in
24739 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024740 *)
24741 # The compiler driver will combine linker options so we
24742 # cannot just pass the convience library names through
24743 # without $wl, iff we do not link with $LD.
24744 # Luckily, gcc supports the same syntax we need for Sun Studio.
24745 # Supported since Solaris 2.6 (maybe 2.5.1?)
24746 case $wlarc in
24747 '')
24748 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24749 *)
24750 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' ;;
24751 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024752 esac
24753 link_all_deplibs_GCJ=yes
24754 ;;
24755
24756 sunos4*)
24757 if test "x$host_vendor" = xsequent; then
24758 # Use $CC to link under sequent, because it throws in some extra .o
24759 # files that make .init and .fini sections work.
24760 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24761 else
24762 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24763 fi
24764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24765 hardcode_direct_GCJ=yes
24766 hardcode_minus_L_GCJ=yes
24767 hardcode_shlibpath_var_GCJ=no
24768 ;;
24769
24770 sysv4)
24771 case $host_vendor in
24772 sni)
24773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24774 hardcode_direct_GCJ=yes # is this really true???
24775 ;;
24776 siemens)
24777 ## LD is ld it makes a PLAMLIB
24778 ## CC just makes a GrossModule.
24779 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24780 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24781 hardcode_direct_GCJ=no
24782 ;;
24783 motorola)
24784 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24785 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24786 ;;
24787 esac
24788 runpath_var='LD_RUN_PATH'
24789 hardcode_shlibpath_var_GCJ=no
24790 ;;
24791
24792 sysv4.3*)
24793 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24794 hardcode_shlibpath_var_GCJ=no
24795 export_dynamic_flag_spec_GCJ='-Bexport'
24796 ;;
24797
24798 sysv4*MP*)
24799 if test -d /usr/nec; then
24800 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24801 hardcode_shlibpath_var_GCJ=no
24802 runpath_var=LD_RUN_PATH
24803 hardcode_runpath_var=yes
24804 ld_shlibs_GCJ=yes
24805 fi
24806 ;;
24807
Reid Spencera773bd52006-08-04 18:18:08 +000024808 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24809 no_undefined_flag_GCJ='${wl}-z,text'
24810 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024811 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024812 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024813
John Criswell47fdd832003-07-14 16:52:07 +000024814 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024815 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24816 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 +000024817 else
Reid Spencera773bd52006-08-04 18:18:08 +000024818 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24819 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 +000024820 fi
John Criswell47fdd832003-07-14 16:52:07 +000024821 ;;
24822
Reid Spencera773bd52006-08-04 18:18:08 +000024823 sysv5* | sco3.2v5* | sco5v6*)
24824 # Note: We can NOT use -z defs as we might desire, because we do not
24825 # link with -lc, and that would cause any symbols used from libc to
24826 # always be unresolved, which means just about no library would
24827 # ever link correctly. If we're not using GNU ld we use -z text
24828 # though, which does catch some bad symbols but isn't as heavy-handed
24829 # as -z defs.
24830 no_undefined_flag_GCJ='${wl}-z,text'
24831 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24832 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024833 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024834 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24835 hardcode_libdir_separator_GCJ=':'
24836 link_all_deplibs_GCJ=yes
24837 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024838 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024839
24840 if test "$GCC" = yes; then
24841 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24842 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24843 else
24844 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24845 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24846 fi
John Criswell47fdd832003-07-14 16:52:07 +000024847 ;;
24848
24849 uts4*)
24850 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24852 hardcode_shlibpath_var_GCJ=no
24853 ;;
24854
24855 *)
24856 ld_shlibs_GCJ=no
24857 ;;
24858 esac
24859 fi
24860
Reid Spencera773bd52006-08-04 18:18:08 +000024861{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24862echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024863test "$ld_shlibs_GCJ" = no && can_build_shared=no
24864
John Criswell47fdd832003-07-14 16:52:07 +000024865#
24866# Do we need to explicitly link libc?
24867#
24868case "x$archive_cmds_need_lc_GCJ" in
24869x|xyes)
24870 # Assume -lc should be added
24871 archive_cmds_need_lc_GCJ=yes
24872
24873 if test "$enable_shared" = yes && test "$GCC" = yes; then
24874 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024875 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024876 # FIXME: we may have to deal with multi-command sequences.
24877 ;;
24878 '$CC '*)
24879 # Test whether the compiler implicitly links with -lc since on some
24880 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24881 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024882 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24883echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024884 $rm conftest*
24885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24886
24887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24888 (eval $ac_compile) 2>&5
24889 ac_status=$?
24890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891 (exit $ac_status); } 2>conftest.err; then
24892 soname=conftest
24893 lib=conftest
24894 libobjs=conftest.$ac_objext
24895 deplibs=
24896 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024897 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024898 compiler_flags=-v
24899 linker_flags=-v
24900 verstring=
24901 output_objdir=.
24902 libname=conftest
24903 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24904 allow_undefined_flag_GCJ=
24905 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24906 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); }
24910 then
24911 archive_cmds_need_lc_GCJ=no
24912 else
24913 archive_cmds_need_lc_GCJ=yes
24914 fi
24915 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24916 else
24917 cat conftest.err 1>&5
24918 fi
24919 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024920 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24921echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024922 ;;
24923 esac
24924 fi
24925 ;;
24926esac
24927
Reid Spencera773bd52006-08-04 18:18:08 +000024928{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24929echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024930library_names_spec=
24931libname_spec='lib$name'
24932soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024933shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024934postinstall_cmds=
24935postuninstall_cmds=
24936finish_cmds=
24937finish_eval=
24938shlibpath_var=
24939shlibpath_overrides_runpath=unknown
24940version_type=none
24941dynamic_linker="$host_os ld.so"
24942sys_lib_dlsearch_path_spec="/lib /usr/lib"
24943if test "$GCC" = yes; then
24944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24946 # if the path contains ";" then we assume it to be the separator
24947 # otherwise default to the standard path separator (i.e. ":") - it is
24948 # assumed that no part of a normal pathname contains ";" but that should
24949 # okay in the real world where ";" in dirpaths is itself problematic.
24950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24951 else
24952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24953 fi
24954else
24955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24956fi
24957need_lib_prefix=unknown
24958hardcode_into_libs=no
24959
24960# when you set need_version to no, make sure it does not cause -set_version
24961# flags to be left without arguments
24962need_version=unknown
24963
24964case $host_os in
24965aix3*)
24966 version_type=linux
24967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24968 shlibpath_var=LIBPATH
24969
24970 # AIX 3 has no versioning support, so we append a major version to the name.
24971 soname_spec='${libname}${release}${shared_ext}$major'
24972 ;;
24973
24974aix4* | aix5*)
24975 version_type=linux
24976 need_lib_prefix=no
24977 need_version=no
24978 hardcode_into_libs=yes
24979 if test "$host_cpu" = ia64; then
24980 # AIX 5 supports IA64
24981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
24982 shlibpath_var=LD_LIBRARY_PATH
24983 else
24984 # With GCC up to 2.95.x, collect2 would create an import file
24985 # for dependence libraries. The import file would start with
24986 # the line `#! .'. This would cause the generated library to
24987 # depend on `.', always an invalid library. This was fixed in
24988 # development snapshots of GCC prior to 3.0.
24989 case $host_os in
24990 aix4 | aix4.[01] | aix4.[01].*)
24991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
24992 echo ' yes '
24993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
24994 :
24995 else
24996 can_build_shared=no
24997 fi
24998 ;;
24999 esac
25000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25001 # soname into executable. Probably we can add versioning support to
25002 # collect2, so additional links can be useful in future.
25003 if test "$aix_use_runtimelinking" = yes; then
25004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25005 # instead of lib<name>.a to let people know that these are not
25006 # typical AIX shared libraries.
25007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25008 else
25009 # We preserve .a as extension for shared libraries through AIX4.2
25010 # and later when we are not doing run time linking.
25011 library_names_spec='${libname}${release}.a $libname.a'
25012 soname_spec='${libname}${release}${shared_ext}$major'
25013 fi
25014 shlibpath_var=LIBPATH
25015 fi
25016 ;;
25017
25018amigaos*)
25019 library_names_spec='$libname.ixlibrary $libname.a'
25020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025021 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 +000025022 ;;
25023
25024beos*)
25025 library_names_spec='${libname}${shared_ext}'
25026 dynamic_linker="$host_os ld.so"
25027 shlibpath_var=LIBRARY_PATH
25028 ;;
25029
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025031 version_type=linux
25032 need_version=no
25033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25034 soname_spec='${libname}${release}${shared_ext}$major'
25035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25036 shlibpath_var=LD_LIBRARY_PATH
25037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25039 # the default ld.so.conf also contains /usr/contrib/lib and
25040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25041 # libtool to hard-code these into programs
25042 ;;
25043
25044cygwin* | mingw* | pw32*)
25045 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025046 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025047 need_version=no
25048 need_lib_prefix=no
25049
25050 case $GCC,$host_os in
25051 yes,cygwin* | yes,mingw* | yes,pw32*)
25052 library_names_spec='$libname.dll.a'
25053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025054 postinstall_cmds='base_file=`basename \${file}`~
25055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25056 dldir=$destdir/`dirname \$dlpath`~
25057 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025058 $install_prog $dir/$dlname \$dldir/$dlname~
25059 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025060 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25061 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025062 $rm \$dlpath'
25063 shlibpath_overrides_runpath=yes
25064
25065 case $host_os in
25066 cygwin*)
25067 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25068 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 +000025069 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025070 ;;
25071 mingw*)
25072 # MinGW DLLs use traditional 'lib' prefix
25073 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25074 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25075 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25076 # It is most probably a Windows format PATH printed by
25077 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25078 # path with ; separators, and with drive letters. We can handle the
25079 # drive letters (cygwin fileutils understands them), so leave them,
25080 # especially as we might pass files found there to a mingw objdump,
25081 # which wouldn't understand a cygwinified path. Ahh.
25082 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25083 else
25084 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25085 fi
25086 ;;
25087 pw32*)
25088 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025089 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 +000025090 ;;
25091 esac
25092 ;;
25093
25094 *)
25095 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25096 ;;
25097 esac
25098 dynamic_linker='Win32 ld.exe'
25099 # FIXME: first we should search . and the directory the executable is in
25100 shlibpath_var=PATH
25101 ;;
25102
25103darwin* | rhapsody*)
25104 dynamic_linker="$host_os dyld"
25105 version_type=darwin
25106 need_lib_prefix=no
25107 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025109 soname_spec='${libname}${release}${major}$shared_ext'
25110 shlibpath_overrides_runpath=yes
25111 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025112 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025113 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025114 if test "$GCC" = yes; then
25115 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"`
25116 else
25117 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025118 fi
25119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25120 ;;
25121
25122dgux*)
25123 version_type=linux
25124 need_lib_prefix=no
25125 need_version=no
25126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25127 soname_spec='${libname}${release}${shared_ext}$major'
25128 shlibpath_var=LD_LIBRARY_PATH
25129 ;;
25130
25131freebsd1*)
25132 dynamic_linker=no
25133 ;;
25134
Reid Spencer2706f8c2004-09-19 23:53:36 +000025135kfreebsd*-gnu)
25136 version_type=linux
25137 need_lib_prefix=no
25138 need_version=no
25139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25140 soname_spec='${libname}${release}${shared_ext}$major'
25141 shlibpath_var=LD_LIBRARY_PATH
25142 shlibpath_overrides_runpath=no
25143 hardcode_into_libs=yes
25144 dynamic_linker='GNU ld.so'
25145 ;;
25146
Reid Spencera773bd52006-08-04 18:18:08 +000025147freebsd* | dragonfly*)
25148 # DragonFly does not have aout. When/if they implement a new
25149 # versioning mechanism, adjust this.
25150 if test -x /usr/bin/objformat; then
25151 objformat=`/usr/bin/objformat`
25152 else
25153 case $host_os in
25154 freebsd[123]*) objformat=aout ;;
25155 *) objformat=elf ;;
25156 esac
25157 fi
John Criswell47fdd832003-07-14 16:52:07 +000025158 version_type=freebsd-$objformat
25159 case $version_type in
25160 freebsd-elf*)
25161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25162 need_version=no
25163 need_lib_prefix=no
25164 ;;
25165 freebsd-*)
25166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25167 need_version=yes
25168 ;;
25169 esac
25170 shlibpath_var=LD_LIBRARY_PATH
25171 case $host_os in
25172 freebsd2*)
25173 shlibpath_overrides_runpath=yes
25174 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025175 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025176 shlibpath_overrides_runpath=yes
25177 hardcode_into_libs=yes
25178 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025179 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25180 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025181 shlibpath_overrides_runpath=no
25182 hardcode_into_libs=yes
25183 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025184 freebsd*) # from 4.6 on
25185 shlibpath_overrides_runpath=yes
25186 hardcode_into_libs=yes
25187 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025188 esac
25189 ;;
25190
25191gnu*)
25192 version_type=linux
25193 need_lib_prefix=no
25194 need_version=no
25195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25196 soname_spec='${libname}${release}${shared_ext}$major'
25197 shlibpath_var=LD_LIBRARY_PATH
25198 hardcode_into_libs=yes
25199 ;;
25200
25201hpux9* | hpux10* | hpux11*)
25202 # Give a soname corresponding to the major version so that dld.sl refuses to
25203 # link against other versions.
25204 version_type=sunos
25205 need_lib_prefix=no
25206 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025207 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025208 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025209 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025210 hardcode_into_libs=yes
25211 dynamic_linker="$host_os dld.so"
25212 shlibpath_var=LD_LIBRARY_PATH
25213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25215 soname_spec='${libname}${release}${shared_ext}$major'
25216 if test "X$HPUX_IA64_MODE" = X32; then
25217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25218 else
25219 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25220 fi
25221 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25222 ;;
25223 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025224 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025225 hardcode_into_libs=yes
25226 dynamic_linker="$host_os dld.sl"
25227 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25228 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25230 soname_spec='${libname}${release}${shared_ext}$major'
25231 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25232 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25233 ;;
25234 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025235 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025236 dynamic_linker="$host_os dld.sl"
25237 shlibpath_var=SHLIB_PATH
25238 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25240 soname_spec='${libname}${release}${shared_ext}$major'
25241 ;;
25242 esac
25243 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25244 postinstall_cmds='chmod 555 $lib'
25245 ;;
25246
Reid Spencera773bd52006-08-04 18:18:08 +000025247interix3*)
25248 version_type=linux
25249 need_lib_prefix=no
25250 need_version=no
25251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25252 soname_spec='${libname}${release}${shared_ext}$major'
25253 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25254 shlibpath_var=LD_LIBRARY_PATH
25255 shlibpath_overrides_runpath=no
25256 hardcode_into_libs=yes
25257 ;;
25258
John Criswell47fdd832003-07-14 16:52:07 +000025259irix5* | irix6* | nonstopux*)
25260 case $host_os in
25261 nonstopux*) version_type=nonstopux ;;
25262 *)
25263 if test "$lt_cv_prog_gnu_ld" = yes; then
25264 version_type=linux
25265 else
25266 version_type=irix
25267 fi ;;
25268 esac
25269 need_lib_prefix=no
25270 need_version=no
25271 soname_spec='${libname}${release}${shared_ext}$major'
25272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25273 case $host_os in
25274 irix5* | nonstopux*)
25275 libsuff= shlibsuff=
25276 ;;
25277 *)
25278 case $LD in # libtool.m4 will add one of these switches to LD
25279 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25280 libsuff= shlibsuff= libmagic=32-bit;;
25281 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25282 libsuff=32 shlibsuff=N32 libmagic=N32;;
25283 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25284 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25285 *) libsuff= shlibsuff= libmagic=never-match;;
25286 esac
25287 ;;
25288 esac
25289 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25290 shlibpath_overrides_runpath=no
25291 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25292 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25293 hardcode_into_libs=yes
25294 ;;
25295
25296# No shared lib support for Linux oldld, aout, or coff.
25297linux*oldld* | linux*aout* | linux*coff*)
25298 dynamic_linker=no
25299 ;;
25300
25301# This must be Linux ELF.
25302linux*)
25303 version_type=linux
25304 need_lib_prefix=no
25305 need_version=no
25306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25307 soname_spec='${libname}${release}${shared_ext}$major'
25308 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25309 shlibpath_var=LD_LIBRARY_PATH
25310 shlibpath_overrides_runpath=no
25311 # This implies no fast_install, which is unacceptable.
25312 # Some rework will be needed to allow for fast_install
25313 # before this can be enabled.
25314 hardcode_into_libs=yes
25315
Reid Spencer2706f8c2004-09-19 23:53:36 +000025316 # Append ld.so.conf contents to the search path
25317 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025318 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 +000025319 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25320 fi
25321
John Criswell47fdd832003-07-14 16:52:07 +000025322 # We used to test for /lib/ld.so.1 and disable shared libraries on
25323 # powerpc, because MkLinux only supported shared libraries with the
25324 # GNU dynamic linker. Since this was broken with cross compilers,
25325 # most powerpc-linux boxes support dynamic linking these days and
25326 # people can always --disable-shared, the test was removed, and we
25327 # assume the GNU/Linux dynamic linker is in use.
25328 dynamic_linker='GNU/Linux ld.so'
25329 ;;
25330
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331knetbsd*-gnu)
25332 version_type=linux
25333 need_lib_prefix=no
25334 need_version=no
25335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25336 soname_spec='${libname}${release}${shared_ext}$major'
25337 shlibpath_var=LD_LIBRARY_PATH
25338 shlibpath_overrides_runpath=no
25339 hardcode_into_libs=yes
25340 dynamic_linker='GNU ld.so'
25341 ;;
25342
John Criswell47fdd832003-07-14 16:52:07 +000025343netbsd*)
25344 version_type=sunos
25345 need_lib_prefix=no
25346 need_version=no
25347 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25350 dynamic_linker='NetBSD (a.out) ld.so'
25351 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025353 soname_spec='${libname}${release}${shared_ext}$major'
25354 dynamic_linker='NetBSD ld.elf_so'
25355 fi
25356 shlibpath_var=LD_LIBRARY_PATH
25357 shlibpath_overrides_runpath=yes
25358 hardcode_into_libs=yes
25359 ;;
25360
25361newsos6)
25362 version_type=linux
25363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25364 shlibpath_var=LD_LIBRARY_PATH
25365 shlibpath_overrides_runpath=yes
25366 ;;
25367
Reid Spencer2706f8c2004-09-19 23:53:36 +000025368nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025369 version_type=linux
25370 need_lib_prefix=no
25371 need_version=no
25372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25373 soname_spec='${libname}${release}${shared_ext}$major'
25374 shlibpath_var=LD_LIBRARY_PATH
25375 shlibpath_overrides_runpath=yes
25376 ;;
25377
25378openbsd*)
25379 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025380 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025381 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25383 case $host_os in
25384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25385 *) need_version=no ;;
25386 esac
John Criswell47fdd832003-07-14 16:52:07 +000025387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25389 shlibpath_var=LD_LIBRARY_PATH
25390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25391 case $host_os in
25392 openbsd2.[89] | openbsd2.[89].*)
25393 shlibpath_overrides_runpath=no
25394 ;;
25395 *)
25396 shlibpath_overrides_runpath=yes
25397 ;;
25398 esac
25399 else
25400 shlibpath_overrides_runpath=yes
25401 fi
25402 ;;
25403
25404os2*)
25405 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025407 need_lib_prefix=no
25408 library_names_spec='$libname${shared_ext} $libname.a'
25409 dynamic_linker='OS/2 ld.exe'
25410 shlibpath_var=LIBPATH
25411 ;;
25412
25413osf3* | osf4* | osf5*)
25414 version_type=osf
25415 need_lib_prefix=no
25416 need_version=no
25417 soname_spec='${libname}${release}${shared_ext}$major'
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419 shlibpath_var=LD_LIBRARY_PATH
25420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25422 ;;
25423
John Criswell47fdd832003-07-14 16:52:07 +000025424solaris*)
25425 version_type=linux
25426 need_lib_prefix=no
25427 need_version=no
25428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25429 soname_spec='${libname}${release}${shared_ext}$major'
25430 shlibpath_var=LD_LIBRARY_PATH
25431 shlibpath_overrides_runpath=yes
25432 hardcode_into_libs=yes
25433 # ldd complains unless libraries are executable
25434 postinstall_cmds='chmod +x $lib'
25435 ;;
25436
25437sunos4*)
25438 version_type=sunos
25439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25440 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25441 shlibpath_var=LD_LIBRARY_PATH
25442 shlibpath_overrides_runpath=yes
25443 if test "$with_gnu_ld" = yes; then
25444 need_lib_prefix=no
25445 fi
25446 need_version=yes
25447 ;;
25448
Reid Spencera773bd52006-08-04 18:18:08 +000025449sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025450 version_type=linux
25451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25452 soname_spec='${libname}${release}${shared_ext}$major'
25453 shlibpath_var=LD_LIBRARY_PATH
25454 case $host_vendor in
25455 sni)
25456 shlibpath_overrides_runpath=no
25457 need_lib_prefix=no
25458 export_dynamic_flag_spec='${wl}-Blargedynsym'
25459 runpath_var=LD_RUN_PATH
25460 ;;
25461 siemens)
25462 need_lib_prefix=no
25463 ;;
25464 motorola)
25465 need_lib_prefix=no
25466 need_version=no
25467 shlibpath_overrides_runpath=no
25468 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25469 ;;
25470 esac
25471 ;;
25472
25473sysv4*MP*)
25474 if test -d /usr/nec ;then
25475 version_type=linux
25476 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25477 soname_spec='$libname${shared_ext}.$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 fi
25480 ;;
25481
Reid Spencera773bd52006-08-04 18:18:08 +000025482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25483 version_type=freebsd-elf
25484 need_lib_prefix=no
25485 need_version=no
25486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25487 soname_spec='${libname}${release}${shared_ext}$major'
25488 shlibpath_var=LD_LIBRARY_PATH
25489 hardcode_into_libs=yes
25490 if test "$with_gnu_ld" = yes; then
25491 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25492 shlibpath_overrides_runpath=no
25493 else
25494 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25495 shlibpath_overrides_runpath=yes
25496 case $host_os in
25497 sco3.2v5*)
25498 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25499 ;;
25500 esac
25501 fi
25502 sys_lib_dlsearch_path_spec='/usr/lib'
25503 ;;
25504
John Criswell47fdd832003-07-14 16:52:07 +000025505uts4*)
25506 version_type=linux
25507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25508 soname_spec='${libname}${release}${shared_ext}$major'
25509 shlibpath_var=LD_LIBRARY_PATH
25510 ;;
25511
25512*)
25513 dynamic_linker=no
25514 ;;
25515esac
Reid Spencera773bd52006-08-04 18:18:08 +000025516{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25517echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025518test "$dynamic_linker" = no && can_build_shared=no
25519
Reid Spencera773bd52006-08-04 18:18:08 +000025520variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25521if test "$GCC" = yes; then
25522 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25523fi
25524
25525{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25526echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025527hardcode_action_GCJ=
25528if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25529 test -n "$runpath_var_GCJ" || \
25530 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25531
25532 # We can hardcode non-existant directories.
25533 if test "$hardcode_direct_GCJ" != no &&
25534 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25535 # have to relink, otherwise we might link with an installed library
25536 # when we should be linking with a yet-to-be-installed one
25537 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25538 test "$hardcode_minus_L_GCJ" != no; then
25539 # Linking always hardcodes the temporary library directory.
25540 hardcode_action_GCJ=relink
25541 else
25542 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25543 hardcode_action_GCJ=immediate
25544 fi
25545else
25546 # We cannot hardcode anything, or else we can only hardcode existing
25547 # directories.
25548 hardcode_action_GCJ=unsupported
25549fi
Reid Spencera773bd52006-08-04 18:18:08 +000025550{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25551echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025552
25553if test "$hardcode_action_GCJ" = relink; then
25554 # Fast installation is not supported
25555 enable_fast_install=no
25556elif test "$shlibpath_overrides_runpath" = yes ||
25557 test "$enable_shared" = no; then
25558 # Fast installation is not necessary
25559 enable_fast_install=needless
25560fi
25561
John Criswell47fdd832003-07-14 16:52:07 +000025562
25563# The else clause should only fire when bootstrapping the
25564# libtool distribution, otherwise you forgot to ship ltmain.sh
25565# with your package, and you will get complaints that there are
25566# no rules to generate ltmain.sh.
25567if test -f "$ltmain"; then
25568 # See if we are running on zsh, and set the options which allow our commands through
25569 # without removal of \ escapes.
25570 if test -n "${ZSH_VERSION+set}" ; then
25571 setopt NO_GLOB_SUBST
25572 fi
25573 # Now quote all the things that may contain metacharacters while being
25574 # careful not to overquote the AC_SUBSTed values. We take copies of the
25575 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025576 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 +000025577 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025578 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25579 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25580 deplibs_check_method reload_flag reload_cmds need_locks \
25581 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25582 lt_cv_sys_global_symbol_to_c_name_address \
25583 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25584 old_postinstall_cmds old_postuninstall_cmds \
25585 compiler_GCJ \
25586 CC_GCJ \
25587 LD_GCJ \
25588 lt_prog_compiler_wl_GCJ \
25589 lt_prog_compiler_pic_GCJ \
25590 lt_prog_compiler_static_GCJ \
25591 lt_prog_compiler_no_builtin_flag_GCJ \
25592 export_dynamic_flag_spec_GCJ \
25593 thread_safe_flag_spec_GCJ \
25594 whole_archive_flag_spec_GCJ \
25595 enable_shared_with_static_runtimes_GCJ \
25596 old_archive_cmds_GCJ \
25597 old_archive_from_new_cmds_GCJ \
25598 predep_objects_GCJ \
25599 postdep_objects_GCJ \
25600 predeps_GCJ \
25601 postdeps_GCJ \
25602 compiler_lib_search_path_GCJ \
25603 archive_cmds_GCJ \
25604 archive_expsym_cmds_GCJ \
25605 postinstall_cmds_GCJ \
25606 postuninstall_cmds_GCJ \
25607 old_archive_from_expsyms_cmds_GCJ \
25608 allow_undefined_flag_GCJ \
25609 no_undefined_flag_GCJ \
25610 export_symbols_cmds_GCJ \
25611 hardcode_libdir_flag_spec_GCJ \
25612 hardcode_libdir_flag_spec_ld_GCJ \
25613 hardcode_libdir_separator_GCJ \
25614 hardcode_automatic_GCJ \
25615 module_cmds_GCJ \
25616 module_expsym_cmds_GCJ \
25617 lt_cv_prog_compiler_c_o_GCJ \
25618 exclude_expsyms_GCJ \
25619 include_expsyms_GCJ; do
25620
25621 case $var in
25622 old_archive_cmds_GCJ | \
25623 old_archive_from_new_cmds_GCJ | \
25624 archive_cmds_GCJ | \
25625 archive_expsym_cmds_GCJ | \
25626 module_cmds_GCJ | \
25627 module_expsym_cmds_GCJ | \
25628 old_archive_from_expsyms_cmds_GCJ | \
25629 export_symbols_cmds_GCJ | \
25630 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25631 postinstall_cmds | postuninstall_cmds | \
25632 old_postinstall_cmds | old_postuninstall_cmds | \
25633 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25634 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025635 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 +000025636 ;;
25637 *)
25638 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25639 ;;
25640 esac
25641 done
25642
25643 case $lt_echo in
25644 *'\$0 --fallback-echo"')
25645 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25646 ;;
25647 esac
25648
25649cfgfile="$ofile"
25650
25651 cat <<__EOF__ >> "$cfgfile"
25652# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25653
25654# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25655
25656# Shell to use when invoking shell scripts.
25657SHELL=$lt_SHELL
25658
25659# Whether or not to build shared libraries.
25660build_libtool_libs=$enable_shared
25661
25662# Whether or not to build static libraries.
25663build_old_libs=$enable_static
25664
25665# Whether or not to add -lc for building shared libraries.
25666build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25667
25668# Whether or not to disallow shared libs when runtime libs are static
25669allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25670
25671# Whether or not to optimize for fast installation.
25672fast_install=$enable_fast_install
25673
25674# The host system.
25675host_alias=$host_alias
25676host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025677host_os=$host_os
25678
25679# The build system.
25680build_alias=$build_alias
25681build=$build
25682build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025683
25684# An echo program that does not interpret backslashes.
25685echo=$lt_echo
25686
25687# The archiver.
25688AR=$lt_AR
25689AR_FLAGS=$lt_AR_FLAGS
25690
25691# A C compiler.
25692LTCC=$lt_LTCC
25693
Reid Spencera773bd52006-08-04 18:18:08 +000025694# LTCC compiler flags.
25695LTCFLAGS=$lt_LTCFLAGS
25696
John Criswell47fdd832003-07-14 16:52:07 +000025697# A language-specific compiler.
25698CC=$lt_compiler_GCJ
25699
25700# Is the compiler the GNU C compiler?
25701with_gcc=$GCC_GCJ
25702
25703# An ERE matcher.
25704EGREP=$lt_EGREP
25705
25706# The linker used to build libraries.
25707LD=$lt_LD_GCJ
25708
25709# Whether we need hard or soft links.
25710LN_S=$lt_LN_S
25711
25712# A BSD-compatible nm program.
25713NM=$lt_NM
25714
25715# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025716STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025717
25718# Used to examine libraries when file_magic_cmd begins "file"
25719MAGIC_CMD=$MAGIC_CMD
25720
25721# Used on cygwin: DLL creation program.
25722DLLTOOL="$DLLTOOL"
25723
25724# Used on cygwin: object dumper.
25725OBJDUMP="$OBJDUMP"
25726
25727# Used on cygwin: assembler.
25728AS="$AS"
25729
25730# The name of the directory that contains temporary libtool files.
25731objdir=$objdir
25732
25733# How to create reloadable object files.
25734reload_flag=$lt_reload_flag
25735reload_cmds=$lt_reload_cmds
25736
25737# How to pass a linker flag through the compiler.
25738wl=$lt_lt_prog_compiler_wl_GCJ
25739
25740# Object file suffix (normally "o").
25741objext="$ac_objext"
25742
25743# Old archive suffix (normally "a").
25744libext="$libext"
25745
25746# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025747shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025748
25749# Executable file suffix (normally "").
25750exeext="$exeext"
25751
25752# Additional compiler flags for building library objects.
25753pic_flag=$lt_lt_prog_compiler_pic_GCJ
25754pic_mode=$pic_mode
25755
25756# What is the maximum length of a command?
25757max_cmd_len=$lt_cv_sys_max_cmd_len
25758
25759# Does compiler simultaneously support -c and -o options?
25760compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25761
Reid Spencera773bd52006-08-04 18:18:08 +000025762# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025763need_locks=$lt_need_locks
25764
25765# Do we need the lib prefix for modules?
25766need_lib_prefix=$need_lib_prefix
25767
25768# Do we need a version for libraries?
25769need_version=$need_version
25770
25771# Whether dlopen is supported.
25772dlopen_support=$enable_dlopen
25773
25774# Whether dlopen of programs is supported.
25775dlopen_self=$enable_dlopen_self
25776
25777# Whether dlopen of statically linked programs is supported.
25778dlopen_self_static=$enable_dlopen_self_static
25779
25780# Compiler flag to prevent dynamic linking.
25781link_static_flag=$lt_lt_prog_compiler_static_GCJ
25782
25783# Compiler flag to turn off builtin functions.
25784no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25785
25786# Compiler flag to allow reflexive dlopens.
25787export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25788
25789# Compiler flag to generate shared objects directly from archives.
25790whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25791
25792# Compiler flag to generate thread-safe objects.
25793thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25794
25795# Library versioning type.
25796version_type=$version_type
25797
25798# Format of library name prefix.
25799libname_spec=$lt_libname_spec
25800
25801# List of archive names. First name is the real one, the rest are links.
25802# The last name is the one that the linker finds with -lNAME.
25803library_names_spec=$lt_library_names_spec
25804
25805# The coded name of the library, if different from the real name.
25806soname_spec=$lt_soname_spec
25807
25808# Commands used to build and install an old-style archive.
25809RANLIB=$lt_RANLIB
25810old_archive_cmds=$lt_old_archive_cmds_GCJ
25811old_postinstall_cmds=$lt_old_postinstall_cmds
25812old_postuninstall_cmds=$lt_old_postuninstall_cmds
25813
25814# Create an old-style archive from a shared archive.
25815old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25816
25817# Create a temporary old-style archive to link instead of a shared archive.
25818old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25819
25820# Commands used to build and install a shared archive.
25821archive_cmds=$lt_archive_cmds_GCJ
25822archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25823postinstall_cmds=$lt_postinstall_cmds
25824postuninstall_cmds=$lt_postuninstall_cmds
25825
25826# Commands used to build a loadable module (assumed same as above if empty)
25827module_cmds=$lt_module_cmds_GCJ
25828module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25829
25830# Commands to strip libraries.
25831old_striplib=$lt_old_striplib
25832striplib=$lt_striplib
25833
25834# Dependencies to place before the objects being linked to create a
25835# shared library.
25836predep_objects=$lt_predep_objects_GCJ
25837
25838# Dependencies to place after the objects being linked to create a
25839# shared library.
25840postdep_objects=$lt_postdep_objects_GCJ
25841
25842# Dependencies to place before the objects being linked to create a
25843# shared library.
25844predeps=$lt_predeps_GCJ
25845
25846# Dependencies to place after the objects being linked to create a
25847# shared library.
25848postdeps=$lt_postdeps_GCJ
25849
25850# The library search path used internally by the compiler when linking
25851# a shared library.
25852compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25853
25854# Method to check whether dependent libraries are shared objects.
25855deplibs_check_method=$lt_deplibs_check_method
25856
25857# Command to use when deplibs_check_method == file_magic.
25858file_magic_cmd=$lt_file_magic_cmd
25859
25860# Flag that allows shared libraries with undefined symbols to be built.
25861allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25862
25863# Flag that forces no undefined symbols.
25864no_undefined_flag=$lt_no_undefined_flag_GCJ
25865
25866# Commands used to finish a libtool library installation in a directory.
25867finish_cmds=$lt_finish_cmds
25868
25869# Same as above, but a single script fragment to be evaled but not shown.
25870finish_eval=$lt_finish_eval
25871
25872# Take the output of nm and produce a listing of raw symbols and C names.
25873global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25874
25875# Transform the output of nm in a proper C declaration
25876global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25877
25878# Transform the output of nm in a C name address pair
25879global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25880
25881# This is the shared library runtime path variable.
25882runpath_var=$runpath_var
25883
25884# This is the shared library path variable.
25885shlibpath_var=$shlibpath_var
25886
25887# Is shlibpath searched before the hard-coded library search path?
25888shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25889
25890# How to hardcode a shared library path into an executable.
25891hardcode_action=$hardcode_action_GCJ
25892
25893# Whether we should hardcode library paths into libraries.
25894hardcode_into_libs=$hardcode_into_libs
25895
25896# Flag to hardcode \$libdir into a binary during linking.
25897# This must work even if \$libdir does not exist.
25898hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25899
25900# If ld is used when linking, flag to hardcode \$libdir into
25901# a binary during linking. This must work even if \$libdir does
25902# not exist.
25903hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25904
25905# Whether we need a single -rpath flag with a separated argument.
25906hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25907
25908# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25909# resulting binary.
25910hardcode_direct=$hardcode_direct_GCJ
25911
25912# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25913# resulting binary.
25914hardcode_minus_L=$hardcode_minus_L_GCJ
25915
25916# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25917# the resulting binary.
25918hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25919
25920# Set to yes if building a shared library automatically hardcodes DIR into the library
25921# and all subsequent libraries and executables linked against it.
25922hardcode_automatic=$hardcode_automatic_GCJ
25923
25924# Variables whose values should be saved in libtool wrapper scripts and
25925# restored at relink time.
25926variables_saved_for_relink="$variables_saved_for_relink"
25927
25928# Whether libtool must link a program against all its dependency libraries.
25929link_all_deplibs=$link_all_deplibs_GCJ
25930
25931# Compile-time system search path for libraries
25932sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25933
25934# Run-time system search path for libraries
25935sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25936
25937# Fix the shell variable \$srcfile for the compiler.
25938fix_srcfile_path="$fix_srcfile_path_GCJ"
25939
25940# Set to yes if exported symbols are required.
25941always_export_symbols=$always_export_symbols_GCJ
25942
25943# The commands to list exported symbols.
25944export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25945
25946# The commands to extract the exported symbol list from a shared archive.
25947extract_expsyms_cmds=$lt_extract_expsyms_cmds
25948
25949# Symbols that should not be listed in the preloaded symbols.
25950exclude_expsyms=$lt_exclude_expsyms_GCJ
25951
25952# Symbols that must always be exported.
25953include_expsyms=$lt_include_expsyms_GCJ
25954
25955# ### END LIBTOOL TAG CONFIG: $tagname
25956
25957__EOF__
25958
25959
25960else
25961 # If there is no Makefile yet, we rely on a make rule to execute
25962 # `config.status --recheck' to rerun these tests and create the
25963 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025964 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25965 if test -f "$ltmain_in"; then
25966 test -f Makefile && make "$ltmain"
25967 fi
John Criswell47fdd832003-07-14 16:52:07 +000025968fi
25969
25970
25971ac_ext=c
25972ac_cpp='$CPP $CPPFLAGS'
25973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25975ac_compiler_gnu=$ac_cv_c_compiler_gnu
25976
25977CC="$lt_save_CC"
25978
25979 else
25980 tagname=""
25981 fi
25982 ;;
25983
25984 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025985 ac_ext=c
25986ac_cpp='$CPP $CPPFLAGS'
25987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25989ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000025990
25991
25992# Source file extension for RC test sources.
25993ac_ext=rc
25994
25995# Object file extension for compiled RC test sources.
25996objext=o
25997objext_RC=$objext
25998
25999# Code to be used in simple compile tests
26000lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26001
26002# Code to be used in simple link tests
26003lt_simple_link_test_code="$lt_simple_compile_test_code"
26004
26005# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26006
26007# If no C compiler was specified, use CC.
26008LTCC=${LTCC-"$CC"}
26009
Reid Spencera773bd52006-08-04 18:18:08 +000026010# If no C compiler flags were specified, use CFLAGS.
26011LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26012
John Criswell47fdd832003-07-14 16:52:07 +000026013# Allow CC to be a program name with arguments.
26014compiler=$CC
26015
26016
Reid Spencera773bd52006-08-04 18:18:08 +000026017# save warnings/boilerplate of simple test code
26018ac_outfile=conftest.$ac_objext
26019printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26020eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26021_lt_compiler_boilerplate=`cat conftest.err`
26022$rm conftest*
26023
26024ac_outfile=conftest.$ac_objext
26025printf "$lt_simple_link_test_code" >conftest.$ac_ext
26026eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26027_lt_linker_boilerplate=`cat conftest.err`
26028$rm conftest*
26029
26030
John Criswell47fdd832003-07-14 16:52:07 +000026031# Allow CC to be a program name with arguments.
26032lt_save_CC="$CC"
26033CC=${RC-"windres"}
26034compiler=$CC
26035compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026036for cc_temp in $compiler""; do
26037 case $cc_temp in
26038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26040 \-*) ;;
26041 *) break;;
26042 esac
26043done
26044cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26045
John Criswell47fdd832003-07-14 16:52:07 +000026046lt_cv_prog_compiler_c_o_RC=yes
26047
26048# The else clause should only fire when bootstrapping the
26049# libtool distribution, otherwise you forgot to ship ltmain.sh
26050# with your package, and you will get complaints that there are
26051# no rules to generate ltmain.sh.
26052if test -f "$ltmain"; then
26053 # See if we are running on zsh, and set the options which allow our commands through
26054 # without removal of \ escapes.
26055 if test -n "${ZSH_VERSION+set}" ; then
26056 setopt NO_GLOB_SUBST
26057 fi
26058 # Now quote all the things that may contain metacharacters while being
26059 # careful not to overquote the AC_SUBSTed values. We take copies of the
26060 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026061 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 +000026062 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26065 deplibs_check_method reload_flag reload_cmds need_locks \
26066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26067 lt_cv_sys_global_symbol_to_c_name_address \
26068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26069 old_postinstall_cmds old_postuninstall_cmds \
26070 compiler_RC \
26071 CC_RC \
26072 LD_RC \
26073 lt_prog_compiler_wl_RC \
26074 lt_prog_compiler_pic_RC \
26075 lt_prog_compiler_static_RC \
26076 lt_prog_compiler_no_builtin_flag_RC \
26077 export_dynamic_flag_spec_RC \
26078 thread_safe_flag_spec_RC \
26079 whole_archive_flag_spec_RC \
26080 enable_shared_with_static_runtimes_RC \
26081 old_archive_cmds_RC \
26082 old_archive_from_new_cmds_RC \
26083 predep_objects_RC \
26084 postdep_objects_RC \
26085 predeps_RC \
26086 postdeps_RC \
26087 compiler_lib_search_path_RC \
26088 archive_cmds_RC \
26089 archive_expsym_cmds_RC \
26090 postinstall_cmds_RC \
26091 postuninstall_cmds_RC \
26092 old_archive_from_expsyms_cmds_RC \
26093 allow_undefined_flag_RC \
26094 no_undefined_flag_RC \
26095 export_symbols_cmds_RC \
26096 hardcode_libdir_flag_spec_RC \
26097 hardcode_libdir_flag_spec_ld_RC \
26098 hardcode_libdir_separator_RC \
26099 hardcode_automatic_RC \
26100 module_cmds_RC \
26101 module_expsym_cmds_RC \
26102 lt_cv_prog_compiler_c_o_RC \
26103 exclude_expsyms_RC \
26104 include_expsyms_RC; do
26105
26106 case $var in
26107 old_archive_cmds_RC | \
26108 old_archive_from_new_cmds_RC | \
26109 archive_cmds_RC | \
26110 archive_expsym_cmds_RC | \
26111 module_cmds_RC | \
26112 module_expsym_cmds_RC | \
26113 old_archive_from_expsyms_cmds_RC | \
26114 export_symbols_cmds_RC | \
26115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26116 postinstall_cmds | postuninstall_cmds | \
26117 old_postinstall_cmds | old_postuninstall_cmds | \
26118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26119 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026120 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 +000026121 ;;
26122 *)
26123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26124 ;;
26125 esac
26126 done
26127
26128 case $lt_echo in
26129 *'\$0 --fallback-echo"')
26130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26131 ;;
26132 esac
26133
26134cfgfile="$ofile"
26135
26136 cat <<__EOF__ >> "$cfgfile"
26137# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26138
26139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26140
26141# Shell to use when invoking shell scripts.
26142SHELL=$lt_SHELL
26143
26144# Whether or not to build shared libraries.
26145build_libtool_libs=$enable_shared
26146
26147# Whether or not to build static libraries.
26148build_old_libs=$enable_static
26149
26150# Whether or not to add -lc for building shared libraries.
26151build_libtool_need_lc=$archive_cmds_need_lc_RC
26152
26153# Whether or not to disallow shared libs when runtime libs are static
26154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26155
26156# Whether or not to optimize for fast installation.
26157fast_install=$enable_fast_install
26158
26159# The host system.
26160host_alias=$host_alias
26161host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026162host_os=$host_os
26163
26164# The build system.
26165build_alias=$build_alias
26166build=$build
26167build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026168
26169# An echo program that does not interpret backslashes.
26170echo=$lt_echo
26171
26172# The archiver.
26173AR=$lt_AR
26174AR_FLAGS=$lt_AR_FLAGS
26175
26176# A C compiler.
26177LTCC=$lt_LTCC
26178
Reid Spencera773bd52006-08-04 18:18:08 +000026179# LTCC compiler flags.
26180LTCFLAGS=$lt_LTCFLAGS
26181
John Criswell47fdd832003-07-14 16:52:07 +000026182# A language-specific compiler.
26183CC=$lt_compiler_RC
26184
26185# Is the compiler the GNU C compiler?
26186with_gcc=$GCC_RC
26187
26188# An ERE matcher.
26189EGREP=$lt_EGREP
26190
26191# The linker used to build libraries.
26192LD=$lt_LD_RC
26193
26194# Whether we need hard or soft links.
26195LN_S=$lt_LN_S
26196
26197# A BSD-compatible nm program.
26198NM=$lt_NM
26199
26200# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026201STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026202
26203# Used to examine libraries when file_magic_cmd begins "file"
26204MAGIC_CMD=$MAGIC_CMD
26205
26206# Used on cygwin: DLL creation program.
26207DLLTOOL="$DLLTOOL"
26208
26209# Used on cygwin: object dumper.
26210OBJDUMP="$OBJDUMP"
26211
26212# Used on cygwin: assembler.
26213AS="$AS"
26214
26215# The name of the directory that contains temporary libtool files.
26216objdir=$objdir
26217
26218# How to create reloadable object files.
26219reload_flag=$lt_reload_flag
26220reload_cmds=$lt_reload_cmds
26221
26222# How to pass a linker flag through the compiler.
26223wl=$lt_lt_prog_compiler_wl_RC
26224
26225# Object file suffix (normally "o").
26226objext="$ac_objext"
26227
26228# Old archive suffix (normally "a").
26229libext="$libext"
26230
26231# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026232shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026233
26234# Executable file suffix (normally "").
26235exeext="$exeext"
26236
26237# Additional compiler flags for building library objects.
26238pic_flag=$lt_lt_prog_compiler_pic_RC
26239pic_mode=$pic_mode
26240
26241# What is the maximum length of a command?
26242max_cmd_len=$lt_cv_sys_max_cmd_len
26243
26244# Does compiler simultaneously support -c and -o options?
26245compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26246
Reid Spencera773bd52006-08-04 18:18:08 +000026247# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026248need_locks=$lt_need_locks
26249
26250# Do we need the lib prefix for modules?
26251need_lib_prefix=$need_lib_prefix
26252
26253# Do we need a version for libraries?
26254need_version=$need_version
26255
26256# Whether dlopen is supported.
26257dlopen_support=$enable_dlopen
26258
26259# Whether dlopen of programs is supported.
26260dlopen_self=$enable_dlopen_self
26261
26262# Whether dlopen of statically linked programs is supported.
26263dlopen_self_static=$enable_dlopen_self_static
26264
26265# Compiler flag to prevent dynamic linking.
26266link_static_flag=$lt_lt_prog_compiler_static_RC
26267
26268# Compiler flag to turn off builtin functions.
26269no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26270
26271# Compiler flag to allow reflexive dlopens.
26272export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26273
26274# Compiler flag to generate shared objects directly from archives.
26275whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26276
26277# Compiler flag to generate thread-safe objects.
26278thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26279
26280# Library versioning type.
26281version_type=$version_type
26282
26283# Format of library name prefix.
26284libname_spec=$lt_libname_spec
26285
26286# List of archive names. First name is the real one, the rest are links.
26287# The last name is the one that the linker finds with -lNAME.
26288library_names_spec=$lt_library_names_spec
26289
26290# The coded name of the library, if different from the real name.
26291soname_spec=$lt_soname_spec
26292
26293# Commands used to build and install an old-style archive.
26294RANLIB=$lt_RANLIB
26295old_archive_cmds=$lt_old_archive_cmds_RC
26296old_postinstall_cmds=$lt_old_postinstall_cmds
26297old_postuninstall_cmds=$lt_old_postuninstall_cmds
26298
26299# Create an old-style archive from a shared archive.
26300old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26301
26302# Create a temporary old-style archive to link instead of a shared archive.
26303old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26304
26305# Commands used to build and install a shared archive.
26306archive_cmds=$lt_archive_cmds_RC
26307archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26308postinstall_cmds=$lt_postinstall_cmds
26309postuninstall_cmds=$lt_postuninstall_cmds
26310
26311# Commands used to build a loadable module (assumed same as above if empty)
26312module_cmds=$lt_module_cmds_RC
26313module_expsym_cmds=$lt_module_expsym_cmds_RC
26314
26315# Commands to strip libraries.
26316old_striplib=$lt_old_striplib
26317striplib=$lt_striplib
26318
26319# Dependencies to place before the objects being linked to create a
26320# shared library.
26321predep_objects=$lt_predep_objects_RC
26322
26323# Dependencies to place after the objects being linked to create a
26324# shared library.
26325postdep_objects=$lt_postdep_objects_RC
26326
26327# Dependencies to place before the objects being linked to create a
26328# shared library.
26329predeps=$lt_predeps_RC
26330
26331# Dependencies to place after the objects being linked to create a
26332# shared library.
26333postdeps=$lt_postdeps_RC
26334
26335# The library search path used internally by the compiler when linking
26336# a shared library.
26337compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26338
26339# Method to check whether dependent libraries are shared objects.
26340deplibs_check_method=$lt_deplibs_check_method
26341
26342# Command to use when deplibs_check_method == file_magic.
26343file_magic_cmd=$lt_file_magic_cmd
26344
26345# Flag that allows shared libraries with undefined symbols to be built.
26346allow_undefined_flag=$lt_allow_undefined_flag_RC
26347
26348# Flag that forces no undefined symbols.
26349no_undefined_flag=$lt_no_undefined_flag_RC
26350
26351# Commands used to finish a libtool library installation in a directory.
26352finish_cmds=$lt_finish_cmds
26353
26354# Same as above, but a single script fragment to be evaled but not shown.
26355finish_eval=$lt_finish_eval
26356
26357# Take the output of nm and produce a listing of raw symbols and C names.
26358global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26359
26360# Transform the output of nm in a proper C declaration
26361global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26362
26363# Transform the output of nm in a C name address pair
26364global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26365
26366# This is the shared library runtime path variable.
26367runpath_var=$runpath_var
26368
26369# This is the shared library path variable.
26370shlibpath_var=$shlibpath_var
26371
26372# Is shlibpath searched before the hard-coded library search path?
26373shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26374
26375# How to hardcode a shared library path into an executable.
26376hardcode_action=$hardcode_action_RC
26377
26378# Whether we should hardcode library paths into libraries.
26379hardcode_into_libs=$hardcode_into_libs
26380
26381# Flag to hardcode \$libdir into a binary during linking.
26382# This must work even if \$libdir does not exist.
26383hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26384
26385# If ld is used when linking, flag to hardcode \$libdir into
26386# a binary during linking. This must work even if \$libdir does
26387# not exist.
26388hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26389
26390# Whether we need a single -rpath flag with a separated argument.
26391hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26392
26393# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26394# resulting binary.
26395hardcode_direct=$hardcode_direct_RC
26396
26397# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26398# resulting binary.
26399hardcode_minus_L=$hardcode_minus_L_RC
26400
26401# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26402# the resulting binary.
26403hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26404
26405# Set to yes if building a shared library automatically hardcodes DIR into the library
26406# and all subsequent libraries and executables linked against it.
26407hardcode_automatic=$hardcode_automatic_RC
26408
26409# Variables whose values should be saved in libtool wrapper scripts and
26410# restored at relink time.
26411variables_saved_for_relink="$variables_saved_for_relink"
26412
26413# Whether libtool must link a program against all its dependency libraries.
26414link_all_deplibs=$link_all_deplibs_RC
26415
26416# Compile-time system search path for libraries
26417sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26418
26419# Run-time system search path for libraries
26420sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26421
26422# Fix the shell variable \$srcfile for the compiler.
26423fix_srcfile_path="$fix_srcfile_path_RC"
26424
26425# Set to yes if exported symbols are required.
26426always_export_symbols=$always_export_symbols_RC
26427
26428# The commands to list exported symbols.
26429export_symbols_cmds=$lt_export_symbols_cmds_RC
26430
26431# The commands to extract the exported symbol list from a shared archive.
26432extract_expsyms_cmds=$lt_extract_expsyms_cmds
26433
26434# Symbols that should not be listed in the preloaded symbols.
26435exclude_expsyms=$lt_exclude_expsyms_RC
26436
26437# Symbols that must always be exported.
26438include_expsyms=$lt_include_expsyms_RC
26439
26440# ### END LIBTOOL TAG CONFIG: $tagname
26441
26442__EOF__
26443
26444
26445else
26446 # If there is no Makefile yet, we rely on a make rule to execute
26447 # `config.status --recheck' to rerun these tests and create the
26448 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026449 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26450 if test -f "$ltmain_in"; then
26451 test -f Makefile && make "$ltmain"
26452 fi
John Criswell47fdd832003-07-14 16:52:07 +000026453fi
26454
26455
26456ac_ext=c
26457ac_cpp='$CPP $CPPFLAGS'
26458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26460ac_compiler_gnu=$ac_cv_c_compiler_gnu
26461
26462CC="$lt_save_CC"
26463
26464 ;;
26465
26466 *)
26467 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26468echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26469 { (exit 1); exit 1; }; }
26470 ;;
26471 esac
26472
26473 # Append the new tag name to the list of available tags.
26474 if test -n "$tagname" ; then
26475 available_tags="$available_tags $tagname"
26476 fi
26477 fi
26478 done
26479 IFS="$lt_save_ifs"
26480
26481 # Now substitute the updated list of available tags.
26482 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26483 mv "${ofile}T" "$ofile"
26484 chmod +x "$ofile"
26485 else
26486 rm -f "${ofile}T"
26487 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26488echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26489 { (exit 1); exit 1; }; }
26490 fi
26491fi
John Criswell7a73b802003-06-30 21:59:07 +000026492
26493
26494
26495# This can be used to rebuild libtool when needed
26496LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26497
26498# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026499LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026500
26501# Prevent multiple expansion
26502
26503
26504
John Criswell47fdd832003-07-14 16:52:07 +000026505
26506
26507
26508
26509
26510
26511
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026522
Reid Spencer582a23c2004-12-29 07:07:57 +000026523if test "$lt_cv_dlopen_self" = "yes" ; then
26524
26525cat >>confdefs.h <<\_ACEOF
26526#define CAN_DLOPEN_SELF 1
26527_ACEOF
26528
26529fi
26530
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026531etags_version=`$ETAGS --version 2>&1`
26532case "$etags_version" in
26533 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26534 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26535 *) ETAGSFLAGS="" ;;
26536esac
26537ETAGSFLAGS=$ETAGSFLAGS
26538
26539
Reid Spencer7931a782004-12-27 06:15:02 +000026540if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026541 LLVMGCC="llvm-gcc${EXEEXT}"
26542 LLVMGXX="llvm-g++${EXEEXT}"
26543 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26544set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026545{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026547if test "${ac_cv_path_LLVMGCC+set}" = set; then
26548 echo $ECHO_N "(cached) $ECHO_C" >&6
26549else
26550 case $LLVMGCC in
26551 [\\/]* | ?:[\\/]*)
26552 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26553 ;;
26554 *)
26555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26556for as_dir in $PATH
26557do
26558 IFS=$as_save_IFS
26559 test -z "$as_dir" && as_dir=.
26560 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026561 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 +000026562 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26564 break 2
26565 fi
26566done
26567done
Reid Spencera773bd52006-08-04 18:18:08 +000026568IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026569
Reid Spencer59473af2004-12-25 07:31:29 +000026570 ;;
26571esac
26572fi
26573LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026574if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026575 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26576echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026577else
Reid Spencera773bd52006-08-04 18:18:08 +000026578 { echo "$as_me:$LINENO: result: no" >&5
26579echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026580fi
26581
Reid Spencera773bd52006-08-04 18:18:08 +000026582
Reid Spencerc84492c2005-06-02 22:34:49 +000026583 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26584set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026585{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026587if test "${ac_cv_path_LLVMGXX+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589else
26590 case $LLVMGXX in
26591 [\\/]* | ?:[\\/]*)
26592 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26593 ;;
26594 *)
26595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26596for as_dir in $PATH
26597do
26598 IFS=$as_save_IFS
26599 test -z "$as_dir" && as_dir=.
26600 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026601 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 +000026602 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26604 break 2
26605 fi
26606done
26607done
Reid Spencera773bd52006-08-04 18:18:08 +000026608IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026609
Reid Spencer59473af2004-12-25 07:31:29 +000026610 ;;
26611esac
26612fi
26613LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026614if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026615 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26616echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026617else
Reid Spencera773bd52006-08-04 18:18:08 +000026618 { echo "$as_me:$LINENO: result: no" >&5
26619echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026620fi
26621
Reid Spencera773bd52006-08-04 18:18:08 +000026622
Reid Spencer59473af2004-12-25 07:31:29 +000026623else
Reid Spencerc84492c2005-06-02 22:34:49 +000026624 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26625 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026626 LLVMGCC=$LLVMGCC
26627
26628 LLVMGXX=$LLVMGXX
26629
26630fi
26631
Reid Spencera773bd52006-08-04 18:18:08 +000026632{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26633echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026634
Reid Spencer86901802004-12-08 23:07:27 +000026635ICC=no
26636IXX=no
26637case $CC in
26638 icc*|icpc*)
26639 ICC=yes
26640 IXX=yes
26641 ;;
26642 *)
26643 ;;
26644esac
26645
Duraid Madina937c60a2006-02-15 07:57:42 +000026646if test "$GCC" != "yes" && test "$ICC" != "yes"
26647then
26648 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26649echo "$as_me: error: gcc|icc required but not found" >&2;}
26650 { (exit 1); exit 1; }; }
26651fi
26652
26653if test "$GXX" != "yes" && test "$IXX" != "yes"
26654then
26655 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26656echo "$as_me: error: g++|icc required but not found" >&2;}
26657 { (exit 1); exit 1; }; }
26658fi
26659
Reid Spencer86901802004-12-08 23:07:27 +000026660if test "$GCC" = "yes"
26661then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026662 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026663 if test "$gccmajor" -lt "3"
26664 then
26665 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026666echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26667 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026668 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026669fi
26670
26671if test -z "$llvm_cv_gnu_make_command"
26672then
26673 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26674echo "$as_me: error: GNU Make required but not found" >&2;}
26675 { (exit 1); exit 1; }; }
26676fi
26677
Reid Spencera773bd52006-08-04 18:18:08 +000026678{ echo "$as_me:$LINENO: result: ok" >&5
26679echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026680
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026681
John Criswell7a73b802003-06-30 21:59:07 +000026682
Reid Spencera773bd52006-08-04 18:18:08 +000026683{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26684echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026685if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26686 echo $ECHO_N "(cached) $ECHO_C" >&6
26687else
26688 ac_check_lib_save_LIBS=$LIBS
26689LIBS="-lelf $LIBS"
26690cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026691/* confdefs.h. */
26692_ACEOF
26693cat confdefs.h >>conftest.$ac_ext
26694cat >>conftest.$ac_ext <<_ACEOF
26695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026696
Reid Spencera773bd52006-08-04 18:18:08 +000026697/* Override any GCC internal prototype to avoid an error.
26698 Use char because int might match the return type of a GCC
26699 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026700#ifdef __cplusplus
26701extern "C"
26702#endif
John Criswell7a73b802003-06-30 21:59:07 +000026703char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026704int
26705main ()
26706{
Reid Spencera773bd52006-08-04 18:18:08 +000026707return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026708 ;
26709 return 0;
26710}
26711_ACEOF
26712rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026713if { (ac_try="$ac_link"
26714case "(($ac_try" in
26715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716 *) ac_try_echo=$ac_try;;
26717esac
26718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026721 grep -v '^ *+' conftest.er1 >conftest.err
26722 rm -f conftest.er1
26723 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727 { (case "(($ac_try" in
26728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729 *) ac_try_echo=$ac_try;;
26730esac
26731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026733 ac_status=$?
26734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735 (exit $ac_status); }; } &&
26736 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026737 { (case "(($ac_try" in
26738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739 *) ac_try_echo=$ac_try;;
26740esac
26741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026743 ac_status=$?
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; }; then
26746 ac_cv_lib_elf_elf_begin=yes
26747else
26748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026749sed 's/^/| /' conftest.$ac_ext >&5
26750
Reid Spencera773bd52006-08-04 18:18:08 +000026751 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026752fi
Reid Spencera773bd52006-08-04 18:18:08 +000026753
26754rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026755 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026756LIBS=$ac_check_lib_save_LIBS
26757fi
Reid Spencera773bd52006-08-04 18:18:08 +000026758{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26759echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026760if test $ac_cv_lib_elf_elf_begin = yes; then
26761 cat >>confdefs.h <<_ACEOF
26762#define HAVE_LIBELF 1
26763_ACEOF
26764
26765 LIBS="-lelf $LIBS"
26766
26767fi
26768
26769
Reid Spencera773bd52006-08-04 18:18:08 +000026770{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26771echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026772if test "${ac_cv_lib_m_sin+set}" = set; then
26773 echo $ECHO_N "(cached) $ECHO_C" >&6
26774else
26775 ac_check_lib_save_LIBS=$LIBS
26776LIBS="-lm $LIBS"
26777cat >conftest.$ac_ext <<_ACEOF
26778/* confdefs.h. */
26779_ACEOF
26780cat confdefs.h >>conftest.$ac_ext
26781cat >>conftest.$ac_ext <<_ACEOF
26782/* end confdefs.h. */
26783
Reid Spencera773bd52006-08-04 18:18:08 +000026784/* Override any GCC internal prototype to avoid an error.
26785 Use char because int might match the return type of a GCC
26786 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026787#ifdef __cplusplus
26788extern "C"
26789#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026790char sin ();
26791int
26792main ()
26793{
Reid Spencera773bd52006-08-04 18:18:08 +000026794return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026795 ;
26796 return 0;
26797}
26798_ACEOF
26799rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026800if { (ac_try="$ac_link"
26801case "(($ac_try" in
26802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803 *) ac_try_echo=$ac_try;;
26804esac
26805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026807 ac_status=$?
26808 grep -v '^ *+' conftest.er1 >conftest.err
26809 rm -f conftest.er1
26810 cat conftest.err >&5
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26814 { (case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26817esac
26818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026820 ac_status=$?
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); }; } &&
26823 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026824 { (case "(($ac_try" in
26825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26826 *) ac_try_echo=$ac_try;;
26827esac
26828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26829 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026830 ac_status=$?
26831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832 (exit $ac_status); }; }; then
26833 ac_cv_lib_m_sin=yes
26834else
26835 echo "$as_me: failed program was:" >&5
26836sed 's/^/| /' conftest.$ac_ext >&5
26837
Reid Spencera773bd52006-08-04 18:18:08 +000026838 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026839fi
Reid Spencera773bd52006-08-04 18:18:08 +000026840
26841rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026842 conftest$ac_exeext conftest.$ac_ext
26843LIBS=$ac_check_lib_save_LIBS
26844fi
Reid Spencera773bd52006-08-04 18:18:08 +000026845{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26846echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026847if test $ac_cv_lib_m_sin = yes; then
26848 cat >>confdefs.h <<_ACEOF
26849#define HAVE_LIBM 1
26850_ACEOF
26851
26852 LIBS="-lm $LIBS"
26853
26854fi
26855
Reid Spencer484fc8e2006-06-01 16:55:59 +000026856if test "$llvm_cv_os_type" == "MingW" ; then
26857
Reid Spencera773bd52006-08-04 18:18:08 +000026858{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26859echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026860if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026861 echo $ECHO_N "(cached) $ECHO_C" >&6
26862else
26863 ac_check_lib_save_LIBS=$LIBS
26864LIBS="-limagehlp $LIBS"
26865cat >conftest.$ac_ext <<_ACEOF
26866/* confdefs.h. */
26867_ACEOF
26868cat confdefs.h >>conftest.$ac_ext
26869cat >>conftest.$ac_ext <<_ACEOF
26870/* end confdefs.h. */
26871
Reid Spencer48fdf912006-06-01 19:03:21 +000026872
Reid Spencer484fc8e2006-06-01 16:55:59 +000026873int
26874main ()
26875{
Reid Spencera773bd52006-08-04 18:18:08 +000026876return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026877 ;
26878 return 0;
26879}
26880_ACEOF
26881rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026882if { (ac_try="$ac_link"
26883case "(($ac_try" in
26884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26885 *) ac_try_echo=$ac_try;;
26886esac
26887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26888 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026889 ac_status=$?
26890 grep -v '^ *+' conftest.er1 >conftest.err
26891 rm -f conftest.er1
26892 cat conftest.err >&5
26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26894 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26896 { (case "(($ac_try" in
26897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898 *) ac_try_echo=$ac_try;;
26899esac
26900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026902 ac_status=$?
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); }; } &&
26905 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026906 { (case "(($ac_try" in
26907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26908 *) ac_try_echo=$ac_try;;
26909esac
26910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26911 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026912 ac_status=$?
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026915 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026916else
26917 echo "$as_me: failed program was:" >&5
26918sed 's/^/| /' conftest.$ac_ext >&5
26919
Reid Spencera773bd52006-08-04 18:18:08 +000026920 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026921fi
Reid Spencera773bd52006-08-04 18:18:08 +000026922
26923rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026924 conftest$ac_exeext conftest.$ac_ext
26925LIBS=$ac_check_lib_save_LIBS
26926fi
Reid Spencera773bd52006-08-04 18:18:08 +000026927{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26928echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026929if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026930 cat >>confdefs.h <<_ACEOF
26931#define HAVE_LIBIMAGEHLP 1
26932_ACEOF
26933
26934 LIBS="-limagehlp $LIBS"
26935
26936fi
26937
26938
Reid Spencera773bd52006-08-04 18:18:08 +000026939{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26940echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026941if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026942 echo $ECHO_N "(cached) $ECHO_C" >&6
26943else
26944 ac_check_lib_save_LIBS=$LIBS
26945LIBS="-lpsapi $LIBS"
26946cat >conftest.$ac_ext <<_ACEOF
26947/* confdefs.h. */
26948_ACEOF
26949cat confdefs.h >>conftest.$ac_ext
26950cat >>conftest.$ac_ext <<_ACEOF
26951/* end confdefs.h. */
26952
Reid Spencer48fdf912006-06-01 19:03:21 +000026953
Reid Spencer484fc8e2006-06-01 16:55:59 +000026954int
26955main ()
26956{
Reid Spencera773bd52006-08-04 18:18:08 +000026957return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026958 ;
26959 return 0;
26960}
26961_ACEOF
26962rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026963if { (ac_try="$ac_link"
26964case "(($ac_try" in
26965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966 *) ac_try_echo=$ac_try;;
26967esac
26968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026970 ac_status=$?
26971 grep -v '^ *+' conftest.er1 >conftest.err
26972 rm -f conftest.er1
26973 cat conftest.err >&5
26974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26977 { (case "(($ac_try" in
26978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26979 *) ac_try_echo=$ac_try;;
26980esac
26981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26982 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026983 ac_status=$?
26984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26985 (exit $ac_status); }; } &&
26986 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026987 { (case "(($ac_try" in
26988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26989 *) ac_try_echo=$ac_try;;
26990esac
26991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26992 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026993 ac_status=$?
26994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026996 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026997else
26998 echo "$as_me: failed program was:" >&5
26999sed 's/^/| /' conftest.$ac_ext >&5
27000
Reid Spencera773bd52006-08-04 18:18:08 +000027001 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027002fi
Reid Spencera773bd52006-08-04 18:18:08 +000027003
27004rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027005 conftest$ac_exeext conftest.$ac_ext
27006LIBS=$ac_check_lib_save_LIBS
27007fi
Reid Spencera773bd52006-08-04 18:18:08 +000027008{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27009echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027010if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027011 cat >>confdefs.h <<_ACEOF
27012#define HAVE_LIBPSAPI 1
27013_ACEOF
27014
27015 LIBS="-lpsapi $LIBS"
27016
27017fi
27018
27019fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027020
Reid Spencera773bd52006-08-04 18:18:08 +000027021{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27022echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027023if test "${ac_cv_search_lt_dlopen+set}" = set; then
27024 echo $ECHO_N "(cached) $ECHO_C" >&6
27025else
27026 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027027cat >conftest.$ac_ext <<_ACEOF
27028/* confdefs.h. */
27029_ACEOF
27030cat confdefs.h >>conftest.$ac_ext
27031cat >>conftest.$ac_ext <<_ACEOF
27032/* end confdefs.h. */
27033
Reid Spencera773bd52006-08-04 18:18:08 +000027034/* Override any GCC internal prototype to avoid an error.
27035 Use char because int might match the return type of a GCC
27036 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027037#ifdef __cplusplus
27038extern "C"
27039#endif
Reid Spencer17795972004-11-18 09:47:37 +000027040char lt_dlopen ();
27041int
27042main ()
27043{
Reid Spencera773bd52006-08-04 18:18:08 +000027044return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027045 ;
27046 return 0;
27047}
27048_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027049for ac_lib in '' ltdl; do
27050 if test -z "$ac_lib"; then
27051 ac_res="none required"
27052 else
27053 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027054 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027055 fi
27056 rm -f conftest.$ac_objext conftest$ac_exeext
27057if { (ac_try="$ac_link"
27058case "(($ac_try" in
27059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060 *) ac_try_echo=$ac_try;;
27061esac
27062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027064 ac_status=$?
27065 grep -v '^ *+' conftest.er1 >conftest.err
27066 rm -f conftest.er1
27067 cat conftest.err >&5
27068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27069 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27071 { (case "(($ac_try" in
27072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27073 *) ac_try_echo=$ac_try;;
27074esac
27075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27076 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027081 { (case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27084esac
27085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027090 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027091else
27092 echo "$as_me: failed program was:" >&5
27093sed 's/^/| /' conftest.$ac_ext >&5
27094
Reid Spencera773bd52006-08-04 18:18:08 +000027095
Reid Spencer17795972004-11-18 09:47:37 +000027096fi
Reid Spencera773bd52006-08-04 18:18:08 +000027097
27098rm -f core conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext
27100 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27101 break
Reid Spencer17795972004-11-18 09:47:37 +000027102fi
Reid Spencera773bd52006-08-04 18:18:08 +000027103done
27104if test "${ac_cv_search_lt_dlopen+set}" = set; then
27105 :
27106else
27107 ac_cv_search_lt_dlopen=no
27108fi
27109rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027110LIBS=$ac_func_search_save_LIBS
27111fi
Reid Spencera773bd52006-08-04 18:18:08 +000027112{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27113echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27114ac_res=$ac_cv_search_lt_dlopen
27115if test "$ac_res" != no; then
27116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027117
27118cat >>confdefs.h <<\_ACEOF
27119#define HAVE_LT_DLOPEN 1
27120_ACEOF
27121
27122else
27123 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27124 not be available" >&5
27125echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27126 not be available" >&2;}
27127fi
27128
27129
Reid Spencera773bd52006-08-04 18:18:08 +000027130{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27131echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027132if test "${ac_cv_search_dlopen+set}" = set; then
27133 echo $ECHO_N "(cached) $ECHO_C" >&6
27134else
27135 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027136cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027137/* confdefs.h. */
27138_ACEOF
27139cat confdefs.h >>conftest.$ac_ext
27140cat >>conftest.$ac_ext <<_ACEOF
27141/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027142
Reid Spencera773bd52006-08-04 18:18:08 +000027143/* Override any GCC internal prototype to avoid an error.
27144 Use char because int might match the return type of a GCC
27145 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027146#ifdef __cplusplus
27147extern "C"
27148#endif
John Criswell7a73b802003-06-30 21:59:07 +000027149char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027150int
27151main ()
27152{
Reid Spencera773bd52006-08-04 18:18:08 +000027153return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027154 ;
27155 return 0;
27156}
27157_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027158for ac_lib in '' dl; do
27159 if test -z "$ac_lib"; then
27160 ac_res="none required"
27161 else
27162 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027164 fi
27165 rm -f conftest.$ac_objext conftest$ac_exeext
27166if { (ac_try="$ac_link"
27167case "(($ac_try" in
27168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27169 *) ac_try_echo=$ac_try;;
27170esac
27171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27172 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027173 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027174 grep -v '^ *+' conftest.er1 >conftest.err
27175 rm -f conftest.er1
27176 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27180 { (case "(($ac_try" in
27181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27182 *) ac_try_echo=$ac_try;;
27183esac
27184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27185 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027186 ac_status=$?
27187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188 (exit $ac_status); }; } &&
27189 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027190 { (case "(($ac_try" in
27191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27192 *) ac_try_echo=$ac_try;;
27193esac
27194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27195 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027196 ac_status=$?
27197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027199 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027200else
27201 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027202sed 's/^/| /' conftest.$ac_ext >&5
27203
Reid Spencera773bd52006-08-04 18:18:08 +000027204
John Criswell7a73b802003-06-30 21:59:07 +000027205fi
Reid Spencera773bd52006-08-04 18:18:08 +000027206
27207rm -f core conftest.err conftest.$ac_objext \
27208 conftest$ac_exeext
27209 if test "${ac_cv_search_dlopen+set}" = set; then
27210 break
John Criswell7a73b802003-06-30 21:59:07 +000027211fi
Reid Spencera773bd52006-08-04 18:18:08 +000027212done
27213if test "${ac_cv_search_dlopen+set}" = set; then
27214 :
27215else
27216 ac_cv_search_dlopen=no
27217fi
27218rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027219LIBS=$ac_func_search_save_LIBS
27220fi
Reid Spencera773bd52006-08-04 18:18:08 +000027221{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27222echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27223ac_res=$ac_cv_search_dlopen
27224if test "$ac_res" != no; then
27225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027226
27227cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027228#define HAVE_DLOPEN 1
27229_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027230
27231else
Brian Gaekec45be042003-10-07 06:01:34 +000027232 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27233echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027234fi
27235
27236
Reid Spencera773bd52006-08-04 18:18:08 +000027237{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27238echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027239if test "${ac_cv_search_mallinfo+set}" = set; then
27240 echo $ECHO_N "(cached) $ECHO_C" >&6
27241else
27242 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027243cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027244/* confdefs.h. */
27245_ACEOF
27246cat confdefs.h >>conftest.$ac_ext
27247cat >>conftest.$ac_ext <<_ACEOF
27248/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027249
Reid Spencera773bd52006-08-04 18:18:08 +000027250/* Override any GCC internal prototype to avoid an error.
27251 Use char because int might match the return type of a GCC
27252 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027253#ifdef __cplusplus
27254extern "C"
27255#endif
John Criswell7a73b802003-06-30 21:59:07 +000027256char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027257int
27258main ()
27259{
Reid Spencera773bd52006-08-04 18:18:08 +000027260return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027261 ;
27262 return 0;
27263}
27264_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027265for ac_lib in '' malloc; do
27266 if test -z "$ac_lib"; then
27267 ac_res="none required"
27268 else
27269 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027271 fi
27272 rm -f conftest.$ac_objext conftest$ac_exeext
27273if { (ac_try="$ac_link"
27274case "(($ac_try" in
27275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27276 *) ac_try_echo=$ac_try;;
27277esac
27278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27279 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27287 { (case "(($ac_try" in
27288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27289 *) ac_try_echo=$ac_try;;
27290esac
27291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27292 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027293 ac_status=$?
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); }; } &&
27296 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027297 { (case "(($ac_try" in
27298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27299 *) ac_try_echo=$ac_try;;
27300esac
27301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27302 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027306 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027307else
27308 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027309sed 's/^/| /' conftest.$ac_ext >&5
27310
Reid Spencera773bd52006-08-04 18:18:08 +000027311
John Criswell7a73b802003-06-30 21:59:07 +000027312fi
Reid Spencera773bd52006-08-04 18:18:08 +000027313
27314rm -f core conftest.err conftest.$ac_objext \
27315 conftest$ac_exeext
27316 if test "${ac_cv_search_mallinfo+set}" = set; then
27317 break
John Criswell7a73b802003-06-30 21:59:07 +000027318fi
Reid Spencera773bd52006-08-04 18:18:08 +000027319done
27320if test "${ac_cv_search_mallinfo+set}" = set; then
27321 :
27322else
27323 ac_cv_search_mallinfo=no
27324fi
27325rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027326LIBS=$ac_func_search_save_LIBS
27327fi
Reid Spencera773bd52006-08-04 18:18:08 +000027328{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27329echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27330ac_res=$ac_cv_search_mallinfo
27331if test "$ac_res" != no; then
27332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027333
27334cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027335#define HAVE_MALLINFO 1
27336_ACEOF
27337
27338fi
27339
27340
Reid Spencer0a262ba2005-08-24 10:07:20 +000027341if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027342
Reid Spencera773bd52006-08-04 18:18:08 +000027343{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27344echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027345if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348 ac_check_lib_save_LIBS=$LIBS
27349LIBS="-lpthread $LIBS"
27350cat >conftest.$ac_ext <<_ACEOF
27351/* confdefs.h. */
27352_ACEOF
27353cat confdefs.h >>conftest.$ac_ext
27354cat >>conftest.$ac_ext <<_ACEOF
27355/* end confdefs.h. */
27356
Reid Spencera773bd52006-08-04 18:18:08 +000027357/* Override any GCC internal prototype to avoid an error.
27358 Use char because int might match the return type of a GCC
27359 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027360#ifdef __cplusplus
27361extern "C"
27362#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027363char pthread_mutex_init ();
27364int
27365main ()
27366{
Reid Spencera773bd52006-08-04 18:18:08 +000027367return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027368 ;
27369 return 0;
27370}
27371_ACEOF
27372rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027373if { (ac_try="$ac_link"
27374case "(($ac_try" in
27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27376 *) ac_try_echo=$ac_try;;
27377esac
27378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27379 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027380 ac_status=$?
27381 grep -v '^ *+' conftest.er1 >conftest.err
27382 rm -f conftest.er1
27383 cat conftest.err >&5
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27387 { (case "(($ac_try" in
27388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389 *) ac_try_echo=$ac_try;;
27390esac
27391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027393 ac_status=$?
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); }; } &&
27396 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027397 { (case "(($ac_try" in
27398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399 *) ac_try_echo=$ac_try;;
27400esac
27401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027403 ac_status=$?
27404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27405 (exit $ac_status); }; }; then
27406 ac_cv_lib_pthread_pthread_mutex_init=yes
27407else
27408 echo "$as_me: failed program was:" >&5
27409sed 's/^/| /' conftest.$ac_ext >&5
27410
Reid Spencera773bd52006-08-04 18:18:08 +000027411 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027412fi
Reid Spencera773bd52006-08-04 18:18:08 +000027413
27414rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027415 conftest$ac_exeext conftest.$ac_ext
27416LIBS=$ac_check_lib_save_LIBS
27417fi
Reid Spencera773bd52006-08-04 18:18:08 +000027418{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27419echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027420if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27421 cat >>confdefs.h <<_ACEOF
27422#define HAVE_LIBPTHREAD 1
27423_ACEOF
27424
27425 LIBS="-lpthread $LIBS"
27426
27427fi
27428
Reid Spencera773bd52006-08-04 18:18:08 +000027429 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27430echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027431if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
27433else
27434 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027435cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
27441
Reid Spencera773bd52006-08-04 18:18:08 +000027442/* Override any GCC internal prototype to avoid an error.
27443 Use char because int might match the return type of a GCC
27444 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027445#ifdef __cplusplus
27446extern "C"
27447#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027448char pthread_mutex_lock ();
27449int
27450main ()
27451{
Reid Spencera773bd52006-08-04 18:18:08 +000027452return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027453 ;
27454 return 0;
27455}
27456_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027457for ac_lib in '' pthread; do
27458 if test -z "$ac_lib"; then
27459 ac_res="none required"
27460 else
27461 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027463 fi
27464 rm -f conftest.$ac_objext conftest$ac_exeext
27465if { (ac_try="$ac_link"
27466case "(($ac_try" in
27467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468 *) ac_try_echo=$ac_try;;
27469esac
27470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27471 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027473 grep -v '^ *+' conftest.er1 >conftest.err
27474 rm -f conftest.er1
27475 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27477 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27479 { (case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27482esac
27483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27484 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027485 ac_status=$?
27486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27487 (exit $ac_status); }; } &&
27488 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027489 { (case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27492esac
27493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027495 ac_status=$?
27496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27497 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027498 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027499else
27500 echo "$as_me: failed program was:" >&5
27501sed 's/^/| /' conftest.$ac_ext >&5
27502
Reid Spencera773bd52006-08-04 18:18:08 +000027503
Brian Gaeke5f268f72003-12-05 19:29:01 +000027504fi
Reid Spencera773bd52006-08-04 18:18:08 +000027505
27506rm -f core conftest.err conftest.$ac_objext \
27507 conftest$ac_exeext
27508 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27509 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027510fi
Reid Spencera773bd52006-08-04 18:18:08 +000027511done
27512if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27513 :
27514else
27515 ac_cv_search_pthread_mutex_lock=no
27516fi
27517rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027518LIBS=$ac_func_search_save_LIBS
27519fi
Reid Spencera773bd52006-08-04 18:18:08 +000027520{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27521echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27522ac_res=$ac_cv_search_pthread_mutex_lock
27523if test "$ac_res" != no; then
27524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027525
John Criswell40468462004-09-24 21:19:06 +000027526cat >>confdefs.h <<\_ACEOF
27527#define HAVE_PTHREAD_MUTEX_LOCK 1
27528_ACEOF
27529
27530fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027531
Reid Spencer0a262ba2005-08-24 10:07:20 +000027532fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027533
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027534
Reid Spencer59473af2004-12-25 07:31:29 +000027535
27536
27537
27538
27539
27540ac_header_dirent=no
27541for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27542 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027543{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27544echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27545if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027546 echo $ECHO_N "(cached) $ECHO_C" >&6
27547else
27548 cat >conftest.$ac_ext <<_ACEOF
27549/* confdefs.h. */
27550_ACEOF
27551cat confdefs.h >>conftest.$ac_ext
27552cat >>conftest.$ac_ext <<_ACEOF
27553/* end confdefs.h. */
27554#include <sys/types.h>
27555#include <$ac_hdr>
27556
27557int
27558main ()
27559{
27560if ((DIR *) 0)
27561return 0;
27562 ;
27563 return 0;
27564}
27565_ACEOF
27566rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027567if { (ac_try="$ac_compile"
27568case "(($ac_try" in
27569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570 *) ac_try_echo=$ac_try;;
27571esac
27572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027574 ac_status=$?
27575 grep -v '^ *+' conftest.er1 >conftest.err
27576 rm -f conftest.er1
27577 cat conftest.err >&5
27578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27581 { (case "(($ac_try" in
27582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27583 *) ac_try_echo=$ac_try;;
27584esac
27585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27586 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } &&
27590 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027591 { (case "(($ac_try" in
27592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27593 *) ac_try_echo=$ac_try;;
27594esac
27595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27596 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027597 ac_status=$?
27598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27599 (exit $ac_status); }; }; then
27600 eval "$as_ac_Header=yes"
27601else
27602 echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
Reid Spencera773bd52006-08-04 18:18:08 +000027605 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027606fi
Reid Spencera773bd52006-08-04 18:18:08 +000027607
27608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027609fi
Reid Spencera773bd52006-08-04 18:18:08 +000027610ac_res=`eval echo '${'$as_ac_Header'}'`
27611 { echo "$as_me:$LINENO: result: $ac_res" >&5
27612echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027613if test `eval echo '${'$as_ac_Header'}'` = yes; then
27614 cat >>confdefs.h <<_ACEOF
27615#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27616_ACEOF
27617
27618ac_header_dirent=$ac_hdr; break
27619fi
27620
27621done
27622# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27623if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027624 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27625echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027626if test "${ac_cv_search_opendir+set}" = set; then
27627 echo $ECHO_N "(cached) $ECHO_C" >&6
27628else
27629 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027630cat >conftest.$ac_ext <<_ACEOF
27631/* confdefs.h. */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h. */
27636
Reid Spencera773bd52006-08-04 18:18:08 +000027637/* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027640#ifdef __cplusplus
27641extern "C"
27642#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027643char opendir ();
27644int
27645main ()
27646{
Reid Spencera773bd52006-08-04 18:18:08 +000027647return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027648 ;
27649 return 0;
27650}
27651_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027652for ac_lib in '' dir; do
27653 if test -z "$ac_lib"; then
27654 ac_res="none required"
27655 else
27656 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027658 fi
27659 rm -f conftest.$ac_objext conftest$ac_exeext
27660if { (ac_try="$ac_link"
27661case "(($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_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27674 { (case "(($ac_try" in
27675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27676 *) ac_try_echo=$ac_try;;
27677esac
27678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27679 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027680 ac_status=$?
27681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682 (exit $ac_status); }; } &&
27683 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027684 { (case "(($ac_try" in
27685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27686 *) ac_try_echo=$ac_try;;
27687esac
27688eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27689 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027690 ac_status=$?
27691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027693 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027694else
27695 echo "$as_me: failed program was:" >&5
27696sed 's/^/| /' conftest.$ac_ext >&5
27697
Reid Spencera773bd52006-08-04 18:18:08 +000027698
Reid Spencer59473af2004-12-25 07:31:29 +000027699fi
Reid Spencera773bd52006-08-04 18:18:08 +000027700
27701rm -f core conftest.err conftest.$ac_objext \
27702 conftest$ac_exeext
27703 if test "${ac_cv_search_opendir+set}" = set; then
27704 break
Reid Spencer59473af2004-12-25 07:31:29 +000027705fi
Reid Spencera773bd52006-08-04 18:18:08 +000027706done
27707if test "${ac_cv_search_opendir+set}" = set; then
27708 :
27709else
27710 ac_cv_search_opendir=no
27711fi
27712rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027713LIBS=$ac_func_search_save_LIBS
27714fi
Reid Spencera773bd52006-08-04 18:18:08 +000027715{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27716echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27717ac_res=$ac_cv_search_opendir
27718if test "$ac_res" != no; then
27719 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027720
27721fi
27722
27723else
Reid Spencera773bd52006-08-04 18:18:08 +000027724 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27725echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027726if test "${ac_cv_search_opendir+set}" = set; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27728else
27729 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027730cat >conftest.$ac_ext <<_ACEOF
27731/* confdefs.h. */
27732_ACEOF
27733cat confdefs.h >>conftest.$ac_ext
27734cat >>conftest.$ac_ext <<_ACEOF
27735/* end confdefs.h. */
27736
Reid Spencera773bd52006-08-04 18:18:08 +000027737/* Override any GCC internal prototype to avoid an error.
27738 Use char because int might match the return type of a GCC
27739 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027740#ifdef __cplusplus
27741extern "C"
27742#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027743char opendir ();
27744int
27745main ()
27746{
Reid Spencera773bd52006-08-04 18:18:08 +000027747return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027748 ;
27749 return 0;
27750}
27751_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027752for ac_lib in '' x; do
27753 if test -z "$ac_lib"; then
27754 ac_res="none required"
27755 else
27756 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027757 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027758 fi
27759 rm -f conftest.$ac_objext conftest$ac_exeext
27760if { (ac_try="$ac_link"
27761case "(($ac_try" in
27762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27763 *) ac_try_echo=$ac_try;;
27764esac
27765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27766 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027767 ac_status=$?
27768 grep -v '^ *+' conftest.er1 >conftest.err
27769 rm -f conftest.er1
27770 cat conftest.err >&5
27771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27774 { (case "(($ac_try" in
27775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27776 *) ac_try_echo=$ac_try;;
27777esac
27778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27779 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027780 ac_status=$?
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); }; } &&
27783 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027784 { (case "(($ac_try" in
27785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27786 *) ac_try_echo=$ac_try;;
27787esac
27788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27789 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027793 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027794else
27795 echo "$as_me: failed program was:" >&5
27796sed 's/^/| /' conftest.$ac_ext >&5
27797
Reid Spencera773bd52006-08-04 18:18:08 +000027798
Reid Spencer59473af2004-12-25 07:31:29 +000027799fi
Reid Spencera773bd52006-08-04 18:18:08 +000027800
27801rm -f core conftest.err conftest.$ac_objext \
27802 conftest$ac_exeext
27803 if test "${ac_cv_search_opendir+set}" = set; then
27804 break
Reid Spencer59473af2004-12-25 07:31:29 +000027805fi
Reid Spencera773bd52006-08-04 18:18:08 +000027806done
27807if test "${ac_cv_search_opendir+set}" = set; then
27808 :
27809else
27810 ac_cv_search_opendir=no
27811fi
27812rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027813LIBS=$ac_func_search_save_LIBS
27814fi
Reid Spencera773bd52006-08-04 18:18:08 +000027815{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27816echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27817ac_res=$ac_cv_search_opendir
27818if test "$ac_res" != no; then
27819 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027820
27821fi
27822
27823fi
27824
Reid Spencera773bd52006-08-04 18:18:08 +000027825{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27826echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027827if test "${ac_cv_header_mmap_anon+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27829else
27830 ac_ext=c
27831ac_cpp='$CPP $CPPFLAGS'
27832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27834ac_compiler_gnu=$ac_cv_c_compiler_gnu
27835
27836 cat >conftest.$ac_ext <<_ACEOF
27837/* confdefs.h. */
27838_ACEOF
27839cat confdefs.h >>conftest.$ac_ext
27840cat >>conftest.$ac_ext <<_ACEOF
27841/* end confdefs.h. */
27842#include <sys/mman.h>
27843#include <unistd.h>
27844#include <fcntl.h>
27845int
27846main ()
27847{
27848mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27849 ;
27850 return 0;
27851}
27852_ACEOF
27853rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027854if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +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
27866 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027867 { 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
Reid Spencer59473af2004-12-25 07:31:29 +000027874 ac_status=$?
27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876 (exit $ac_status); }; } &&
27877 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027878 { (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
Reid Spencer59473af2004-12-25 07:31:29 +000027884 ac_status=$?
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; }; then
27887 ac_cv_header_mmap_anon=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_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027893fi
Reid Spencera773bd52006-08-04 18:18:08 +000027894
27895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027896 ac_ext=c
27897ac_cpp='$CPP $CPPFLAGS'
27898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27900ac_compiler_gnu=$ac_cv_c_compiler_gnu
27901
27902
27903fi
Reid Spencera773bd52006-08-04 18:18:08 +000027904{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27905echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027906if test "$ac_cv_header_mmap_anon" = yes; then
27907
27908cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027909#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027910_ACEOF
27911
27912fi
27913
Reid Spencera773bd52006-08-04 18:18:08 +000027914{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27915echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027916if test "${ac_cv_header_stat_broken+set}" = set; then
27917 echo $ECHO_N "(cached) $ECHO_C" >&6
27918else
27919 cat >conftest.$ac_ext <<_ACEOF
27920/* confdefs.h. */
27921_ACEOF
27922cat confdefs.h >>conftest.$ac_ext
27923cat >>conftest.$ac_ext <<_ACEOF
27924/* end confdefs.h. */
27925#include <sys/types.h>
27926#include <sys/stat.h>
27927
Reid Spencera773bd52006-08-04 18:18:08 +000027928#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027929# if S_ISBLK (S_IFDIR)
27930You lose.
27931# endif
27932#endif
27933
Reid Spencera773bd52006-08-04 18:18:08 +000027934#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027935# if S_ISBLK (S_IFCHR)
27936You lose.
27937# endif
27938#endif
27939
Reid Spencera773bd52006-08-04 18:18:08 +000027940#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027941# if S_ISLNK (S_IFREG)
27942You lose.
27943# endif
27944#endif
27945
Reid Spencera773bd52006-08-04 18:18:08 +000027946#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027947# if S_ISSOCK (S_IFREG)
27948You lose.
27949# endif
27950#endif
27951
27952_ACEOF
27953if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27954 $EGREP "You lose" >/dev/null 2>&1; then
27955 ac_cv_header_stat_broken=yes
27956else
27957 ac_cv_header_stat_broken=no
27958fi
27959rm -f conftest*
27960
27961fi
Reid Spencera773bd52006-08-04 18:18:08 +000027962{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27963echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027964if test $ac_cv_header_stat_broken = yes; then
27965
27966cat >>confdefs.h <<\_ACEOF
27967#define STAT_MACROS_BROKEN 1
27968_ACEOF
27969
27970fi
27971
Reid Spencera773bd52006-08-04 18:18:08 +000027972{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27973echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027974if test "${ac_cv_header_stdc+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027983#include <stdlib.h>
27984#include <stdarg.h>
27985#include <string.h>
27986#include <float.h>
27987
John Criswell0c38eaf2003-09-10 15:17:25 +000027988int
27989main ()
27990{
27991
27992 ;
27993 return 0;
27994}
John Criswell7a73b802003-06-30 21:59:07 +000027995_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027996rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027997if { (ac_try="$ac_compile"
27998case "(($ac_try" in
27999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28000 *) ac_try_echo=$ac_try;;
28001esac
28002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28003 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028005 grep -v '^ *+' conftest.er1 >conftest.err
28006 rm -f conftest.er1
28007 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028009 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28011 { (case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28014esac
28015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028017 ac_status=$?
28018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28019 (exit $ac_status); }; } &&
28020 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028021 { (case "(($ac_try" in
28022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023 *) ac_try_echo=$ac_try;;
28024esac
28025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028027 ac_status=$?
28028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28029 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028030 ac_cv_header_stdc=yes
28031else
28032 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028033sed 's/^/| /' conftest.$ac_ext >&5
28034
Reid Spencera773bd52006-08-04 18:18:08 +000028035 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028036fi
Reid Spencera773bd52006-08-04 18:18:08 +000028037
28038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028039
28040if test $ac_cv_header_stdc = yes; then
28041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28042 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028043/* confdefs.h. */
28044_ACEOF
28045cat confdefs.h >>conftest.$ac_ext
28046cat >>conftest.$ac_ext <<_ACEOF
28047/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028048#include <string.h>
28049
28050_ACEOF
28051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028052 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028053 :
28054else
28055 ac_cv_header_stdc=no
28056fi
28057rm -f conftest*
28058
28059fi
28060
28061if test $ac_cv_header_stdc = yes; then
28062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028064/* confdefs.h. */
28065_ACEOF
28066cat confdefs.h >>conftest.$ac_ext
28067cat >>conftest.$ac_ext <<_ACEOF
28068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028069#include <stdlib.h>
28070
28071_ACEOF
28072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028073 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028074 :
28075else
28076 ac_cv_header_stdc=no
28077fi
28078rm -f conftest*
28079
28080fi
28081
28082if test $ac_cv_header_stdc = yes; then
28083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28084 if test "$cross_compiling" = yes; then
28085 :
28086else
28087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028088/* confdefs.h. */
28089_ACEOF
28090cat confdefs.h >>conftest.$ac_ext
28091cat >>conftest.$ac_ext <<_ACEOF
28092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028093#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028094#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028095#if ((' ' & 0x0FF) == 0x020)
28096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28098#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028099# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028100 (('a' <= (c) && (c) <= 'i') \
28101 || ('j' <= (c) && (c) <= 'r') \
28102 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28104#endif
28105
28106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28107int
28108main ()
28109{
28110 int i;
28111 for (i = 0; i < 256; i++)
28112 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028113 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028114 return 2;
28115 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028116}
28117_ACEOF
28118rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028119if { (ac_try="$ac_link"
28120case "(($ac_try" in
28121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122 *) ac_try_echo=$ac_try;;
28123esac
28124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028126 ac_status=$?
28127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028129 { (case "(($ac_try" in
28130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131 *) ac_try_echo=$ac_try;;
28132esac
28133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; }; then
28138 :
28139else
28140 echo "$as_me: program exited with status $ac_status" >&5
28141echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028142sed 's/^/| /' conftest.$ac_ext >&5
28143
John Criswell7a73b802003-06-30 21:59:07 +000028144( exit $ac_status )
28145ac_cv_header_stdc=no
28146fi
Reid Spencera773bd52006-08-04 18:18:08 +000028147rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28148fi
28149
28150
John Criswell7a73b802003-06-30 21:59:07 +000028151fi
28152fi
Reid Spencera773bd52006-08-04 18:18:08 +000028153{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28154echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028155if test $ac_cv_header_stdc = yes; then
28156
28157cat >>confdefs.h <<\_ACEOF
28158#define STDC_HEADERS 1
28159_ACEOF
28160
28161fi
28162
Reid Spencera773bd52006-08-04 18:18:08 +000028163{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28164echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028165if test "${ac_cv_header_sys_wait_h+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167else
28168 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028169/* confdefs.h. */
28170_ACEOF
28171cat confdefs.h >>conftest.$ac_ext
28172cat >>conftest.$ac_ext <<_ACEOF
28173/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028174#include <sys/types.h>
28175#include <sys/wait.h>
28176#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028177# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028178#endif
28179#ifndef WIFEXITED
28180# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28181#endif
28182
John Criswell7a73b802003-06-30 21:59:07 +000028183int
28184main ()
28185{
28186 int s;
28187 wait (&s);
28188 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28189 ;
28190 return 0;
28191}
28192_ACEOF
28193rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028194if { (ac_try="$ac_compile"
28195case "(($ac_try" in
28196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197 *) ac_try_echo=$ac_try;;
28198esac
28199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028202 grep -v '^ *+' conftest.er1 >conftest.err
28203 rm -f conftest.er1
28204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28208 { (case "(($ac_try" in
28209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28210 *) ac_try_echo=$ac_try;;
28211esac
28212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28213 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; } &&
28217 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028218 { (case "(($ac_try" in
28219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28220 *) ac_try_echo=$ac_try;;
28221esac
28222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28223 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028224 ac_status=$?
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); }; }; then
28227 ac_cv_header_sys_wait_h=yes
28228else
28229 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028230sed 's/^/| /' conftest.$ac_ext >&5
28231
Reid Spencera773bd52006-08-04 18:18:08 +000028232 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028233fi
Reid Spencera773bd52006-08-04 18:18:08 +000028234
28235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028236fi
Reid Spencera773bd52006-08-04 18:18:08 +000028237{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28238echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028239if test $ac_cv_header_sys_wait_h = yes; then
28240
28241cat >>confdefs.h <<\_ACEOF
28242#define HAVE_SYS_WAIT_H 1
28243_ACEOF
28244
28245fi
28246
Reid Spencera773bd52006-08-04 18:18:08 +000028247{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28248echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028249if test "${ac_cv_header_time+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28251else
28252 cat >conftest.$ac_ext <<_ACEOF
28253/* confdefs.h. */
28254_ACEOF
28255cat confdefs.h >>conftest.$ac_ext
28256cat >>conftest.$ac_ext <<_ACEOF
28257/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028258#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028259#include <sys/time.h>
28260#include <time.h>
28261
28262int
28263main ()
28264{
28265if ((struct tm *) 0)
28266return 0;
28267 ;
28268 return 0;
28269}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028270_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028271rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028272if { (ac_try="$ac_compile"
28273case "(($ac_try" in
28274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28275 *) ac_try_echo=$ac_try;;
28276esac
28277eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28278 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028279 ac_status=$?
28280 grep -v '^ *+' conftest.er1 >conftest.err
28281 rm -f conftest.er1
28282 cat conftest.err >&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028284 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28286 { (case "(($ac_try" in
28287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288 *) ac_try_echo=$ac_try;;
28289esac
28290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; } &&
28295 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028296 { (case "(($ac_try" in
28297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28298 *) ac_try_echo=$ac_try;;
28299esac
28300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28301 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; }; then
28305 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028306else
28307 echo "$as_me: failed program was:" >&5
28308sed 's/^/| /' conftest.$ac_ext >&5
28309
Reid Spencera773bd52006-08-04 18:18:08 +000028310 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028311fi
Reid Spencera773bd52006-08-04 18:18:08 +000028312
28313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028314fi
Reid Spencera773bd52006-08-04 18:18:08 +000028315{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28316echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028317if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028318
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028319cat >>confdefs.h <<\_ACEOF
28320#define TIME_WITH_SYS_TIME 1
28321_ACEOF
28322
28323fi
28324
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028325
Reid Spencer59473af2004-12-25 07:31:29 +000028326
28327
28328
28329
28330
28331
28332for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28333do
28334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340fi
Reid Spencera773bd52006-08-04 18:18:08 +000028341ac_res=`eval echo '${'$as_ac_Header'}'`
28342 { echo "$as_me:$LINENO: result: $ac_res" >&5
28343echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028344else
28345 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028348cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028349/* confdefs.h. */
28350_ACEOF
28351cat confdefs.h >>conftest.$ac_ext
28352cat >>conftest.$ac_ext <<_ACEOF
28353/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028354$ac_includes_default
28355#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028356_ACEOF
28357rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028358if { (ac_try="$ac_compile"
28359case "(($ac_try" in
28360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28361 *) ac_try_echo=$ac_try;;
28362esac
28363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28364 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028365 ac_status=$?
28366 grep -v '^ *+' conftest.er1 >conftest.err
28367 rm -f conftest.er1
28368 cat conftest.err >&5
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28372 { (case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28375esac
28376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28377 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028382 { (case "(($ac_try" in
28383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28384 *) ac_try_echo=$ac_try;;
28385esac
28386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28387 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028388 ac_status=$?
28389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28390 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028391 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028392else
28393 echo "$as_me: failed program was:" >&5
28394sed 's/^/| /' conftest.$ac_ext >&5
28395
Reid Spencera773bd52006-08-04 18:18:08 +000028396 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028397fi
Reid Spencera773bd52006-08-04 18:18:08 +000028398
28399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28400{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28401echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402
Reid Spencer59473af2004-12-25 07:31:29 +000028403# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028404{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028406cat >conftest.$ac_ext <<_ACEOF
28407/* confdefs.h. */
28408_ACEOF
28409cat confdefs.h >>conftest.$ac_ext
28410cat >>conftest.$ac_ext <<_ACEOF
28411/* end confdefs.h. */
28412#include <$ac_header>
28413_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028414if { (ac_try="$ac_cpp conftest.$ac_ext"
28415case "(($ac_try" in
28416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28417 *) ac_try_echo=$ac_try;;
28418esac
28419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028421 ac_status=$?
28422 grep -v '^ *+' conftest.er1 >conftest.err
28423 rm -f conftest.er1
28424 cat conftest.err >&5
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); } >/dev/null; then
28427 if test -s conftest.err; then
28428 ac_cpp_err=$ac_c_preproc_warn_flag
28429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28430 else
28431 ac_cpp_err=
28432 fi
28433else
28434 ac_cpp_err=yes
28435fi
28436if test -z "$ac_cpp_err"; then
28437 ac_header_preproc=yes
28438else
28439 echo "$as_me: failed program was:" >&5
28440sed 's/^/| /' conftest.$ac_ext >&5
28441
28442 ac_header_preproc=no
28443fi
Reid Spencera773bd52006-08-04 18:18:08 +000028444
Reid Spencer59473af2004-12-25 07:31:29 +000028445rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028446{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28447echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028448
28449# So? What about this header?
28450case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28451 yes:no: )
28452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28453echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28455echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28456 ac_header_preproc=yes
28457 ;;
28458 no:yes:* )
28459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28460echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28462echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28464echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28466echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28468echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28470echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028471 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028472## ----------------------------------- ##
28473## Report this to llvmbugs@cs.uiuc.edu ##
28474## ----------------------------------- ##
28475_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028476 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028477 ;;
28478esac
Reid Spencera773bd52006-08-04 18:18:08 +000028479{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028482 echo $ECHO_N "(cached) $ECHO_C" >&6
28483else
28484 eval "$as_ac_Header=\$ac_header_preproc"
28485fi
Reid Spencera773bd52006-08-04 18:18:08 +000028486ac_res=`eval echo '${'$as_ac_Header'}'`
28487 { echo "$as_me:$LINENO: result: $ac_res" >&5
28488echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028489
28490fi
Reid Spencer59473af2004-12-25 07:31:29 +000028491if test `eval echo '${'$as_ac_Header'}'` = yes; then
28492 cat >>confdefs.h <<_ACEOF
28493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028494_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028495
28496fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028497
Reid Spencer59473af2004-12-25 07:31:29 +000028498done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028499
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028500
28501
Reid Spencer59473af2004-12-25 07:31:29 +000028502
28503
28504
28505
Reid Spencercdb08a32006-06-05 16:11:07 +000028506for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028507do
28508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028513 echo $ECHO_N "(cached) $ECHO_C" >&6
28514fi
Reid Spencera773bd52006-08-04 18:18:08 +000028515ac_res=`eval echo '${'$as_ac_Header'}'`
28516 { echo "$as_me:$LINENO: result: $ac_res" >&5
28517echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028518else
28519 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028522cat >conftest.$ac_ext <<_ACEOF
28523/* confdefs.h. */
28524_ACEOF
28525cat confdefs.h >>conftest.$ac_ext
28526cat >>conftest.$ac_ext <<_ACEOF
28527/* end confdefs.h. */
28528$ac_includes_default
28529#include <$ac_header>
28530_ACEOF
28531rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028532if { (ac_try="$ac_compile"
28533case "(($ac_try" in
28534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535 *) ac_try_echo=$ac_try;;
28536esac
28537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028539 ac_status=$?
28540 grep -v '^ *+' conftest.er1 >conftest.err
28541 rm -f conftest.er1
28542 cat conftest.err >&5
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28546 { (case "(($ac_try" in
28547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28548 *) ac_try_echo=$ac_try;;
28549esac
28550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28551 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028552 ac_status=$?
28553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554 (exit $ac_status); }; } &&
28555 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028556 { (case "(($ac_try" in
28557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28558 *) ac_try_echo=$ac_try;;
28559esac
28560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28561 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028562 ac_status=$?
28563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564 (exit $ac_status); }; }; then
28565 ac_header_compiler=yes
28566else
28567 echo "$as_me: failed program was:" >&5
28568sed 's/^/| /' conftest.$ac_ext >&5
28569
Reid Spencera773bd52006-08-04 18:18:08 +000028570 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028571fi
Reid Spencera773bd52006-08-04 18:18:08 +000028572
28573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28574{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28575echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028576
28577# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028578{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028580cat >conftest.$ac_ext <<_ACEOF
28581/* confdefs.h. */
28582_ACEOF
28583cat confdefs.h >>conftest.$ac_ext
28584cat >>conftest.$ac_ext <<_ACEOF
28585/* end confdefs.h. */
28586#include <$ac_header>
28587_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028588if { (ac_try="$ac_cpp conftest.$ac_ext"
28589case "(($ac_try" in
28590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591 *) ac_try_echo=$ac_try;;
28592esac
28593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028595 ac_status=$?
28596 grep -v '^ *+' conftest.er1 >conftest.err
28597 rm -f conftest.er1
28598 cat conftest.err >&5
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); } >/dev/null; then
28601 if test -s conftest.err; then
28602 ac_cpp_err=$ac_c_preproc_warn_flag
28603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28604 else
28605 ac_cpp_err=
28606 fi
28607else
28608 ac_cpp_err=yes
28609fi
28610if test -z "$ac_cpp_err"; then
28611 ac_header_preproc=yes
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616 ac_header_preproc=no
28617fi
Reid Spencera773bd52006-08-04 18:18:08 +000028618
Reid Spencer59473af2004-12-25 07:31:29 +000028619rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028620{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28621echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028622
28623# So? What about this header?
28624case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28625 yes:no: )
28626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28627echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28629echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28630 ac_header_preproc=yes
28631 ;;
28632 no:yes:* )
28633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28634echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28636echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28638echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28640echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28642echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28644echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028645 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028646## ----------------------------------- ##
28647## Report this to llvmbugs@cs.uiuc.edu ##
28648## ----------------------------------- ##
28649_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028650 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028651 ;;
28652esac
Reid Spencera773bd52006-08-04 18:18:08 +000028653{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28655if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028656 echo $ECHO_N "(cached) $ECHO_C" >&6
28657else
28658 eval "$as_ac_Header=\$ac_header_preproc"
28659fi
Reid Spencera773bd52006-08-04 18:18:08 +000028660ac_res=`eval echo '${'$as_ac_Header'}'`
28661 { echo "$as_me:$LINENO: result: $ac_res" >&5
28662echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028663
28664fi
28665if test `eval echo '${'$as_ac_Header'}'` = yes; then
28666 cat >>confdefs.h <<_ACEOF
28667#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28668_ACEOF
28669
28670fi
28671
28672done
28673
28674
28675
28676
28677
28678
Reid Spencercdb08a32006-06-05 16:11:07 +000028679for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028680do
28681as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28685if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028686 echo $ECHO_N "(cached) $ECHO_C" >&6
28687fi
Reid Spencera773bd52006-08-04 18:18:08 +000028688ac_res=`eval echo '${'$as_ac_Header'}'`
28689 { echo "$as_me:$LINENO: result: $ac_res" >&5
28690echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028691else
28692 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028693{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028695cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028696/* confdefs.h. */
28697_ACEOF
28698cat confdefs.h >>conftest.$ac_ext
28699cat >>conftest.$ac_ext <<_ACEOF
28700/* end confdefs.h. */
28701$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028702#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028703_ACEOF
28704rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028705if { (ac_try="$ac_compile"
28706case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28709esac
28710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028713 grep -v '^ *+' conftest.er1 >conftest.err
28714 rm -f conftest.er1
28715 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028718 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28719 { (case "(($ac_try" in
28720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28721 *) ac_try_echo=$ac_try;;
28722esac
28723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28724 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; } &&
28728 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028729 { (case "(($ac_try" in
28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28731 *) ac_try_echo=$ac_try;;
28732esac
28733eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28734 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028735 ac_status=$?
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); }; }; then
28738 ac_header_compiler=yes
28739else
28740 echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
Reid Spencera773bd52006-08-04 18:18:08 +000028743 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028744fi
Reid Spencera773bd52006-08-04 18:18:08 +000028745
28746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28747{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28748echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028749
28750# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028751{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028753cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028754/* confdefs.h. */
28755_ACEOF
28756cat confdefs.h >>conftest.$ac_ext
28757cat >>conftest.$ac_ext <<_ACEOF
28758/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028759#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028760_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028761if { (ac_try="$ac_cpp conftest.$ac_ext"
28762case "(($ac_try" in
28763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28764 *) ac_try_echo=$ac_try;;
28765esac
28766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } >/dev/null; then
28774 if test -s conftest.err; then
28775 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028777 else
28778 ac_cpp_err=
28779 fi
28780else
28781 ac_cpp_err=yes
28782fi
28783if test -z "$ac_cpp_err"; then
28784 ac_header_preproc=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789 ac_header_preproc=no
28790fi
Reid Spencera773bd52006-08-04 18:18:08 +000028791
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028792rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028793{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28794echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028795
28796# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28798 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28800echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28802echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028803 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028804 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028805 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28811echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28813echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28815echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28817echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028818 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028819## ----------------------------------- ##
28820## Report this to llvmbugs@cs.uiuc.edu ##
28821## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028822_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028823 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028824 ;;
28825esac
Reid Spencera773bd52006-08-04 18:18:08 +000028826{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028829 echo $ECHO_N "(cached) $ECHO_C" >&6
28830else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028831 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028832fi
Reid Spencera773bd52006-08-04 18:18:08 +000028833ac_res=`eval echo '${'$as_ac_Header'}'`
28834 { echo "$as_me:$LINENO: result: $ac_res" >&5
28835echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028836
28837fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028838if test `eval echo '${'$as_ac_Header'}'` = yes; then
28839 cat >>confdefs.h <<_ACEOF
28840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028841_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028842
28843fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028844
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028845done
28846
John Criswell7ed43ad2004-07-19 16:12:29 +000028847
Reid Spencercdb08a32006-06-05 16:11:07 +000028848
Reid Spencera6d990a2006-09-14 06:17:21 +000028849
28850for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028851do
28852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028853if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28854 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858fi
Reid Spencera773bd52006-08-04 18:18:08 +000028859ac_res=`eval echo '${'$as_ac_Header'}'`
28860 { echo "$as_me:$LINENO: result: $ac_res" >&5
28861echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028862else
28863 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028864{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28865echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028866cat >conftest.$ac_ext <<_ACEOF
28867/* confdefs.h. */
28868_ACEOF
28869cat confdefs.h >>conftest.$ac_ext
28870cat >>conftest.$ac_ext <<_ACEOF
28871/* end confdefs.h. */
28872$ac_includes_default
28873#include <$ac_header>
28874_ACEOF
28875rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028876if { (ac_try="$ac_compile"
28877case "(($ac_try" in
28878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879 *) ac_try_echo=$ac_try;;
28880esac
28881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028883 ac_status=$?
28884 grep -v '^ *+' conftest.er1 >conftest.err
28885 rm -f conftest.er1
28886 cat conftest.err >&5
28887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28888 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28890 { (case "(($ac_try" in
28891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28892 *) ac_try_echo=$ac_try;;
28893esac
28894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28895 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028896 ac_status=$?
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); }; } &&
28899 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028900 { (case "(($ac_try" in
28901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28902 *) ac_try_echo=$ac_try;;
28903esac
28904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28905 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_header_compiler=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
Reid Spencera773bd52006-08-04 18:18:08 +000028914 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028915fi
Reid Spencera773bd52006-08-04 18:18:08 +000028916
28917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28918{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28919echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028920
28921# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028922{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028924cat >conftest.$ac_ext <<_ACEOF
28925/* confdefs.h. */
28926_ACEOF
28927cat confdefs.h >>conftest.$ac_ext
28928cat >>conftest.$ac_ext <<_ACEOF
28929/* end confdefs.h. */
28930#include <$ac_header>
28931_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028932if { (ac_try="$ac_cpp conftest.$ac_ext"
28933case "(($ac_try" in
28934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28935 *) ac_try_echo=$ac_try;;
28936esac
28937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028939 ac_status=$?
28940 grep -v '^ *+' conftest.er1 >conftest.err
28941 rm -f conftest.er1
28942 cat conftest.err >&5
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); } >/dev/null; then
28945 if test -s conftest.err; then
28946 ac_cpp_err=$ac_c_preproc_warn_flag
28947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28948 else
28949 ac_cpp_err=
28950 fi
28951else
28952 ac_cpp_err=yes
28953fi
28954if test -z "$ac_cpp_err"; then
28955 ac_header_preproc=yes
28956else
28957 echo "$as_me: failed program was:" >&5
28958sed 's/^/| /' conftest.$ac_ext >&5
28959
28960 ac_header_preproc=no
28961fi
Reid Spencera773bd52006-08-04 18:18:08 +000028962
Chris Lattner0b142592005-11-14 06:57:34 +000028963rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028964{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28965echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028966
28967# So? What about this header?
28968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28969 yes:no: )
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28971echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28973echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28974 ac_header_preproc=yes
28975 ;;
28976 no:yes:* )
28977 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28978echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28979 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28980echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28981 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28982echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28983 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28984echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28986echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28987 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28988echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028989 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000028990## ----------------------------------- ##
28991## Report this to llvmbugs@cs.uiuc.edu ##
28992## ----------------------------------- ##
28993_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028994 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000028995 ;;
28996esac
Reid Spencera773bd52006-08-04 18:18:08 +000028997{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28999if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029000 echo $ECHO_N "(cached) $ECHO_C" >&6
29001else
29002 eval "$as_ac_Header=\$ac_header_preproc"
29003fi
Reid Spencera773bd52006-08-04 18:18:08 +000029004ac_res=`eval echo '${'$as_ac_Header'}'`
29005 { echo "$as_me:$LINENO: result: $ac_res" >&5
29006echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029007
29008fi
29009if test `eval echo '${'$as_ac_Header'}'` = yes; then
29010 cat >>confdefs.h <<_ACEOF
29011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29012_ACEOF
29013
29014fi
29015
29016done
29017
Reid Spencer0a262ba2005-08-24 10:07:20 +000029018if test "$ENABLE_THREADS" -eq 1 ; then
29019
29020for ac_header in pthread.h
29021do
29022as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029023if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029027 echo $ECHO_N "(cached) $ECHO_C" >&6
29028fi
Reid Spencera773bd52006-08-04 18:18:08 +000029029ac_res=`eval echo '${'$as_ac_Header'}'`
29030 { echo "$as_me:$LINENO: result: $ac_res" >&5
29031echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029032else
29033 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029034{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029036cat >conftest.$ac_ext <<_ACEOF
29037/* confdefs.h. */
29038_ACEOF
29039cat confdefs.h >>conftest.$ac_ext
29040cat >>conftest.$ac_ext <<_ACEOF
29041/* end confdefs.h. */
29042$ac_includes_default
29043#include <$ac_header>
29044_ACEOF
29045rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029046if { (ac_try="$ac_compile"
29047case "(($ac_try" in
29048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049 *) ac_try_echo=$ac_try;;
29050esac
29051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029053 ac_status=$?
29054 grep -v '^ *+' conftest.er1 >conftest.err
29055 rm -f conftest.er1
29056 cat conftest.err >&5
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29060 { (case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29063esac
29064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029066 ac_status=$?
29067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; } &&
29069 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029070 { (case "(($ac_try" in
29071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29072 *) ac_try_echo=$ac_try;;
29073esac
29074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29075 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; }; then
29079 ac_header_compiler=yes
29080else
29081 echo "$as_me: failed program was:" >&5
29082sed 's/^/| /' conftest.$ac_ext >&5
29083
Reid Spencera773bd52006-08-04 18:18:08 +000029084 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029085fi
Reid Spencera773bd52006-08-04 18:18:08 +000029086
29087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29088{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29089echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029090
29091# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029092{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029094cat >conftest.$ac_ext <<_ACEOF
29095/* confdefs.h. */
29096_ACEOF
29097cat confdefs.h >>conftest.$ac_ext
29098cat >>conftest.$ac_ext <<_ACEOF
29099/* end confdefs.h. */
29100#include <$ac_header>
29101_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029102if { (ac_try="$ac_cpp conftest.$ac_ext"
29103case "(($ac_try" in
29104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29105 *) ac_try_echo=$ac_try;;
29106esac
29107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029109 ac_status=$?
29110 grep -v '^ *+' conftest.er1 >conftest.err
29111 rm -f conftest.er1
29112 cat conftest.err >&5
29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29114 (exit $ac_status); } >/dev/null; then
29115 if test -s conftest.err; then
29116 ac_cpp_err=$ac_c_preproc_warn_flag
29117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29118 else
29119 ac_cpp_err=
29120 fi
29121else
29122 ac_cpp_err=yes
29123fi
29124if test -z "$ac_cpp_err"; then
29125 ac_header_preproc=yes
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
29130 ac_header_preproc=no
29131fi
Reid Spencera773bd52006-08-04 18:18:08 +000029132
Reid Spencer0a262ba2005-08-24 10:07:20 +000029133rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029134{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29135echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029136
29137# So? What about this header?
29138case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29139 yes:no: )
29140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29141echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29143echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29144 ac_header_preproc=yes
29145 ;;
29146 no:yes:* )
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29148echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29150echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29152echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29154echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29156echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29158echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029159 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029160## ----------------------------------- ##
29161## Report this to llvmbugs@cs.uiuc.edu ##
29162## ----------------------------------- ##
29163_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029164 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029165 ;;
29166esac
Reid Spencera773bd52006-08-04 18:18:08 +000029167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029170 echo $ECHO_N "(cached) $ECHO_C" >&6
29171else
29172 eval "$as_ac_Header=\$ac_header_preproc"
29173fi
Reid Spencera773bd52006-08-04 18:18:08 +000029174ac_res=`eval echo '${'$as_ac_Header'}'`
29175 { echo "$as_me:$LINENO: result: $ac_res" >&5
29176echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029177
29178fi
29179if test `eval echo '${'$as_ac_Header'}'` = yes; then
29180 cat >>confdefs.h <<_ACEOF
29181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29182_ACEOF
29183
29184fi
29185
29186done
29187
29188fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029189
29190
Reid Spencerb2ed05262006-11-03 18:04:08 +000029191
29192 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29193echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29194if test "${ac_cv_huge_val_sanity+set}" = set; then
29195 echo $ECHO_N "(cached) $ECHO_C" >&6
29196else
29197
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029198 ac_ext=cpp
29199ac_cpp='$CXXCPP $CPPFLAGS'
29200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029203
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029204 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029205 if test "$cross_compiling" = yes; then
29206 ac_cv_huge_val_sanity=yes
29207else
29208 cat >conftest.$ac_ext <<_ACEOF
29209/* confdefs.h. */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h. */
29214#include <math.h>
29215int
29216main ()
29217{
29218double x = HUGE_VAL; return x != x;
29219 ;
29220 return 0;
29221}
29222_ACEOF
29223rm -f conftest$ac_exeext
29224if { (ac_try="$ac_link"
29225case "(($ac_try" in
29226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29227 *) ac_try_echo=$ac_try;;
29228esac
29229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29230 (eval "$ac_link") 2>&5
29231 ac_status=$?
29232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29234 { (case "(($ac_try" in
29235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29236 *) ac_try_echo=$ac_try;;
29237esac
29238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29239 (eval "$ac_try") 2>&5
29240 ac_status=$?
29241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242 (exit $ac_status); }; }; then
29243 ac_cv_huge_val_sanity=yes
29244else
29245 echo "$as_me: program exited with status $ac_status" >&5
29246echo "$as_me: failed program was:" >&5
29247sed 's/^/| /' conftest.$ac_ext >&5
29248
29249( exit $ac_status )
29250ac_cv_huge_val_sanity=no
29251fi
29252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29253fi
29254
29255
29256 ac_ext=c
29257ac_cpp='$CPP $CPPFLAGS'
29258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29260ac_compiler_gnu=$ac_cv_c_compiler_gnu
29261
29262
29263fi
29264{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29265echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29266 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29267
29268
Reid Spencera773bd52006-08-04 18:18:08 +000029269{ echo "$as_me:$LINENO: checking for pid_t" >&5
29270echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029271if test "${ac_cv_type_pid_t+set}" = set; then
29272 echo $ECHO_N "(cached) $ECHO_C" >&6
29273else
29274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029275/* confdefs.h. */
29276_ACEOF
29277cat confdefs.h >>conftest.$ac_ext
29278cat >>conftest.$ac_ext <<_ACEOF
29279/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029280$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029281typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029282int
29283main ()
29284{
Reid Spencera773bd52006-08-04 18:18:08 +000029285if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029286 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029287if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029288 return 0;
29289 ;
29290 return 0;
29291}
29292_ACEOF
29293rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029294if { (ac_try="$ac_compile"
29295case "(($ac_try" in
29296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29297 *) ac_try_echo=$ac_try;;
29298esac
29299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29300 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029301 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029302 grep -v '^ *+' conftest.er1 >conftest.err
29303 rm -f conftest.er1
29304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29308 { (case "(($ac_try" in
29309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29310 *) ac_try_echo=$ac_try;;
29311esac
29312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29313 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; } &&
29317 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029318 { (case "(($ac_try" in
29319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320 *) ac_try_echo=$ac_try;;
29321esac
29322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029324 ac_status=$?
29325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29326 (exit $ac_status); }; }; then
29327 ac_cv_type_pid_t=yes
29328else
29329 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029330sed 's/^/| /' conftest.$ac_ext >&5
29331
Reid Spencera773bd52006-08-04 18:18:08 +000029332 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029333fi
Reid Spencera773bd52006-08-04 18:18:08 +000029334
29335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029336fi
Reid Spencera773bd52006-08-04 18:18:08 +000029337{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29338echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029339if test $ac_cv_type_pid_t = yes; then
29340 :
29341else
29342
29343cat >>confdefs.h <<_ACEOF
29344#define pid_t int
29345_ACEOF
29346
29347fi
29348
Reid Spencera773bd52006-08-04 18:18:08 +000029349{ echo "$as_me:$LINENO: checking for size_t" >&5
29350echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029351if test "${ac_cv_type_size_t+set}" = set; then
29352 echo $ECHO_N "(cached) $ECHO_C" >&6
29353else
29354 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029355/* confdefs.h. */
29356_ACEOF
29357cat confdefs.h >>conftest.$ac_ext
29358cat >>conftest.$ac_ext <<_ACEOF
29359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029360$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029361typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029362int
29363main ()
29364{
Reid Spencera773bd52006-08-04 18:18:08 +000029365if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029366 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029367if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029368 return 0;
29369 ;
29370 return 0;
29371}
29372_ACEOF
29373rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029374if { (ac_try="$ac_compile"
29375case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29378esac
29379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029382 grep -v '^ *+' conftest.er1 >conftest.err
29383 rm -f conftest.er1
29384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29388 { (case "(($ac_try" in
29389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390 *) ac_try_echo=$ac_try;;
29391esac
29392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029394 ac_status=$?
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; } &&
29397 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029398 { (case "(($ac_try" in
29399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29400 *) ac_try_echo=$ac_try;;
29401esac
29402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29403 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029404 ac_status=$?
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); }; }; then
29407 ac_cv_type_size_t=yes
29408else
29409 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029410sed 's/^/| /' conftest.$ac_ext >&5
29411
Reid Spencera773bd52006-08-04 18:18:08 +000029412 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029413fi
Reid Spencera773bd52006-08-04 18:18:08 +000029414
29415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029416fi
Reid Spencera773bd52006-08-04 18:18:08 +000029417{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29418echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029419if test $ac_cv_type_size_t = yes; then
29420 :
29421else
29422
29423cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029424#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029425_ACEOF
29426
29427fi
29428
Reid Spencera773bd52006-08-04 18:18:08 +000029429{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29430echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029431if test "${ac_cv_type_signal+set}" = set; then
29432 echo $ECHO_N "(cached) $ECHO_C" >&6
29433else
29434 cat >conftest.$ac_ext <<_ACEOF
29435/* confdefs.h. */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h. */
29440#include <sys/types.h>
29441#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029442
29443int
29444main ()
29445{
Reid Spencera773bd52006-08-04 18:18:08 +000029446return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029452if { (ac_try="$ac_compile"
29453case "(($ac_try" in
29454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455 *) ac_try_echo=$ac_try;;
29456esac
29457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029459 ac_status=$?
29460 grep -v '^ *+' conftest.er1 >conftest.err
29461 rm -f conftest.er1
29462 cat conftest.err >&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29466 { (case "(($ac_try" in
29467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29468 *) ac_try_echo=$ac_try;;
29469esac
29470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29471 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029472 ac_status=$?
29473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474 (exit $ac_status); }; } &&
29475 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029476 { (case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29479esac
29480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029482 ac_status=$?
29483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29484 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029485 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029486else
29487 echo "$as_me: failed program was:" >&5
29488sed 's/^/| /' conftest.$ac_ext >&5
29489
Reid Spencera773bd52006-08-04 18:18:08 +000029490 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029491fi
Reid Spencera773bd52006-08-04 18:18:08 +000029492
29493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029494fi
Reid Spencera773bd52006-08-04 18:18:08 +000029495{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29496echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029497
29498cat >>confdefs.h <<_ACEOF
29499#define RETSIGTYPE $ac_cv_type_signal
29500_ACEOF
29501
29502
Reid Spencera773bd52006-08-04 18:18:08 +000029503{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29504echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029505if test "${ac_cv_struct_tm+set}" = set; then
29506 echo $ECHO_N "(cached) $ECHO_C" >&6
29507else
29508 cat >conftest.$ac_ext <<_ACEOF
29509/* confdefs.h. */
29510_ACEOF
29511cat confdefs.h >>conftest.$ac_ext
29512cat >>conftest.$ac_ext <<_ACEOF
29513/* end confdefs.h. */
29514#include <sys/types.h>
29515#include <time.h>
29516
29517int
29518main ()
29519{
29520struct tm *tp; tp->tm_sec;
29521 ;
29522 return 0;
29523}
29524_ACEOF
29525rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029526if { (ac_try="$ac_compile"
29527case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29530esac
29531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029533 ac_status=$?
29534 grep -v '^ *+' conftest.er1 >conftest.err
29535 rm -f conftest.er1
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29540 { (case "(($ac_try" in
29541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29542 *) ac_try_echo=$ac_try;;
29543esac
29544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29545 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029546 ac_status=$?
29547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); }; } &&
29549 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029550 { (case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29553esac
29554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_struct_tm=time.h
29560else
29561 echo "$as_me: failed program was:" >&5
29562sed 's/^/| /' conftest.$ac_ext >&5
29563
Reid Spencera773bd52006-08-04 18:18:08 +000029564 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029565fi
Reid Spencera773bd52006-08-04 18:18:08 +000029566
29567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029568fi
Reid Spencera773bd52006-08-04 18:18:08 +000029569{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29570echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029571if test $ac_cv_struct_tm = sys/time.h; then
29572
29573cat >>confdefs.h <<\_ACEOF
29574#define TM_IN_SYS_TIME 1
29575_ACEOF
29576
29577fi
29578
Reid Spencera773bd52006-08-04 18:18:08 +000029579{ echo "$as_me:$LINENO: checking for int64_t" >&5
29580echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029581if test "${ac_cv_type_int64_t+set}" = set; then
29582 echo $ECHO_N "(cached) $ECHO_C" >&6
29583else
29584 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029585/* confdefs.h. */
29586_ACEOF
29587cat confdefs.h >>conftest.$ac_ext
29588cat >>conftest.$ac_ext <<_ACEOF
29589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029590$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029591typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029592int
29593main ()
29594{
Reid Spencera773bd52006-08-04 18:18:08 +000029595if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029596 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029597if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029598 return 0;
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029604if { (ac_try="$ac_compile"
29605case "(($ac_try" in
29606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29607 *) ac_try_echo=$ac_try;;
29608esac
29609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29610 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029612 grep -v '^ *+' conftest.er1 >conftest.err
29613 rm -f conftest.er1
29614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29616 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29618 { (case "(($ac_try" in
29619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29620 *) ac_try_echo=$ac_try;;
29621esac
29622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29623 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029624 ac_status=$?
29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); }; } &&
29627 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029628 { (case "(($ac_try" in
29629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29630 *) ac_try_echo=$ac_try;;
29631esac
29632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29633 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029634 ac_status=$?
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 ac_cv_type_int64_t=yes
29638else
29639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029640sed 's/^/| /' conftest.$ac_ext >&5
29641
Reid Spencera773bd52006-08-04 18:18:08 +000029642 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029643fi
Reid Spencera773bd52006-08-04 18:18:08 +000029644
29645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029646fi
Reid Spencera773bd52006-08-04 18:18:08 +000029647{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29648echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029649if test $ac_cv_type_int64_t = yes; then
29650
29651cat >>confdefs.h <<_ACEOF
29652#define HAVE_INT64_T 1
29653_ACEOF
29654
29655
29656else
29657 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29658echo "$as_me: error: Type int64_t required but not found" >&2;}
29659 { (exit 1); exit 1; }; }
29660fi
29661
Reid Spencera773bd52006-08-04 18:18:08 +000029662{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29663echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029664if test "${ac_cv_type_uint64_t+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29666else
29667 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029668/* confdefs.h. */
29669_ACEOF
29670cat confdefs.h >>conftest.$ac_ext
29671cat >>conftest.$ac_ext <<_ACEOF
29672/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029673$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029674typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029675int
29676main ()
29677{
Reid Spencera773bd52006-08-04 18:18:08 +000029678if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029679 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029680if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029681 return 0;
29682 ;
29683 return 0;
29684}
29685_ACEOF
29686rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029687if { (ac_try="$ac_compile"
29688case "(($ac_try" in
29689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690 *) ac_try_echo=$ac_try;;
29691esac
29692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029695 grep -v '^ *+' conftest.er1 >conftest.err
29696 rm -f conftest.er1
29697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29699 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29701 { (case "(($ac_try" in
29702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29703 *) ac_try_echo=$ac_try;;
29704esac
29705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29706 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; } &&
29710 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029711 { (case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29714esac
29715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029717 ac_status=$?
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); }; }; then
29720 ac_cv_type_uint64_t=yes
29721else
29722 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029723sed 's/^/| /' conftest.$ac_ext >&5
29724
Reid Spencera773bd52006-08-04 18:18:08 +000029725 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029726fi
Reid Spencera773bd52006-08-04 18:18:08 +000029727
29728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029729fi
Reid Spencera773bd52006-08-04 18:18:08 +000029730{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29731echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029732if test $ac_cv_type_uint64_t = yes; then
29733
29734cat >>confdefs.h <<_ACEOF
29735#define HAVE_UINT64_T 1
29736_ACEOF
29737
29738
29739else
Reid Spencera773bd52006-08-04 18:18:08 +000029740 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29741echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029742if test "${ac_cv_type_u_int64_t+set}" = set; then
29743 echo $ECHO_N "(cached) $ECHO_C" >&6
29744else
29745 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029746/* confdefs.h. */
29747_ACEOF
29748cat confdefs.h >>conftest.$ac_ext
29749cat >>conftest.$ac_ext <<_ACEOF
29750/* end confdefs.h. */
29751$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029752typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029753int
29754main ()
29755{
Reid Spencera773bd52006-08-04 18:18:08 +000029756if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029757 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029758if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029759 return 0;
29760 ;
29761 return 0;
29762}
29763_ACEOF
29764rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029765if { (ac_try="$ac_compile"
29766case "(($ac_try" in
29767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29768 *) ac_try_echo=$ac_try;;
29769esac
29770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29771 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029772 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029773 grep -v '^ *+' conftest.er1 >conftest.err
29774 rm -f conftest.er1
29775 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29779 { (case "(($ac_try" in
29780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781 *) ac_try_echo=$ac_try;;
29782esac
29783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29784 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029785 ac_status=$?
29786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29787 (exit $ac_status); }; } &&
29788 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029789 { (case "(($ac_try" in
29790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791 *) ac_try_echo=$ac_try;;
29792esac
29793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029795 ac_status=$?
29796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29797 (exit $ac_status); }; }; then
29798 ac_cv_type_u_int64_t=yes
29799else
29800 echo "$as_me: failed program was:" >&5
29801sed 's/^/| /' conftest.$ac_ext >&5
29802
Reid Spencera773bd52006-08-04 18:18:08 +000029803 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029804fi
Reid Spencera773bd52006-08-04 18:18:08 +000029805
29806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029807fi
Reid Spencera773bd52006-08-04 18:18:08 +000029808{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29809echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029810if test $ac_cv_type_u_int64_t = yes; then
29811
29812cat >>confdefs.h <<_ACEOF
29813#define HAVE_U_INT64_T 1
29814_ACEOF
29815
29816
Misha Brukmanceca9042004-09-02 23:02:30 +000029817else
29818 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29819echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29820 { (exit 1); exit 1; }; }
29821fi
29822
John Criswell679ff312004-09-02 18:44:44 +000029823fi
29824
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029825
29826
29827
29828
29829
29830
29831
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029832
29833
Reid Spencerdf3be822006-01-23 08:15:53 +000029834for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029835do
29836as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029837{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29838echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29839if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029840 echo $ECHO_N "(cached) $ECHO_C" >&6
29841else
29842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029843/* confdefs.h. */
29844_ACEOF
29845cat confdefs.h >>conftest.$ac_ext
29846cat >>conftest.$ac_ext <<_ACEOF
29847/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029848/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29850#define $ac_func innocuous_$ac_func
29851
29852/* System header to define __stub macros and hopefully few prototypes,
29853 which can conflict with char $ac_func (); below.
29854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29855 <limits.h> exists even on freestanding compilers. */
29856
29857#ifdef __STDC__
29858# include <limits.h>
29859#else
29860# include <assert.h>
29861#endif
29862
29863#undef $ac_func
29864
Reid Spencera773bd52006-08-04 18:18:08 +000029865/* Override any GCC internal prototype to avoid an error.
29866 Use char because int might match the return type of a GCC
29867 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029868#ifdef __cplusplus
29869extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029870#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029871char $ac_func ();
29872/* The GNU C library defines this for functions which it implements
29873 to always fail with ENOSYS. Some functions are actually named
29874 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029875#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029876choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029877#endif
John Criswell7a73b802003-06-30 21:59:07 +000029878
John Criswell7a73b802003-06-30 21:59:07 +000029879int
29880main ()
29881{
Reid Spencera773bd52006-08-04 18:18:08 +000029882return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029883 ;
29884 return 0;
29885}
29886_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029887rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029888if { (ac_try="$ac_link"
29889case "(($ac_try" in
29890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29891 *) ac_try_echo=$ac_try;;
29892esac
29893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29894 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29902 { (case "(($ac_try" in
29903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29904 *) ac_try_echo=$ac_try;;
29905esac
29906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29907 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029908 ac_status=$?
29909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29910 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029911 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029912 { (case "(($ac_try" in
29913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29914 *) ac_try_echo=$ac_try;;
29915esac
29916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29917 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029918 ac_status=$?
29919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29920 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029921 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029922else
29923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029924sed 's/^/| /' conftest.$ac_ext >&5
29925
Reid Spencera773bd52006-08-04 18:18:08 +000029926 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029927fi
Reid Spencera773bd52006-08-04 18:18:08 +000029928
29929rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029930 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029931fi
Reid Spencera773bd52006-08-04 18:18:08 +000029932ac_res=`eval echo '${'$as_ac_var'}'`
29933 { echo "$as_me:$LINENO: result: $ac_res" >&5
29934echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029935if test `eval echo '${'$as_ac_var'}'` = yes; then
29936 cat >>confdefs.h <<_ACEOF
29937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029938_ACEOF
29939
29940fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029941done
John Criswell7a73b802003-06-30 21:59:07 +000029942
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029943
29944
29945
Reid Spencer6af3d262004-12-15 04:01:48 +000029946
29947
Reid Spencer59473af2004-12-25 07:31:29 +000029948
Reid Spencerdf3be822006-01-23 08:15:53 +000029949for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29950do
29951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029955 echo $ECHO_N "(cached) $ECHO_C" >&6
29956else
29957 cat >conftest.$ac_ext <<_ACEOF
29958/* confdefs.h. */
29959_ACEOF
29960cat confdefs.h >>conftest.$ac_ext
29961cat >>conftest.$ac_ext <<_ACEOF
29962/* end confdefs.h. */
29963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29965#define $ac_func innocuous_$ac_func
29966
29967/* System header to define __stub macros and hopefully few prototypes,
29968 which can conflict with char $ac_func (); below.
29969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29970 <limits.h> exists even on freestanding compilers. */
29971
29972#ifdef __STDC__
29973# include <limits.h>
29974#else
29975# include <assert.h>
29976#endif
29977
29978#undef $ac_func
29979
Reid Spencera773bd52006-08-04 18:18:08 +000029980/* Override any GCC internal prototype to avoid an error.
29981 Use char because int might match the return type of a GCC
29982 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029983#ifdef __cplusplus
29984extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000029985#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000029986char $ac_func ();
29987/* The GNU C library defines this for functions which it implements
29988 to always fail with ENOSYS. Some functions are actually named
29989 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029990#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000029991choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000029992#endif
29993
29994int
29995main ()
29996{
Reid Spencera773bd52006-08-04 18:18:08 +000029997return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000029998 ;
29999 return 0;
30000}
30001_ACEOF
30002rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030003if { (ac_try="$ac_link"
30004case "(($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_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030010 ac_status=$?
30011 grep -v '^ *+' conftest.er1 >conftest.err
30012 rm -f conftest.er1
30013 cat conftest.err >&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30017 { (case "(($ac_try" in
30018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30019 *) ac_try_echo=$ac_try;;
30020esac
30021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30022 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030023 ac_status=$?
30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30025 (exit $ac_status); }; } &&
30026 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030027 { (case "(($ac_try" in
30028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30029 *) ac_try_echo=$ac_try;;
30030esac
30031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30032 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; }; then
30036 eval "$as_ac_var=yes"
30037else
30038 echo "$as_me: failed program was:" >&5
30039sed 's/^/| /' conftest.$ac_ext >&5
30040
Reid Spencera773bd52006-08-04 18:18:08 +000030041 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030042fi
Reid Spencera773bd52006-08-04 18:18:08 +000030043
30044rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030045 conftest$ac_exeext conftest.$ac_ext
30046fi
Reid Spencera773bd52006-08-04 18:18:08 +000030047ac_res=`eval echo '${'$as_ac_var'}'`
30048 { echo "$as_me:$LINENO: result: $ac_res" >&5
30049echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030050if test `eval echo '${'$as_ac_var'}'` = yes; then
30051 cat >>confdefs.h <<_ACEOF
30052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30053_ACEOF
30054
30055fi
30056done
30057
30058
30059
30060
30061
30062
30063
30064
30065for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030066do
30067as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030068{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30069echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30070if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030071 echo $ECHO_N "(cached) $ECHO_C" >&6
30072else
30073 cat >conftest.$ac_ext <<_ACEOF
30074/* confdefs.h. */
30075_ACEOF
30076cat confdefs.h >>conftest.$ac_ext
30077cat >>conftest.$ac_ext <<_ACEOF
30078/* end confdefs.h. */
30079/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30081#define $ac_func innocuous_$ac_func
30082
30083/* System header to define __stub macros and hopefully few prototypes,
30084 which can conflict with char $ac_func (); below.
30085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30086 <limits.h> exists even on freestanding compilers. */
30087
30088#ifdef __STDC__
30089# include <limits.h>
30090#else
30091# include <assert.h>
30092#endif
30093
30094#undef $ac_func
30095
Reid Spencera773bd52006-08-04 18:18:08 +000030096/* Override any GCC internal prototype to avoid an error.
30097 Use char because int might match the return type of a GCC
30098 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030099#ifdef __cplusplus
30100extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030101#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030102char $ac_func ();
30103/* The GNU C library defines this for functions which it implements
30104 to always fail with ENOSYS. Some functions are actually named
30105 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030106#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030107choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030108#endif
30109
30110int
30111main ()
30112{
Reid Spencera773bd52006-08-04 18:18:08 +000030113return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030114 ;
30115 return 0;
30116}
30117_ACEOF
30118rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030119if { (ac_try="$ac_link"
30120case "(($ac_try" in
30121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122 *) ac_try_echo=$ac_try;;
30123esac
30124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030126 ac_status=$?
30127 grep -v '^ *+' conftest.er1 >conftest.err
30128 rm -f conftest.er1
30129 cat conftest.err >&5
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30133 { (case "(($ac_try" in
30134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30135 *) ac_try_echo=$ac_try;;
30136esac
30137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30138 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030139 ac_status=$?
30140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30141 (exit $ac_status); }; } &&
30142 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030143 { (case "(($ac_try" in
30144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30145 *) ac_try_echo=$ac_try;;
30146esac
30147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30148 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030149 ac_status=$?
30150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30151 (exit $ac_status); }; }; then
30152 eval "$as_ac_var=yes"
30153else
30154 echo "$as_me: failed program was:" >&5
30155sed 's/^/| /' conftest.$ac_ext >&5
30156
Reid Spencera773bd52006-08-04 18:18:08 +000030157 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030158fi
Reid Spencera773bd52006-08-04 18:18:08 +000030159
30160rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030161 conftest$ac_exeext conftest.$ac_ext
30162fi
Reid Spencera773bd52006-08-04 18:18:08 +000030163ac_res=`eval echo '${'$as_ac_var'}'`
30164 { echo "$as_me:$LINENO: result: $ac_res" >&5
30165echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030166if test `eval echo '${'$as_ac_var'}'` = yes; then
30167 cat >>confdefs.h <<_ACEOF
30168#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169_ACEOF
30170
30171fi
30172done
30173
30174
Reid Spencerba46ca32004-12-31 05:49:15 +000030175
30176
Chris Lattner0b142592005-11-14 06:57:34 +000030177
Chris Lattner511f11d2005-11-14 07:25:50 +000030178for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030179do
30180as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030181{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30182echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30183if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030184 echo $ECHO_N "(cached) $ECHO_C" >&6
30185else
30186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030187/* confdefs.h. */
30188_ACEOF
30189cat confdefs.h >>conftest.$ac_ext
30190cat >>conftest.$ac_ext <<_ACEOF
30191/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030192/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30194#define $ac_func innocuous_$ac_func
30195
30196/* System header to define __stub macros and hopefully few prototypes,
30197 which can conflict with char $ac_func (); below.
30198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30199 <limits.h> exists even on freestanding compilers. */
30200
30201#ifdef __STDC__
30202# include <limits.h>
30203#else
30204# include <assert.h>
30205#endif
30206
30207#undef $ac_func
30208
Reid Spencera773bd52006-08-04 18:18:08 +000030209/* Override any GCC internal prototype to avoid an error.
30210 Use char because int might match the return type of a GCC
30211 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030212#ifdef __cplusplus
30213extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030214#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030215char $ac_func ();
30216/* The GNU C library defines this for functions which it implements
30217 to always fail with ENOSYS. Some functions are actually named
30218 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030219#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030220choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030221#endif
John Criswell7a73b802003-06-30 21:59:07 +000030222
John Criswell7a73b802003-06-30 21:59:07 +000030223int
30224main ()
30225{
Reid Spencera773bd52006-08-04 18:18:08 +000030226return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030227 ;
30228 return 0;
30229}
30230_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030231rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030232if { (ac_try="$ac_link"
30233case "(($ac_try" in
30234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235 *) ac_try_echo=$ac_try;;
30236esac
30237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030239 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030240 grep -v '^ *+' conftest.er1 >conftest.err
30241 rm -f conftest.er1
30242 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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
Reid Spencer2706f8c2004-09-19 23:53:36 +000030252 ac_status=$?
30253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030255 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030256 { (case "(($ac_try" in
30257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258 *) ac_try_echo=$ac_try;;
30259esac
30260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030262 ac_status=$?
30263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30264 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030265 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030266else
30267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030268sed 's/^/| /' conftest.$ac_ext >&5
30269
Reid Spencera773bd52006-08-04 18:18:08 +000030270 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030271fi
Reid Spencera773bd52006-08-04 18:18:08 +000030272
30273rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030274 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030275fi
Reid Spencera773bd52006-08-04 18:18:08 +000030276ac_res=`eval echo '${'$as_ac_var'}'`
30277 { echo "$as_me:$LINENO: result: $ac_res" >&5
30278echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030279if test `eval echo '${'$as_ac_var'}'` = yes; then
30280 cat >>confdefs.h <<_ACEOF
30281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030282_ACEOF
30283
30284fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030285done
John Criswell7a73b802003-06-30 21:59:07 +000030286
Reid Spencercdb08a32006-06-05 16:11:07 +000030287
30288
30289
30290
30291
30292
30293for ac_func in _setjmp _longjmp setjmp longjmp sigsetjmp siglongjmp
30294do
30295as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030296{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30297echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30298if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030299 echo $ECHO_N "(cached) $ECHO_C" >&6
30300else
30301 cat >conftest.$ac_ext <<_ACEOF
30302/* confdefs.h. */
30303_ACEOF
30304cat confdefs.h >>conftest.$ac_ext
30305cat >>conftest.$ac_ext <<_ACEOF
30306/* end confdefs.h. */
30307/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30309#define $ac_func innocuous_$ac_func
30310
30311/* System header to define __stub macros and hopefully few prototypes,
30312 which can conflict with char $ac_func (); below.
30313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30314 <limits.h> exists even on freestanding compilers. */
30315
30316#ifdef __STDC__
30317# include <limits.h>
30318#else
30319# include <assert.h>
30320#endif
30321
30322#undef $ac_func
30323
Reid Spencera773bd52006-08-04 18:18:08 +000030324/* Override any GCC internal prototype to avoid an error.
30325 Use char because int might match the return type of a GCC
30326 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030327#ifdef __cplusplus
30328extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030329#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030330char $ac_func ();
30331/* The GNU C library defines this for functions which it implements
30332 to always fail with ENOSYS. Some functions are actually named
30333 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030334#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030335choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030336#endif
30337
30338int
30339main ()
30340{
Reid Spencera773bd52006-08-04 18:18:08 +000030341return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030342 ;
30343 return 0;
30344}
30345_ACEOF
30346rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030347if { (ac_try="$ac_link"
30348case "(($ac_try" in
30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30350 *) ac_try_echo=$ac_try;;
30351esac
30352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30353 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030354 ac_status=$?
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30361 { (case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30364esac
30365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030367 ac_status=$?
30368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30369 (exit $ac_status); }; } &&
30370 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030371 { (case "(($ac_try" in
30372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30373 *) ac_try_echo=$ac_try;;
30374esac
30375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30376 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030377 ac_status=$?
30378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 (exit $ac_status); }; }; then
30380 eval "$as_ac_var=yes"
30381else
30382 echo "$as_me: failed program was:" >&5
30383sed 's/^/| /' conftest.$ac_ext >&5
30384
Reid Spencera773bd52006-08-04 18:18:08 +000030385 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030386fi
Reid Spencera773bd52006-08-04 18:18:08 +000030387
30388rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030389 conftest$ac_exeext conftest.$ac_ext
30390fi
Reid Spencera773bd52006-08-04 18:18:08 +000030391ac_res=`eval echo '${'$as_ac_var'}'`
30392 { echo "$as_me:$LINENO: result: $ac_res" >&5
30393echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030394if test `eval echo '${'$as_ac_var'}'` = yes; then
30395 cat >>confdefs.h <<_ACEOF
30396#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30397_ACEOF
30398
30399fi
30400done
30401
Reid Spencera773bd52006-08-04 18:18:08 +000030402{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30403echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030404if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030405 echo $ECHO_N "(cached) $ECHO_C" >&6
30406else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030407 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030408ac_cpp='$CPP $CPPFLAGS'
30409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30411ac_compiler_gnu=$ac_cv_c_compiler_gnu
30412
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030413 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030414 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030415else
30416 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030417
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030418 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030419_ACEOF
30420cat confdefs.h >>conftest.$ac_ext
30421cat >>conftest.$ac_ext <<_ACEOF
30422/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030423
John Criswella0137d32003-10-13 16:22:01 +000030424#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030425#include <stdlib.h>
30426
John Criswella0137d32003-10-13 16:22:01 +000030427int
30428main ()
30429{
30430
Reid Spencer2706f8c2004-09-19 23:53:36 +000030431volatile double A, B;
30432char Buffer[100];
30433A = 1;
30434A /= 10.0;
30435sprintf(Buffer, "%a", A);
30436B = atof(Buffer);
30437if (A != B)
30438 return (1);
30439if (A != 0x1.999999999999ap-4)
30440 return (1);
30441return (0);
John Criswella0137d32003-10-13 16:22:01 +000030442 ;
30443 return 0;
30444}
30445_ACEOF
30446rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030447if { (ac_try="$ac_link"
30448case "(($ac_try" in
30449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30450 *) ac_try_echo=$ac_try;;
30451esac
30452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30453 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030454 ac_status=$?
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030457 { (case "(($ac_try" in
30458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30459 *) ac_try_echo=$ac_try;;
30460esac
30461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30462 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030463 ac_status=$?
30464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30465 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030466 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030467else
30468 echo "$as_me: program exited with status $ac_status" >&5
30469echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030473llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030474fi
Reid Spencera773bd52006-08-04 18:18:08 +000030475rm -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 +000030476fi
Reid Spencera773bd52006-08-04 18:18:08 +000030477
30478
Reid Spencer2706f8c2004-09-19 23:53:36 +000030479 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030480ac_cpp='$CPP $CPPFLAGS'
30481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30483ac_compiler_gnu=$ac_cv_c_compiler_gnu
30484
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030485fi
Reid Spencera773bd52006-08-04 18:18:08 +000030486{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30487echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030488 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030489
30490cat >>confdefs.h <<\_ACEOF
30491#define HAVE_PRINTF_A 1
30492_ACEOF
30493
Reid Spencer2706f8c2004-09-19 23:53:36 +000030494 fi
John Criswella0137d32003-10-13 16:22:01 +000030495
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030496# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30497# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030498{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30499echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030500if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030501 echo $ECHO_N "(cached) $ECHO_C" >&6
30502else
John Criswell0021c312004-02-13 21:57:29 +000030503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030509#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030510int
30511main ()
30512{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030513char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030514 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030515 ;
30516 return 0;
30517}
30518_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030519rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030520if { (ac_try="$ac_link"
30521case "(($ac_try" in
30522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523 *) ac_try_echo=$ac_try;;
30524esac
30525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030527 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030528 grep -v '^ *+' conftest.er1 >conftest.err
30529 rm -f conftest.er1
30530 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30534 { (case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030540 ac_status=$?
30541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30542 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030543 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030544 { (case "(($ac_try" in
30545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30546 *) ac_try_echo=$ac_try;;
30547esac
30548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30549 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030550 ac_status=$?
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030553 ac_cv_working_alloca_h=yes
30554else
30555 echo "$as_me: failed program was:" >&5
30556sed 's/^/| /' conftest.$ac_ext >&5
30557
Reid Spencera773bd52006-08-04 18:18:08 +000030558 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030559fi
Reid Spencera773bd52006-08-04 18:18:08 +000030560
30561rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030562 conftest$ac_exeext conftest.$ac_ext
30563fi
Reid Spencera773bd52006-08-04 18:18:08 +000030564{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30565echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566if test $ac_cv_working_alloca_h = yes; then
30567
30568cat >>confdefs.h <<\_ACEOF
30569#define HAVE_ALLOCA_H 1
30570_ACEOF
30571
30572fi
30573
Reid Spencera773bd52006-08-04 18:18:08 +000030574{ echo "$as_me:$LINENO: checking for alloca" >&5
30575echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030576if test "${ac_cv_func_alloca_works+set}" = set; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30578else
30579 cat >conftest.$ac_ext <<_ACEOF
30580/* confdefs.h. */
30581_ACEOF
30582cat confdefs.h >>conftest.$ac_ext
30583cat >>conftest.$ac_ext <<_ACEOF
30584/* end confdefs.h. */
30585#ifdef __GNUC__
30586# define alloca __builtin_alloca
30587#else
30588# ifdef _MSC_VER
30589# include <malloc.h>
30590# define alloca _alloca
30591# else
30592# if HAVE_ALLOCA_H
30593# include <alloca.h>
30594# else
30595# ifdef _AIX
30596 #pragma alloca
30597# else
30598# ifndef alloca /* predefined by HP cc +Olibcalls */
30599char *alloca ();
30600# endif
30601# endif
30602# endif
30603# endif
30604#endif
30605
30606int
30607main ()
30608{
30609char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030610 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030611 ;
30612 return 0;
30613}
30614_ACEOF
30615rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030616if { (ac_try="$ac_link"
30617case "(($ac_try" in
30618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30619 *) ac_try_echo=$ac_try;;
30620esac
30621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30622 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030623 ac_status=$?
30624 grep -v '^ *+' conftest.er1 >conftest.err
30625 rm -f conftest.er1
30626 cat conftest.err >&5
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30630 { (case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; } &&
30639 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030640 { (case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30643esac
30644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; }; then
30649 ac_cv_func_alloca_works=yes
30650else
30651 echo "$as_me: failed program was:" >&5
30652sed 's/^/| /' conftest.$ac_ext >&5
30653
Reid Spencera773bd52006-08-04 18:18:08 +000030654 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030655fi
Reid Spencera773bd52006-08-04 18:18:08 +000030656
30657rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030658 conftest$ac_exeext conftest.$ac_ext
30659fi
Reid Spencera773bd52006-08-04 18:18:08 +000030660{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30661echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030662
30663if test $ac_cv_func_alloca_works = yes; then
30664
30665cat >>confdefs.h <<\_ACEOF
30666#define HAVE_ALLOCA 1
30667_ACEOF
30668
30669else
30670 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30671# that cause trouble. Some versions do not even contain alloca or
30672# contain a buggy version. If you still want to use their alloca,
30673# use ar to extract alloca.o from them instead of compiling alloca.c.
30674
Reid Spencera773bd52006-08-04 18:18:08 +000030675ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676
30677cat >>confdefs.h <<\_ACEOF
30678#define C_ALLOCA 1
30679_ACEOF
30680
30681
Reid Spencera773bd52006-08-04 18:18:08 +000030682{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30683echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030684if test "${ac_cv_os_cray+set}" = set; then
30685 echo $ECHO_N "(cached) $ECHO_C" >&6
30686else
30687 cat >conftest.$ac_ext <<_ACEOF
30688/* confdefs.h. */
30689_ACEOF
30690cat confdefs.h >>conftest.$ac_ext
30691cat >>conftest.$ac_ext <<_ACEOF
30692/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030693#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030694webecray
30695#else
30696wenotbecray
30697#endif
30698
30699_ACEOF
30700if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30701 $EGREP "webecray" >/dev/null 2>&1; then
30702 ac_cv_os_cray=yes
30703else
30704 ac_cv_os_cray=no
30705fi
30706rm -f conftest*
30707
30708fi
Reid Spencera773bd52006-08-04 18:18:08 +000030709{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30710echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711if test $ac_cv_os_cray = yes; then
30712 for ac_func in _getb67 GETB67 getb67; do
30713 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030714{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30716if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717 echo $ECHO_N "(cached) $ECHO_C" >&6
30718else
30719 cat >conftest.$ac_ext <<_ACEOF
30720/* confdefs.h. */
30721_ACEOF
30722cat confdefs.h >>conftest.$ac_ext
30723cat >>conftest.$ac_ext <<_ACEOF
30724/* end confdefs.h. */
30725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30727#define $ac_func innocuous_$ac_func
30728
30729/* System header to define __stub macros and hopefully few prototypes,
30730 which can conflict with char $ac_func (); below.
30731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30732 <limits.h> exists even on freestanding compilers. */
30733
30734#ifdef __STDC__
30735# include <limits.h>
30736#else
30737# include <assert.h>
30738#endif
30739
30740#undef $ac_func
30741
Reid Spencera773bd52006-08-04 18:18:08 +000030742/* Override any GCC internal prototype to avoid an error.
30743 Use char because int might match the return type of a GCC
30744 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030745#ifdef __cplusplus
30746extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030747#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030748char $ac_func ();
30749/* The GNU C library defines this for functions which it implements
30750 to always fail with ENOSYS. Some functions are actually named
30751 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030752#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030753choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030754#endif
30755
30756int
30757main ()
30758{
Reid Spencera773bd52006-08-04 18:18:08 +000030759return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030760 ;
30761 return 0;
30762}
30763_ACEOF
30764rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030765if { (ac_try="$ac_link"
30766case "(($ac_try" in
30767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30768 *) ac_try_echo=$ac_try;;
30769esac
30770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30771 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030772 ac_status=$?
30773 grep -v '^ *+' conftest.er1 >conftest.err
30774 rm -f conftest.er1
30775 cat conftest.err >&5
30776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30779 { (case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30782esac
30783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785 ac_status=$?
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); }; } &&
30788 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030789 { (case "(($ac_try" in
30790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30791 *) ac_try_echo=$ac_try;;
30792esac
30793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30794 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030795 ac_status=$?
30796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30797 (exit $ac_status); }; }; then
30798 eval "$as_ac_var=yes"
30799else
30800 echo "$as_me: failed program was:" >&5
30801sed 's/^/| /' conftest.$ac_ext >&5
30802
Reid Spencera773bd52006-08-04 18:18:08 +000030803 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030804fi
Reid Spencera773bd52006-08-04 18:18:08 +000030805
30806rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030807 conftest$ac_exeext conftest.$ac_ext
30808fi
Reid Spencera773bd52006-08-04 18:18:08 +000030809ac_res=`eval echo '${'$as_ac_var'}'`
30810 { echo "$as_me:$LINENO: result: $ac_res" >&5
30811echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030812if test `eval echo '${'$as_ac_var'}'` = yes; then
30813
30814cat >>confdefs.h <<_ACEOF
30815#define CRAY_STACKSEG_END $ac_func
30816_ACEOF
30817
30818 break
30819fi
30820
30821 done
30822fi
30823
Reid Spencera773bd52006-08-04 18:18:08 +000030824{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30825echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030826if test "${ac_cv_c_stack_direction+set}" = set; then
30827 echo $ECHO_N "(cached) $ECHO_C" >&6
30828else
30829 if test "$cross_compiling" = yes; then
30830 ac_cv_c_stack_direction=0
30831else
30832 cat >conftest.$ac_ext <<_ACEOF
30833/* confdefs.h. */
30834_ACEOF
30835cat confdefs.h >>conftest.$ac_ext
30836cat >>conftest.$ac_ext <<_ACEOF
30837/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030838$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030839int
30840find_stack_direction ()
30841{
30842 static char *addr = 0;
30843 auto char dummy;
30844 if (addr == 0)
30845 {
30846 addr = &dummy;
30847 return find_stack_direction ();
30848 }
John Criswell0021c312004-02-13 21:57:29 +000030849 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030850 return (&dummy > addr) ? 1 : -1;
30851}
John Criswell0021c312004-02-13 21:57:29 +000030852
John Criswell0021c312004-02-13 21:57:29 +000030853int
30854main ()
30855{
Reid Spencera773bd52006-08-04 18:18:08 +000030856 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030857}
30858_ACEOF
30859rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030860if { (ac_try="$ac_link"
30861case "(($ac_try" in
30862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30863 *) ac_try_echo=$ac_try;;
30864esac
30865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30866 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030867 ac_status=$?
30868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030870 { (case "(($ac_try" in
30871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30872 *) ac_try_echo=$ac_try;;
30873esac
30874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30875 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030879 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030880else
30881 echo "$as_me: program exited with status $ac_status" >&5
30882echo "$as_me: failed program was:" >&5
30883sed 's/^/| /' conftest.$ac_ext >&5
30884
30885( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030886ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030887fi
Reid Spencera773bd52006-08-04 18:18:08 +000030888rm -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 +000030889fi
Reid Spencera773bd52006-08-04 18:18:08 +000030890
30891
John Criswell0021c312004-02-13 21:57:29 +000030892fi
Reid Spencera773bd52006-08-04 18:18:08 +000030893{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30894echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030895
30896cat >>confdefs.h <<_ACEOF
30897#define STACK_DIRECTION $ac_cv_c_stack_direction
30898_ACEOF
30899
30900
John Criswell0021c312004-02-13 21:57:29 +000030901fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030902
30903
Reid Spencera773bd52006-08-04 18:18:08 +000030904{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30905echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030906if test "${ac_cv_func_rand48+set}" = set; then
30907 echo $ECHO_N "(cached) $ECHO_C" >&6
30908else
Reid Spencera773bd52006-08-04 18:18:08 +000030909 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030910ac_cpp='$CXXCPP $CPPFLAGS'
30911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30914
30915 cat >conftest.$ac_ext <<_ACEOF
30916/* confdefs.h. */
30917_ACEOF
30918cat confdefs.h >>conftest.$ac_ext
30919cat >>conftest.$ac_ext <<_ACEOF
30920/* end confdefs.h. */
30921#include <stdlib.h>
30922int
30923main ()
30924{
30925srand48(0);lrand48();drand48();
30926 ;
30927 return 0;
30928}
30929_ACEOF
30930rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030931if { (ac_try="$ac_compile"
30932case "(($ac_try" in
30933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30934 *) ac_try_echo=$ac_try;;
30935esac
30936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30937 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030938 ac_status=$?
30939 grep -v '^ *+' conftest.er1 >conftest.err
30940 rm -f conftest.er1
30941 cat conftest.err >&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30945 { (case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30948esac
30949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030955 { (case "(($ac_try" in
30956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957 *) ac_try_echo=$ac_try;;
30958esac
30959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 ac_cv_func_rand48=yes
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
Reid Spencera773bd52006-08-04 18:18:08 +000030969 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030970fi
Reid Spencera773bd52006-08-04 18:18:08 +000030971
30972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030973 ac_ext=c
30974ac_cpp='$CPP $CPPFLAGS'
30975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30977ac_compiler_gnu=$ac_cv_c_compiler_gnu
30978
30979fi
Reid Spencera773bd52006-08-04 18:18:08 +000030980{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30981echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030982
30983if test "$ac_cv_func_rand48" = "yes" ; then
30984
30985cat >>confdefs.h <<\_ACEOF
30986#define HAVE_RAND48 1
30987_ACEOF
30988
30989fi
John Criswell0021c312004-02-13 21:57:29 +000030990
30991
Reid Spencera773bd52006-08-04 18:18:08 +000030992{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
30993echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000030994if test "${ac_cv_cxx_namespaces+set}" = set; then
30995 echo $ECHO_N "(cached) $ECHO_C" >&6
30996else
Reid Spencera773bd52006-08-04 18:18:08 +000030997 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000030998ac_cpp='$CXXCPP $CPPFLAGS'
30999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31002
31003 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031004/* confdefs.h. */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031009namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031010int
31011main ()
31012{
31013using namespace Outer::Inner; return i;
31014 ;
31015 return 0;
31016}
31017_ACEOF
31018rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031019if { (ac_try="$ac_compile"
31020case "(($ac_try" in
31021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31022 *) ac_try_echo=$ac_try;;
31023esac
31024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31025 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031027 grep -v '^ *+' conftest.er1 >conftest.err
31028 rm -f conftest.er1
31029 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31033 { (case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31036esac
31037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031039 ac_status=$?
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; } &&
31042 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031043 { (case "(($ac_try" in
31044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31045 *) ac_try_echo=$ac_try;;
31046esac
31047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31048 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031049 ac_status=$?
31050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31051 (exit $ac_status); }; }; then
31052 ac_cv_cxx_namespaces=yes
31053else
31054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031055sed 's/^/| /' conftest.$ac_ext >&5
31056
Reid Spencera773bd52006-08-04 18:18:08 +000031057 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031058fi
Reid Spencera773bd52006-08-04 18:18:08 +000031059
31060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031061 ac_ext=c
31062ac_cpp='$CPP $CPPFLAGS'
31063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065ac_compiler_gnu=$ac_cv_c_compiler_gnu
31066
31067
31068fi
Reid Spencera773bd52006-08-04 18:18:08 +000031069{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31070echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031071if test "$ac_cv_cxx_namespaces" = yes; then
31072
31073cat >>confdefs.h <<\_ACEOF
31074#define HAVE_NAMESPACES
31075_ACEOF
31076
31077fi
31078
Reid Spencera773bd52006-08-04 18:18:08 +000031079{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31080echo $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 +000031081if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031082 echo $ECHO_N "(cached) $ECHO_C" >&6
31083else
31084
Reid Spencera773bd52006-08-04 18:18:08 +000031085 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031086ac_cpp='$CXXCPP $CPPFLAGS'
31087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31090
31091 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031092/* confdefs.h. */
31093_ACEOF
31094cat confdefs.h >>conftest.$ac_ext
31095cat >>conftest.$ac_ext <<_ACEOF
31096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031097#include <ext/hash_map>
31098#ifdef HAVE_NAMESPACES
31099using namespace std;
31100#endif
John Criswell7a73b802003-06-30 21:59:07 +000031101int
31102main ()
31103{
Brian Gaeke90583492003-11-10 03:06:28 +000031104hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031105 ;
31106 return 0;
31107}
31108_ACEOF
31109rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031110if { (ac_try="$ac_compile"
31111case "(($ac_try" in
31112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31113 *) ac_try_echo=$ac_try;;
31114esac
31115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31116 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031117 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31124 { (case "(($ac_try" in
31125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126 *) ac_try_echo=$ac_try;;
31127esac
31128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031130 ac_status=$?
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); }; } &&
31133 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031134 { (case "(($ac_try" in
31135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136 *) ac_try_echo=$ac_try;;
31137esac
31138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031140 ac_status=$?
31141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31142 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031143 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031144else
31145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031146sed 's/^/| /' conftest.$ac_ext >&5
31147
Reid Spencera773bd52006-08-04 18:18:08 +000031148 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031149fi
Reid Spencera773bd52006-08-04 18:18:08 +000031150
31151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031152 ac_ext=c
31153ac_cpp='$CPP $CPPFLAGS'
31154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31156ac_compiler_gnu=$ac_cv_c_compiler_gnu
31157
John Criswell7a73b802003-06-30 21:59:07 +000031158fi
Reid Spencera773bd52006-08-04 18:18:08 +000031159{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31160echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031161 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31162 then
John Criswell9f011862004-09-24 18:28:00 +000031163
31164cat >>confdefs.h <<\_ACEOF
31165#define HAVE_STD_EXT_HASH_MAP 1
31166_ACEOF
31167
31168 else
31169
31170cat >>confdefs.h <<\_ACEOF
31171#define HAVE_STD_EXT_HASH_MAP 0
31172_ACEOF
31173
Brian Gaeke90583492003-11-10 03:06:28 +000031174 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031175
Reid Spencera773bd52006-08-04 18:18:08 +000031176 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31177echo $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 +000031178if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31179 echo $ECHO_N "(cached) $ECHO_C" >&6
31180else
31181
Reid Spencera773bd52006-08-04 18:18:08 +000031182 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031183ac_cpp='$CXXCPP $CPPFLAGS'
31184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31187
31188 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031189/* confdefs.h. */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h. */
31194#include <ext/hash_map>
31195#ifdef HAVE_NAMESPACES
31196using namespace __gnu_cxx;
31197#endif
31198int
31199main ()
31200{
31201hash_map<int,int> t;
31202 ;
31203 return 0;
31204}
31205_ACEOF
31206rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031207if { (ac_try="$ac_compile"
31208case "(($ac_try" in
31209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31210 *) ac_try_echo=$ac_try;;
31211esac
31212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31213 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031215 grep -v '^ *+' conftest.er1 >conftest.err
31216 rm -f conftest.er1
31217 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031220 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31221 { (case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031227 ac_status=$?
31228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31229 (exit $ac_status); }; } &&
31230 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031231 { (case "(($ac_try" in
31232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233 *) ac_try_echo=$ac_try;;
31234esac
31235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031237 ac_status=$?
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); }; }; then
31240 ac_cv_cxx_have_gnu_ext_hash_map=yes
31241else
31242 echo "$as_me: failed program was:" >&5
31243sed 's/^/| /' conftest.$ac_ext >&5
31244
Reid Spencera773bd52006-08-04 18:18:08 +000031245 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031246fi
Reid Spencera773bd52006-08-04 18:18:08 +000031247
31248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031249 ac_ext=c
31250ac_cpp='$CPP $CPPFLAGS'
31251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31253ac_compiler_gnu=$ac_cv_c_compiler_gnu
31254
31255fi
Reid Spencera773bd52006-08-04 18:18:08 +000031256{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31257echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031258 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31259 then
John Criswell9f011862004-09-24 18:28:00 +000031260
31261cat >>confdefs.h <<\_ACEOF
31262#define HAVE_GNU_EXT_HASH_MAP 1
31263_ACEOF
31264
31265 else
31266
31267cat >>confdefs.h <<\_ACEOF
31268#define HAVE_GNU_EXT_HASH_MAP 0
31269_ACEOF
31270
Brian Gaeke90583492003-11-10 03:06:28 +000031271 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031272
Reid Spencera773bd52006-08-04 18:18:08 +000031273 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31274echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031275if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31276 echo $ECHO_N "(cached) $ECHO_C" >&6
31277else
John Criswell7a73b802003-06-30 21:59:07 +000031278
Reid Spencera773bd52006-08-04 18:18:08 +000031279 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031280ac_cpp='$CXXCPP $CPPFLAGS'
31281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31284
31285 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031286/* confdefs.h. */
31287_ACEOF
31288cat confdefs.h >>conftest.$ac_ext
31289cat >>conftest.$ac_ext <<_ACEOF
31290/* end confdefs.h. */
31291#include <hash_map>
31292int
31293main ()
31294{
31295hash_map<int,int> t;
31296 ;
31297 return 0;
31298}
31299_ACEOF
31300rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031301if { (ac_try="$ac_compile"
31302case "(($ac_try" in
31303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31304 *) ac_try_echo=$ac_try;;
31305esac
31306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31307 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031308 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031309 grep -v '^ *+' conftest.er1 >conftest.err
31310 rm -f conftest.er1
31311 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31313 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31315 { (case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31318esac
31319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031321 ac_status=$?
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); }; } &&
31324 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031325 { (case "(($ac_try" in
31326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31327 *) ac_try_echo=$ac_try;;
31328esac
31329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31330 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031331 ac_status=$?
31332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31333 (exit $ac_status); }; }; then
31334 ac_cv_cxx_have_global_hash_map=yes
31335else
31336 echo "$as_me: failed program was:" >&5
31337sed 's/^/| /' conftest.$ac_ext >&5
31338
Reid Spencera773bd52006-08-04 18:18:08 +000031339 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031340fi
Reid Spencera773bd52006-08-04 18:18:08 +000031341
31342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031343 ac_ext=c
31344ac_cpp='$CPP $CPPFLAGS'
31345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31347ac_compiler_gnu=$ac_cv_c_compiler_gnu
31348
31349fi
Reid Spencera773bd52006-08-04 18:18:08 +000031350{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31351echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031352 if test "$ac_cv_cxx_have_global_hash_map" = yes
31353 then
John Criswell9f011862004-09-24 18:28:00 +000031354
31355cat >>confdefs.h <<\_ACEOF
31356#define HAVE_GLOBAL_HASH_MAP 1
31357_ACEOF
31358
31359 else
31360
31361cat >>confdefs.h <<\_ACEOF
31362#define HAVE_GLOBAL_HASH_MAP 0
31363_ACEOF
31364
Brian Gaeke90583492003-11-10 03:06:28 +000031365 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031366
Reid Spencera773bd52006-08-04 18:18:08 +000031367{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31368echo $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 +000031369if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031370 echo $ECHO_N "(cached) $ECHO_C" >&6
31371else
31372
Reid Spencera773bd52006-08-04 18:18:08 +000031373 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031374ac_cpp='$CXXCPP $CPPFLAGS'
31375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31378
31379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031380/* confdefs.h. */
31381_ACEOF
31382cat confdefs.h >>conftest.$ac_ext
31383cat >>conftest.$ac_ext <<_ACEOF
31384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031385#include <ext/hash_set>
31386#ifdef HAVE_NAMESPACES
31387using namespace std;
31388#endif
John Criswell7a73b802003-06-30 21:59:07 +000031389int
31390main ()
31391{
Brian Gaeke90583492003-11-10 03:06:28 +000031392hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031393 ;
31394 return 0;
31395}
31396_ACEOF
31397rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031398if { (ac_try="$ac_compile"
31399case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31402esac
31403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031405 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031406 grep -v '^ *+' conftest.er1 >conftest.err
31407 rm -f conftest.er1
31408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31412 { (case "(($ac_try" in
31413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414 *) ac_try_echo=$ac_try;;
31415esac
31416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031418 ac_status=$?
31419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420 (exit $ac_status); }; } &&
31421 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031422 { (case "(($ac_try" in
31423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31424 *) ac_try_echo=$ac_try;;
31425esac
31426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31427 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031431 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031432else
31433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031434sed 's/^/| /' conftest.$ac_ext >&5
31435
Reid Spencera773bd52006-08-04 18:18:08 +000031436 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031437fi
Reid Spencera773bd52006-08-04 18:18:08 +000031438
31439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031440 ac_ext=c
31441ac_cpp='$CPP $CPPFLAGS'
31442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31444ac_compiler_gnu=$ac_cv_c_compiler_gnu
31445
31446fi
Reid Spencera773bd52006-08-04 18:18:08 +000031447{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31448echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031449 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31450 then
John Criswell9f011862004-09-24 18:28:00 +000031451
31452cat >>confdefs.h <<\_ACEOF
31453#define HAVE_STD_EXT_HASH_SET 1
31454_ACEOF
31455
31456 else
31457
31458cat >>confdefs.h <<\_ACEOF
31459#define HAVE_STD_EXT_HASH_SET 0
31460_ACEOF
31461
Brian Gaeke90583492003-11-10 03:06:28 +000031462 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031463
Reid Spencera773bd52006-08-04 18:18:08 +000031464 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31465echo $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 +000031466if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31467 echo $ECHO_N "(cached) $ECHO_C" >&6
31468else
31469
Reid Spencera773bd52006-08-04 18:18:08 +000031470 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031471ac_cpp='$CXXCPP $CPPFLAGS'
31472ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31473ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31474ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31475
John Criswell7a73b802003-06-30 21:59:07 +000031476 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031477/* confdefs.h. */
31478_ACEOF
31479cat confdefs.h >>conftest.$ac_ext
31480cat >>conftest.$ac_ext <<_ACEOF
31481/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031482#include <ext/hash_set>
31483#ifdef HAVE_NAMESPACES
31484using namespace __gnu_cxx;
31485#endif
John Criswell7a73b802003-06-30 21:59:07 +000031486int
31487main ()
31488{
Brian Gaeke90583492003-11-10 03:06:28 +000031489hash_set<int> t;
31490 ;
31491 return 0;
31492}
31493_ACEOF
31494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031495if { (ac_try="$ac_compile"
31496case "(($ac_try" in
31497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31498 *) ac_try_echo=$ac_try;;
31499esac
31500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31501 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031503 grep -v '^ *+' conftest.er1 >conftest.err
31504 rm -f conftest.er1
31505 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31509 { (case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031515 ac_status=$?
31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517 (exit $ac_status); }; } &&
31518 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031519 { (case "(($ac_try" in
31520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31521 *) ac_try_echo=$ac_try;;
31522esac
31523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31524 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031525 ac_status=$?
31526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31527 (exit $ac_status); }; }; then
31528 ac_cv_cxx_have_gnu_ext_hash_set=yes
31529else
31530 echo "$as_me: failed program was:" >&5
31531sed 's/^/| /' conftest.$ac_ext >&5
31532
Reid Spencera773bd52006-08-04 18:18:08 +000031533 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031534fi
Reid Spencera773bd52006-08-04 18:18:08 +000031535
31536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031537 ac_ext=c
31538ac_cpp='$CPP $CPPFLAGS'
31539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31541ac_compiler_gnu=$ac_cv_c_compiler_gnu
31542
31543fi
Reid Spencera773bd52006-08-04 18:18:08 +000031544{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31545echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031546 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31547 then
John Criswell9f011862004-09-24 18:28:00 +000031548
31549cat >>confdefs.h <<\_ACEOF
31550#define HAVE_GNU_EXT_HASH_SET 1
31551_ACEOF
31552
31553 else
31554
31555cat >>confdefs.h <<\_ACEOF
31556#define HAVE_GNU_EXT_HASH_SET 0
31557_ACEOF
31558
Brian Gaeke90583492003-11-10 03:06:28 +000031559 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031560
Reid Spencera773bd52006-08-04 18:18:08 +000031561 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31562echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031563if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31564 echo $ECHO_N "(cached) $ECHO_C" >&6
31565else
31566
Reid Spencera773bd52006-08-04 18:18:08 +000031567 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031568ac_cpp='$CXXCPP $CPPFLAGS'
31569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31572
31573 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031574/* confdefs.h. */
31575_ACEOF
31576cat confdefs.h >>conftest.$ac_ext
31577cat >>conftest.$ac_ext <<_ACEOF
31578/* end confdefs.h. */
31579#include <hash_set>
31580int
31581main ()
31582{
John Criswell7a73b802003-06-30 21:59:07 +000031583hash_set<int> t; return 0;
31584 ;
31585 return 0;
31586}
31587_ACEOF
31588rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031589if { (ac_try="$ac_compile"
31590case "(($ac_try" in
31591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31592 *) ac_try_echo=$ac_try;;
31593esac
31594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31595 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031597 grep -v '^ *+' conftest.er1 >conftest.err
31598 rm -f conftest.er1
31599 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31603 { (case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031609 ac_status=$?
31610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31611 (exit $ac_status); }; } &&
31612 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031613 { (case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31616esac
31617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31618 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031619 ac_status=$?
31620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31621 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031622 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031623else
31624 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031625sed 's/^/| /' conftest.$ac_ext >&5
31626
Reid Spencera773bd52006-08-04 18:18:08 +000031627 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031628fi
Reid Spencera773bd52006-08-04 18:18:08 +000031629
31630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031631 ac_ext=c
31632ac_cpp='$CPP $CPPFLAGS'
31633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31635ac_compiler_gnu=$ac_cv_c_compiler_gnu
31636
John Criswell7a73b802003-06-30 21:59:07 +000031637fi
Reid Spencera773bd52006-08-04 18:18:08 +000031638{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31639echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031640 if test "$ac_cv_cxx_have_global_hash_set" = yes
31641 then
John Criswell9f011862004-09-24 18:28:00 +000031642
31643cat >>confdefs.h <<\_ACEOF
31644#define HAVE_GLOBAL_HASH_SET 1
31645_ACEOF
31646
31647 else
31648
31649cat >>confdefs.h <<\_ACEOF
31650#define HAVE_GLOBAL_HASH_SET 0
31651_ACEOF
31652
Brian Gaeke90583492003-11-10 03:06:28 +000031653 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031654
Reid Spencera773bd52006-08-04 18:18:08 +000031655{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31656echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031657if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31658 echo $ECHO_N "(cached) $ECHO_C" >&6
31659else
31660
Reid Spencera773bd52006-08-04 18:18:08 +000031661 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031662ac_cpp='$CXXCPP $CPPFLAGS'
31663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31666
31667 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031668/* confdefs.h. */
31669_ACEOF
31670cat confdefs.h >>conftest.$ac_ext
31671cat >>conftest.$ac_ext <<_ACEOF
31672/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031673#include <iterator>
31674#ifdef HAVE_NAMESPACES
31675using namespace std;
31676#endif
John Criswell7a73b802003-06-30 21:59:07 +000031677int
31678main ()
31679{
31680iterator<int,int,int> t; return 0;
31681 ;
31682 return 0;
31683}
31684_ACEOF
31685rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031686if { (ac_try="$ac_compile"
31687case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31690esac
31691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031693 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031694 grep -v '^ *+' conftest.er1 >conftest.err
31695 rm -f conftest.er1
31696 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031699 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31700 { (case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703esac
31704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031710 { (case "(($ac_try" in
31711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31712 *) ac_try_echo=$ac_try;;
31713esac
31714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31715 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031716 ac_status=$?
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); }; }; then
31719 ac_cv_cxx_have_std_iterator=yes
31720else
31721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031722sed 's/^/| /' conftest.$ac_ext >&5
31723
Reid Spencera773bd52006-08-04 18:18:08 +000031724 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031725fi
Reid Spencera773bd52006-08-04 18:18:08 +000031726
31727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031728 ac_ext=c
31729ac_cpp='$CPP $CPPFLAGS'
31730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31732ac_compiler_gnu=$ac_cv_c_compiler_gnu
31733
31734
31735fi
Reid Spencera773bd52006-08-04 18:18:08 +000031736{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31737echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031738if test "$ac_cv_cxx_have_std_iterator" = yes
31739then
John Criswell40468462004-09-24 21:19:06 +000031740
31741cat >>confdefs.h <<\_ACEOF
31742#define HAVE_STD_ITERATOR 1
31743_ACEOF
31744
31745else
31746
31747cat >>confdefs.h <<\_ACEOF
31748#define HAVE_STD_ITERATOR 0
31749_ACEOF
31750
John Criswell7a73b802003-06-30 21:59:07 +000031751fi
31752
Reid Spencera773bd52006-08-04 18:18:08 +000031753{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31754echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031755if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31756 echo $ECHO_N "(cached) $ECHO_C" >&6
31757else
31758
Reid Spencera773bd52006-08-04 18:18:08 +000031759 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031760ac_cpp='$CXXCPP $CPPFLAGS'
31761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31764
31765 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031766/* confdefs.h. */
31767_ACEOF
31768cat confdefs.h >>conftest.$ac_ext
31769cat >>conftest.$ac_ext <<_ACEOF
31770/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031771#include <iterator>
31772#ifdef HAVE_NAMESPACES
31773using namespace std;
31774#endif
John Criswell7a73b802003-06-30 21:59:07 +000031775int
31776main ()
31777{
John Criswellc78022e2003-07-29 19:11:58 +000031778bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031779 ;
31780 return 0;
31781}
31782_ACEOF
31783rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031784if { (ac_try="$ac_compile"
31785case "(($ac_try" in
31786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31787 *) ac_try_echo=$ac_try;;
31788esac
31789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31790 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031791 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031792 grep -v '^ *+' conftest.er1 >conftest.err
31793 rm -f conftest.er1
31794 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31798 { (case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031804 ac_status=$?
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); }; } &&
31807 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031808 { (case "(($ac_try" in
31809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31810 *) ac_try_echo=$ac_try;;
31811esac
31812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31813 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031814 ac_status=$?
31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31816 (exit $ac_status); }; }; then
31817 ac_cv_cxx_have_bi_iterator=yes
31818else
31819 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031820sed 's/^/| /' conftest.$ac_ext >&5
31821
Reid Spencera773bd52006-08-04 18:18:08 +000031822 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031823fi
Reid Spencera773bd52006-08-04 18:18:08 +000031824
31825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031826 ac_ext=c
31827ac_cpp='$CPP $CPPFLAGS'
31828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31830ac_compiler_gnu=$ac_cv_c_compiler_gnu
31831
31832
31833fi
Reid Spencera773bd52006-08-04 18:18:08 +000031834{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31835echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031836if test "$ac_cv_cxx_have_bi_iterator" = yes
31837then
John Criswell40468462004-09-24 21:19:06 +000031838
31839cat >>confdefs.h <<\_ACEOF
31840#define HAVE_BI_ITERATOR 1
31841_ACEOF
31842
31843else
31844
31845cat >>confdefs.h <<\_ACEOF
31846#define HAVE_BI_ITERATOR 0
31847_ACEOF
31848
John Criswell7a73b802003-06-30 21:59:07 +000031849fi
31850
Reid Spencera773bd52006-08-04 18:18:08 +000031851{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31852echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031853if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31854 echo $ECHO_N "(cached) $ECHO_C" >&6
31855else
31856
Reid Spencera773bd52006-08-04 18:18:08 +000031857 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031858ac_cpp='$CXXCPP $CPPFLAGS'
31859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31862
31863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031864/* confdefs.h. */
31865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031869#include <iterator>
31870#ifdef HAVE_NAMESPACES
31871using namespace std;
31872#endif
John Criswell7a73b802003-06-30 21:59:07 +000031873int
31874main ()
31875{
John Criswellc78022e2003-07-29 19:11:58 +000031876forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031877 ;
31878 return 0;
31879}
31880_ACEOF
31881rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031882if { (ac_try="$ac_compile"
31883case "(($ac_try" in
31884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885 *) ac_try_echo=$ac_try;;
31886esac
31887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31888 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031890 grep -v '^ *+' conftest.er1 >conftest.err
31891 rm -f conftest.er1
31892 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31894 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031895 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31896 { (case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31899esac
31900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031902 ac_status=$?
31903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31904 (exit $ac_status); }; } &&
31905 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031906 { (case "(($ac_try" in
31907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908 *) ac_try_echo=$ac_try;;
31909esac
31910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031912 ac_status=$?
31913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31914 (exit $ac_status); }; }; then
31915 ac_cv_cxx_have_fwd_iterator=yes
31916else
31917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031918sed 's/^/| /' conftest.$ac_ext >&5
31919
Reid Spencera773bd52006-08-04 18:18:08 +000031920 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031921fi
Reid Spencera773bd52006-08-04 18:18:08 +000031922
31923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031924 ac_ext=c
31925ac_cpp='$CPP $CPPFLAGS'
31926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31928ac_compiler_gnu=$ac_cv_c_compiler_gnu
31929
31930
31931fi
Reid Spencera773bd52006-08-04 18:18:08 +000031932{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31933echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031934if test "$ac_cv_cxx_have_fwd_iterator" = yes
31935then
John Criswell40468462004-09-24 21:19:06 +000031936
31937cat >>confdefs.h <<\_ACEOF
31938#define HAVE_FWD_ITERATOR 1
31939_ACEOF
31940
31941else
31942
31943cat >>confdefs.h <<\_ACEOF
31944#define HAVE_FWD_ITERATOR 0
31945_ACEOF
31946
John Criswell7a73b802003-06-30 21:59:07 +000031947fi
31948
31949
Reid Spencera773bd52006-08-04 18:18:08 +000031950{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31951echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031952if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31953 echo $ECHO_N "(cached) $ECHO_C" >&6
31954else
Reid Spencera773bd52006-08-04 18:18:08 +000031955 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031956ac_cpp='$CXXCPP $CPPFLAGS'
31957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31960
Reid Spencerabec8f92004-10-27 23:03:44 +000031961 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031962/* confdefs.h. */
31963_ACEOF
31964cat confdefs.h >>conftest.$ac_ext
31965cat >>conftest.$ac_ext <<_ACEOF
31966/* end confdefs.h. */
31967#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031968int
31969main ()
31970{
31971float f; isnan(f);
31972 ;
31973 return 0;
31974}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031975_ACEOF
31976rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031977if { (ac_try="$ac_compile"
31978case "(($ac_try" in
31979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31980 *) ac_try_echo=$ac_try;;
31981esac
31982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31983 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031984 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031985 grep -v '^ *+' conftest.er1 >conftest.err
31986 rm -f conftest.er1
31987 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31991 { (case "(($ac_try" in
31992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993 *) ac_try_echo=$ac_try;;
31994esac
31995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031997 ac_status=$?
31998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31999 (exit $ac_status); }; } &&
32000 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032001 { (case "(($ac_try" in
32002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32003 *) ac_try_echo=$ac_try;;
32004esac
32005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32006 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032007 ac_status=$?
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); }; }; then
32010 ac_cv_func_isnan_in_math_h=yes
32011else
32012 echo "$as_me: failed program was:" >&5
32013sed 's/^/| /' conftest.$ac_ext >&5
32014
Reid Spencera773bd52006-08-04 18:18:08 +000032015 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032016fi
Reid Spencera773bd52006-08-04 18:18:08 +000032017
32018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032019 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032020ac_cpp='$CPP $CPPFLAGS'
32021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32023ac_compiler_gnu=$ac_cv_c_compiler_gnu
32024
32025fi
Reid Spencera773bd52006-08-04 18:18:08 +000032026{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32027echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032028
32029
32030if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032031
32032cat >>confdefs.h <<\_ACEOF
32033#define HAVE_ISNAN_IN_MATH_H 1
32034_ACEOF
32035
Reid Spencerabec8f92004-10-27 23:03:44 +000032036fi
32037
Reid Spencera773bd52006-08-04 18:18:08 +000032038{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32039echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032040if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32041 echo $ECHO_N "(cached) $ECHO_C" >&6
32042else
Reid Spencera773bd52006-08-04 18:18:08 +000032043 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032044ac_cpp='$CXXCPP $CPPFLAGS'
32045ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32046ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32047ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32048
Reid Spencerabec8f92004-10-27 23:03:44 +000032049 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032050/* confdefs.h. */
32051_ACEOF
32052cat confdefs.h >>conftest.$ac_ext
32053cat >>conftest.$ac_ext <<_ACEOF
32054/* end confdefs.h. */
32055#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032056int
32057main ()
32058{
32059float f; isnan(f);
32060 ;
32061 return 0;
32062}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032063_ACEOF
32064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032065if { (ac_try="$ac_compile"
32066case "(($ac_try" in
32067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32068 *) ac_try_echo=$ac_try;;
32069esac
32070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32071 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032073 grep -v '^ *+' conftest.er1 >conftest.err
32074 rm -f conftest.er1
32075 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32079 { (case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32082esac
32083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032085 ac_status=$?
32086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32087 (exit $ac_status); }; } &&
32088 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032089 { (case "(($ac_try" in
32090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32091 *) ac_try_echo=$ac_try;;
32092esac
32093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32094 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032095 ac_status=$?
32096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32097 (exit $ac_status); }; }; then
32098 ac_cv_func_isnan_in_cmath=yes
32099else
32100 echo "$as_me: failed program was:" >&5
32101sed 's/^/| /' conftest.$ac_ext >&5
32102
Reid Spencera773bd52006-08-04 18:18:08 +000032103 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032104fi
Reid Spencera773bd52006-08-04 18:18:08 +000032105
32106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032107 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032108ac_cpp='$CPP $CPPFLAGS'
32109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111ac_compiler_gnu=$ac_cv_c_compiler_gnu
32112
32113fi
Reid Spencera773bd52006-08-04 18:18:08 +000032114{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32115echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032116
32117if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032118
32119cat >>confdefs.h <<\_ACEOF
32120#define HAVE_ISNAN_IN_CMATH 1
32121_ACEOF
32122
Reid Spencerabec8f92004-10-27 23:03:44 +000032123fi
32124
Reid Spencera773bd52006-08-04 18:18:08 +000032125{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32126echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032127if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32129else
Reid Spencera773bd52006-08-04 18:18:08 +000032130 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032131ac_cpp='$CXXCPP $CPPFLAGS'
32132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32135
Reid Spencerabec8f92004-10-27 23:03:44 +000032136 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032137/* confdefs.h. */
32138_ACEOF
32139cat confdefs.h >>conftest.$ac_ext
32140cat >>conftest.$ac_ext <<_ACEOF
32141/* end confdefs.h. */
32142#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032143int
32144main ()
32145{
32146float f; std::isnan(f);
32147 ;
32148 return 0;
32149}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032150_ACEOF
32151rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032152if { (ac_try="$ac_compile"
32153case "(($ac_try" in
32154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155 *) ac_try_echo=$ac_try;;
32156esac
32157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032159 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032160 grep -v '^ *+' conftest.er1 >conftest.err
32161 rm -f conftest.er1
32162 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32164 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32166 { (case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32169esac
32170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032172 ac_status=$?
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); }; } &&
32175 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032176 { (case "(($ac_try" in
32177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32178 *) ac_try_echo=$ac_try;;
32179esac
32180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32181 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032182 ac_status=$?
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); }; }; then
32185 ac_cv_func_std_isnan_in_cmath=yes
32186else
32187 echo "$as_me: failed program was:" >&5
32188sed 's/^/| /' conftest.$ac_ext >&5
32189
Reid Spencera773bd52006-08-04 18:18:08 +000032190 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032191fi
Reid Spencera773bd52006-08-04 18:18:08 +000032192
32193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032194 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032195ac_cpp='$CPP $CPPFLAGS'
32196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32198ac_compiler_gnu=$ac_cv_c_compiler_gnu
32199
32200fi
Reid Spencera773bd52006-08-04 18:18:08 +000032201{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32202echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032203
32204if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032205
32206cat >>confdefs.h <<\_ACEOF
32207#define HAVE_STD_ISNAN_IN_CMATH 1
32208_ACEOF
32209
Reid Spencerabec8f92004-10-27 23:03:44 +000032210fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032211
32212
Reid Spencera773bd52006-08-04 18:18:08 +000032213{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32214echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032215if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32216 echo $ECHO_N "(cached) $ECHO_C" >&6
32217else
Reid Spencera773bd52006-08-04 18:18:08 +000032218 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032219ac_cpp='$CXXCPP $CPPFLAGS'
32220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32223
Reid Spencerabec8f92004-10-27 23:03:44 +000032224 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032225/* confdefs.h. */
32226_ACEOF
32227cat confdefs.h >>conftest.$ac_ext
32228cat >>conftest.$ac_ext <<_ACEOF
32229/* end confdefs.h. */
32230#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032231int
32232main ()
32233{
32234float f; isinf(f);
32235 ;
32236 return 0;
32237}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032238_ACEOF
32239rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032240if { (ac_try="$ac_compile"
32241case "(($ac_try" in
32242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32243 *) ac_try_echo=$ac_try;;
32244esac
32245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32246 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032248 grep -v '^ *+' conftest.er1 >conftest.err
32249 rm -f conftest.er1
32250 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32252 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032253 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32254 { (case "(($ac_try" in
32255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256 *) ac_try_echo=$ac_try;;
32257esac
32258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032260 ac_status=$?
32261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32262 (exit $ac_status); }; } &&
32263 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032264 { (case "(($ac_try" in
32265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32266 *) ac_try_echo=$ac_try;;
32267esac
32268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32269 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ac_cv_func_isinf_in_math_h=yes
32274else
32275 echo "$as_me: failed program was:" >&5
32276sed 's/^/| /' conftest.$ac_ext >&5
32277
Reid Spencera773bd52006-08-04 18:18:08 +000032278 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032279fi
Reid Spencera773bd52006-08-04 18:18:08 +000032280
32281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032282 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032283ac_cpp='$CPP $CPPFLAGS'
32284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32286ac_compiler_gnu=$ac_cv_c_compiler_gnu
32287
32288fi
Reid Spencera773bd52006-08-04 18:18:08 +000032289{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32290echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032291
32292if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032293
32294cat >>confdefs.h <<\_ACEOF
32295#define HAVE_ISINF_IN_MATH_H 1
32296_ACEOF
32297
Reid Spencerabec8f92004-10-27 23:03:44 +000032298fi
32299
Reid Spencera773bd52006-08-04 18:18:08 +000032300{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32301echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032302if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32303 echo $ECHO_N "(cached) $ECHO_C" >&6
32304else
Reid Spencera773bd52006-08-04 18:18:08 +000032305 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032306ac_cpp='$CXXCPP $CPPFLAGS'
32307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32310
Reid Spencerabec8f92004-10-27 23:03:44 +000032311 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032312/* confdefs.h. */
32313_ACEOF
32314cat confdefs.h >>conftest.$ac_ext
32315cat >>conftest.$ac_ext <<_ACEOF
32316/* end confdefs.h. */
32317#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032318int
32319main ()
32320{
32321float f; isinf(f);
32322 ;
32323 return 0;
32324}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032325_ACEOF
32326rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032327if { (ac_try="$ac_compile"
32328case "(($ac_try" in
32329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32330 *) ac_try_echo=$ac_try;;
32331esac
32332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32333 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032334 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032335 grep -v '^ *+' conftest.er1 >conftest.err
32336 rm -f conftest.er1
32337 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032340 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32341 { (case "(($ac_try" in
32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343 *) ac_try_echo=$ac_try;;
32344esac
32345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032347 ac_status=$?
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); }; } &&
32350 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032351 { (case "(($ac_try" in
32352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32353 *) ac_try_echo=$ac_try;;
32354esac
32355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32356 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; }; then
32360 ac_cv_func_isinf_in_cmath=yes
32361else
32362 echo "$as_me: failed program was:" >&5
32363sed 's/^/| /' conftest.$ac_ext >&5
32364
Reid Spencera773bd52006-08-04 18:18:08 +000032365 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032366fi
Reid Spencera773bd52006-08-04 18:18:08 +000032367
32368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032369 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032370ac_cpp='$CPP $CPPFLAGS'
32371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32373ac_compiler_gnu=$ac_cv_c_compiler_gnu
32374
32375fi
Reid Spencera773bd52006-08-04 18:18:08 +000032376{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32377echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032378
32379if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032380
32381cat >>confdefs.h <<\_ACEOF
32382#define HAVE_ISINF_IN_CMATH 1
32383_ACEOF
32384
Reid Spencerabec8f92004-10-27 23:03:44 +000032385fi
32386
Reid Spencera773bd52006-08-04 18:18:08 +000032387{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32388echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032389if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32391else
Reid Spencera773bd52006-08-04 18:18:08 +000032392 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032393ac_cpp='$CXXCPP $CPPFLAGS'
32394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32397
Reid Spencerabec8f92004-10-27 23:03:44 +000032398 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032399/* confdefs.h. */
32400_ACEOF
32401cat confdefs.h >>conftest.$ac_ext
32402cat >>conftest.$ac_ext <<_ACEOF
32403/* end confdefs.h. */
32404#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032405int
32406main ()
32407{
32408float f; std::isinf(f)}
32409 ;
32410 return 0;
32411}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032412_ACEOF
32413rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032414if { (ac_try="$ac_compile"
32415case "(($ac_try" in
32416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32417 *) ac_try_echo=$ac_try;;
32418esac
32419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32420 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032422 grep -v '^ *+' conftest.er1 >conftest.err
32423 rm -f conftest.er1
32424 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32428 { (case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32431esac
32432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032434 ac_status=$?
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); }; } &&
32437 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032438 { (case "(($ac_try" in
32439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32440 *) ac_try_echo=$ac_try;;
32441esac
32442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32443 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032444 ac_status=$?
32445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); }; }; then
32447 ac_cv_func_std_isinf_in_cmath=yes
32448else
32449 echo "$as_me: failed program was:" >&5
32450sed 's/^/| /' conftest.$ac_ext >&5
32451
Reid Spencera773bd52006-08-04 18:18:08 +000032452 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032453fi
Reid Spencera773bd52006-08-04 18:18:08 +000032454
32455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032456 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032457ac_cpp='$CPP $CPPFLAGS'
32458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32460ac_compiler_gnu=$ac_cv_c_compiler_gnu
32461
32462fi
Reid Spencera773bd52006-08-04 18:18:08 +000032463{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32464echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032465
32466if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032467
32468cat >>confdefs.h <<\_ACEOF
32469#define HAVE_STD_ISINF_IN_CMATH 1
32470_ACEOF
32471
Reid Spencerabec8f92004-10-27 23:03:44 +000032472fi
32473
Reid Spencera773bd52006-08-04 18:18:08 +000032474{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32475echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032476if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32477 echo $ECHO_N "(cached) $ECHO_C" >&6
32478else
Reid Spencera773bd52006-08-04 18:18:08 +000032479 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032480ac_cpp='$CXXCPP $CPPFLAGS'
32481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32484
Reid Spencerabec8f92004-10-27 23:03:44 +000032485 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032486/* confdefs.h. */
32487_ACEOF
32488cat confdefs.h >>conftest.$ac_ext
32489cat >>conftest.$ac_ext <<_ACEOF
32490/* end confdefs.h. */
32491#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032492int
32493main ()
32494{
32495float f; finite(f);
32496 ;
32497 return 0;
32498}
Brian Gaeked59a6472004-07-21 03:33:58 +000032499_ACEOF
32500rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032501if { (ac_try="$ac_compile"
32502case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032508 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032509 grep -v '^ *+' conftest.er1 >conftest.err
32510 rm -f conftest.er1
32511 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32513 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32515 { (case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032521 ac_status=$?
32522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32523 (exit $ac_status); }; } &&
32524 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032525 { (case "(($ac_try" in
32526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32527 *) ac_try_echo=$ac_try;;
32528esac
32529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32530 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }; then
32534 ac_cv_func_finite_in_ieeefp_h=yes
32535else
32536 echo "$as_me: failed program was:" >&5
32537sed 's/^/| /' conftest.$ac_ext >&5
32538
Reid Spencera773bd52006-08-04 18:18:08 +000032539 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032540fi
Reid Spencera773bd52006-08-04 18:18:08 +000032541
32542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032543 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032544ac_cpp='$CPP $CPPFLAGS'
32545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32547ac_compiler_gnu=$ac_cv_c_compiler_gnu
32548
32549fi
Reid Spencera773bd52006-08-04 18:18:08 +000032550{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32551echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032552
Brian Gaeke6802b552004-10-28 05:06:45 +000032553if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032554
32555cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032556#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032557_ACEOF
32558
Reid Spencerabec8f92004-10-27 23:03:44 +000032559fi
32560
32561
32562
John Criswell7a73b802003-06-30 21:59:07 +000032563
32564
32565for ac_header in stdlib.h unistd.h
32566do
32567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32571if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032572 echo $ECHO_N "(cached) $ECHO_C" >&6
32573fi
Reid Spencera773bd52006-08-04 18:18:08 +000032574ac_res=`eval echo '${'$as_ac_Header'}'`
32575 { echo "$as_me:$LINENO: result: $ac_res" >&5
32576echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032577else
32578 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032579{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032581cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032582/* confdefs.h. */
32583_ACEOF
32584cat confdefs.h >>conftest.$ac_ext
32585cat >>conftest.$ac_ext <<_ACEOF
32586/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032587$ac_includes_default
32588#include <$ac_header>
32589_ACEOF
32590rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032591if { (ac_try="$ac_compile"
32592case "(($ac_try" in
32593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32594 *) ac_try_echo=$ac_try;;
32595esac
32596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32597 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032598 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032599 grep -v '^ *+' conftest.er1 >conftest.err
32600 rm -f conftest.er1
32601 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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
Reid Spencer2706f8c2004-09-19 23:53:36 +000032611 ac_status=$?
32612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32613 (exit $ac_status); }; } &&
32614 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032615 { (case "(($ac_try" in
32616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32617 *) ac_try_echo=$ac_try;;
32618esac
32619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32620 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032621 ac_status=$?
32622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32623 (exit $ac_status); }; }; then
32624 ac_header_compiler=yes
32625else
32626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032627sed 's/^/| /' conftest.$ac_ext >&5
32628
Reid Spencera773bd52006-08-04 18:18:08 +000032629 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032630fi
Reid Spencera773bd52006-08-04 18:18:08 +000032631
32632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32634echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032635
32636# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032637{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032639cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032640/* confdefs.h. */
32641_ACEOF
32642cat confdefs.h >>conftest.$ac_ext
32643cat >>conftest.$ac_ext <<_ACEOF
32644/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032645#include <$ac_header>
32646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032647if { (ac_try="$ac_cpp conftest.$ac_ext"
32648case "(($ac_try" in
32649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650 *) ac_try_echo=$ac_try;;
32651esac
32652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032654 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032655 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032656 rm -f conftest.er1
32657 cat conftest.err >&5
32658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32659 (exit $ac_status); } >/dev/null; then
32660 if test -s conftest.err; then
32661 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032663 else
32664 ac_cpp_err=
32665 fi
32666else
32667 ac_cpp_err=yes
32668fi
32669if test -z "$ac_cpp_err"; then
32670 ac_header_preproc=yes
32671else
32672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032673sed 's/^/| /' conftest.$ac_ext >&5
32674
John Criswell7a73b802003-06-30 21:59:07 +000032675 ac_header_preproc=no
32676fi
Reid Spencera773bd52006-08-04 18:18:08 +000032677
John Criswell7a73b802003-06-30 21:59:07 +000032678rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032679{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32680echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032681
32682# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32684 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32686echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32688echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32689 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032690 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032691 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032692 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32693echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032694 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32695echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32696 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32697echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32698 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32699echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32701echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032702 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32703echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032704 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032705## ----------------------------------- ##
32706## Report this to llvmbugs@cs.uiuc.edu ##
32707## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032708_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032709 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032710 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032711esac
Reid Spencera773bd52006-08-04 18:18:08 +000032712{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32713echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032715 echo $ECHO_N "(cached) $ECHO_C" >&6
32716else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032717 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032718fi
Reid Spencera773bd52006-08-04 18:18:08 +000032719ac_res=`eval echo '${'$as_ac_Header'}'`
32720 { echo "$as_me:$LINENO: result: $ac_res" >&5
32721echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032722
32723fi
32724if test `eval echo '${'$as_ac_Header'}'` = yes; then
32725 cat >>confdefs.h <<_ACEOF
32726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32727_ACEOF
32728
32729fi
32730
32731done
32732
32733
32734for ac_func in getpagesize
32735do
32736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032737{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32739if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032740 echo $ECHO_N "(cached) $ECHO_C" >&6
32741else
32742 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032743/* confdefs.h. */
32744_ACEOF
32745cat confdefs.h >>conftest.$ac_ext
32746cat >>conftest.$ac_ext <<_ACEOF
32747/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32750#define $ac_func innocuous_$ac_func
32751
John Criswell7a73b802003-06-30 21:59:07 +000032752/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032753 which can conflict with char $ac_func (); below.
32754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32755 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032756
John Criswell0c38eaf2003-09-10 15:17:25 +000032757#ifdef __STDC__
32758# include <limits.h>
32759#else
32760# include <assert.h>
32761#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032762
32763#undef $ac_func
32764
Reid Spencera773bd52006-08-04 18:18:08 +000032765/* Override any GCC internal prototype to avoid an error.
32766 Use char because int might match the return type of a GCC
32767 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032768#ifdef __cplusplus
32769extern "C"
32770#endif
John Criswell7a73b802003-06-30 21:59:07 +000032771char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032772/* The GNU C library defines this for functions which it implements
32773 to always fail with ENOSYS. Some functions are actually named
32774 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032775#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032776choke me
John Criswell7a73b802003-06-30 21:59:07 +000032777#endif
32778
John Criswell0c38eaf2003-09-10 15:17:25 +000032779int
32780main ()
32781{
Reid Spencera773bd52006-08-04 18:18:08 +000032782return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032783 ;
32784 return 0;
32785}
32786_ACEOF
32787rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032788if { (ac_try="$ac_link"
32789case "(($ac_try" in
32790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32791 *) ac_try_echo=$ac_try;;
32792esac
32793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32794 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032795 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032796 grep -v '^ *+' conftest.er1 >conftest.err
32797 rm -f conftest.er1
32798 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32802 { (case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032808 ac_status=$?
32809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32810 (exit $ac_status); }; } &&
32811 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032812 { (case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32815esac
32816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032818 ac_status=$?
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); }; }; then
32821 eval "$as_ac_var=yes"
32822else
32823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032824sed 's/^/| /' conftest.$ac_ext >&5
32825
Reid Spencera773bd52006-08-04 18:18:08 +000032826 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032827fi
Reid Spencera773bd52006-08-04 18:18:08 +000032828
32829rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032830 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032831fi
Reid Spencera773bd52006-08-04 18:18:08 +000032832ac_res=`eval echo '${'$as_ac_var'}'`
32833 { echo "$as_me:$LINENO: result: $ac_res" >&5
32834echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032835if test `eval echo '${'$as_ac_var'}'` = yes; then
32836 cat >>confdefs.h <<_ACEOF
32837#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32838_ACEOF
32839
32840fi
32841done
32842
Reid Spencera773bd52006-08-04 18:18:08 +000032843{ echo "$as_me:$LINENO: checking for working mmap" >&5
32844echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032845if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32846 echo $ECHO_N "(cached) $ECHO_C" >&6
32847else
32848 if test "$cross_compiling" = yes; then
32849 ac_cv_func_mmap_fixed_mapped=no
32850else
32851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032852/* confdefs.h. */
32853_ACEOF
32854cat confdefs.h >>conftest.$ac_ext
32855cat >>conftest.$ac_ext <<_ACEOF
32856/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032857$ac_includes_default
32858/* malloc might have been renamed as rpl_malloc. */
32859#undef malloc
32860
32861/* Thanks to Mike Haertel and Jim Avera for this test.
32862 Here is a matrix of mmap possibilities:
32863 mmap private not fixed
32864 mmap private fixed at somewhere currently unmapped
32865 mmap private fixed at somewhere already mapped
32866 mmap shared not fixed
32867 mmap shared fixed at somewhere currently unmapped
32868 mmap shared fixed at somewhere already mapped
32869 For private mappings, we should verify that changes cannot be read()
32870 back from the file, nor mmap's back from the file at a different
32871 address. (There have been systems where private was not correctly
32872 implemented like the infamous i386 svr4.0, and systems where the
32873 VM page cache was not coherent with the file system buffer cache
32874 like early versions of FreeBSD and possibly contemporary NetBSD.)
32875 For shared mappings, we should conversely verify that changes get
32876 propagated back to all the places they're supposed to be.
32877
32878 Grep wants private fixed already mapped.
32879 The main things grep needs to know about mmap are:
32880 * does it exist and is it safe to write into the mmap'd area
32881 * how to use it (BSD variants) */
32882
32883#include <fcntl.h>
32884#include <sys/mman.h>
32885
32886#if !STDC_HEADERS && !HAVE_STDLIB_H
32887char *malloc ();
32888#endif
32889
32890/* This mess was copied from the GNU getpagesize.h. */
32891#if !HAVE_GETPAGESIZE
32892/* Assume that all systems that can run configure have sys/param.h. */
32893# if !HAVE_SYS_PARAM_H
32894# define HAVE_SYS_PARAM_H 1
32895# endif
32896
32897# ifdef _SC_PAGESIZE
32898# define getpagesize() sysconf(_SC_PAGESIZE)
32899# else /* no _SC_PAGESIZE */
32900# if HAVE_SYS_PARAM_H
32901# include <sys/param.h>
32902# ifdef EXEC_PAGESIZE
32903# define getpagesize() EXEC_PAGESIZE
32904# else /* no EXEC_PAGESIZE */
32905# ifdef NBPG
32906# define getpagesize() NBPG * CLSIZE
32907# ifndef CLSIZE
32908# define CLSIZE 1
32909# endif /* no CLSIZE */
32910# else /* no NBPG */
32911# ifdef NBPC
32912# define getpagesize() NBPC
32913# else /* no NBPC */
32914# ifdef PAGESIZE
32915# define getpagesize() PAGESIZE
32916# endif /* PAGESIZE */
32917# endif /* no NBPC */
32918# endif /* no NBPG */
32919# endif /* no EXEC_PAGESIZE */
32920# else /* no HAVE_SYS_PARAM_H */
32921# define getpagesize() 8192 /* punt totally */
32922# endif /* no HAVE_SYS_PARAM_H */
32923# endif /* no _SC_PAGESIZE */
32924
32925#endif /* no HAVE_GETPAGESIZE */
32926
32927int
32928main ()
32929{
32930 char *data, *data2, *data3;
32931 int i, pagesize;
32932 int fd;
32933
32934 pagesize = getpagesize ();
32935
32936 /* First, make a file with some known garbage in it. */
32937 data = (char *) malloc (pagesize);
32938 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032939 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032940 for (i = 0; i < pagesize; ++i)
32941 *(data + i) = rand ();
32942 umask (0);
32943 fd = creat ("conftest.mmap", 0600);
32944 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032945 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032946 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032947 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032948 close (fd);
32949
32950 /* Next, try to mmap the file at a fixed address which already has
32951 something else allocated at it. If we can, also make sure that
32952 we see the same garbage. */
32953 fd = open ("conftest.mmap", O_RDWR);
32954 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032955 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032956 data2 = (char *) malloc (2 * pagesize);
32957 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032958 return 1;
32959 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032960 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032961 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032962 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032963 for (i = 0; i < pagesize; ++i)
32964 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032965 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032966
32967 /* Finally, make sure that changes to the mapped area do not
32968 percolate back to the file as seen by read(). (This is a bug on
32969 some variants of i386 svr4.0.) */
32970 for (i = 0; i < pagesize; ++i)
32971 *(data2 + i) = *(data2 + i) + 1;
32972 data3 = (char *) malloc (pagesize);
32973 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032974 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032975 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032976 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032977 for (i = 0; i < pagesize; ++i)
32978 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032979 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032980 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032981 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032982}
32983_ACEOF
32984rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032985if { (ac_try="$ac_link"
32986case "(($ac_try" in
32987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32988 *) ac_try_echo=$ac_try;;
32989esac
32990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32991 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032992 ac_status=$?
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032995 { (case "(($ac_try" in
32996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32997 *) ac_try_echo=$ac_try;;
32998esac
32999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33000 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033001 ac_status=$?
33002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33003 (exit $ac_status); }; }; then
33004 ac_cv_func_mmap_fixed_mapped=yes
33005else
33006 echo "$as_me: program exited with status $ac_status" >&5
33007echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033008sed 's/^/| /' conftest.$ac_ext >&5
33009
John Criswell7a73b802003-06-30 21:59:07 +000033010( exit $ac_status )
33011ac_cv_func_mmap_fixed_mapped=no
33012fi
Reid Spencera773bd52006-08-04 18:18:08 +000033013rm -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 +000033014fi
Reid Spencera773bd52006-08-04 18:18:08 +000033015
33016
John Criswell7a73b802003-06-30 21:59:07 +000033017fi
Reid Spencera773bd52006-08-04 18:18:08 +000033018{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33019echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033020if test $ac_cv_func_mmap_fixed_mapped = yes; then
33021
33022cat >>confdefs.h <<\_ACEOF
33023#define HAVE_MMAP 1
33024_ACEOF
33025
33026fi
33027rm -f conftest.mmap
33028
Reid Spencera773bd52006-08-04 18:18:08 +000033029{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33030echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033031if test "${ac_cv_func_mmap_file+set}" = set; then
33032 echo $ECHO_N "(cached) $ECHO_C" >&6
33033else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033034 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033035ac_cpp='$CPP $CPPFLAGS'
33036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33038ac_compiler_gnu=$ac_cv_c_compiler_gnu
33039
33040 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033041 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033042else
33043 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033044
Reid Spencer777ce172004-09-20 04:09:56 +000033045 /* confdefs.h. */
33046_ACEOF
33047cat confdefs.h >>conftest.$ac_ext
33048cat >>conftest.$ac_ext <<_ACEOF
33049/* end confdefs.h. */
33050
John Criswell7a73b802003-06-30 21:59:07 +000033051#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033052#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033053#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033054
33055int
33056main ()
33057{
John Criswell7a73b802003-06-30 21:59:07 +000033058
33059 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033060 fd = creat ("foo",0777);
33061 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33062 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033063 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033064 ;
33065 return 0;
33066}
John Criswell7a73b802003-06-30 21:59:07 +000033067_ACEOF
33068rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033069if { (ac_try="$ac_link"
33070case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33073esac
33074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033076 ac_status=$?
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033079 { (case "(($ac_try" in
33080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33081 *) ac_try_echo=$ac_try;;
33082esac
33083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33084 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 ac_cv_func_mmap_file=yes
33089else
33090 echo "$as_me: program exited with status $ac_status" >&5
33091echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033092sed 's/^/| /' conftest.$ac_ext >&5
33093
John Criswell7a73b802003-06-30 21:59:07 +000033094( exit $ac_status )
33095ac_cv_func_mmap_file=no
33096fi
Reid Spencera773bd52006-08-04 18:18:08 +000033097rm -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 +000033098fi
Reid Spencera773bd52006-08-04 18:18:08 +000033099
33100
John Criswell7a73b802003-06-30 21:59:07 +000033101 ac_ext=c
33102ac_cpp='$CPP $CPPFLAGS'
33103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33105ac_compiler_gnu=$ac_cv_c_compiler_gnu
33106
33107
33108fi
Reid Spencera773bd52006-08-04 18:18:08 +000033109{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33110echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033111if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033112
33113cat >>confdefs.h <<\_ACEOF
33114#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033115_ACEOF
33116
33117 MMAP_FILE=yes
33118
33119fi
33120
Reid Spencera773bd52006-08-04 18:18:08 +000033121{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33122echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033123if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33124 echo $ECHO_N "(cached) $ECHO_C" >&6
33125else
Reid Spencer582a23c2004-12-29 07:07:57 +000033126 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033127 ac_cv_need_dev_zero_for_mmap=yes
33128 else
33129 ac_cv_need_dev_zero_for_mmap=no
33130 fi
33131
33132fi
Reid Spencera773bd52006-08-04 18:18:08 +000033133{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33134echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033135if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33136
33137cat >>confdefs.h <<\_ACEOF
33138#define NEED_DEV_ZERO_FOR_MMAP 1
33139_ACEOF
33140
33141fi
Reid Spencera773bd52006-08-04 18:18:08 +000033142{ echo "$as_me:$LINENO: checking for mprotect" >&5
33143echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033144if test "${ac_cv_func_mprotect+set}" = set; then
33145 echo $ECHO_N "(cached) $ECHO_C" >&6
33146else
33147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033148/* confdefs.h. */
33149_ACEOF
33150cat confdefs.h >>conftest.$ac_ext
33151cat >>conftest.$ac_ext <<_ACEOF
33152/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033153/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33155#define mprotect innocuous_mprotect
33156
John Criswell7a73b802003-06-30 21:59:07 +000033157/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033158 which can conflict with char mprotect (); below.
33159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33160 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033161
John Criswell0c38eaf2003-09-10 15:17:25 +000033162#ifdef __STDC__
33163# include <limits.h>
33164#else
33165# include <assert.h>
33166#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033167
33168#undef mprotect
33169
Reid Spencera773bd52006-08-04 18:18:08 +000033170/* Override any GCC internal prototype to avoid an error.
33171 Use char because int might match the return type of a GCC
33172 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033173#ifdef __cplusplus
33174extern "C"
33175#endif
John Criswell7a73b802003-06-30 21:59:07 +000033176char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033177/* The GNU C library defines this for functions which it implements
33178 to always fail with ENOSYS. Some functions are actually named
33179 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033180#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033181choke me
John Criswell7a73b802003-06-30 21:59:07 +000033182#endif
33183
John Criswell0c38eaf2003-09-10 15:17:25 +000033184int
33185main ()
33186{
Reid Spencera773bd52006-08-04 18:18:08 +000033187return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033188 ;
33189 return 0;
33190}
33191_ACEOF
33192rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033193if { (ac_try="$ac_link"
33194case "(($ac_try" in
33195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33196 *) ac_try_echo=$ac_try;;
33197esac
33198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33199 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033200 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033201 grep -v '^ *+' conftest.er1 >conftest.err
33202 rm -f conftest.er1
33203 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33207 { (case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33210esac
33211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033213 ac_status=$?
33214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33215 (exit $ac_status); }; } &&
33216 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033217 { (case "(($ac_try" in
33218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33219 *) ac_try_echo=$ac_try;;
33220esac
33221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33222 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033223 ac_status=$?
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); }; }; then
33226 ac_cv_func_mprotect=yes
33227else
33228 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033229sed 's/^/| /' conftest.$ac_ext >&5
33230
Reid Spencera773bd52006-08-04 18:18:08 +000033231 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033232fi
Reid Spencera773bd52006-08-04 18:18:08 +000033233
33234rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033235 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033236fi
Reid Spencera773bd52006-08-04 18:18:08 +000033237{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33238echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033239if test $ac_cv_func_mprotect = yes; then
33240 :
33241else
33242 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33243echo "$as_me: error: Function mprotect() required but not found" >&2;}
33244 { (exit 1); exit 1; }; }
33245fi
33246
33247
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033248if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033249then
Reid Spencer582a23c2004-12-29 07:07:57 +000033250 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33251echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033252fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033253if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033254then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033255 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33256echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033257fi
John Criswell7a73b802003-06-30 21:59:07 +000033258
33259
Reid Spencera773bd52006-08-04 18:18:08 +000033260{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33261echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033262if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33263 echo $ECHO_N "(cached) $ECHO_C" >&6
33264else
33265 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033266if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033267 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033268 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033269 if test $? -eq 0 ; then
33270 llvm_cv_llvmgcc_sanity="yes"
33271 fi
33272 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033273fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033274fi
Reid Spencera773bd52006-08-04 18:18:08 +000033275{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33276echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033277
33278if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033279 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033280 LLVMCC1=$llvmcc1path
33281
Reid Spencer502935f2004-12-22 05:56:56 +000033282 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033283 LLVMCC1PLUS=$llvmcc1pluspath
33284
Reid Spencer502935f2004-12-22 05:56:56 +000033285 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33286 LLVMGCCDIR=$llvmgccdir
33287
Reid Spencerb5d75b82006-05-09 00:31:01 +000033288 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033289 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33290 LLVMGCC_VERSION=$llvmgccversion
33291
33292 LLVMGCC_MAJVERS=$llvmgccmajvers
33293
Brian Gaekef3b24102003-11-16 18:38:14 +000033294fi
33295
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033296SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033297
33298
Reid Spencere9de0912004-08-20 09:03:57 +000033299# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033300# information into substitutions that will end up in Makefile.config.in
33301# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033302if test "${prefix}" == "NONE" ; then
33303 prefix="/usr/local"
33304fi
Reid Spencere9de0912004-08-20 09:03:57 +000033305eval LLVM_PREFIX="${prefix}";
33306eval LLVM_BINDIR="${prefix}/bin";
33307eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033308eval LLVM_DATADIR="${prefix}/share/llvm";
33309eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33310eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033311eval LLVM_INCLUDEDIR="${prefix}/include";
33312eval LLVM_INFODIR="${prefix}/info";
33313eval LLVM_MANDIR="${prefix}/man";
33314LLVM_CONFIGTIME=`date`
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033326# Place the various directores into the config.h file as #defines so that we
33327# can know about the installation paths within LLVM.
33328
Reid Spencere9de0912004-08-20 09:03:57 +000033329cat >>confdefs.h <<_ACEOF
33330#define LLVM_PREFIX "$LLVM_PREFIX"
33331_ACEOF
33332
33333
33334cat >>confdefs.h <<_ACEOF
33335#define LLVM_BINDIR "$LLVM_BINDIR"
33336_ACEOF
33337
33338
33339cat >>confdefs.h <<_ACEOF
33340#define LLVM_LIBDIR "$LLVM_LIBDIR"
33341_ACEOF
33342
33343
33344cat >>confdefs.h <<_ACEOF
33345#define LLVM_DATADIR "$LLVM_DATADIR"
33346_ACEOF
33347
33348
33349cat >>confdefs.h <<_ACEOF
33350#define LLVM_DATADIR "$LLVM_DOCSDIR"
33351_ACEOF
33352
33353
33354cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033355#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033356_ACEOF
33357
33358
33359cat >>confdefs.h <<_ACEOF
33360#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33361_ACEOF
33362
33363
33364cat >>confdefs.h <<_ACEOF
33365#define LLVM_INFODIR "$LLVM_INFODIR"
33366_ACEOF
33367
33368
33369cat >>confdefs.h <<_ACEOF
33370#define LLVM_MANDIR "$LLVM_MANDIR"
33371_ACEOF
33372
33373
33374cat >>confdefs.h <<_ACEOF
33375#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33376_ACEOF
33377
33378
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033379
Reid Spencera773bd52006-08-04 18:18:08 +000033380ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033381
Reid Spencera773bd52006-08-04 18:18:08 +000033382ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033383
Reid Spencera773bd52006-08-04 18:18:08 +000033384ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033385
Reid Spencera773bd52006-08-04 18:18:08 +000033386ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033387
Reid Spencera773bd52006-08-04 18:18:08 +000033388ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033389
33390
Reid Spencera773bd52006-08-04 18:18:08 +000033391ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033392
33393
Reid Spencerea949cf2006-08-16 00:45:38 +000033394ac_config_files="$ac_config_files llvm.spec"
33395
33396
Reid Spencera773bd52006-08-04 18:18:08 +000033397ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033398
33399
Reid Spencera773bd52006-08-04 18:18:08 +000033400ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033401
33402
Reid Spencera773bd52006-08-04 18:18:08 +000033403ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033404
Reid Spencera773bd52006-08-04 18:18:08 +000033405ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033406
33407
Reid Spencera773bd52006-08-04 18:18:08 +000033408ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033409
33410
Reid Spencera773bd52006-08-04 18:18:08 +000033411ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033412
33413
Reid Spencera773bd52006-08-04 18:18:08 +000033414ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033415
33416
Reid Spencera773bd52006-08-04 18:18:08 +000033417ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033418
33419
Reid Spencera773bd52006-08-04 18:18:08 +000033420ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033421
33422
Reid Spencera773bd52006-08-04 18:18:08 +000033423ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033424
33425
Reid Spencera773bd52006-08-04 18:18:08 +000033426ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033427
33428
Reid Spencera773bd52006-08-04 18:18:08 +000033429ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033430
33431
33432
John Criswell7a73b802003-06-30 21:59:07 +000033433cat >confcache <<\_ACEOF
33434# This file is a shell script that caches the results of configure
33435# tests run on this system so they can be shared between configure
33436# scripts and configure runs, see configure's option --config-cache.
33437# It is not useful on other systems. If it contains results you don't
33438# want to keep, you may remove or edit it.
33439#
33440# config.status only pays attention to the cache file if you give it
33441# the --recheck option to rerun configure.
33442#
John Criswell0c38eaf2003-09-10 15:17:25 +000033443# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033444# loading this file, other *unset* `ac_cv_foo' will be assigned the
33445# following values.
33446
33447_ACEOF
33448
33449# The following way of writing the cache mishandles newlines in values,
33450# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033451# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033452# Ultrix sh set writes to stderr and can't be redirected directly,
33453# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033454(
33455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33456 eval ac_val=\$$ac_var
33457 case $ac_val in #(
33458 *${as_nl}*)
33459 case $ac_var in #(
33460 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33461echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33462 esac
33463 case $ac_var in #(
33464 _ | IFS | as_nl) ;; #(
33465 *) $as_unset $ac_var ;;
33466 esac ;;
33467 esac
33468 done
33469
John Criswell7a73b802003-06-30 21:59:07 +000033470 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33472 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033473 # `set' does not quote correctly, so add quotes (double-quote
33474 # substitution turns \\\\ into \\, and sed turns \\ into \).
33475 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033476 "s/'/'\\\\''/g;
33477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033478 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033479 *)
33480 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033481 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033482 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033483 esac |
33484 sort
33485) |
John Criswell7a73b802003-06-30 21:59:07 +000033486 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033487 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033488 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033489 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33491 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33493 :end' >>confcache
33494if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33495 if test -w "$cache_file"; then
33496 test "x$cache_file" != "x/dev/null" &&
33497 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33498echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033499 cat confcache >$cache_file
33500 else
Reid Spencera773bd52006-08-04 18:18:08 +000033501 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33502echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033503 fi
33504fi
33505rm -f confcache
33506
33507test "x$prefix" = xNONE && prefix=$ac_default_prefix
33508# Let make expand exec_prefix.
33509test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33510
John Criswell7a73b802003-06-30 21:59:07 +000033511DEFS=-DHAVE_CONFIG_H
33512
John Criswell0c38eaf2003-09-10 15:17:25 +000033513ac_libobjs=
33514ac_ltlibobjs=
33515for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33516 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33518 ac_i=`echo "$ac_i" | sed "$ac_script"`
33519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33520 # will be set to the directory where LIBOBJS objects are built.
33521 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33522 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033523done
33524LIBOBJS=$ac_libobjs
33525
33526LTLIBOBJS=$ac_ltlibobjs
33527
33528
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033529if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33530 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33531Usually this means the macro was only invoked conditionally." >&5
33532echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33533Usually this means the macro was only invoked conditionally." >&2;}
33534 { (exit 1); exit 1; }; }
33535fi
33536if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33537 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33538Usually this means the macro was only invoked conditionally." >&5
33539echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33540Usually this means the macro was only invoked conditionally." >&2;}
33541 { (exit 1); exit 1; }; }
33542fi
John Criswell7a73b802003-06-30 21:59:07 +000033543
33544: ${CONFIG_STATUS=./config.status}
33545ac_clean_files_save=$ac_clean_files
33546ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33547{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33548echo "$as_me: creating $CONFIG_STATUS" >&6;}
33549cat >$CONFIG_STATUS <<_ACEOF
33550#! $SHELL
33551# Generated by $as_me.
33552# Run this file to recreate the current configuration.
33553# Compiler output produced by configure, useful for debugging
33554# configure, is in config.log if it exists.
33555
33556debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033557ac_cs_recheck=false
33558ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033559SHELL=\${CONFIG_SHELL-$SHELL}
33560_ACEOF
33561
33562cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033563## --------------------- ##
33564## M4sh Initialization. ##
33565## --------------------- ##
33566
33567# Be Bourne compatible
33568if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33569 emulate sh
33570 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33572 # is contrary to our usage. Disable this feature.
33573 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033574 setopt NO_GLOB_SUBST
33575else
33576 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033577fi
Reid Spencera773bd52006-08-04 18:18:08 +000033578BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033579DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033580
John Criswell7a73b802003-06-30 21:59:07 +000033581
Reid Spencera773bd52006-08-04 18:18:08 +000033582# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033583# Avoid depending upon Character Ranges.
33584as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33585as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33586as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33587as_cr_digits='0123456789'
33588as_cr_alnum=$as_cr_Letters$as_cr_digits
33589
33590# The user is always right.
33591if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033592 echo "#! /bin/sh" >conf$$.sh
33593 echo "exit 0" >>conf$$.sh
33594 chmod +x conf$$.sh
33595 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033596 PATH_SEPARATOR=';'
33597 else
33598 PATH_SEPARATOR=:
33599 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033600 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033601fi
33602
Reid Spencera773bd52006-08-04 18:18:08 +000033603# Support unset when possible.
33604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33605 as_unset=unset
33606else
33607 as_unset=false
33608fi
John Criswell7a73b802003-06-30 21:59:07 +000033609
Reid Spencera773bd52006-08-04 18:18:08 +000033610
33611# IFS
33612# We need space, tab and new line, in precisely that order. Quoting is
33613# there to prevent editors from complaining about space-tab.
33614# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33615# splitting by setting IFS to empty value.)
33616as_nl='
33617'
33618IFS=" "" $as_nl"
33619
33620# Find who we are. Look in the path if we contain no directory separator.
33621case $0 in
33622 *[\\/]* ) as_myself=$0 ;;
33623 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033624for as_dir in $PATH
33625do
33626 IFS=$as_save_IFS
33627 test -z "$as_dir" && as_dir=.
33628 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33629done
Reid Spencera773bd52006-08-04 18:18:08 +000033630IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033631
Reid Spencera773bd52006-08-04 18:18:08 +000033632 ;;
33633esac
33634# We did not find ourselves, most probably we were run as `sh COMMAND'
33635# in which case we are not to be found in the path.
33636if test "x$as_myself" = x; then
33637 as_myself=$0
33638fi
33639if test ! -f "$as_myself"; then
33640 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33641 { (exit 1); exit 1; }
33642fi
33643
33644# Work around bugs in pre-3.0 UWIN ksh.
33645for as_var in ENV MAIL MAILPATH
33646do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33647done
33648PS1='$ '
33649PS2='> '
33650PS4='+ '
33651
33652# NLS nuisances.
33653for as_var in \
33654 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33655 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33656 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033657do
Reid Spencera773bd52006-08-04 18:18:08 +000033658 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33659 eval $as_var=C; export $as_var
33660 else
33661 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33662 fi
33663done
33664
33665# Required to use basename.
33666if expr a : '\(a\)' >/dev/null 2>&1 &&
33667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33668 as_expr=expr
33669else
33670 as_expr=false
33671fi
33672
33673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33674 as_basename=basename
33675else
33676 as_basename=false
33677fi
33678
33679
33680# Name of the executable.
33681as_me=`$as_basename -- "$0" ||
33682$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33683 X"$0" : 'X\(//\)$' \| \
33684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33685echo X/"$0" |
33686 sed '/^.*\/\([^/][^/]*\)\/*$/{
33687 s//\1/
33688 q
33689 }
33690 /^X\/\(\/\/\)$/{
33691 s//\1/
33692 q
33693 }
33694 /^X\/\(\/\).*/{
33695 s//\1/
33696 q
33697 }
33698 s/.*/./; q'`
33699
33700# CDPATH.
33701$as_unset CDPATH
33702
33703
33704
John Criswell7a73b802003-06-30 21:59:07 +000033705 as_lineno_1=$LINENO
33706 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033707 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033708 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033709
33710 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33711 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033712 # line-number line after each line using $LINENO; the second 'sed'
33713 # does the real work. The second script uses 'N' to pair each
33714 # line-number line with the line containing $LINENO, and appends
33715 # trailing '-' during substitution so that $LINENO is not a special
33716 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033717 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033718 # scripts with optimization help from Paolo Bonzini. Blame Lee
33719 # E. McMahon (1931-1989) for sed's syntax. :-)
33720 sed -n '
33721 p
33722 /[$]LINENO/=
33723 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033724 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033725 s/[$]LINENO.*/&-/
33726 t lineno
33727 b
33728 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033729 N
Reid Spencera773bd52006-08-04 18:18:08 +000033730 :loop
33731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033732 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033733 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033734 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033735 chmod +x "$as_me.lineno" ||
33736 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033737 { (exit 1); exit 1; }; }
33738
33739 # Don't try to exec as it changes $[0], causing all sort of problems
33740 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033741 # original and so on. Autoconf is especially sensitive to this).
33742 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033743 # Exit status is that of the last command.
33744 exit
33745}
33746
33747
Reid Spencera773bd52006-08-04 18:18:08 +000033748if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33749 as_dirname=dirname
33750else
33751 as_dirname=false
33752fi
33753
33754ECHO_C= ECHO_N= ECHO_T=
33755case `echo -n x` in
33756-n*)
33757 case `echo 'x\c'` in
33758 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33759 *) ECHO_C='\c';;
33760 esac;;
33761*)
33762 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033763esac
33764
Reid Spencera773bd52006-08-04 18:18:08 +000033765if expr a : '\(a\)' >/dev/null 2>&1 &&
33766 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033767 as_expr=expr
33768else
33769 as_expr=false
33770fi
33771
33772rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033773if test -d conf$$.dir; then
33774 rm -f conf$$.dir/conf$$.file
33775else
33776 rm -f conf$$.dir
33777 mkdir conf$$.dir
33778fi
John Criswell7a73b802003-06-30 21:59:07 +000033779echo >conf$$.file
33780if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033781 as_ln_s='ln -s'
33782 # ... but there are two gotchas:
33783 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33784 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33785 # In both cases, we have to default to `cp -p'.
33786 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033787 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033788elif ln conf$$.file conf$$ 2>/dev/null; then
33789 as_ln_s=ln
33790else
33791 as_ln_s='cp -p'
33792fi
Reid Spencera773bd52006-08-04 18:18:08 +000033793rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33794rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033795
John Criswell0c38eaf2003-09-10 15:17:25 +000033796if mkdir -p . 2>/dev/null; then
33797 as_mkdir_p=:
33798else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033799 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033800 as_mkdir_p=false
33801fi
33802
Reid Spencera773bd52006-08-04 18:18:08 +000033803# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33804# systems may use methods other than mode bits to determine executability.
33805cat >conf$$.file <<_ASEOF
33806#! /bin/sh
33807exit 0
33808_ASEOF
33809chmod +x conf$$.file
33810if test -x conf$$.file >/dev/null 2>&1; then
33811 as_executable_p="test -x"
33812else
33813 as_executable_p=:
33814fi
33815rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033816
33817# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033818as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033819
33820# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033821as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033822
33823
John Criswell7a73b802003-06-30 21:59:07 +000033824exec 6>&1
33825
Reid Spencera773bd52006-08-04 18:18:08 +000033826# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033827# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033828# values after options handling.
33829ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033830This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033831generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033832
33833 CONFIG_FILES = $CONFIG_FILES
33834 CONFIG_HEADERS = $CONFIG_HEADERS
33835 CONFIG_LINKS = $CONFIG_LINKS
33836 CONFIG_COMMANDS = $CONFIG_COMMANDS
33837 $ $0 $@
33838
Reid Spencera773bd52006-08-04 18:18:08 +000033839on `(hostname || uname -n) 2>/dev/null | sed 1q`
33840"
33841
John Criswell7a73b802003-06-30 21:59:07 +000033842_ACEOF
33843
Reid Spencera773bd52006-08-04 18:18:08 +000033844cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033845# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033846config_files="$ac_config_files"
33847config_headers="$ac_config_headers"
33848config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033849
Reid Spencera773bd52006-08-04 18:18:08 +000033850_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033851
33852cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033853ac_cs_usage="\
33854\`$as_me' instantiates files from templates according to the
33855current configuration.
33856
33857Usage: $0 [OPTIONS] [FILE]...
33858
33859 -h, --help print this help, then exit
33860 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033861 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033862 -d, --debug don't remove temporary files
33863 --recheck update $as_me by reconfiguring in the same conditions
33864 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033865 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033866 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033867 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033868
33869Configuration files:
33870$config_files
33871
33872Configuration headers:
33873$config_headers
33874
John Criswellc764fbc2003-09-06 15:17:13 +000033875Configuration commands:
33876$config_commands
33877
John Criswell7a73b802003-06-30 21:59:07 +000033878Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033879
Reid Spencera773bd52006-08-04 18:18:08 +000033880_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033881cat >>$CONFIG_STATUS <<_ACEOF
33882ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033883llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033884configured by $0, generated by GNU Autoconf 2.60,
33885 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033886
Reid Spencera773bd52006-08-04 18:18:08 +000033887Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033888This config.status script is free software; the Free Software Foundation
33889gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033890
33891ac_pwd='$ac_pwd'
33892srcdir='$srcdir'
33893INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033894_ACEOF
33895
33896cat >>$CONFIG_STATUS <<\_ACEOF
33897# If no file are specified by the user, then we need to provide default
33898# value. By we need to know if files were specified by the user.
33899ac_need_defaults=:
33900while test $# != 0
33901do
33902 case $1 in
33903 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33905 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033906 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033907 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033908 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033909 ac_option=$1
33910 ac_optarg=$2
33911 ac_shift=shift
33912 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033913 esac
33914
John Criswell0c38eaf2003-09-10 15:17:25 +000033915 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033916 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33918 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33920 echo "$ac_cs_version"; exit ;;
33921 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033922 debug=: ;;
33923 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033924 $ac_shift
33925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033926 ac_need_defaults=false;;
33927 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033928 $ac_shift
33929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033930 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033931 --he | --h)
33932 # Conflict between --help and --header
33933 { echo "$as_me: error: ambiguous option: $1
33934Try \`$0 --help' for more information." >&2
33935 { (exit 1); exit 1; }; };;
33936 --help | --hel | -h )
33937 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33939 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33940 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033941
33942 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033943 -*) { echo "$as_me: error: unrecognized option: $1
33944Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033945 { (exit 1); exit 1; }; } ;;
33946
Reid Spencera773bd52006-08-04 18:18:08 +000033947 *) ac_config_targets="$ac_config_targets $1"
33948 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033949
33950 esac
33951 shift
33952done
33953
John Criswell0c38eaf2003-09-10 15:17:25 +000033954ac_configure_extra_args=
33955
33956if $ac_cs_silent; then
33957 exec 6>/dev/null
33958 ac_configure_extra_args="$ac_configure_extra_args --silent"
33959fi
33960
33961_ACEOF
33962cat >>$CONFIG_STATUS <<_ACEOF
33963if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033964 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33965 CONFIG_SHELL=$SHELL
33966 export CONFIG_SHELL
33967 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033968fi
33969
John Criswell7a73b802003-06-30 21:59:07 +000033970_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033971cat >>$CONFIG_STATUS <<\_ACEOF
33972exec 5>>config.log
33973{
33974 echo
33975 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33976## Running $as_me. ##
33977_ASBOX
33978 echo "$ac_log"
33979} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033980
Reid Spencera773bd52006-08-04 18:18:08 +000033981_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033982cat >>$CONFIG_STATUS <<_ACEOF
33983#
Reid Spencera773bd52006-08-04 18:18:08 +000033984# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000033985#
Reid Spencerc0682832005-02-24 19:05:19 +000033986llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000033987
33988_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033989
John Criswell7a73b802003-06-30 21:59:07 +000033990cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033991
33992# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000033993for ac_config_target in $ac_config_targets
33994do
Reid Spencera773bd52006-08-04 18:18:08 +000033995 case $ac_config_target in
33996 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
33997 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
33998 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
33999 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34000 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34001 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034002 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034003 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34004 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34005 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34006 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34007 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34008 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34009 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034010 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34011 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34012 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34013 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34014 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34015
John Criswell7a73b802003-06-30 21:59:07 +000034016 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34017echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34018 { (exit 1); exit 1; }; };;
34019 esac
34020done
34021
Reid Spencera773bd52006-08-04 18:18:08 +000034022
John Criswell7a73b802003-06-30 21:59:07 +000034023# If the user did not use the arguments to specify the items to instantiate,
34024# then the envvar interface is used. Set only those that are not.
34025# We use the long form for the default assignment because of an extremely
34026# bizarre bug on SunOS 4.1.3.
34027if $ac_need_defaults; then
34028 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34029 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034030 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034031fi
34032
John Criswell0c38eaf2003-09-10 15:17:25 +000034033# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034034# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034035# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034036# Hook for its removal unless debugging.
34037# Note that there is a small window in which the directory will not be cleaned:
34038# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034039$debug ||
34040{
Reid Spencera773bd52006-08-04 18:18:08 +000034041 tmp=
34042 trap 'exit_status=$?
34043 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34044' 0
John Criswell7a73b802003-06-30 21:59:07 +000034045 trap '{ (exit 1); exit 1; }' 1 2 13 15
34046}
John Criswell7a73b802003-06-30 21:59:07 +000034047# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034048
John Criswell7a73b802003-06-30 21:59:07 +000034049{
Reid Spencera773bd52006-08-04 18:18:08 +000034050 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034051 test -n "$tmp" && test -d "$tmp"
34052} ||
34053{
Reid Spencera773bd52006-08-04 18:18:08 +000034054 tmp=./conf$$-$RANDOM
34055 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034056} ||
34057{
John Criswell0c38eaf2003-09-10 15:17:25 +000034058 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034059 { (exit 1); exit 1; }
34060}
34061
John Criswell7a73b802003-06-30 21:59:07 +000034062#
Reid Spencera773bd52006-08-04 18:18:08 +000034063# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034064#
34065
34066# No need to generate the scripts if there are no CONFIG_FILES.
34067# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034068if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034069
34070_ACEOF
34071
Reid Spencera773bd52006-08-04 18:18:08 +000034072
34073
34074ac_delim='%!_!# '
34075for ac_last_try in false false false false false :; do
34076 cat >conf$$subs.sed <<_ACEOF
34077SHELL!$SHELL$ac_delim
34078PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34079PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34080PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34081PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34082PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34083PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34084exec_prefix!$exec_prefix$ac_delim
34085prefix!$prefix$ac_delim
34086program_transform_name!$program_transform_name$ac_delim
34087bindir!$bindir$ac_delim
34088sbindir!$sbindir$ac_delim
34089libexecdir!$libexecdir$ac_delim
34090datarootdir!$datarootdir$ac_delim
34091datadir!$datadir$ac_delim
34092sysconfdir!$sysconfdir$ac_delim
34093sharedstatedir!$sharedstatedir$ac_delim
34094localstatedir!$localstatedir$ac_delim
34095includedir!$includedir$ac_delim
34096oldincludedir!$oldincludedir$ac_delim
34097docdir!$docdir$ac_delim
34098infodir!$infodir$ac_delim
34099htmldir!$htmldir$ac_delim
34100dvidir!$dvidir$ac_delim
34101pdfdir!$pdfdir$ac_delim
34102psdir!$psdir$ac_delim
34103libdir!$libdir$ac_delim
34104localedir!$localedir$ac_delim
34105mandir!$mandir$ac_delim
34106DEFS!$DEFS$ac_delim
34107ECHO_C!$ECHO_C$ac_delim
34108ECHO_N!$ECHO_N$ac_delim
34109ECHO_T!$ECHO_T$ac_delim
34110LIBS!$LIBS$ac_delim
34111build_alias!$build_alias$ac_delim
34112host_alias!$host_alias$ac_delim
34113target_alias!$target_alias$ac_delim
34114LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34115subdirs!$subdirs$ac_delim
34116build!$build$ac_delim
34117build_cpu!$build_cpu$ac_delim
34118build_vendor!$build_vendor$ac_delim
34119build_os!$build_os$ac_delim
34120host!$host$ac_delim
34121host_cpu!$host_cpu$ac_delim
34122host_vendor!$host_vendor$ac_delim
34123host_os!$host_os$ac_delim
34124target!$target$ac_delim
34125target_cpu!$target_cpu$ac_delim
34126target_vendor!$target_vendor$ac_delim
34127target_os!$target_os$ac_delim
34128OS!$OS$ac_delim
34129LINKALL!$LINKALL$ac_delim
34130NOLINKALL!$NOLINKALL$ac_delim
34131LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34132LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34133ARCH!$ARCH$ac_delim
34134ENDIAN!$ENDIAN$ac_delim
34135CC!$CC$ac_delim
34136CFLAGS!$CFLAGS$ac_delim
34137LDFLAGS!$LDFLAGS$ac_delim
34138CPPFLAGS!$CPPFLAGS$ac_delim
34139ac_ct_CC!$ac_ct_CC$ac_delim
34140EXEEXT!$EXEEXT$ac_delim
34141OBJEXT!$OBJEXT$ac_delim
34142CPP!$CPP$ac_delim
34143GREP!$GREP$ac_delim
34144EGREP!$EGREP$ac_delim
34145LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34146BUILD_CC!$BUILD_CC$ac_delim
34147BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34148CVSBUILD!$CVSBUILD$ac_delim
34149ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34150DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034151JIT!$JIT$ac_delim
34152TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34153ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34154ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34155TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034156ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034157EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34158CXX!$CXX$ac_delim
34159CXXFLAGS!$CXXFLAGS$ac_delim
34160ac_ct_CXX!$ac_ct_CXX$ac_delim
34161LEX!$LEX$ac_delim
34162LEXLIB!$LEXLIB$ac_delim
34163LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34164FLEX!$FLEX$ac_delim
34165YACC!$YACC$ac_delim
34166YFLAGS!$YFLAGS$ac_delim
34167BISON!$BISON$ac_delim
34168NM!$NM$ac_delim
34169ifGNUmake!$ifGNUmake$ac_delim
34170LN_S!$LN_S$ac_delim
34171CMP!$CMP$ac_delim
34172CP!$CP$ac_delim
Reid Spencerac90d5e2006-11-16 23:17:27 +000034173DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034174_ACEOF
34175
34176 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34177 break
34178 elif $ac_last_try; then
34179 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34180echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34181 { (exit 1); exit 1; }; }
34182 else
34183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034184 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034185done
34186
34187ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34188if test -n "$ac_eof"; then
34189 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34190 ac_eof=`expr $ac_eof + 1`
34191fi
34192
34193cat >>$CONFIG_STATUS <<_ACEOF
34194cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34195/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34196_ACEOF
34197sed '
34198s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34199s/^/s,@/; s/!/@,|#_!!_#|/
34200:n
34201t n
34202s/'"$ac_delim"'$/,g/; t
34203s/$/\\/; p
34204N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34205' >>$CONFIG_STATUS <conf$$subs.sed
34206rm -f conf$$subs.sed
34207cat >>$CONFIG_STATUS <<_ACEOF
34208CEOF$ac_eof
34209_ACEOF
34210
34211
34212ac_delim='%!_!# '
34213for ac_last_try in false false false false false :; do
34214 cat >conf$$subs.sed <<_ACEOF
34215FIND!$FIND$ac_delim
34216MKDIR!$MKDIR$ac_delim
34217MV!$MV$ac_delim
34218RANLIB!$RANLIB$ac_delim
34219RM!$RM$ac_delim
34220SED!$SED$ac_delim
34221TAR!$TAR$ac_delim
34222BINPWD!$BINPWD$ac_delim
34223GRAPHVIZ!$GRAPHVIZ$ac_delim
34224DOT!$DOT$ac_delim
34225GV!$GV$ac_delim
34226DOTTY!$DOTTY$ac_delim
34227PERL!$PERL$ac_delim
34228HAVE_PERL!$HAVE_PERL$ac_delim
34229INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34230INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34231INSTALL_DATA!$INSTALL_DATA$ac_delim
34232BZIP2!$BZIP2$ac_delim
34233DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034234GROFF!$GROFF$ac_delim
34235GZIP!$GZIP$ac_delim
34236POD2HTML!$POD2HTML$ac_delim
34237POD2MAN!$POD2MAN$ac_delim
34238RUNTEST!$RUNTEST$ac_delim
34239TCLSH!$TCLSH$ac_delim
34240ZIP!$ZIP$ac_delim
34241INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34242INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34243CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34244CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34245LIBADD_DL!$LIBADD_DL$ac_delim
34246ECHO!$ECHO$ac_delim
34247AR!$AR$ac_delim
34248STRIP!$STRIP$ac_delim
34249CXXCPP!$CXXCPP$ac_delim
34250F77!$F77$ac_delim
34251FFLAGS!$FFLAGS$ac_delim
34252ac_ct_F77!$ac_ct_F77$ac_delim
34253LIBTOOL!$LIBTOOL$ac_delim
34254ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34255LLVMGCC!$LLVMGCC$ac_delim
34256LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034257HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034258ALLOCA!$ALLOCA$ac_delim
34259MMAP_FILE!$MMAP_FILE$ac_delim
34260LLVMCC1!$LLVMCC1$ac_delim
34261LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34262LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34263LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34264LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34265SHLIBEXT!$SHLIBEXT$ac_delim
34266LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34267LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34268LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34269LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34270LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34271LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34272LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34273LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34274LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34275LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34276LIBOBJS!$LIBOBJS$ac_delim
34277LTLIBOBJS!$LTLIBOBJS$ac_delim
34278_ACEOF
34279
Reid Spencerac90d5e2006-11-16 23:17:27 +000034280 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
Reid Spencera773bd52006-08-04 18:18:08 +000034281 break
34282 elif $ac_last_try; then
34283 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34284echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34285 { (exit 1); exit 1; }; }
34286 else
34287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34288 fi
34289done
34290
34291ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34292if test -n "$ac_eof"; then
34293 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34294 ac_eof=`expr $ac_eof + 1`
34295fi
34296
34297cat >>$CONFIG_STATUS <<_ACEOF
34298cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34300_ACEOF
34301sed '
34302s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34303s/^/s,@/; s/!/@,|#_!!_#|/
34304:n
34305t n
34306s/'"$ac_delim"'$/,g/; t
34307s/$/\\/; p
34308N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34309' >>$CONFIG_STATUS <conf$$subs.sed
34310rm -f conf$$subs.sed
34311cat >>$CONFIG_STATUS <<_ACEOF
34312:end
34313s/|#_!!_#|//g
34314CEOF$ac_eof
34315_ACEOF
34316
34317
34318# VPATH may cause trouble with some makes, so we remove $(srcdir),
34319# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34320# trailing colons and then remove the whole line if VPATH becomes empty
34321# (actually we leave an empty line to preserve line numbers).
34322if test "x$srcdir" = x.; then
34323 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34324s/:*\$(srcdir):*/:/
34325s/:*\${srcdir}:*/:/
34326s/:*@srcdir@:*/:/
34327s/^\([^=]*=[ ]*\):*/\1/
34328s/:*$//
34329s/^[^=]*=[ ]*$//
34330}'
34331fi
34332
34333cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034334fi # test -n "$CONFIG_FILES"
34335
Reid Spencera773bd52006-08-04 18:18:08 +000034336
34337for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34338do
34339 case $ac_tag in
34340 :[FHLC]) ac_mode=$ac_tag; continue;;
34341 esac
34342 case $ac_mode$ac_tag in
34343 :[FHL]*:*);;
34344 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34345echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34346 { (exit 1); exit 1; }; };;
34347 :[FH]-) ac_tag=-:-;;
34348 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34349 esac
34350 ac_save_IFS=$IFS
34351 IFS=:
34352 set x $ac_tag
34353 IFS=$ac_save_IFS
34354 shift
34355 ac_file=$1
34356 shift
34357
34358 case $ac_mode in
34359 :L) ac_source=$1;;
34360 :[FH])
34361 ac_file_inputs=
34362 for ac_f
34363 do
34364 case $ac_f in
34365 -) ac_f="$tmp/stdin";;
34366 *) # Look for the file first in the build tree, then in the source tree
34367 # (if the path is not absolute). The absolute path cannot be DOS-style,
34368 # because $ac_f cannot contain `:'.
34369 test -f "$ac_f" ||
34370 case $ac_f in
34371 [\\/$]*) false;;
34372 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34373 esac ||
34374 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34375echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34376 { (exit 1); exit 1; }; };;
34377 esac
34378 ac_file_inputs="$ac_file_inputs $ac_f"
34379 done
34380
34381 # Let's still pretend it is `configure' which instantiates (i.e., don't
34382 # use $as_me), people would be surprised to read:
34383 # /* config.h. Generated by config.status. */
34384 configure_input="Generated from "`IFS=:
34385 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34386 if test x"$ac_file" != x-; then
34387 configure_input="$ac_file. $configure_input"
34388 { echo "$as_me:$LINENO: creating $ac_file" >&5
34389echo "$as_me: creating $ac_file" >&6;}
34390 fi
34391
34392 case $ac_tag in
34393 *:-:* | *:-) cat >"$tmp/stdin";;
34394 esac
34395 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034396 esac
34397
Reid Spencera773bd52006-08-04 18:18:08 +000034398 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034399$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034400 X"$ac_file" : 'X\(//\)[^/]' \| \
34401 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034402 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034403echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34405 s//\1/
34406 q
34407 }
34408 /^X\(\/\/\)[^/].*/{
34409 s//\1/
34410 q
34411 }
34412 /^X\(\/\/\)$/{
34413 s//\1/
34414 q
34415 }
34416 /^X\(\/\).*/{
34417 s//\1/
34418 q
34419 }
34420 s/.*/./; q'`
34421 { as_dir="$ac_dir"
34422 case $as_dir in #(
34423 -*) as_dir=./$as_dir;;
34424 esac
34425 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034426 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034427 while :; do
34428 case $as_dir in #(
34429 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34430 *) as_qdir=$as_dir;;
34431 esac
34432 as_dirs="'$as_qdir' $as_dirs"
34433 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034435 X"$as_dir" : 'X\(//\)[^/]' \| \
34436 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034437 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034438echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34440 s//\1/
34441 q
34442 }
34443 /^X\(\/\/\)[^/].*/{
34444 s//\1/
34445 q
34446 }
34447 /^X\(\/\/\)$/{
34448 s//\1/
34449 q
34450 }
34451 /^X\(\/\).*/{
34452 s//\1/
34453 q
34454 }
34455 s/.*/./; q'`
34456 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034457 done
Reid Spencera773bd52006-08-04 18:18:08 +000034458 test -z "$as_dirs" || eval "mkdir $as_dirs"
34459 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34460echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034461 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034462 ac_builddir=.
34463
Reid Spencera773bd52006-08-04 18:18:08 +000034464case "$ac_dir" in
34465.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34466*)
John Criswell7a73b802003-06-30 21:59:07 +000034467 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034468 # A ".." for each directory in $ac_dir_suffix.
34469 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34470 case $ac_top_builddir_sub in
34471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34473 esac ;;
34474esac
34475ac_abs_top_builddir=$ac_pwd
34476ac_abs_builddir=$ac_pwd$ac_dir_suffix
34477# for backward compatibility:
34478ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034479
34480case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034481 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034482 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034483 ac_top_srcdir=$ac_top_builddir_sub
34484 ac_abs_top_srcdir=$ac_pwd ;;
34485 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034486 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034487 ac_top_srcdir=$srcdir
34488 ac_abs_top_srcdir=$srcdir ;;
34489 *) # Relative name.
34490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34491 ac_top_srcdir=$ac_top_build_prefix$srcdir
34492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034493esac
Reid Spencera773bd52006-08-04 18:18:08 +000034494ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034495
John Criswell7a73b802003-06-30 21:59:07 +000034496
Reid Spencera773bd52006-08-04 18:18:08 +000034497 case $ac_mode in
34498 :F)
34499 #
34500 # CONFIG_FILE
34501 #
John Criswell7a73b802003-06-30 21:59:07 +000034502
34503 case $INSTALL in
34504 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034505 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034506 esac
John Criswell7a73b802003-06-30 21:59:07 +000034507_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034508
34509cat >>$CONFIG_STATUS <<\_ACEOF
34510# If the template does not know about datarootdir, expand it.
34511# FIXME: This hack should be removed a few years after 2.60.
34512ac_datarootdir_hack=; ac_datarootdir_seen=
34513
34514case `sed -n '/datarootdir/ {
34515 p
34516 q
34517}
34518/@datadir@/p
34519/@docdir@/p
34520/@infodir@/p
34521/@localedir@/p
34522/@mandir@/p
34523' $ac_file_inputs` in
34524*datarootdir*) ac_datarootdir_seen=yes;;
34525*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34526 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34527echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34528_ACEOF
34529cat >>$CONFIG_STATUS <<_ACEOF
34530 ac_datarootdir_hack='
34531 s&@datadir@&$datadir&g
34532 s&@docdir@&$docdir&g
34533 s&@infodir@&$infodir&g
34534 s&@localedir@&$localedir&g
34535 s&@mandir@&$mandir&g
34536 s&\\\${datarootdir}&$datarootdir&g' ;;
34537esac
34538_ACEOF
34539
34540# Neutralize VPATH when `$srcdir' = `.'.
34541# Shell code in configure.ac might set extrasub.
34542# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034543cat >>$CONFIG_STATUS <<_ACEOF
34544 sed "$ac_vpsub
34545$extrasub
34546_ACEOF
34547cat >>$CONFIG_STATUS <<\_ACEOF
34548:t
34549/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034550s&@configure_input@&$configure_input&;t t
34551s&@top_builddir@&$ac_top_builddir_sub&;t t
34552s&@srcdir@&$ac_srcdir&;t t
34553s&@abs_srcdir@&$ac_abs_srcdir&;t t
34554s&@top_srcdir@&$ac_top_srcdir&;t t
34555s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34556s&@builddir@&$ac_builddir&;t t
34557s&@abs_builddir@&$ac_abs_builddir&;t t
34558s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34559s&@INSTALL@&$ac_INSTALL&;t t
34560$ac_datarootdir_hack
34561" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034562
Reid Spencera773bd52006-08-04 18:18:08 +000034563test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34564 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34565 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34566 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34567which seems to be undefined. Please make sure it is defined." >&5
34568echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34569which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034570
Reid Spencera773bd52006-08-04 18:18:08 +000034571 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034572 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034573 -) cat "$tmp/out"; rm -f "$tmp/out";;
34574 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034575 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034576 ;;
34577 :H)
34578 #
34579 # CONFIG_HEADER
34580 #
John Criswell7a73b802003-06-30 21:59:07 +000034581_ACEOF
34582
Reid Spencera773bd52006-08-04 18:18:08 +000034583# Transform confdefs.h into a sed script `conftest.defines', that
34584# substitutes the proper values into config.h.in to produce config.h.
34585rm -f conftest.defines conftest.tail
34586# First, append a space to every undef/define line, to ease matching.
34587echo 's/$/ /' >conftest.defines
34588# Then, protect against being on the right side of a sed subst, or in
34589# an unquoted here document, in config.status. If some macros were
34590# called several times there might be several #defines for the same
34591# symbol, which is useless. But do not sort them, since the last
34592# AC_DEFINE must be honored.
34593ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34594# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34595# NAME is the cpp macro being defined, VALUE is the value it is being given.
34596# PARAMS is the parameter list in the macro definition--in most cases, it's
34597# just an empty string.
34598ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34599ac_dB='\\)[ (].*,\\1define\\2'
34600ac_dC=' '
34601ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034602
Reid Spencera773bd52006-08-04 18:18:08 +000034603uniq confdefs.h |
34604 sed -n '
34605 t rset
34606 :rset
34607 s/^[ ]*#[ ]*define[ ][ ]*//
34608 t ok
34609 d
34610 :ok
34611 s/[\\&,]/\\&/g
34612 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34613 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34614 ' >>conftest.defines
34615
34616# Remove the space that was appended to ease matching.
34617# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034618# example, in the case of _POSIX_SOURCE, which is predefined and required
34619# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034620# (The regexp can be short, since the line contains either #define or #undef.)
34621echo 's/ $//
34622s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034623
Reid Spencera773bd52006-08-04 18:18:08 +000034624# Break up conftest.defines:
34625ac_max_sed_lines=50
34626
34627# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34628# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34629# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34630# et cetera.
34631ac_in='$ac_file_inputs'
34632ac_out='"$tmp/out1"'
34633ac_nxt='"$tmp/out2"'
34634
34635while :
John Criswell7a73b802003-06-30 21:59:07 +000034636do
Reid Spencera773bd52006-08-04 18:18:08 +000034637 # Write a here document:
34638 cat >>$CONFIG_STATUS <<_ACEOF
34639 # First, check the format of the line:
34640 cat >"\$tmp/defines.sed" <<\\CEOF
34641/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34642/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34643b
34644:def
34645_ACEOF
34646 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034647 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034648 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34649 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34650 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34651 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034652 rm -f conftest.defines
34653 mv conftest.tail conftest.defines
34654done
Reid Spencera773bd52006-08-04 18:18:08 +000034655rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034656
Reid Spencera773bd52006-08-04 18:18:08 +000034657echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034658cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034659 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034660 echo "/* $configure_input */" >"$tmp/config.h"
34661 cat "$ac_result" >>"$tmp/config.h"
34662 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034663 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34664echo "$as_me: $ac_file is unchanged" >&6;}
34665 else
John Criswell7a73b802003-06-30 21:59:07 +000034666 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034667 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034668 fi
34669 else
Reid Spencera773bd52006-08-04 18:18:08 +000034670 echo "/* $configure_input */"
34671 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034672 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034673 rm -f "$tmp/out12"
34674 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034675
Reid Spencera773bd52006-08-04 18:18:08 +000034676 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34677echo "$as_me: executing $ac_file commands" >&6;}
34678 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034679 esac
John Criswell7a73b802003-06-30 21:59:07 +000034680
Reid Spencera773bd52006-08-04 18:18:08 +000034681
34682 case $ac_file$ac_mode in
34683 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34684 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34685 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34686 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34687 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34688 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34689 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34690 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034691 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34692 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34693 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34694 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34695 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34696 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34697 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34698 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34699 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34700 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34701
34702 esac
34703done # for ac_tag
34704
John Criswell7a73b802003-06-30 21:59:07 +000034705
34706{ (exit 0); exit 0; }
34707_ACEOF
34708chmod +x $CONFIG_STATUS
34709ac_clean_files=$ac_clean_files_save
34710
34711
34712# configure is writing to config.log, and then calls config.status.
34713# config.status does its own redirection, appending to config.log.
34714# Unfortunately, on DOS this fails, as config.log is still kept open
34715# by configure, so config.status won't be able to write to it; its
34716# output is simply discarded. So we exec the FD to /dev/null,
34717# effectively closing config.log, so it can be properly (re)opened and
34718# appended to by config.status. When coming back to configure, we
34719# need to make the FD available again.
34720if test "$no_create" != yes; then
34721 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034722 ac_config_status_args=
34723 test "$silent" = yes &&
34724 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034725 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034727 exec 5>>config.log
34728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34729 # would make configure fail if this is the last instruction.
34730 $ac_cs_success || { (exit 1); exit 1; }
34731fi
34732
John Criswell12399a12003-09-30 15:55:44 +000034733#
34734# CONFIG_SUBDIRS section.
34735#
34736if test "$no_recursion" != yes; then
34737
34738 # Remove --cache-file and --srcdir arguments so they do not pile up.
34739 ac_sub_configure_args=
34740 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034741 eval "set x $ac_configure_args"
34742 shift
34743 for ac_arg
34744 do
John Criswell12399a12003-09-30 15:55:44 +000034745 if test -n "$ac_prev"; then
34746 ac_prev=
34747 continue
34748 fi
34749 case $ac_arg in
34750 -cache-file | --cache-file | --cache-fil | --cache-fi \
34751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34752 ac_prev=cache_file ;;
34753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34755 | --c=*)
34756 ;;
34757 --config-cache | -C)
34758 ;;
34759 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34760 ac_prev=srcdir ;;
34761 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34762 ;;
34763 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34764 ac_prev=prefix ;;
34765 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034767 *)
34768 case $ac_arg in
34769 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34770 esac
34771 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034772 esac
34773 done
34774
34775 # Always prepend --prefix to ensure using the same prefix
34776 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034777 ac_arg="--prefix=$prefix"
34778 case $ac_arg in
34779 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34780 esac
34781 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034782
34783 ac_popdir=`pwd`
34784 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34785
34786 # Do not complain, so a configure script can configure whichever
34787 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034788 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034789
Reid Spencera773bd52006-08-04 18:18:08 +000034790 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34791 echo "$as_me:$LINENO: $ac_msg" >&5
34792 echo "$ac_msg" >&6
34793 { as_dir="$ac_dir"
34794 case $as_dir in #(
34795 -*) as_dir=./$as_dir;;
34796 esac
34797 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034798 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034799 while :; do
34800 case $as_dir in #(
34801 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34802 *) as_qdir=$as_dir;;
34803 esac
34804 as_dirs="'$as_qdir' $as_dirs"
34805 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034807 X"$as_dir" : 'X\(//\)[^/]' \| \
34808 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034810echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34812 s//\1/
34813 q
34814 }
34815 /^X\(\/\/\)[^/].*/{
34816 s//\1/
34817 q
34818 }
34819 /^X\(\/\/\)$/{
34820 s//\1/
34821 q
34822 }
34823 /^X\(\/\).*/{
34824 s//\1/
34825 q
34826 }
34827 s/.*/./; q'`
34828 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034829 done
Reid Spencera773bd52006-08-04 18:18:08 +000034830 test -z "$as_dirs" || eval "mkdir $as_dirs"
34831 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34832echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034833 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034834 ac_builddir=.
34835
Reid Spencera773bd52006-08-04 18:18:08 +000034836case "$ac_dir" in
34837.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34838*)
John Criswell12399a12003-09-30 15:55:44 +000034839 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034840 # A ".." for each directory in $ac_dir_suffix.
34841 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34842 case $ac_top_builddir_sub in
34843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34845 esac ;;
34846esac
34847ac_abs_top_builddir=$ac_pwd
34848ac_abs_builddir=$ac_pwd$ac_dir_suffix
34849# for backward compatibility:
34850ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034851
34852case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034853 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034854 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034855 ac_top_srcdir=$ac_top_builddir_sub
34856 ac_abs_top_srcdir=$ac_pwd ;;
34857 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034858 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034859 ac_top_srcdir=$srcdir
34860 ac_abs_top_srcdir=$srcdir ;;
34861 *) # Relative name.
34862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34863 ac_top_srcdir=$ac_top_build_prefix$srcdir
34864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034865esac
Reid Spencera773bd52006-08-04 18:18:08 +000034866ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034867
34868
Reid Spencera773bd52006-08-04 18:18:08 +000034869 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034870
34871 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034872 if test -f "$ac_srcdir/configure.gnu"; then
34873 ac_sub_configure=$ac_srcdir/configure.gnu
34874 elif test -f "$ac_srcdir/configure"; then
34875 ac_sub_configure=$ac_srcdir/configure
34876 elif test -f "$ac_srcdir/configure.in"; then
34877 # This should be Cygnus configure.
34878 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034879 else
34880 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34881echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34882 ac_sub_configure=
34883 fi
34884
34885 # The recursion is here.
34886 if test -n "$ac_sub_configure"; then
34887 # Make the cache file name correct relative to the subdirectory.
34888 case $cache_file in
34889 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034890 *) # Relative name.
34891 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034892 esac
34893
Reid Spencera773bd52006-08-04 18:18:08 +000034894 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34895echo "$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 +000034896 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034897 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34898 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034899 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034900echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34901 { (exit 1); exit 1; }; }
34902 fi
34903
Reid Spencera773bd52006-08-04 18:18:08 +000034904 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034905 done
34906fi
34907
Brian Gaekef3b24102003-11-16 18:38:14 +000034908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000034909if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000034910 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
34911echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencerac90d5e2006-11-16 23:17:27 +000034912 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&5
34913echo "$as_me: WARNING: ***** working. Please make sure you have llvm-gcc and llvm-g++ " >&2;}
34914 { echo "$as_me:$LINENO: WARNING: ***** in your path before configuring LLVM." >&5
34915echo "$as_me: WARNING: ***** in your path before configuring LLVM." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000034916fi