blob: b93c97450aa9b81bb5a25b499731ac06016c292c [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#
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012# Copyright (c) 2003-2007 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 Spencer8b2e1412006-11-17 03:32:33 +0000833DEBUG_RUNTIME
Reid Spencera773bd52006-08-04 18:18:08 +0000834JIT
835TARGET_HAS_JIT
836ENABLE_DOXYGEN
837ENABLE_THREADS
Reid Spencer89b0d992006-12-16 22:07:52 +0000838ENABLE_PIC
Reid Spencera773bd52006-08-04 18:18:08 +0000839TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000840ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000841EXTRA_OPTIONS
842CXX
843CXXFLAGS
844ac_ct_CXX
845LEX
846LEXLIB
847LEX_OUTPUT_ROOT
848FLEX
849YACC
850YFLAGS
851BISON
852NM
853ifGNUmake
854LN_S
855CMP
856CP
857DATE
858FIND
859MKDIR
860MV
861RANLIB
862RM
863SED
864TAR
865BINPWD
866GRAPHVIZ
867DOT
868GV
869DOTTY
870PERL
871HAVE_PERL
872INSTALL_PROGRAM
873INSTALL_SCRIPT
874INSTALL_DATA
875BZIP2
876DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000877GROFF
878GZIP
879POD2HTML
880POD2MAN
881RUNTEST
882TCLSH
883ZIP
884INSTALL_LTDL_TRUE
885INSTALL_LTDL_FALSE
886CONVENIENCE_LTDL_TRUE
887CONVENIENCE_LTDL_FALSE
888LIBADD_DL
889ECHO
890AR
891STRIP
892CXXCPP
893F77
894FFLAGS
895ac_ct_F77
896LIBTOOL
897ETAGSFLAGS
898LLVMGCC
899LLVMGXX
Reid Spencerb6a7aa72007-01-19 17:41:47 +0000900USE_UDIS86
Reid Spencer1000b732006-12-01 00:37:14 +0000901HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000902HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000903ALLOCA
904MMAP_FILE
905LLVMCC1
906LLVMCC1PLUS
907LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000908LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000909LLVMGCC_VERSION
910LLVMGCC_MAJVERS
911SHLIBEXT
912LLVM_PREFIX
913LLVM_BINDIR
914LLVM_LIBDIR
915LLVM_DATADIR
916LLVM_DOCSDIR
917LLVM_ETCDIR
918LLVM_INCLUDEDIR
919LLVM_INFODIR
920LLVM_MANDIR
921LLVM_CONFIGTIME
922LIBOBJS
923LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000924ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000925 ac_precious_vars='build_alias
926host_alias
927target_alias
928CC
929CFLAGS
930LDFLAGS
931CPPFLAGS
932CPP
933CXX
934CXXFLAGS
935CCC
936YACC
937YFLAGS
938CXXCPP
939F77
940FFLAGS'
941ac_subdirs_all='projects/sample
Reid Spencera773bd52006-08-04 18:18:08 +0000942projects/privbracket
Reid Spencer67bb0792007-01-17 02:14:46 +0000943projects/llvm-stacker
Reid Spencera773bd52006-08-04 18:18:08 +0000944projects/llvm-test
945projects/llvm-reopt
946projects/llvm-gcc
947projects/llvm-java
948projects/llvm-tv
949projects/llvm-poolalloc
950projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000951
952# Initialize some variables set by options.
953ac_init_help=
954ac_init_version=false
955# The variables have the same names as the options, with
956# dashes changed to underlines.
957cache_file=/dev/null
958exec_prefix=NONE
959no_create=
960no_recursion=
961prefix=NONE
962program_prefix=NONE
963program_suffix=NONE
964program_transform_name=s,x,x,
965silent=
966site=
967srcdir=
968verbose=
969x_includes=NONE
970x_libraries=NONE
971
972# Installation directory options.
973# These are left unexpanded so users can "make install exec_prefix=/foo"
974# and all the variables that are supposed to be based on exec_prefix
975# by default will actually change.
976# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000977# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000978bindir='${exec_prefix}/bin'
979sbindir='${exec_prefix}/sbin'
980libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000981datarootdir='${prefix}/share'
982datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000983sysconfdir='${prefix}/etc'
984sharedstatedir='${prefix}/com'
985localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000986includedir='${prefix}/include'
987oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000988docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
989infodir='${datarootdir}/info'
990htmldir='${docdir}'
991dvidir='${docdir}'
992pdfdir='${docdir}'
993psdir='${docdir}'
994libdir='${exec_prefix}/lib'
995localedir='${datarootdir}/locale'
996mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000997
998ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000999ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +00001000for ac_option
1001do
1002 # If the previous option needs an argument, assign it.
1003 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001004 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001005 ac_prev=
1006 continue
1007 fi
1008
Reid Spencera773bd52006-08-04 18:18:08 +00001009 case $ac_option in
1010 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1011 *) ac_optarg=yes ;;
1012 esac
John Criswell7a73b802003-06-30 21:59:07 +00001013
1014 # Accept the important Cygnus configure options, so we can diagnose typos.
1015
Reid Spencera773bd52006-08-04 18:18:08 +00001016 case $ac_dashdash$ac_option in
1017 --)
1018 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001019
1020 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1021 ac_prev=bindir ;;
1022 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1023 bindir=$ac_optarg ;;
1024
1025 -build | --build | --buil | --bui | --bu)
1026 ac_prev=build_alias ;;
1027 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1028 build_alias=$ac_optarg ;;
1029
1030 -cache-file | --cache-file | --cache-fil | --cache-fi \
1031 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1032 ac_prev=cache_file ;;
1033 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1034 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1035 cache_file=$ac_optarg ;;
1036
1037 --config-cache | -C)
1038 cache_file=config.cache ;;
1039
Reid Spencera773bd52006-08-04 18:18:08 +00001040 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001041 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001042 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001043 datadir=$ac_optarg ;;
1044
Reid Spencera773bd52006-08-04 18:18:08 +00001045 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1046 | --dataroo | --dataro | --datar)
1047 ac_prev=datarootdir ;;
1048 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1049 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1050 datarootdir=$ac_optarg ;;
1051
John Criswell7a73b802003-06-30 21:59:07 +00001052 -disable-* | --disable-*)
1053 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001059 eval enable_$ac_feature=no ;;
1060
1061 -docdir | --docdir | --docdi | --doc | --do)
1062 ac_prev=docdir ;;
1063 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064 docdir=$ac_optarg ;;
1065
1066 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067 ac_prev=dvidir ;;
1068 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001070
1071 -enable-* | --enable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001078 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
1087 exec_prefix=$ac_optarg ;;
1088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
1093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
1099
1100 -host | --host | --hos | --ho)
1101 ac_prev=host_alias ;;
1102 -host=* | --host=* | --hos=* | --ho=*)
1103 host_alias=$ac_optarg ;;
1104
Reid Spencera773bd52006-08-04 18:18:08 +00001105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
John Criswell7a73b802003-06-30 21:59:07 +00001111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
1116 includedir=$ac_optarg ;;
1117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1121 infodir=$ac_optarg ;;
1122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1126 libdir=$ac_optarg ;;
1127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
1133 libexecdir=$ac_optarg ;;
1134
Reid Spencera773bd52006-08-04 18:18:08 +00001135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
John Criswell7a73b802003-06-30 21:59:07 +00001140 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001141 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001145 localstatedir=$ac_optarg ;;
1146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1150 mandir=$ac_optarg ;;
1151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1157 | --no-cr | --no-c | -n)
1158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1171 oldincludedir=$ac_optarg ;;
1172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1176 prefix=$ac_optarg ;;
1177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1183 program_prefix=$ac_optarg ;;
1184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1190 program_suffix=$ac_optarg ;;
1191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
1207 program_transform_name=$ac_optarg ;;
1208
Reid Spencera773bd52006-08-04 18:18:08 +00001209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
John Criswell7a73b802003-06-30 21:59:07 +00001219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
1227 sbindir=$ac_optarg ;;
1228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
1238 sharedstatedir=$ac_optarg ;;
1239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
1243 site=$ac_optarg ;;
1244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1248 srcdir=$ac_optarg ;;
1249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1255 sysconfdir=$ac_optarg ;;
1256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
1258 ac_prev=target_alias ;;
1259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1260 target_alias=$ac_optarg ;;
1261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
1265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
1267
1268 -with-* | --with-*)
1269 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid package name: $ac_package" >&2
1273 { (exit 1); exit 1; }; }
1274 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001275 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001276
1277 -without-* | --without-*)
1278 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1281 { echo "$as_me: error: invalid package name: $ac_package" >&2
1282 { (exit 1); exit 1; }; }
1283 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001284 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) { echo "$as_me: error: unrecognized option: $ac_option
1305Try \`$0 --help' for more information." >&2
1306 { (exit 1); exit 1; }; }
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1313 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1314 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001315 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 { echo "$as_me: error: missing argument to $ac_option" >&2
1332 { (exit 1); exit 1; }; }
1333fi
1334
Reid Spencera773bd52006-08-04 18:18:08 +00001335# Be sure to have absolute directory names.
1336for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001340do
Reid Spencera773bd52006-08-04 18:18:08 +00001341 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001342 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001343 [\\/$]* | ?:[\\/]* ) continue;;
1344 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001345 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001346 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1347 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001348done
1349
1350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
1356
1357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1362 If a cross compiler is detected then cross compile mode will be used." >&2
1363 elif test "x$build_alias" != "x$host_alias"; then
1364 cross_compiling=yes
1365 fi
1366fi
1367
1368ac_tool_prefix=
1369test -n "$host_alias" && ac_tool_prefix=$host_alias-
1370
1371test "$silent" = yes && exec 6>/dev/null
1372
1373
Reid Spencera773bd52006-08-04 18:18:08 +00001374ac_pwd=`pwd` && test -n "$ac_pwd" &&
1375ac_ls_di=`ls -di .` &&
1376ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1377 { echo "$as_me: error: Working directory cannot be determined" >&2
1378 { (exit 1); exit 1; }; }
1379test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1380 { echo "$as_me: error: pwd does not report name of working directory" >&2
1381 { (exit 1); exit 1; }; }
1382
1383
John Criswell7a73b802003-06-30 21:59:07 +00001384# Find the source files, if location was not specified.
1385if test -z "$srcdir"; then
1386 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001389$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001390 X"$0" : 'X\(//\)[^/]' \| \
1391 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001392 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001393echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 s//\1/
1396 q
1397 }
1398 /^X\(\/\/\)[^/].*/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\).*/{
1407 s//\1/
1408 q
1409 }
1410 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001411 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001412 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001413 srcdir=..
1414 fi
1415else
1416 ac_srcdir_defaulted=no
1417fi
Reid Spencera773bd52006-08-04 18:18:08 +00001418if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1420 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001421 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001422fi
Reid Spencera773bd52006-08-04 18:18:08 +00001423ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1424ac_abs_confdir=`(
1425 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001426 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001427 pwd)`
1428# When building in place, set srcdir=.
1429if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1431fi
1432# Remove unnecessary trailing slashes from srcdir.
1433# Double slashes in file names in object file debugging info
1434# mess up M-x gdb in Emacs.
1435case $srcdir in
1436*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437esac
1438for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443done
John Criswell7a73b802003-06-30 21:59:07 +00001444
1445#
1446# Report the --help message.
1447#
1448if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001452\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001453
1454Usage: $0 [OPTION]... [VAR=VALUE]...
1455
1456To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457VAR=VALUE. See below for descriptions of some of the useful variables.
1458
1459Defaults for the options are specified in brackets.
1460
1461Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
John Criswell7a73b802003-06-30 21:59:07 +00001472Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001476 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001477
1478By default, \`make install' will install all the files in
1479\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481for instance \`--prefix=\$HOME'.
1482
1483For better control, use the options below.
1484
1485Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001505_ACEOF
1506
1507 cat <<\_ACEOF
1508
1509System types:
1510 --build=BUILD configure for building on BUILD [guessed]
1511 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1512 --target=TARGET configure for building compilers for TARGET [HOST]
1513_ACEOF
1514fi
1515
1516if test -n "$ac_init_help"; then
1517 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001518 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001519 esac
1520 cat <<\_ACEOF
1521
1522Optional Features:
1523 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1524 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001526 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001527 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001528 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001529 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001530 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001531 --enable-pic Build LLVM with Position Independent Code (default
1532 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001533 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001534 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001535 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1536 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001537 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001538 --enable-shared[=PKGS] build shared libraries
1539 [default=enable_shared_default]
1540 --enable-static[=PKGS] build static libraries
1541 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001542 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001543 optimize for fast installation
1544 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001545 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001546
1547Optional Packages:
1548 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1549 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001550 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1551 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001552 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001553 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001554 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1555 --with-pic try to use only PIC/non-PIC objects [default=use
1556 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001557 --with-tags[=TAGS] include additional configurations [automatic]
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001558 --with-udis86=<path> Use udis86 external x86 disassembler library
John Criswell7a73b802003-06-30 21:59:07 +00001559
1560Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 CC C compiler command
1562 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001563 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1564 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001565 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001567 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001568 CXX C++ compiler command
1569 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001570 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1571 the first program found out of: `bison -y', `byacc', `yacc'.
1572 YFLAGS The list of arguments that will be passed by default to $YACC.
1573 This script will default YFLAGS to the empty string to avoid a
1574 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001575 CXXCPP C++ preprocessor
1576 F77 Fortran 77 compiler command
1577 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001578
1579Use these variables to override the choices made by `configure' or to help
1580it to find libraries and programs with nonstandard names/locations.
1581
1582Report bugs to <llvmbugs@cs.uiuc.edu>.
1583_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001584ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001585fi
1586
1587if test "$ac_init_help" = "recursive"; then
1588 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001589 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001590 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001591 ac_builddir=.
1592
Reid Spencera773bd52006-08-04 18:18:08 +00001593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
John Criswell7a73b802003-06-30 21:59:07 +00001596 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001597 # A ".." for each directory in $ac_dir_suffix.
1598 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001608
1609case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001610 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001611 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001615 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001622esac
Reid Spencera773bd52006-08-04 18:18:08 +00001623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001624
Reid Spencera773bd52006-08-04 18:18:08 +00001625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001633 else
1634 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001637 done
1638fi
1639
Reid Spencera773bd52006-08-04 18:18:08 +00001640test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001641if $ac_init_version; then
1642 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001643llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001644generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001645
Reid Spencera773bd52006-08-04 18:18:08 +00001646Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16472002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001648This configure script is free software; the Free Software Foundation
1649gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001650
Reid Spencerb6a7aa72007-01-19 17:41:47 +00001651Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001652_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001653 exit
John Criswell7a73b802003-06-30 21:59:07 +00001654fi
Reid Spencera773bd52006-08-04 18:18:08 +00001655cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001656This file contains any messages produced by compilers while
1657running configure, to aid debugging if configure makes a mistake.
1658
Tanya Lattner01d3e382006-11-14 00:59:52 +00001659It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001660generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001661
1662 $ $0 $@
1663
1664_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001665exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001666{
1667cat <<_ASUNAME
1668## --------- ##
1669## Platform. ##
1670## --------- ##
1671
1672hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676uname -v = `(uname -v) 2>/dev/null || echo unknown`
1677
1678/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1680
1681/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1682/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1683/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001684/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001685/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1686/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1687/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1688
1689_ASUNAME
1690
1691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692for as_dir in $PATH
1693do
1694 IFS=$as_save_IFS
1695 test -z "$as_dir" && as_dir=.
1696 echo "PATH: $as_dir"
1697done
Reid Spencera773bd52006-08-04 18:18:08 +00001698IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001699
1700} >&5
1701
1702cat >&5 <<_ACEOF
1703
1704
1705## ----------- ##
1706## Core tests. ##
1707## ----------- ##
1708
1709_ACEOF
1710
1711
1712# Keep a trace of the command line.
1713# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001714# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001715# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001716# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001717ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001718ac_configure_args0=
1719ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001720ac_must_keep_next=false
1721for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001722do
John Criswell0c38eaf2003-09-10 15:17:25 +00001723 for ac_arg
1724 do
1725 case $ac_arg in
1726 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728 | -silent | --silent | --silen | --sile | --sil)
1729 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001730 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001731 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732 esac
1733 case $ac_pass in
1734 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1735 2)
1736 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001738 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001739 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001740 case $ac_arg in
1741 *=* | --config-cache | -C | -disable-* | --disable-* \
1742 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744 | -with-* | --with-* | -without-* | --without-* | --x)
1745 case "$ac_configure_args0 " in
1746 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747 esac
1748 ;;
1749 -* ) ac_must_keep_next=true ;;
1750 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001752 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001753 ;;
1754 esac
1755 done
John Criswell7a73b802003-06-30 21:59:07 +00001756done
John Criswell0c38eaf2003-09-10 15:17:25 +00001757$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758$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 +00001759
1760# When interrupted or exit'd, cleanup temporary files, and complete
1761# config.log. We remove comments because anyway the quotes in there
1762# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001763# WARNING: Use '\'' to represent an apostrophe within the trap.
1764# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001765trap 'exit_status=$?
1766 # Save into config.log some information that might help in debugging.
1767 {
1768 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001769
John Criswell7a73b802003-06-30 21:59:07 +00001770 cat <<\_ASBOX
1771## ---------------- ##
1772## Cache variables. ##
1773## ---------------- ##
1774_ASBOX
1775 echo
1776 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001777(
1778 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779 eval ac_val=\$$ac_var
1780 case $ac_val in #(
1781 *${as_nl}*)
1782 case $ac_var in #(
1783 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785 esac
1786 case $ac_var in #(
1787 _ | IFS | as_nl) ;; #(
1788 *) $as_unset $ac_var ;;
1789 esac ;;
1790 esac
1791 done
John Criswell7a73b802003-06-30 21:59:07 +00001792 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001793 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001795 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001796 "s/'\''/'\''\\\\'\'''\''/g;
1797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001799 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001800 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001801 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001802 esac |
1803 sort
1804)
John Criswell7a73b802003-06-30 21:59:07 +00001805 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001806
1807 cat <<\_ASBOX
1808## ----------------- ##
1809## Output variables. ##
1810## ----------------- ##
1811_ASBOX
1812 echo
1813 for ac_var in $ac_subst_vars
1814 do
Reid Spencera773bd52006-08-04 18:18:08 +00001815 eval ac_val=\$$ac_var
1816 case $ac_val in
1817 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818 esac
1819 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001820 done | sort
1821 echo
1822
1823 if test -n "$ac_subst_files"; then
1824 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001825## ------------------- ##
1826## File substitutions. ##
1827## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001828_ASBOX
1829 echo
1830 for ac_var in $ac_subst_files
1831 do
Reid Spencera773bd52006-08-04 18:18:08 +00001832 eval ac_val=\$$ac_var
1833 case $ac_val in
1834 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835 esac
1836 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001837 done | sort
1838 echo
1839 fi
1840
John Criswell7a73b802003-06-30 21:59:07 +00001841 if test -s confdefs.h; then
1842 cat <<\_ASBOX
1843## ----------- ##
1844## confdefs.h. ##
1845## ----------- ##
1846_ASBOX
1847 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001848 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001849 echo
1850 fi
1851 test "$ac_signal" != 0 &&
1852 echo "$as_me: caught signal $ac_signal"
1853 echo "$as_me: exit $exit_status"
1854 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001855 rm -f core *.core core.conftest.* &&
1856 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001857 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001858' 0
John Criswell7a73b802003-06-30 21:59:07 +00001859for ac_signal in 1 2 13 15; do
1860 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861done
1862ac_signal=0
1863
1864# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001865rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001866
1867# Predefined preprocessor variables.
1868
1869cat >>confdefs.h <<_ACEOF
1870#define PACKAGE_NAME "$PACKAGE_NAME"
1871_ACEOF
1872
1873
1874cat >>confdefs.h <<_ACEOF
1875#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876_ACEOF
1877
1878
1879cat >>confdefs.h <<_ACEOF
1880#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881_ACEOF
1882
1883
1884cat >>confdefs.h <<_ACEOF
1885#define PACKAGE_STRING "$PACKAGE_STRING"
1886_ACEOF
1887
1888
1889cat >>confdefs.h <<_ACEOF
1890#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891_ACEOF
1892
1893
1894# Let the site file select an alternate cache file if it wants to.
1895# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001896if test -n "$CONFIG_SITE"; then
1897 set x "$CONFIG_SITE"
1898elif test "x$prefix" != xNONE; then
1899 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1900else
1901 set x "$ac_default_prefix/share/config.site" \
1902 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001903fi
Reid Spencera773bd52006-08-04 18:18:08 +00001904shift
1905for ac_site_file
1906do
John Criswell7a73b802003-06-30 21:59:07 +00001907 if test -r "$ac_site_file"; then
1908 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909echo "$as_me: loading site script $ac_site_file" >&6;}
1910 sed 's/^/| /' "$ac_site_file" >&5
1911 . "$ac_site_file"
1912 fi
1913done
1914
1915if test -r "$cache_file"; then
1916 # Some versions of bash will fail to source /dev/null (special
1917 # files actually), so we avoid doing that.
1918 if test -f "$cache_file"; then
1919 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920echo "$as_me: loading cache $cache_file" >&6;}
1921 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001922 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001924 esac
1925 fi
1926else
1927 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928echo "$as_me: creating cache $cache_file" >&6;}
1929 >$cache_file
1930fi
1931
1932# Check that the precious variables saved in the cache have kept the same
1933# value.
1934ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001935for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001936 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001938 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001940 case $ac_old_set,$ac_new_set in
1941 set,)
1942 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944 ac_cache_corrupted=: ;;
1945 ,set)
1946 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,);;
1950 *)
1951 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001953echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001955echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001956 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001957echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001958 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001959 fi;;
1960 esac
1961 # Pass precious variables to config.status.
1962 if test "$ac_new_set" = set; then
1963 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001964 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001965 *) ac_arg=$ac_var=$ac_new_val ;;
1966 esac
1967 case " $ac_configure_args " in
1968 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1969 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970 esac
1971 fi
1972done
1973if $ac_cache_corrupted; then
1974 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978 { (exit 1); exit 1; }; }
1979fi
1980
Reid Spencera773bd52006-08-04 18:18:08 +00001981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
John Criswell7a73b802003-06-30 21:59:07 +00002005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012
Reid Spencerb6a7aa72007-01-19 17:41:47 +00002013LLVM_COPYRIGHT="Copyright (c) 2003-2007 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002014
2015
2016
2017
2018
2019
2020
John Criswell7a73b802003-06-30 21:59:07 +00002021ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002022for ac_dir in autoconf "$srcdir"/autoconf; do
2023 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/install-sh -c"
2026 break
Reid Spencera773bd52006-08-04 18:18:08 +00002027 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002028 ac_aux_dir=$ac_dir
2029 ac_install_sh="$ac_aux_dir/install.sh -c"
2030 break
Reid Spencera773bd52006-08-04 18:18:08 +00002031 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/shtool install -c"
2034 break
2035 fi
2036done
2037if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002038 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2039echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002040 { (exit 1); exit 1; }; }
2041fi
Reid Spencera773bd52006-08-04 18:18:08 +00002042
2043# These three variables are undocumented and unsupported,
2044# and are intended to be withdrawn in a future Autoconf release.
2045# They can cause serious problems if a builder's source tree is in a directory
2046# whose full name contains unusual characters.
2047ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2048ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2049ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2050
John Criswell7a73b802003-06-30 21:59:07 +00002051
John Criswell392aaa32003-07-22 19:18:09 +00002052
Reid Spencer2706f8c2004-09-19 23:53:36 +00002053if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2055 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002056echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2057 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 fi
John Criswell93e1c722003-09-15 17:04:06 +00002059fi
2060
John Criswell33a911a2003-11-25 20:36:46 +00002061for i in `ls ${srcdir}/projects`
2062do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 if test -d ${srcdir}/projects/${i} ; then
2064 case ${i} in
Reid Spencer67bb0792007-01-17 02:14:46 +00002065 CVS) ;;
2066 sample) subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002068 privbracket) subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002069 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002070 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002072 llvm-test) subdirs="$subdirs projects/llvm-test"
2073 ;;
2074 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002076 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002077 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002078 llvm-java) subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002079 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002080 llvm-tv) subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002081 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002082 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002083 ;;
Reid Spencer67bb0792007-01-17 02:14:46 +00002084 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002085 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002086 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002087 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2088echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002089 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002090 esac
John Criswell33a911a2003-11-25 20:36:46 +00002091 fi
2092done
John Criswell559a6c12003-09-30 16:31:48 +00002093
John Criswell7a73b802003-06-30 21:59:07 +00002094
2095# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002096$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2097 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2098echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002099 { (exit 1); exit 1; }; }
2100
Reid Spencera773bd52006-08-04 18:18:08 +00002101{ echo "$as_me:$LINENO: checking build system type" >&5
2102echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002103if test "${ac_cv_build+set}" = set; then
2104 echo $ECHO_N "(cached) $ECHO_C" >&6
2105else
Reid Spencera773bd52006-08-04 18:18:08 +00002106 ac_build_alias=$build_alias
2107test "x$ac_build_alias" = x &&
2108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2109test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002110 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2111echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2112 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002113ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2114 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2115echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002116 { (exit 1); exit 1; }; }
2117
2118fi
Reid Spencera773bd52006-08-04 18:18:08 +00002119{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2120echo "${ECHO_T}$ac_cv_build" >&6; }
2121case $ac_cv_build in
2122*-*-*) ;;
2123*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2124echo "$as_me: error: invalid value of canonical build" >&2;}
2125 { (exit 1); exit 1; }; };;
2126esac
John Criswell7a73b802003-06-30 21:59:07 +00002127build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002128ac_save_IFS=$IFS; IFS='-'
2129set x $ac_cv_build
2130shift
2131build_cpu=$1
2132build_vendor=$2
2133shift; shift
2134# Remember, the first character of IFS is used to create $*,
2135# except with old shells:
2136build_os=$*
2137IFS=$ac_save_IFS
2138case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002139
2140
Reid Spencera773bd52006-08-04 18:18:08 +00002141{ echo "$as_me:$LINENO: checking host system type" >&5
2142echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002143if test "${ac_cv_host+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145else
Reid Spencera773bd52006-08-04 18:18:08 +00002146 if test "x$host_alias" = x; then
2147 ac_cv_host=$ac_cv_build
2148else
2149 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2151echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002152 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002153fi
John Criswell7a73b802003-06-30 21:59:07 +00002154
2155fi
Reid Spencera773bd52006-08-04 18:18:08 +00002156{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2157echo "${ECHO_T}$ac_cv_host" >&6; }
2158case $ac_cv_host in
2159*-*-*) ;;
2160*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2161echo "$as_me: error: invalid value of canonical host" >&2;}
2162 { (exit 1); exit 1; }; };;
2163esac
John Criswell7a73b802003-06-30 21:59:07 +00002164host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002165ac_save_IFS=$IFS; IFS='-'
2166set x $ac_cv_host
2167shift
2168host_cpu=$1
2169host_vendor=$2
2170shift; shift
2171# Remember, the first character of IFS is used to create $*,
2172# except with old shells:
2173host_os=$*
2174IFS=$ac_save_IFS
2175case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002176
2177
Reid Spencera773bd52006-08-04 18:18:08 +00002178{ echo "$as_me:$LINENO: checking target system type" >&5
2179echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002180if test "${ac_cv_target+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
Reid Spencera773bd52006-08-04 18:18:08 +00002183 if test "x$target_alias" = x; then
2184 ac_cv_target=$ac_cv_host
2185else
2186 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2187 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2188echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002189 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002190fi
John Criswell7a73b802003-06-30 21:59:07 +00002191
2192fi
Reid Spencera773bd52006-08-04 18:18:08 +00002193{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2194echo "${ECHO_T}$ac_cv_target" >&6; }
2195case $ac_cv_target in
2196*-*-*) ;;
2197*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2198echo "$as_me: error: invalid value of canonical target" >&2;}
2199 { (exit 1); exit 1; }; };;
2200esac
John Criswell7a73b802003-06-30 21:59:07 +00002201target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002202ac_save_IFS=$IFS; IFS='-'
2203set x $ac_cv_target
2204shift
2205target_cpu=$1
2206target_vendor=$2
2207shift; shift
2208# Remember, the first character of IFS is used to create $*,
2209# except with old shells:
2210target_os=$*
2211IFS=$ac_save_IFS
2212case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002213
2214
2215# The aliases save the names the user supplied, while $host etc.
2216# will get canonicalized.
2217test -n "$target_alias" &&
2218 test "$program_prefix$program_suffix$program_transform_name" = \
2219 NONENONEs,x,x, &&
2220 program_prefix=${target_alias}-
2221
Reid Spencera773bd52006-08-04 18:18:08 +00002222{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2223echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002224if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002227 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002228 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002231 llvm_cv_os_type="AIX"
2232 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002233 *-*-irix*)
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="IRIX"
2237 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002238 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002241 llvm_cv_os_type="Cygwin"
2242 llvm_cv_platform_type="Unix" ;;
2243 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002244 llvm_cv_link_all_option="-Wl,-all_load"
2245 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002246 llvm_cv_os_type="Darwin"
2247 llvm_cv_platform_type="Unix" ;;
2248 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002249 llvm_cv_link_all_option="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002251 llvm_cv_os_type="FreeBSD"
2252 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002253 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002254 llvm_cv_link_all_option="-Wl,--whole-archive"
2255 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002256 llvm_cv_os_type="OpenBSD"
2257 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002258 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002259 llvm_cv_link_all_option="-Wl,--whole-archive"
2260 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002261 llvm_cv_os_type="HP-UX"
2262 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002263 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002264 llvm_cv_link_all_option="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002266 llvm_cv_os_type="Interix"
2267 llvm_cv_platform_type="Unix" ;;
2268 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002269 llvm_cv_link_all_option="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002271 llvm_cv_os_type="Linux"
2272 llvm_cv_platform_type="Unix" ;;
2273 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002274 llvm_cv_link_all_option="-Wl,-z,allextract"
2275 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002276 llvm_cv_os_type="SunOS"
2277 llvm_cv_platform_type="Unix" ;;
2278 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002279 llvm_cv_link_all_option="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002281 llvm_cv_os_type="Win32"
2282 llvm_cv_platform_type="Win32" ;;
2283 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002284 llvm_cv_link_all_option="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002286 llvm_cv_os_type="MingW"
2287 llvm_cv_platform_type="Win32" ;;
2288 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002289 llvm_cv_link_all_option=""
2290 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002291 llvm_cv_os_type="Unknown"
2292 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002293esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002294fi
Reid Spencera773bd52006-08-04 18:18:08 +00002295{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002297
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298if test "$llvm_cv_os_type" = "Unknown" ; then
2299 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2300echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002301 { (exit 1); exit 1; }; }
2302fi
2303
Reid Spencer7b3e8512004-12-24 06:29:05 +00002304OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002305
2306
Reid Spencera773bd52006-08-04 18:18:08 +00002307LINKALL=$llvm_cv_link_all_option
2308
2309NOLINKALL=$llvm_cv_no_link_all_option
2310
2311
Reid Spencer7b3e8512004-12-24 06:29:05 +00002312case $llvm_cv_platform_type in
2313 Unix)
2314
2315cat >>confdefs.h <<\_ACEOF
2316#define LLVM_ON_UNIX 1
2317_ACEOF
2318
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002319 LLVM_ON_UNIX=1
2320
2321 LLVM_ON_WIN32=0
2322
Reid Spencer7b3e8512004-12-24 06:29:05 +00002323 ;;
2324 Win32)
2325
2326cat >>confdefs.h <<\_ACEOF
2327#define LLVM_ON_WIN32 1
2328_ACEOF
2329
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002330 LLVM_ON_UNIX=0
2331
2332 LLVM_ON_WIN32=1
2333
Reid Spencer7b3e8512004-12-24 06:29:05 +00002334 ;;
2335esac
2336
Reid Spencera773bd52006-08-04 18:18:08 +00002337{ echo "$as_me:$LINENO: checking target architecture" >&5
2338echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002339if test "${llvm_cv_target_arch+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002343 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002344 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002345 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2346 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002347 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002348 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002349 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002350esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351fi
Reid Spencera773bd52006-08-04 18:18:08 +00002352{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2353echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355if test "$llvm_cv_target_arch" = "Unknown" ; then
2356 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2357echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2358fi
John Criswell76595452003-07-01 22:07:39 +00002359
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002360ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002361
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002362
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363ac_ext=c
2364ac_cpp='$CPP $CPPFLAGS'
2365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002368if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002369 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2370set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002373if test "${ac_cv_prog_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376 if test -n "$CC"; then
2377 ac_cv_prog_CC="$CC" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382 IFS=$as_save_IFS
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002385 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 +00002386 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 break 2
2389 fi
2390done
2391done
Reid Spencera773bd52006-08-04 18:18:08 +00002392IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002393
2394fi
2395fi
2396CC=$ac_cv_prog_CC
2397if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002398 { echo "$as_me:$LINENO: result: $CC" >&5
2399echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400else
Reid Spencera773bd52006-08-04 18:18:08 +00002401 { echo "$as_me:$LINENO: result: no" >&5
2402echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403fi
2404
Reid Spencera773bd52006-08-04 18:18:08 +00002405
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002406fi
2407if test -z "$ac_cv_prog_CC"; then
2408 ac_ct_CC=$CC
2409 # Extract the first word of "gcc", so it can be a program name with args.
2410set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002411{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002413if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2415else
2416 if test -n "$ac_ct_CC"; then
2417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2418else
2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420for as_dir in $PATH
2421do
2422 IFS=$as_save_IFS
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002425 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 +00002426 ac_cv_prog_ac_ct_CC="gcc"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2428 break 2
2429 fi
2430done
2431done
Reid Spencera773bd52006-08-04 18:18:08 +00002432IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002433
2434fi
2435fi
2436ac_ct_CC=$ac_cv_prog_ac_ct_CC
2437if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002438 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2439echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440else
Reid Spencera773bd52006-08-04 18:18:08 +00002441 { echo "$as_me:$LINENO: result: no" >&5
2442echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002443fi
2444
Reid Spencera773bd52006-08-04 18:18:08 +00002445 if test "x$ac_ct_CC" = x; then
2446 CC=""
2447 else
2448 case $cross_compiling:$ac_tool_warned in
2449yes:)
2450{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2451whose name does not start with the host triplet. If you think this
2452configuration is useful to you, please write to autoconf@gnu.org." >&5
2453echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2454whose name does not start with the host triplet. If you think this
2455configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2456ac_tool_warned=yes ;;
2457esac
2458 CC=$ac_ct_CC
2459 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460else
2461 CC="$ac_cv_prog_CC"
2462fi
2463
2464if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002465 if test -n "$ac_tool_prefix"; then
2466 # 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 +00002467set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002468{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470if test "${ac_cv_prog_CC+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473 if test -n "$CC"; then
2474 ac_cv_prog_CC="$CC" # Let the user override the test.
2475else
2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477for as_dir in $PATH
2478do
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002482 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 +00002483 ac_cv_prog_CC="${ac_tool_prefix}cc"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 break 2
2486 fi
2487done
2488done
Reid Spencera773bd52006-08-04 18:18:08 +00002489IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002490
2491fi
2492fi
2493CC=$ac_cv_prog_CC
2494if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002495 { echo "$as_me:$LINENO: result: $CC" >&5
2496echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497else
Reid Spencera773bd52006-08-04 18:18:08 +00002498 { echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002500fi
2501
Reid Spencera773bd52006-08-04 18:18:08 +00002502
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002503 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504fi
2505if test -z "$CC"; then
2506 # Extract the first word of "cc", so it can be a program name with args.
2507set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002508{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002510if test "${ac_cv_prog_CC+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2512else
2513 if test -n "$CC"; then
2514 ac_cv_prog_CC="$CC" # Let the user override the test.
2515else
2516 ac_prog_rejected=no
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002523 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 +00002524 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2525 ac_prog_rejected=yes
2526 continue
2527 fi
2528 ac_cv_prog_CC="cc"
2529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532done
2533done
Reid Spencera773bd52006-08-04 18:18:08 +00002534IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002535
2536if test $ac_prog_rejected = yes; then
2537 # We found a bogon in the path, so make sure we never use it.
2538 set dummy $ac_cv_prog_CC
2539 shift
2540 if test $# != 0; then
2541 # We chose a different compiler from the bogus one.
2542 # However, it has the same basename, so the bogon will be chosen
2543 # first if we set CC to just the basename; use the full file name.
2544 shift
2545 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2546 fi
2547fi
2548fi
2549fi
2550CC=$ac_cv_prog_CC
2551if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002552 { echo "$as_me:$LINENO: result: $CC" >&5
2553echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554else
Reid Spencera773bd52006-08-04 18:18:08 +00002555 { echo "$as_me:$LINENO: result: no" >&5
2556echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002557fi
2558
Reid Spencera773bd52006-08-04 18:18:08 +00002559
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002560fi
2561if test -z "$CC"; then
2562 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002563 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002564 do
2565 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002569if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002570 echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002574else
2575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002581 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 +00002582 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2585 fi
2586done
2587done
Reid Spencera773bd52006-08-04 18:18:08 +00002588IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002589
2590fi
2591fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002594 { echo "$as_me:$LINENO: result: $CC" >&5
2595echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002596else
Reid Spencera773bd52006-08-04 18:18:08 +00002597 { echo "$as_me:$LINENO: result: no" >&5
2598echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002599fi
2600
Reid Spencera773bd52006-08-04 18:18:08 +00002601
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002602 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002603 done
2604fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002605if test -z "$CC"; then
2606 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002607 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002608do
2609 # Extract the first word of "$ac_prog", so it can be a program name with args.
2610set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002613if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002616 if test -n "$ac_ct_CC"; then
2617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002618else
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622 IFS=$as_save_IFS
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002626 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 break 2
2629 fi
2630done
2631done
Reid Spencera773bd52006-08-04 18:18:08 +00002632IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002633
2634fi
2635fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002636ac_ct_CC=$ac_cv_prog_ac_ct_CC
2637if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002638 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2639echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002640else
Reid Spencera773bd52006-08-04 18:18:08 +00002641 { echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002643fi
2644
Reid Spencera773bd52006-08-04 18:18:08 +00002645
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002646 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002647done
John Criswell7a73b802003-06-30 21:59:07 +00002648
Reid Spencera773bd52006-08-04 18:18:08 +00002649 if test "x$ac_ct_CC" = x; then
2650 CC=""
2651 else
2652 case $cross_compiling:$ac_tool_warned in
2653yes:)
2654{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2655whose name does not start with the host triplet. If you think this
2656configuration is useful to you, please write to autoconf@gnu.org." >&5
2657echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2658whose name does not start with the host triplet. If you think this
2659configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2660ac_tool_warned=yes ;;
2661esac
2662 CC=$ac_ct_CC
2663 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002664fi
2665
John Criswell7a73b802003-06-30 21:59:07 +00002666fi
2667
2668
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002669test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2670See \`config.log' for more details." >&5
2671echo "$as_me: error: no acceptable C compiler found in \$PATH
2672See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2674
John Criswell7a73b802003-06-30 21:59:07 +00002675# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002676echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002677ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002678{ (ac_try="$ac_compiler --version >&5"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
2683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002688{ (ac_try="$ac_compiler -v >&5"
2689case "(($ac_try" in
2690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2691 *) ac_try_echo=$ac_try;;
2692esac
2693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2694 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002698{ (ac_try="$ac_compiler -V >&5"
2699case "(($ac_try" in
2700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701 *) ac_try_echo=$ac_try;;
2702esac
2703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }
2708
2709cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002710/* confdefs.h. */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002715
John Criswell7a73b802003-06-30 21:59:07 +00002716int
2717main ()
2718{
2719
2720 ;
2721 return 0;
2722}
2723_ACEOF
2724ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002725ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002726# Try to create an executable without -o first, disregard a.out.
2727# It will help us diagnose broken compilers, and finding out an intuition
2728# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002729{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2730echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002731ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002732#
2733# List of possible output files, starting from the most likely.
2734# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2735# only as a last resort. b.out is created by i960 compilers.
2736ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2737#
2738# The IRIX 6 linker writes into existing files which may not be
2739# executable, retaining their permissions. Remove them first so a
2740# subsequent execution test works.
2741ac_rmfiles=
2742for ac_file in $ac_files
2743do
2744 case $ac_file in
2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2747 esac
2748done
2749rm -f $ac_rmfiles
2750
2751if { (ac_try="$ac_link_default"
2752case "(($ac_try" in
2753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754 *) ac_try_echo=$ac_try;;
2755esac
2756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002758 ac_status=$?
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002761 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2762# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2763# in a Makefile. We should not override ac_cv_exeext if it was cached,
2764# so that the user can short-circuit this test for compilers unknown to
2765# Autoconf.
2766for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002767do
2768 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002769 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002771 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002772 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002773 # We found the default executable, but exeext='' is most
2774 # certainly right.
2775 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002776 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002777 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2778 then :; else
2779 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2780 fi
2781 # We set ac_cv_exeext here because the later test for it is not
2782 # safe: cross compilers may not add the suffix if given an `-o'
2783 # argument, so we may need to know it at that point already.
2784 # Even if this section looks crufty: it has the advantage of
2785 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002786 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002787 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002788 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002789 esac
2790done
Reid Spencera773bd52006-08-04 18:18:08 +00002791test "$ac_cv_exeext" = no && ac_cv_exeext=
2792
John Criswell7a73b802003-06-30 21:59:07 +00002793else
2794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002795sed 's/^/| /' conftest.$ac_ext >&5
2796
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002797{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002798See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002799echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002800See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002801 { (exit 77); exit 77; }; }
2802fi
2803
2804ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002805{ echo "$as_me:$LINENO: result: $ac_file" >&5
2806echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002807
Reid Spencera773bd52006-08-04 18:18:08 +00002808# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002809# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002810{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2811echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002812# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2813# If not cross compiling, check that we can run a simple program.
2814if test "$cross_compiling" != yes; then
2815 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002816 { (case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }; }; then
2825 cross_compiling=no
2826 else
2827 if test "$cross_compiling" = maybe; then
2828 cross_compiling=yes
2829 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002831If you meant to cross compile, use \`--host'.
2832See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002833echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002834If you meant to cross compile, use \`--host'.
2835See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002836 { (exit 1); exit 1; }; }
2837 fi
2838 fi
2839fi
Reid Spencera773bd52006-08-04 18:18:08 +00002840{ echo "$as_me:$LINENO: result: yes" >&5
2841echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002842
John Criswell0c38eaf2003-09-10 15:17:25 +00002843rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002844ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002845# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002846# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002847{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2848echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2849{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2850echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002851
Reid Spencera773bd52006-08-04 18:18:08 +00002852{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2853echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2854if { (ac_try="$ac_link"
2855case "(($ac_try" in
2856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2857 *) ac_try_echo=$ac_try;;
2858esac
2859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2860 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; then
2864 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2865# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2866# work properly (i.e., refer to `conftest.exe'), while it won't with
2867# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002868for ac_file in conftest.exe conftest conftest.*; do
2869 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002870 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002872 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002873 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002874 * ) break;;
2875 esac
2876done
2877else
John Criswell0c38eaf2003-09-10 15:17:25 +00002878 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2879See \`config.log' for more details." >&5
2880echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2881See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002882 { (exit 1); exit 1; }; }
2883fi
2884
2885rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002886{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2887echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002888
2889rm -f conftest.$ac_ext
2890EXEEXT=$ac_cv_exeext
2891ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002892{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2893echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002894if test "${ac_cv_objext+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002898/* confdefs.h. */
2899_ACEOF
2900cat confdefs.h >>conftest.$ac_ext
2901cat >>conftest.$ac_ext <<_ACEOF
2902/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002903
John Criswell7a73b802003-06-30 21:59:07 +00002904int
2905main ()
2906{
2907
2908 ;
2909 return 0;
2910}
2911_ACEOF
2912rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002913if { (ac_try="$ac_compile"
2914case "(($ac_try" in
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2917esac
2918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002923 for ac_file in conftest.o conftest.obj conftest.*; do
2924 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002925 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002926 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002927 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2928 break;;
2929 esac
2930done
2931else
2932 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002933sed 's/^/| /' conftest.$ac_ext >&5
2934
2935{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2936See \`config.log' for more details." >&5
2937echo "$as_me: error: cannot compute suffix of object files: cannot compile
2938See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002939 { (exit 1); exit 1; }; }
2940fi
2941
2942rm -f conftest.$ac_cv_objext conftest.$ac_ext
2943fi
Reid Spencera773bd52006-08-04 18:18:08 +00002944{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2945echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002946OBJEXT=$ac_cv_objext
2947ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002948{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2949echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002950if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002954/* confdefs.h. */
2955_ACEOF
2956cat confdefs.h >>conftest.$ac_ext
2957cat >>conftest.$ac_ext <<_ACEOF
2958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002959
John Criswell7a73b802003-06-30 21:59:07 +00002960int
2961main ()
2962{
2963#ifndef __GNUC__
2964 choke me
2965#endif
2966
2967 ;
2968 return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002972if { (ac_try="$ac_compile"
2973case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976esac
2977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002979 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002980 grep -v '^ *+' conftest.er1 >conftest.err
2981 rm -f conftest.er1
2982 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2986 { (case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989esac
2990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2991 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002992 ac_status=$?
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); }; } &&
2995 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002996 { (case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
3000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003002 ac_status=$?
3003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004 (exit $ac_status); }; }; then
3005 ac_compiler_gnu=yes
3006else
3007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003008sed 's/^/| /' conftest.$ac_ext >&5
3009
Reid Spencera773bd52006-08-04 18:18:08 +00003010 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003011fi
Reid Spencera773bd52006-08-04 18:18:08 +00003012
3013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003014ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003015
3016fi
Reid Spencera773bd52006-08-04 18:18:08 +00003017{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3018echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003019GCC=`test $ac_compiler_gnu = yes && echo yes`
3020ac_test_CFLAGS=${CFLAGS+set}
3021ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003022{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3023echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003024if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026else
Reid Spencera773bd52006-08-04 18:18:08 +00003027 ac_save_c_werror_flag=$ac_c_werror_flag
3028 ac_c_werror_flag=yes
3029 ac_cv_prog_cc_g=no
3030 CFLAGS="-g"
3031 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003032/* confdefs.h. */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003037
John Criswell7a73b802003-06-30 21:59:07 +00003038int
3039main ()
3040{
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003047if { (ac_try="$ac_compile"
3048case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051esac
3052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3053 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061 { (case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003067 ac_status=$?
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }; } &&
3070 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003071 { (case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074esac
3075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003080 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003081else
3082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003083sed 's/^/| /' conftest.$ac_ext >&5
3084
Reid Spencera773bd52006-08-04 18:18:08 +00003085 CFLAGS=""
3086 cat >conftest.$ac_ext <<_ACEOF
3087/* confdefs.h. */
3088_ACEOF
3089cat confdefs.h >>conftest.$ac_ext
3090cat >>conftest.$ac_ext <<_ACEOF
3091/* end confdefs.h. */
3092
3093int
3094main ()
3095{
3096
3097 ;
3098 return 0;
3099}
3100_ACEOF
3101rm -f conftest.$ac_objext
3102if { (ac_try="$ac_compile"
3103case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106esac
3107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } &&
3115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3116 { (case "(($ac_try" in
3117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118 *) ac_try_echo=$ac_try;;
3119esac
3120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121 (eval "$ac_try") 2>&5
3122 ac_status=$?
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); }; } &&
3125 { ac_try='test -s conftest.$ac_objext'
3126 { (case "(($ac_try" in
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3129esac
3130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_try") 2>&5
3132 ac_status=$?
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); }; }; then
3135 :
3136else
3137 echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 ac_c_werror_flag=$ac_save_c_werror_flag
3141 CFLAGS="-g"
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148
3149int
3150main ()
3151{
3152
3153 ;
3154 return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (ac_try="$ac_compile"
3159case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } &&
3171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3172 { (case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175esac
3176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177 (eval "$ac_try") 2>&5
3178 ac_status=$?
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; } &&
3181 { ac_try='test -s conftest.$ac_objext'
3182 { (case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
3186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_try") 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_cv_prog_cc_g=yes
3192else
3193 echo "$as_me: failed program was:" >&5
3194sed 's/^/| /' conftest.$ac_ext >&5
3195
3196
John Criswell7a73b802003-06-30 21:59:07 +00003197fi
Reid Spencera773bd52006-08-04 18:18:08 +00003198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003200fi
Reid Spencera773bd52006-08-04 18:18:08 +00003201
3202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3203fi
3204
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207fi
3208{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003215 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003217 fi
3218else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003221 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003223 fi
3224fi
Reid Spencera773bd52006-08-04 18:18:08 +00003225{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3226echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3227if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
Reid Spencera773bd52006-08-04 18:18:08 +00003230 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003231ac_save_CC=$CC
3232cat >conftest.$ac_ext <<_ACEOF
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h. */
3238#include <stdarg.h>
3239#include <stdio.h>
3240#include <sys/types.h>
3241#include <sys/stat.h>
3242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243struct buf { int x; };
3244FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245static char *e (p, i)
3246 char **p;
3247 int i;
3248{
3249 return p[i];
3250}
3251static char *f (char * (*g) (char **, int), char **p, ...)
3252{
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3259}
3260
3261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003264 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003267 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
Reid Spencera773bd52006-08-04 18:18:08 +00003270/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3271 inside strings and character constants. */
3272#define FOO(x) 'x'
3273int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3274
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003275int test (int i, double x);
3276struct s1 {int (*f) (int a);};
3277struct s2 {int (*f) (double a);};
3278int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3279int argc;
3280char **argv;
3281int
3282main ()
3283{
3284return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3285 ;
3286 return 0;
3287}
3288_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003289for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3290 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003291do
3292 CC="$ac_save_CC $ac_arg"
3293 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003294if { (ac_try="$ac_compile"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003301 ac_status=$?
3302 grep -v '^ *+' conftest.er1 >conftest.err
3303 rm -f conftest.er1
3304 cat conftest.err >&5
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3308 { (case "(($ac_try" in
3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310 *) ac_try_echo=$ac_try;;
3311esac
3312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003314 ac_status=$?
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; } &&
3317 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003318 { (case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
3322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003324 ac_status=$?
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003327 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003328else
3329 echo "$as_me: failed program was:" >&5
3330sed 's/^/| /' conftest.$ac_ext >&5
3331
Reid Spencera773bd52006-08-04 18:18:08 +00003332
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333fi
Reid Spencera773bd52006-08-04 18:18:08 +00003334
3335rm -f core conftest.err conftest.$ac_objext
3336 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337done
Reid Spencera773bd52006-08-04 18:18:08 +00003338rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003339CC=$ac_save_CC
3340
3341fi
Reid Spencera773bd52006-08-04 18:18:08 +00003342# AC_CACHE_VAL
3343case "x$ac_cv_prog_cc_c89" in
3344 x)
3345 { echo "$as_me:$LINENO: result: none needed" >&5
3346echo "${ECHO_T}none needed" >&6; } ;;
3347 xno)
3348 { echo "$as_me:$LINENO: result: unsupported" >&5
3349echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003350 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003351 CC="$CC $ac_cv_prog_cc_c89"
3352 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3353echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003354esac
3355
John Criswell0c38eaf2003-09-10 15:17:25 +00003356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003357ac_ext=c
3358ac_cpp='$CPP $CPPFLAGS'
3359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362
3363
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003364ac_ext=c
3365ac_cpp='$CPP $CPPFLAGS'
3366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003369{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3370echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003371# On Suns, sometimes $CPP names a directory.
3372if test -n "$CPP" && test -d "$CPP"; then
3373 CPP=
3374fi
3375if test -z "$CPP"; then
3376 if test "${ac_cv_prog_CPP+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379 # Double quotes because CPP needs to be expanded
3380 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3381 do
3382 ac_preproc_ok=false
3383for ac_c_preproc_warn_flag in '' yes
3384do
3385 # Use a header file that comes with gcc, so configuring glibc
3386 # with a fresh cross-compiler works.
3387 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3388 # <limits.h> exists even on freestanding compilers.
3389 # On the NeXT, cc -E runs the code through the compiler's parser,
3390 # not just through cpp. "Syntax error" is here to catch this case.
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */
3397#ifdef __STDC__
3398# include <limits.h>
3399#else
3400# include <assert.h>
3401#endif
3402 Syntax error
3403_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003404if { (ac_try="$ac_cpp conftest.$ac_ext"
3405case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3420 else
3421 ac_cpp_err=
3422 fi
3423else
3424 ac_cpp_err=yes
3425fi
3426if test -z "$ac_cpp_err"; then
3427 :
3428else
3429 echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432 # Broken: fails on valid input.
3433continue
3434fi
Reid Spencera773bd52006-08-04 18:18:08 +00003435
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003436rm -f conftest.err conftest.$ac_ext
3437
Reid Spencera773bd52006-08-04 18:18:08 +00003438 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003439 # can be detected and how.
3440 cat >conftest.$ac_ext <<_ACEOF
3441/* confdefs.h. */
3442_ACEOF
3443cat confdefs.h >>conftest.$ac_ext
3444cat >>conftest.$ac_ext <<_ACEOF
3445/* end confdefs.h. */
3446#include <ac_nonexistent.h>
3447_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003448if { (ac_try="$ac_cpp conftest.$ac_ext"
3449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
3453eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003455 ac_status=$?
3456 grep -v '^ *+' conftest.er1 >conftest.err
3457 rm -f conftest.er1
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } >/dev/null; then
3461 if test -s conftest.err; then
3462 ac_cpp_err=$ac_c_preproc_warn_flag
3463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3464 else
3465 ac_cpp_err=
3466 fi
3467else
3468 ac_cpp_err=yes
3469fi
3470if test -z "$ac_cpp_err"; then
3471 # Broken: success on invalid input.
3472continue
3473else
3474 echo "$as_me: failed program was:" >&5
3475sed 's/^/| /' conftest.$ac_ext >&5
3476
3477 # Passes both tests.
3478ac_preproc_ok=:
3479break
3480fi
Reid Spencera773bd52006-08-04 18:18:08 +00003481
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003482rm -f conftest.err conftest.$ac_ext
3483
3484done
3485# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3486rm -f conftest.err conftest.$ac_ext
3487if $ac_preproc_ok; then
3488 break
3489fi
3490
3491 done
3492 ac_cv_prog_CPP=$CPP
3493
3494fi
3495 CPP=$ac_cv_prog_CPP
3496else
3497 ac_cv_prog_CPP=$CPP
3498fi
Reid Spencera773bd52006-08-04 18:18:08 +00003499{ echo "$as_me:$LINENO: result: $CPP" >&5
3500echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003501ac_preproc_ok=false
3502for ac_c_preproc_warn_flag in '' yes
3503do
3504 # Use a header file that comes with gcc, so configuring glibc
3505 # with a fresh cross-compiler works.
3506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3507 # <limits.h> exists even on freestanding compilers.
3508 # On the NeXT, cc -E runs the code through the compiler's parser,
3509 # not just through cpp. "Syntax error" is here to catch this case.
3510 cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h. */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h. */
3516#ifdef __STDC__
3517# include <limits.h>
3518#else
3519# include <assert.h>
3520#endif
3521 Syntax error
3522_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003523if { (ac_try="$ac_cpp conftest.$ac_ext"
3524case "(($ac_try" in
3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526 *) ac_try_echo=$ac_try;;
3527esac
3528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003530 ac_status=$?
3531 grep -v '^ *+' conftest.er1 >conftest.err
3532 rm -f conftest.er1
3533 cat conftest.err >&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); } >/dev/null; then
3536 if test -s conftest.err; then
3537 ac_cpp_err=$ac_c_preproc_warn_flag
3538 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 else
3540 ac_cpp_err=
3541 fi
3542else
3543 ac_cpp_err=yes
3544fi
3545if test -z "$ac_cpp_err"; then
3546 :
3547else
3548 echo "$as_me: failed program was:" >&5
3549sed 's/^/| /' conftest.$ac_ext >&5
3550
3551 # Broken: fails on valid input.
3552continue
3553fi
Reid Spencera773bd52006-08-04 18:18:08 +00003554
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003555rm -f conftest.err conftest.$ac_ext
3556
Reid Spencera773bd52006-08-04 18:18:08 +00003557 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003558 # can be detected and how.
3559 cat >conftest.$ac_ext <<_ACEOF
3560/* confdefs.h. */
3561_ACEOF
3562cat confdefs.h >>conftest.$ac_ext
3563cat >>conftest.$ac_ext <<_ACEOF
3564/* end confdefs.h. */
3565#include <ac_nonexistent.h>
3566_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003567if { (ac_try="$ac_cpp conftest.$ac_ext"
3568case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571esac
3572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } >/dev/null; then
3580 if test -s conftest.err; then
3581 ac_cpp_err=$ac_c_preproc_warn_flag
3582 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3583 else
3584 ac_cpp_err=
3585 fi
3586else
3587 ac_cpp_err=yes
3588fi
3589if test -z "$ac_cpp_err"; then
3590 # Broken: success on invalid input.
3591continue
3592else
3593 echo "$as_me: failed program was:" >&5
3594sed 's/^/| /' conftest.$ac_ext >&5
3595
3596 # Passes both tests.
3597ac_preproc_ok=:
3598break
3599fi
Reid Spencera773bd52006-08-04 18:18:08 +00003600
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003601rm -f conftest.err conftest.$ac_ext
3602
3603done
3604# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3605rm -f conftest.err conftest.$ac_ext
3606if $ac_preproc_ok; then
3607 :
3608else
3609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3610See \`config.log' for more details." >&5
3611echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3612See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }
3614fi
3615
John Criswell7a73b802003-06-30 21:59:07 +00003616ac_ext=c
3617ac_cpp='$CPP $CPPFLAGS'
3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
John Criswell7a73b802003-06-30 21:59:07 +00003622
Reid Spencera773bd52006-08-04 18:18:08 +00003623{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3624echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003625if test "${ac_cv_path_GREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
Reid Spencera773bd52006-08-04 18:18:08 +00003628 # Extract the first word of "grep ggrep" to use in msg output
3629if test -z "$GREP"; then
3630set dummy grep ggrep; ac_prog_name=$2
3631if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003632 echo $ECHO_N "(cached) $ECHO_C" >&6
3633else
Reid Spencera773bd52006-08-04 18:18:08 +00003634 ac_path_GREP_found=false
3635# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003637for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003641 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003642 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3644 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3645 # Check for GNU ac_path_GREP and select it if it is found.
3646 # Check for GNU $ac_path_GREP
3647case `"$ac_path_GREP" --version 2>&1` in
3648*GNU*)
3649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650*)
3651 ac_count=0
3652 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3653 while :
3654 do
3655 cat "conftest.in" "conftest.in" >"conftest.tmp"
3656 mv "conftest.tmp" "conftest.in"
3657 cp "conftest.in" "conftest.nl"
3658 echo 'GREP' >> "conftest.nl"
3659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3661 ac_count=`expr $ac_count + 1`
3662 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3663 # Best one so far, save it but keep looking for a better one
3664 ac_cv_path_GREP="$ac_path_GREP"
3665 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003666 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003667 # 10*(2^10) chars as input seems more than enough
3668 test $ac_count -gt 10 && break
3669 done
3670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671esac
3672
3673
3674 $ac_path_GREP_found && break 3
3675 done
3676done
3677
3678done
3679IFS=$as_save_IFS
3680
3681
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003682fi
Reid Spencera773bd52006-08-04 18:18:08 +00003683
3684GREP="$ac_cv_path_GREP"
3685if test -z "$GREP"; then
3686 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3687echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3688 { (exit 1); exit 1; }; }
3689fi
3690
3691else
3692 ac_cv_path_GREP=$GREP
3693fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003694
John Criswell7a73b802003-06-30 21:59:07 +00003695
Reid Spencera773bd52006-08-04 18:18:08 +00003696fi
3697{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3698echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3699 GREP="$ac_cv_path_GREP"
3700
3701
3702{ echo "$as_me:$LINENO: checking for egrep" >&5
3703echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3704if test "${ac_cv_path_EGREP+set}" = set; then
3705 echo $ECHO_N "(cached) $ECHO_C" >&6
3706else
3707 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3708 then ac_cv_path_EGREP="$GREP -E"
3709 else
3710 # Extract the first word of "egrep" to use in msg output
3711if test -z "$EGREP"; then
3712set dummy egrep; ac_prog_name=$2
3713if test "${ac_cv_path_EGREP+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715else
3716 ac_path_EGREP_found=false
3717# Loop through the user's path and test for each of PROGNAME-LIST
3718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3720do
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_prog in egrep; do
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3726 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3727 # Check for GNU ac_path_EGREP and select it if it is found.
3728 # Check for GNU $ac_path_EGREP
3729case `"$ac_path_EGREP" --version 2>&1` in
3730*GNU*)
3731 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3732*)
3733 ac_count=0
3734 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3735 while :
3736 do
3737 cat "conftest.in" "conftest.in" >"conftest.tmp"
3738 mv "conftest.tmp" "conftest.in"
3739 cp "conftest.in" "conftest.nl"
3740 echo 'EGREP' >> "conftest.nl"
3741 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3742 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3743 ac_count=`expr $ac_count + 1`
3744 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3745 # Best one so far, save it but keep looking for a better one
3746 ac_cv_path_EGREP="$ac_path_EGREP"
3747 ac_path_EGREP_max=$ac_count
3748 fi
3749 # 10*(2^10) chars as input seems more than enough
3750 test $ac_count -gt 10 && break
3751 done
3752 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3753esac
3754
3755
3756 $ac_path_EGREP_found && break 3
3757 done
3758done
3759
3760done
3761IFS=$as_save_IFS
3762
3763
3764fi
3765
3766EGREP="$ac_cv_path_EGREP"
3767if test -z "$EGREP"; then
3768 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3769echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3770 { (exit 1); exit 1; }; }
3771fi
3772
3773else
3774 ac_cv_path_EGREP=$EGREP
3775fi
3776
3777
3778 fi
3779fi
3780{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3781echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3782 EGREP="$ac_cv_path_EGREP"
3783
3784
3785{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3786echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003787if test "${ac_cv_header_stdc+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789else
3790 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003791/* confdefs.h. */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003796#include <stdlib.h>
3797#include <stdarg.h>
3798#include <string.h>
3799#include <float.h>
3800
John Criswell0c38eaf2003-09-10 15:17:25 +00003801int
3802main ()
3803{
3804
3805 ;
3806 return 0;
3807}
John Criswell7a73b802003-06-30 21:59:07 +00003808_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003809rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003810if { (ac_try="$ac_compile"
3811case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814esac
3815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003817 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003822 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3824 { (case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003834 { (case "(($ac_try" in
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3837esac
3838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003843 ac_cv_header_stdc=yes
3844else
3845 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003846sed 's/^/| /' conftest.$ac_ext >&5
3847
Reid Spencera773bd52006-08-04 18:18:08 +00003848 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003849fi
Reid Spencera773bd52006-08-04 18:18:08 +00003850
3851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003852
3853if test $ac_cv_header_stdc = yes; then
3854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3855 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003856/* confdefs.h. */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003861#include <string.h>
3862
3863_ACEOF
3864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003865 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003866 :
3867else
3868 ac_cv_header_stdc=no
3869fi
3870rm -f conftest*
3871
3872fi
3873
3874if test $ac_cv_header_stdc = yes; then
3875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003877/* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003882#include <stdlib.h>
3883
3884_ACEOF
3885if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003886 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003887 :
3888else
3889 ac_cv_header_stdc=no
3890fi
3891rm -f conftest*
3892
3893fi
3894
3895if test $ac_cv_header_stdc = yes; then
3896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3897 if test "$cross_compiling" = yes; then
3898 :
3899else
3900 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003901/* confdefs.h. */
3902_ACEOF
3903cat confdefs.h >>conftest.$ac_ext
3904cat >>conftest.$ac_ext <<_ACEOF
3905/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003906#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003907#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003908#if ((' ' & 0x0FF) == 0x020)
3909# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3910# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3911#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003912# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003913 (('a' <= (c) && (c) <= 'i') \
3914 || ('j' <= (c) && (c) <= 'r') \
3915 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003916# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3917#endif
3918
3919#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3920int
3921main ()
3922{
3923 int i;
3924 for (i = 0; i < 256; i++)
3925 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003926 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003927 return 2;
3928 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003929}
3930_ACEOF
3931rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003932if { (ac_try="$ac_link"
3933case "(($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_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003942 { (case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; }; then
3951 :
3952else
3953 echo "$as_me: program exited with status $ac_status" >&5
3954echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003955sed 's/^/| /' conftest.$ac_ext >&5
3956
John Criswell7a73b802003-06-30 21:59:07 +00003957( exit $ac_status )
3958ac_cv_header_stdc=no
3959fi
Reid Spencera773bd52006-08-04 18:18:08 +00003960rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3961fi
3962
3963
John Criswell7a73b802003-06-30 21:59:07 +00003964fi
3965fi
Reid Spencera773bd52006-08-04 18:18:08 +00003966{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3967echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003968if test $ac_cv_header_stdc = yes; then
3969
3970cat >>confdefs.h <<\_ACEOF
3971#define STDC_HEADERS 1
3972_ACEOF
3973
3974fi
3975
Reid Spencera773bd52006-08-04 18:18:08 +00003976# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3987 inttypes.h stdint.h unistd.h
3988do
3989as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3990{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3991echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3992if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3993 echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995 cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h. */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h. */
4001$ac_includes_default
4002
4003#include <$ac_header>
4004_ACEOF
4005rm -f conftest.$ac_objext
4006if { (ac_try="$ac_compile"
4007case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010esac
4011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4012 (eval "$ac_compile") 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } &&
4019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4020 { (case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023esac
4024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4025 (eval "$ac_try") 2>&5
4026 ac_status=$?
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); }; } &&
4029 { ac_try='test -s conftest.$ac_objext'
4030 { (case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_try") 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 eval "$as_ac_Header=yes"
4040else
4041 echo "$as_me: failed program was:" >&5
4042sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 eval "$as_ac_Header=no"
4045fi
4046
4047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4048fi
4049ac_res=`eval echo '${'$as_ac_Header'}'`
4050 { echo "$as_me:$LINENO: result: $ac_res" >&5
4051echo "${ECHO_T}$ac_res" >&6; }
4052if test `eval echo '${'$as_ac_Header'}'` = yes; then
4053 cat >>confdefs.h <<_ACEOF
4054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4055_ACEOF
4056
4057fi
4058
4059done
4060
4061
4062{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4063echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4064if test "${ac_cv_c_bigendian+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066else
4067 # See if sys/param.h defines the BYTE_ORDER macro.
4068cat >conftest.$ac_ext <<_ACEOF
4069/* confdefs.h. */
4070_ACEOF
4071cat confdefs.h >>conftest.$ac_ext
4072cat >>conftest.$ac_ext <<_ACEOF
4073/* end confdefs.h. */
4074#include <sys/types.h>
4075#include <sys/param.h>
4076
4077int
4078main ()
4079{
4080#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4081 bogus endian macros
4082#endif
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088rm -f conftest.$ac_objext
4089if { (ac_try="$ac_compile"
4090case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4095 (eval "$ac_compile") 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103 { (case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106esac
4107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_try") 2>&5
4109 ac_status=$?
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116esac
4117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_try") 2>&5
4119 ac_status=$?
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; }; then
4122 # It does; now see whether it defined to BIG_ENDIAN or not.
4123cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129#include <sys/types.h>
4130#include <sys/param.h>
4131
4132int
4133main ()
4134{
4135#if BYTE_ORDER != BIG_ENDIAN
4136 not big endian
4137#endif
4138
4139 ;
4140 return 0;
4141}
4142_ACEOF
4143rm -f conftest.$ac_objext
4144if { (ac_try="$ac_compile"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4151 ac_status=$?
4152 grep -v '^ *+' conftest.er1 >conftest.err
4153 rm -f conftest.er1
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); } &&
4157 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4158 { (case "(($ac_try" in
4159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160 *) ac_try_echo=$ac_try;;
4161esac
4162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4163 (eval "$ac_try") 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; } &&
4167 { ac_try='test -s conftest.$ac_objext'
4168 { (case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171esac
4172eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_try") 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_c_bigendian=yes
4178else
4179 echo "$as_me: failed program was:" >&5
4180sed 's/^/| /' conftest.$ac_ext >&5
4181
4182 ac_cv_c_bigendian=no
4183fi
4184
4185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186else
4187 echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 # It does not; compile a test program.
4191if test "$cross_compiling" = yes; then
4192 # try to guess the endianness by grepping values into an object file
4193 ac_cv_c_bigendian=unknown
4194 cat >conftest.$ac_ext <<_ACEOF
4195/* confdefs.h. */
4196_ACEOF
4197cat confdefs.h >>conftest.$ac_ext
4198cat >>conftest.$ac_ext <<_ACEOF
4199/* end confdefs.h. */
4200short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4201short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4202void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4203short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4204short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4205void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4206int
4207main ()
4208{
4209 _ascii (); _ebcdic ();
4210 ;
4211 return 0;
4212}
4213_ACEOF
4214rm -f conftest.$ac_objext
4215if { (ac_try="$ac_compile"
4216case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_compile") 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } &&
4228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4229 { (case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232esac
4233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4234 (eval "$ac_try") 2>&5
4235 ac_status=$?
4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4237 (exit $ac_status); }; } &&
4238 { ac_try='test -s conftest.$ac_objext'
4239 { (case "(($ac_try" in
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4242esac
4243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_try") 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4249 ac_cv_c_bigendian=yes
4250fi
4251if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4252 if test "$ac_cv_c_bigendian" = unknown; then
4253 ac_cv_c_bigendian=no
4254 else
4255 # finding both strings is unlikely to happen, but who knows?
4256 ac_cv_c_bigendian=unknown
4257 fi
4258fi
4259else
4260 echo "$as_me: failed program was:" >&5
4261sed 's/^/| /' conftest.$ac_ext >&5
4262
4263
4264fi
4265
4266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267else
4268 cat >conftest.$ac_ext <<_ACEOF
4269/* confdefs.h. */
4270_ACEOF
4271cat confdefs.h >>conftest.$ac_ext
4272cat >>conftest.$ac_ext <<_ACEOF
4273/* end confdefs.h. */
4274$ac_includes_default
4275int
4276main ()
4277{
4278
4279 /* Are we little or big endian? From Harbison&Steele. */
4280 union
4281 {
4282 long int l;
4283 char c[sizeof (long int)];
4284 } u;
4285 u.l = 1;
4286 return u.c[sizeof (long int) - 1] == 1;
4287
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest$ac_exeext
4293if { (ac_try="$ac_link"
4294case "(($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_link") 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4303 { (case "(($ac_try" in
4304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4306esac
4307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 ac_cv_c_bigendian=no
4313else
4314 echo "$as_me: program exited with status $ac_status" >&5
4315echo "$as_me: failed program was:" >&5
4316sed 's/^/| /' conftest.$ac_ext >&5
4317
4318( exit $ac_status )
4319ac_cv_c_bigendian=yes
4320fi
4321rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4322fi
4323
4324
4325fi
4326
4327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328fi
4329{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4330echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4331case $ac_cv_c_bigendian in
4332 yes)
4333 ENDIAN=big
4334 ;;
4335 no)
4336 ENDIAN=little
4337 ;;
4338 *)
4339 { { echo "$as_me:$LINENO: error: unknown endianness
4340presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4341echo "$as_me: error: unknown endianness
4342presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4343 { (exit 1); exit 1; }; } ;;
4344esac
4345
4346
4347if test "$cross_compiling" = yes; then
4348 LLVM_CROSS_COMPILING=1
4349
4350
4351{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4352echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4353if test "${ac_cv_build_exeext+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
4356 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4357 ac_cv_build_exeext=.exe
4358else
4359 ac_build_prefix=${build_alias}-
4360
4361 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4362set dummy ${ac_build_prefix}gcc; ac_word=$2
4363{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4365if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367else
4368 if test -n "$BUILD_CC"; then
4369 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4370else
4371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372for as_dir in $PATH
4373do
4374 IFS=$as_save_IFS
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382done
4383done
4384IFS=$as_save_IFS
4385
4386fi
4387fi
4388BUILD_CC=$ac_cv_prog_BUILD_CC
4389if test -n "$BUILD_CC"; then
4390 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4391echo "${ECHO_T}$BUILD_CC" >&6; }
4392else
4393 { echo "$as_me:$LINENO: result: no" >&5
4394echo "${ECHO_T}no" >&6; }
4395fi
4396
4397
4398 if test -z "$BUILD_CC"; then
4399 # Extract the first word of "gcc", so it can be a program name with args.
4400set dummy gcc; ac_word=$2
4401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406 if test -n "$BUILD_CC"; then
4407 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_BUILD_CC="gcc"
4417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420done
4421done
4422IFS=$as_save_IFS
4423
4424fi
4425fi
4426BUILD_CC=$ac_cv_prog_BUILD_CC
4427if test -n "$BUILD_CC"; then
4428 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4429echo "${ECHO_T}$BUILD_CC" >&6; }
4430else
4431 { echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6; }
4433fi
4434
4435
4436 if test -z "$BUILD_CC"; then
4437 # Extract the first word of "cc", so it can be a program name with args.
4438set dummy cc; ac_word=$2
4439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4441if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444 if test -n "$BUILD_CC"; then
4445 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4446else
4447 ac_prog_rejected=no
4448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4456 ac_prog_rejected=yes
4457 continue
4458 fi
4459 ac_cv_prog_BUILD_CC="cc"
4460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463done
4464done
4465IFS=$as_save_IFS
4466
4467if test $ac_prog_rejected = yes; then
4468 # We found a bogon in the path, so make sure we never use it.
4469 set dummy $ac_cv_prog_BUILD_CC
4470 shift
4471 if test $# != 0; then
4472 # We chose a different compiler from the bogus one.
4473 # However, it has the same basename, so the bogon will be chosen
4474 # first if we set BUILD_CC to just the basename; use the full file name.
4475 shift
4476 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4477 fi
4478fi
4479fi
4480fi
4481BUILD_CC=$ac_cv_prog_BUILD_CC
4482if test -n "$BUILD_CC"; then
4483 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4484echo "${ECHO_T}$BUILD_CC" >&6; }
4485else
4486 { echo "$as_me:$LINENO: result: no" >&5
4487echo "${ECHO_T}no" >&6; }
4488fi
4489
4490
4491 fi
4492 fi
4493 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4494echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4495 { (exit 1); exit 1; }; }
4496 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4497 rm -f conftest*
4498 echo 'int main () { return 0; }' > conftest.$ac_ext
4499 ac_cv_build_exeext=
4500 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4501 (eval $ac_build_link) 2>&5
4502 ac_status=$?
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; then
4505 for file in conftest.*; do
4506 case $file in
4507 *.c | *.o | *.obj) ;;
4508 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4509 esac
4510 done
4511 else
4512 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4513echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4514 { (exit 1); exit 1; }; }
4515 fi
4516 rm -f conftest*
4517 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4518fi
4519fi
4520
4521BUILD_EXEEXT=""
4522test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4523{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4524echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4525ac_build_exeext=$BUILD_EXEEXT
4526
4527else
4528 LLVM_CROSS_COMPILING=0
4529
4530fi
4531
4532if test -d "CVS" -o -d "${srcdir}/CVS"; then
4533 cvsbuild="yes"
4534 optimize="no"
4535 CVSBUILD=CVSBUILD=1
4536
4537else
4538 cvsbuild="no"
4539 optimize="yes"
4540fi
4541
4542
4543# Check whether --enable-optimized was given.
4544if test "${enable_optimized+set}" = set; then
4545 enableval=$enable_optimized;
4546else
4547 enableval=$optimize
4548fi
4549
4550if test ${enableval} = "no" ; then
4551 ENABLE_OPTIMIZED=
4552
4553else
4554 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4555
4556fi
4557
4558# Check whether --enable-assertions was given.
4559if test "${enable_assertions+set}" = set; then
4560 enableval=$enable_assertions;
4561else
4562 enableval="yes"
4563fi
4564
4565if test ${enableval} = "yes" ; then
4566 DISABLE_ASSERTIONS=
4567
4568else
4569 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4570
4571fi
4572
Reid Spencer8b2e1412006-11-17 03:32:33 +00004573# Check whether --enable-debug-runtime was given.
4574if test "${enable_debug_runtime+set}" = set; then
4575 enableval=$enable_debug_runtime;
4576else
4577 enableval=no
4578fi
4579
4580if test ${enableval} = "no" ; then
4581 DEBUG_RUNTIME=
4582
4583else
4584 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4585
4586fi
4587
Reid Spencera773bd52006-08-04 18:18:08 +00004588# Check whether --enable-jit was given.
4589if test "${enable_jit+set}" = set; then
4590 enableval=$enable_jit;
4591else
4592 enableval=default
4593fi
4594
4595if test ${enableval} = "no"
4596then
4597 JIT=
4598
4599else
4600 case "$llvm_cv_target_arch" in
4601 x86) TARGET_HAS_JIT=1
4602 ;;
4603 Sparc) TARGET_HAS_JIT=1
4604 ;;
4605 PowerPC) TARGET_HAS_JIT=1
4606 ;;
4607 x86_64) TARGET_HAS_JIT=0
4608 ;;
4609 Alpha) TARGET_HAS_JIT=1
4610 ;;
4611 IA64) TARGET_HAS_JIT=0
4612 ;;
4613 *) TARGET_HAS_JIT=0
4614 ;;
4615 esac
4616fi
4617
4618# Check whether --enable-doxygen was given.
4619if test "${enable_doxygen+set}" = set; then
4620 enableval=$enable_doxygen;
4621else
4622 enableval=default
4623fi
4624
4625case "$enableval" in
4626 yes) ENABLE_DOXYGEN=1
4627 ;;
4628 no) ENABLE_DOXYGEN=0
4629 ;;
4630 default) ENABLE_DOXYGEN=0
4631 ;;
4632 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4633echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4634 { (exit 1); exit 1; }; } ;;
4635esac
4636
4637# Check whether --enable-threads was given.
4638if test "${enable_threads+set}" = set; then
4639 enableval=$enable_threads;
4640else
Reid Spencer65c5d752006-11-05 17:08:18 +00004641 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004642fi
4643
4644case "$enableval" in
4645 yes) ENABLE_THREADS=1
4646 ;;
4647 no) ENABLE_THREADS=0
4648 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004649 default) ENABLE_THREADS=1
4650 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004651 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4652echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4653 { (exit 1); exit 1; }; } ;;
4654esac
4655
4656cat >>confdefs.h <<_ACEOF
4657#define ENABLE_THREADS $ENABLE_THREADS
4658_ACEOF
4659
4660
Reid Spencer89b0d992006-12-16 22:07:52 +00004661# Check whether --enable-pic was given.
4662if test "${enable_pic+set}" = set; then
4663 enableval=$enable_pic;
4664else
4665 enableval=default
4666fi
4667
4668case "$enableval" in
4669 yes) ENABLE_PIC=1
4670 ;;
4671 no) ENABLE_PIC=0
4672 ;;
4673 default) ENABLE_PIC=0
4674 ;;
4675 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4676echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4677 { (exit 1); exit 1; }; } ;;
4678esac
4679
4680cat >>confdefs.h <<_ACEOF
4681#define ENABLE_PIC $ENABLE_PIC
4682_ACEOF
4683
4684
Reid Spencera773bd52006-08-04 18:18:08 +00004685TARGETS_TO_BUILD=""
4686# Check whether --enable-targets was given.
4687if test "${enable_targets+set}" = set; then
4688 enableval=$enable_targets;
4689else
4690 enableval=all
4691fi
4692
4693case "$enableval" in
4694 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4695 host-only)
4696 case "$llvm_cv_target_arch" in
4697 x86) TARGETS_TO_BUILD="X86" ;;
4698 x86_64) TARGETS_TO_BUILD="X86" ;;
4699 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4700 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4701 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4702 IA64) TARGETS_TO_BUILD="IA64" ;;
4703 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4704echo "$as_me: error: Can not set target to build" >&2;}
4705 { (exit 1); exit 1; }; } ;;
4706 esac
4707 ;;
4708 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4709 case "$a_target" in
4710 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4711 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4712 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4713 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4714 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4715 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4716 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4717echo "$as_me: error: Unrecognized target $a_target" >&2;}
4718 { (exit 1); exit 1; }; } ;;
4719 esac
4720 done
4721 ;;
4722esac
4723TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4724TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4725
4726
Reid Spencer65c5d752006-11-05 17:08:18 +00004727# Check whether --enable-cbe-printf-a was given.
4728if test "${enable_cbe_printf_a+set}" = set; then
4729 enableval=$enable_cbe_printf_a;
4730else
4731 enableval=default
4732fi
4733
4734case "$enableval" in
4735 yes) ENABLE_CBE_PRINTF_A=1
4736 ;;
4737 no) ENABLE_CBE_PRINTF_A=0
4738 ;;
4739 default) ENABLE_CBE_PRINTF_A=1
4740 ;;
4741 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4742echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4743 { (exit 1); exit 1; }; } ;;
4744esac
4745
4746cat >>confdefs.h <<_ACEOF
4747#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4748_ACEOF
4749
4750
Reid Spencera773bd52006-08-04 18:18:08 +00004751
4752# Check whether --with-llvmgccdir was given.
4753if test "${with_llvmgccdir+set}" = set; then
4754 withval=$with_llvmgccdir;
4755else
4756 withval=default
4757fi
4758
4759case "$withval" in
4760 default) WITH_LLVMGCCDIR=default ;;
4761 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4762 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4763echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4764 { (exit 1); exit 1; }; } ;;
4765esac
4766
4767
4768# Check whether --with-extra-options was given.
4769if test "${with_extra_options+set}" = set; then
4770 withval=$with_extra_options;
4771else
4772 withval=default
4773fi
4774
4775case "$withval" in
4776 default) EXTRA_OPTIONS= ;;
4777 *) EXTRA_OPTIONS=$withval ;;
4778esac
4779EXTRA_OPTIONS=$EXTRA_OPTIONS
4780
4781
4782
4783ac_ext=c
4784ac_cpp='$CPP $CPPFLAGS'
4785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4789echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4790# On Suns, sometimes $CPP names a directory.
4791if test -n "$CPP" && test -d "$CPP"; then
4792 CPP=
4793fi
4794if test -z "$CPP"; then
4795 if test "${ac_cv_prog_CPP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4800 do
4801 ac_preproc_ok=false
4802for ac_c_preproc_warn_flag in '' yes
4803do
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat >conftest.$ac_ext <<_ACEOF
4811/* confdefs.h. */
4812_ACEOF
4813cat confdefs.h >>conftest.$ac_ext
4814cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */
4816#ifdef __STDC__
4817# include <limits.h>
4818#else
4819# include <assert.h>
4820#endif
4821 Syntax error
4822_ACEOF
4823if { (ac_try="$ac_cpp conftest.$ac_ext"
4824case "(($ac_try" in
4825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826 *) ac_try_echo=$ac_try;;
4827esac
4828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 ac_status=$?
4831 grep -v '^ *+' conftest.er1 >conftest.err
4832 rm -f conftest.er1
4833 cat conftest.err >&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev/null; then
4836 if test -s conftest.err; then
4837 ac_cpp_err=$ac_c_preproc_warn_flag
4838 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4839 else
4840 ac_cpp_err=
4841 fi
4842else
4843 ac_cpp_err=yes
4844fi
4845if test -z "$ac_cpp_err"; then
4846 :
4847else
4848 echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851 # Broken: fails on valid input.
4852continue
4853fi
4854
4855rm -f conftest.err conftest.$ac_ext
4856
4857 # OK, works on sane cases. Now check whether nonexistent headers
4858 # can be detected and how.
4859 cat >conftest.$ac_ext <<_ACEOF
4860/* confdefs.h. */
4861_ACEOF
4862cat confdefs.h >>conftest.$ac_ext
4863cat >>conftest.$ac_ext <<_ACEOF
4864/* end confdefs.h. */
4865#include <ac_nonexistent.h>
4866_ACEOF
4867if { (ac_try="$ac_cpp conftest.$ac_ext"
4868case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871esac
4872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } >/dev/null; then
4880 if test -s conftest.err; then
4881 ac_cpp_err=$ac_c_preproc_warn_flag
4882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4883 else
4884 ac_cpp_err=
4885 fi
4886else
4887 ac_cpp_err=yes
4888fi
4889if test -z "$ac_cpp_err"; then
4890 # Broken: success on invalid input.
4891continue
4892else
4893 echo "$as_me: failed program was:" >&5
4894sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 # Passes both tests.
4897ac_preproc_ok=:
4898break
4899fi
4900
4901rm -f conftest.err conftest.$ac_ext
4902
4903done
4904# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905rm -f conftest.err conftest.$ac_ext
4906if $ac_preproc_ok; then
4907 break
4908fi
4909
4910 done
4911 ac_cv_prog_CPP=$CPP
4912
4913fi
4914 CPP=$ac_cv_prog_CPP
4915else
4916 ac_cv_prog_CPP=$CPP
4917fi
4918{ echo "$as_me:$LINENO: result: $CPP" >&5
4919echo "${ECHO_T}$CPP" >&6; }
4920ac_preproc_ok=false
4921for ac_c_preproc_warn_flag in '' yes
4922do
4923 # Use a header file that comes with gcc, so configuring glibc
4924 # with a fresh cross-compiler works.
4925 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4926 # <limits.h> exists even on freestanding compilers.
4927 # On the NeXT, cc -E runs the code through the compiler's parser,
4928 # not just through cpp. "Syntax error" is here to catch this case.
4929 cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h. */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h. */
4935#ifdef __STDC__
4936# include <limits.h>
4937#else
4938# include <assert.h>
4939#endif
4940 Syntax error
4941_ACEOF
4942if { (ac_try="$ac_cpp conftest.$ac_ext"
4943case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946esac
4947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } >/dev/null; then
4955 if test -s conftest.err; then
4956 ac_cpp_err=$ac_c_preproc_warn_flag
4957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4958 else
4959 ac_cpp_err=
4960 fi
4961else
4962 ac_cpp_err=yes
4963fi
4964if test -z "$ac_cpp_err"; then
4965 :
4966else
4967 echo "$as_me: failed program was:" >&5
4968sed 's/^/| /' conftest.$ac_ext >&5
4969
4970 # Broken: fails on valid input.
4971continue
4972fi
4973
4974rm -f conftest.err conftest.$ac_ext
4975
4976 # OK, works on sane cases. Now check whether nonexistent headers
4977 # can be detected and how.
4978 cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h. */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h. */
4984#include <ac_nonexistent.h>
4985_ACEOF
4986if { (ac_try="$ac_cpp conftest.$ac_ext"
4987case "(($ac_try" in
4988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989 *) ac_try_echo=$ac_try;;
4990esac
4991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4993 ac_status=$?
4994 grep -v '^ *+' conftest.er1 >conftest.err
4995 rm -f conftest.er1
4996 cat conftest.err >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); } >/dev/null; then
4999 if test -s conftest.err; then
5000 ac_cpp_err=$ac_c_preproc_warn_flag
5001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5002 else
5003 ac_cpp_err=
5004 fi
5005else
5006 ac_cpp_err=yes
5007fi
5008if test -z "$ac_cpp_err"; then
5009 # Broken: success on invalid input.
5010continue
5011else
5012 echo "$as_me: failed program was:" >&5
5013sed 's/^/| /' conftest.$ac_ext >&5
5014
5015 # Passes both tests.
5016ac_preproc_ok=:
5017break
5018fi
5019
5020rm -f conftest.err conftest.$ac_ext
5021
5022done
5023# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024rm -f conftest.err conftest.$ac_ext
5025if $ac_preproc_ok; then
5026 :
5027else
5028 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5029See \`config.log' for more details." >&5
5030echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5031See \`config.log' for more details." >&2;}
5032 { (exit 1); exit 1; }; }
5033fi
5034
5035ac_ext=c
5036ac_cpp='$CPP $CPPFLAGS'
5037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5039ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040
5041ac_ext=c
5042ac_cpp='$CPP $CPPFLAGS'
5043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5045ac_compiler_gnu=$ac_cv_c_compiler_gnu
5046if test -n "$ac_tool_prefix"; then
5047 for ac_prog in gcc
5048 do
5049 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5051{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053if test "${ac_cv_prog_CC+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055else
5056 if test -n "$CC"; then
5057 ac_cv_prog_CC="$CC" # Let the user override the test.
5058else
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 break 2
5069 fi
5070done
5071done
5072IFS=$as_save_IFS
5073
5074fi
5075fi
5076CC=$ac_cv_prog_CC
5077if test -n "$CC"; then
5078 { echo "$as_me:$LINENO: result: $CC" >&5
5079echo "${ECHO_T}$CC" >&6; }
5080else
5081 { echo "$as_me:$LINENO: result: no" >&5
5082echo "${ECHO_T}no" >&6; }
5083fi
5084
5085
5086 test -n "$CC" && break
5087 done
5088fi
5089if test -z "$CC"; then
5090 ac_ct_CC=$CC
5091 for ac_prog in gcc
5092do
5093 # Extract the first word of "$ac_prog", so it can be a program name with args.
5094set dummy $ac_prog; ac_word=$2
5095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5098 echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100 if test -n "$ac_ct_CC"; then
5101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106 IFS=$as_save_IFS
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5110 ac_cv_prog_ac_ct_CC="$ac_prog"
5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112 break 2
5113 fi
5114done
5115done
5116IFS=$as_save_IFS
5117
5118fi
5119fi
5120ac_ct_CC=$ac_cv_prog_ac_ct_CC
5121if test -n "$ac_ct_CC"; then
5122 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5123echo "${ECHO_T}$ac_ct_CC" >&6; }
5124else
5125 { echo "$as_me:$LINENO: result: no" >&5
5126echo "${ECHO_T}no" >&6; }
5127fi
5128
5129
5130 test -n "$ac_ct_CC" && break
5131done
5132
5133 if test "x$ac_ct_CC" = x; then
5134 CC=""
5135 else
5136 case $cross_compiling:$ac_tool_warned in
5137yes:)
5138{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139whose name does not start with the host triplet. If you think this
5140configuration is useful to you, please write to autoconf@gnu.org." >&5
5141echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142whose name does not start with the host triplet. If you think this
5143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144ac_tool_warned=yes ;;
5145esac
5146 CC=$ac_ct_CC
5147 fi
5148fi
5149
5150
5151test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5152See \`config.log' for more details." >&5
5153echo "$as_me: error: no acceptable C compiler found in \$PATH
5154See \`config.log' for more details." >&2;}
5155 { (exit 1); exit 1; }; }
5156
5157# Provide some information about the compiler.
5158echo "$as_me:$LINENO: checking for C compiler version" >&5
5159ac_compiler=`set X $ac_compile; echo $2`
5160{ (ac_try="$ac_compiler --version >&5"
5161case "(($ac_try" in
5162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163 *) ac_try_echo=$ac_try;;
5164esac
5165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166 (eval "$ac_compiler --version >&5") 2>&5
5167 ac_status=$?
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); }
5170{ (ac_try="$ac_compiler -v >&5"
5171case "(($ac_try" in
5172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173 *) ac_try_echo=$ac_try;;
5174esac
5175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176 (eval "$ac_compiler -v >&5") 2>&5
5177 ac_status=$?
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }
5180{ (ac_try="$ac_compiler -V >&5"
5181case "(($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_compiler -V >&5") 2>&5
5187 ac_status=$?
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); }
5190
5191{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5192echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5193if test "${ac_cv_c_compiler_gnu+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196 cat >conftest.$ac_ext <<_ACEOF
5197/* confdefs.h. */
5198_ACEOF
5199cat confdefs.h >>conftest.$ac_ext
5200cat >>conftest.$ac_ext <<_ACEOF
5201/* end confdefs.h. */
5202
5203int
5204main ()
5205{
5206#ifndef __GNUC__
5207 choke me
5208#endif
5209
5210 ;
5211 return 0;
5212}
5213_ACEOF
5214rm -f conftest.$ac_objext
5215if { (ac_try="$ac_compile"
5216case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_compile") 2>conftest.er1
5222 ac_status=$?
5223 grep -v '^ *+' conftest.er1 >conftest.err
5224 rm -f conftest.er1
5225 cat conftest.err >&5
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } &&
5228 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5229 { (case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232esac
5233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5234 (eval "$ac_try") 2>&5
5235 ac_status=$?
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); }; } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242esac
5243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5244 (eval "$ac_try") 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; }; then
5248 ac_compiler_gnu=yes
5249else
5250 echo "$as_me: failed program was:" >&5
5251sed 's/^/| /' conftest.$ac_ext >&5
5252
5253 ac_compiler_gnu=no
5254fi
5255
5256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5257ac_cv_c_compiler_gnu=$ac_compiler_gnu
5258
5259fi
5260{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5261echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5262GCC=`test $ac_compiler_gnu = yes && echo yes`
5263ac_test_CFLAGS=${CFLAGS+set}
5264ac_save_CFLAGS=$CFLAGS
5265{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5266echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5267if test "${ac_cv_prog_cc_g+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270 ac_save_c_werror_flag=$ac_c_werror_flag
5271 ac_c_werror_flag=yes
5272 ac_cv_prog_cc_g=no
5273 CFLAGS="-g"
5274 cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */
5280
5281int
5282main ()
5283{
5284
5285 ;
5286 return 0;
5287}
5288_ACEOF
5289rm -f conftest.$ac_objext
5290if { (ac_try="$ac_compile"
5291case "(($ac_try" in
5292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293 *) ac_try_echo=$ac_try;;
5294esac
5295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296 (eval "$ac_compile") 2>conftest.er1
5297 ac_status=$?
5298 grep -v '^ *+' conftest.er1 >conftest.err
5299 rm -f conftest.er1
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
5310 ac_status=$?
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317esac
5318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_try") 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_cv_prog_cc_g=yes
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 CFLAGS=""
5329 cat >conftest.$ac_ext <<_ACEOF
5330/* confdefs.h. */
5331_ACEOF
5332cat confdefs.h >>conftest.$ac_ext
5333cat >>conftest.$ac_ext <<_ACEOF
5334/* end confdefs.h. */
5335
5336int
5337main ()
5338{
5339
5340 ;
5341 return 0;
5342}
5343_ACEOF
5344rm -f conftest.$ac_objext
5345if { (ac_try="$ac_compile"
5346case "(($ac_try" in
5347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5348 *) ac_try_echo=$ac_try;;
5349esac
5350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5351 (eval "$ac_compile") 2>conftest.er1
5352 ac_status=$?
5353 grep -v '^ *+' conftest.er1 >conftest.err
5354 rm -f conftest.er1
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
5363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_try") 2>&5
5365 ac_status=$?
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); }; } &&
5368 { ac_try='test -s conftest.$ac_objext'
5369 { (case "(($ac_try" in
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5372esac
5373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_try") 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 :
5379else
5380 echo "$as_me: failed program was:" >&5
5381sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_c_werror_flag=$ac_save_c_werror_flag
5384 CFLAGS="-g"
5385 cat >conftest.$ac_ext <<_ACEOF
5386/* confdefs.h. */
5387_ACEOF
5388cat confdefs.h >>conftest.$ac_ext
5389cat >>conftest.$ac_ext <<_ACEOF
5390/* end confdefs.h. */
5391
5392int
5393main ()
5394{
5395
5396 ;
5397 return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext
5401if { (ac_try="$ac_compile"
5402case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405esac
5406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } &&
5414 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5415 { (case "(($ac_try" in
5416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5417 *) ac_try_echo=$ac_try;;
5418esac
5419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5420 (eval "$ac_try") 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; } &&
5424 { ac_try='test -s conftest.$ac_objext'
5425 { (case "(($ac_try" in
5426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5427 *) ac_try_echo=$ac_try;;
5428esac
5429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5430 (eval "$ac_try") 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_cv_prog_cc_g=yes
5435else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439
5440fi
5441
5442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443fi
5444
5445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446fi
5447
5448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 ac_c_werror_flag=$ac_save_c_werror_flag
5450fi
5451{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5453if test "$ac_test_CFLAGS" = set; then
5454 CFLAGS=$ac_save_CFLAGS
5455elif test $ac_cv_prog_cc_g = yes; then
5456 if test "$GCC" = yes; then
5457 CFLAGS="-g -O2"
5458 else
5459 CFLAGS="-g"
5460 fi
5461else
5462 if test "$GCC" = yes; then
5463 CFLAGS="-O2"
5464 else
5465 CFLAGS=
5466 fi
5467fi
5468{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5469echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5470if test "${ac_cv_prog_cc_c89+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473 ac_cv_prog_cc_c89=no
5474ac_save_CC=$CC
5475cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */
5481#include <stdarg.h>
5482#include <stdio.h>
5483#include <sys/types.h>
5484#include <sys/stat.h>
5485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5486struct buf { int x; };
5487FILE * (*rcsopen) (struct buf *, struct stat *, int);
5488static char *e (p, i)
5489 char **p;
5490 int i;
5491{
5492 return p[i];
5493}
5494static char *f (char * (*g) (char **, int), char **p, ...)
5495{
5496 char *s;
5497 va_list v;
5498 va_start (v,p);
5499 s = g (p, va_arg (v,int));
5500 va_end (v);
5501 return s;
5502}
5503
5504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5505 function prototypes and stuff, but not '\xHH' hex character constants.
5506 These don't provoke an error unfortunately, instead are silently treated
5507 as 'x'. The following induces an error, until -std is added to get
5508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5509 array size at least. It's necessary to write '\x00'==0 to get something
5510 that's true only with -std. */
5511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5512
5513/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5514 inside strings and character constants. */
5515#define FOO(x) 'x'
5516int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5517
5518int test (int i, double x);
5519struct s1 {int (*f) (int a);};
5520struct s2 {int (*f) (double a);};
5521int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5522int argc;
5523char **argv;
5524int
5525main ()
5526{
5527return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5533 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5534do
5535 CC="$ac_save_CC $ac_arg"
5536 rm -f conftest.$ac_objext
5537if { (ac_try="$ac_compile"
5538case "(($ac_try" in
5539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5540 *) ac_try_echo=$ac_try;;
5541esac
5542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5544 ac_status=$?
5545 grep -v '^ *+' conftest.er1 >conftest.err
5546 rm -f conftest.er1
5547 cat conftest.err >&5
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } &&
5550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5551 { (case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554esac
5555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_try") 2>&5
5557 ac_status=$?
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); }; } &&
5560 { ac_try='test -s conftest.$ac_objext'
5561 { (case "(($ac_try" in
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5564esac
5565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_try") 2>&5
5567 ac_status=$?
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); }; }; then
5570 ac_cv_prog_cc_c89=$ac_arg
5571else
5572 echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575
5576fi
5577
5578rm -f core conftest.err conftest.$ac_objext
5579 test "x$ac_cv_prog_cc_c89" != "xno" && break
5580done
5581rm -f conftest.$ac_ext
5582CC=$ac_save_CC
5583
5584fi
5585# AC_CACHE_VAL
5586case "x$ac_cv_prog_cc_c89" in
5587 x)
5588 { echo "$as_me:$LINENO: result: none needed" >&5
5589echo "${ECHO_T}none needed" >&6; } ;;
5590 xno)
5591 { echo "$as_me:$LINENO: result: unsupported" >&5
5592echo "${ECHO_T}unsupported" >&6; } ;;
5593 *)
5594 CC="$CC $ac_cv_prog_cc_c89"
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5596echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5597esac
5598
5599
5600ac_ext=c
5601ac_cpp='$CPP $CPPFLAGS'
5602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605
5606ac_ext=cpp
5607ac_cpp='$CXXCPP $CPPFLAGS'
5608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5611if test -z "$CXX"; then
5612 if test -n "$CCC"; then
5613 CXX=$CCC
5614 else
5615 if test -n "$ac_tool_prefix"; then
5616 for ac_prog in g++
5617 do
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5622if test "${ac_cv_prog_CXX+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625 if test -n "$CXX"; then
5626 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645CXX=$ac_cv_prog_CXX
5646if test -n "$CXX"; then
5647 { echo "$as_me:$LINENO: result: $CXX" >&5
5648echo "${ECHO_T}$CXX" >&6; }
5649else
5650 { echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6; }
5652fi
5653
5654
5655 test -n "$CXX" && break
5656 done
5657fi
5658if test -z "$CXX"; then
5659 ac_ct_CXX=$CXX
5660 for ac_prog in g++
5661do
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663set dummy $ac_prog; ac_word=$2
5664{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5666if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$ac_ct_CXX"; then
5670 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_CXX="$ac_prog"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684done
5685IFS=$as_save_IFS
5686
5687fi
5688fi
5689ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5690if test -n "$ac_ct_CXX"; then
5691 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5692echo "${ECHO_T}$ac_ct_CXX" >&6; }
5693else
5694 { echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6; }
5696fi
5697
5698
5699 test -n "$ac_ct_CXX" && break
5700done
5701
5702 if test "x$ac_ct_CXX" = x; then
5703 CXX="g++"
5704 else
5705 case $cross_compiling:$ac_tool_warned in
5706yes:)
5707{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5708whose name does not start with the host triplet. If you think this
5709configuration is useful to you, please write to autoconf@gnu.org." >&5
5710echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5711whose name does not start with the host triplet. If you think this
5712configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5713ac_tool_warned=yes ;;
5714esac
5715 CXX=$ac_ct_CXX
5716 fi
5717fi
5718
5719 fi
5720fi
5721# Provide some information about the compiler.
5722echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5723ac_compiler=`set X $ac_compile; echo $2`
5724{ (ac_try="$ac_compiler --version >&5"
5725case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728esac
5729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compiler --version >&5") 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }
5734{ (ac_try="$ac_compiler -v >&5"
5735case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738esac
5739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5740 (eval "$ac_compiler -v >&5") 2>&5
5741 ac_status=$?
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }
5744{ (ac_try="$ac_compiler -V >&5"
5745case "(($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_compiler -V >&5") 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }
5754
5755{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5756echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5757if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5758 echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760 cat >conftest.$ac_ext <<_ACEOF
5761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
5766
5767int
5768main ()
5769{
5770#ifndef __GNUC__
5771 choke me
5772#endif
5773
5774 ;
5775 return 0;
5776}
5777_ACEOF
5778rm -f conftest.$ac_objext
5779if { (ac_try="$ac_compile"
5780case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783esac
5784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5793 { (case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5796esac
5797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_try") 2>&5
5799 ac_status=$?
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; } &&
5802 { ac_try='test -s conftest.$ac_objext'
5803 { (case "(($ac_try" in
5804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5805 *) ac_try_echo=$ac_try;;
5806esac
5807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5808 (eval "$ac_try") 2>&5
5809 ac_status=$?
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_compiler_gnu=yes
5813else
5814 echo "$as_me: failed program was:" >&5
5815sed 's/^/| /' conftest.$ac_ext >&5
5816
5817 ac_compiler_gnu=no
5818fi
5819
5820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5822
5823fi
5824{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5825echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5826GXX=`test $ac_compiler_gnu = yes && echo yes`
5827ac_test_CXXFLAGS=${CXXFLAGS+set}
5828ac_save_CXXFLAGS=$CXXFLAGS
5829{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5830echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5831if test "${ac_cv_prog_cxx_g+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833else
5834 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5835 ac_cxx_werror_flag=yes
5836 ac_cv_prog_cxx_g=no
5837 CXXFLAGS="-g"
5838 cat >conftest.$ac_ext <<_ACEOF
5839/* confdefs.h. */
5840_ACEOF
5841cat confdefs.h >>conftest.$ac_ext
5842cat >>conftest.$ac_ext <<_ACEOF
5843/* end confdefs.h. */
5844
5845int
5846main ()
5847{
5848
5849 ;
5850 return 0;
5851}
5852_ACEOF
5853rm -f conftest.$ac_objext
5854if { (ac_try="$ac_compile"
5855case "(($ac_try" in
5856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_compile") 2>conftest.er1
5861 ac_status=$?
5862 grep -v '^ *+' conftest.er1 >conftest.err
5863 rm -f conftest.er1
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5868 { (case "(($ac_try" in
5869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5871esac
5872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_try") 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (case "(($ac_try" in
5879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5880 *) ac_try_echo=$ac_try;;
5881esac
5882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5883 (eval "$ac_try") 2>&5
5884 ac_status=$?
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5887 ac_cv_prog_cxx_g=yes
5888else
5889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 CXXFLAGS=""
5893 cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h. */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h. */
5899
5900int
5901main ()
5902{
5903
5904 ;
5905 return 0;
5906}
5907_ACEOF
5908rm -f conftest.$ac_objext
5909if { (ac_try="$ac_compile"
5910case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913esac
5914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } &&
5922 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5923 { (case "(($ac_try" in
5924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925 *) ac_try_echo=$ac_try;;
5926esac
5927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928 (eval "$ac_try") 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; } &&
5932 { ac_try='test -s conftest.$ac_objext'
5933 { (case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936esac
5937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_try") 2>&5
5939 ac_status=$?
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 :
5943else
5944 echo "$as_me: failed program was:" >&5
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5948 CXXFLAGS="-g"
5949 cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
5955
5956int
5957main ()
5958{
5959
5960 ;
5961 return 0;
5962}
5963_ACEOF
5964rm -f conftest.$ac_objext
5965if { (ac_try="$ac_compile"
5966case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969esac
5970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5972 ac_status=$?
5973 grep -v '^ *+' conftest.er1 >conftest.err
5974 rm -f conftest.er1
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } &&
5978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5979 { (case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5984 (eval "$ac_try") 2>&5
5985 ac_status=$?
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992esac
5993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_try") 2>&5
5995 ac_status=$?
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_cv_prog_cxx_g=yes
5999else
6000 echo "$as_me: failed program was:" >&5
6001sed 's/^/| /' conftest.$ac_ext >&5
6002
6003
6004fi
6005
6006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007fi
6008
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010fi
6011
6012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6014fi
6015{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6016echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6017if test "$ac_test_CXXFLAGS" = set; then
6018 CXXFLAGS=$ac_save_CXXFLAGS
6019elif test $ac_cv_prog_cxx_g = yes; then
6020 if test "$GXX" = yes; then
6021 CXXFLAGS="-g -O2"
6022 else
6023 CXXFLAGS="-g"
6024 fi
6025else
6026 if test "$GXX" = yes; then
6027 CXXFLAGS="-O2"
6028 else
6029 CXXFLAGS=
6030 fi
6031fi
6032ac_ext=c
6033ac_cpp='$CPP $CPPFLAGS'
6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6036ac_compiler_gnu=$ac_cv_c_compiler_gnu
6037
6038{ echo "$as_me:$LINENO: checking " >&5
6039echo $ECHO_N "checking ... $ECHO_C" >&6; }
6040if test "${ac_cv_has_flex+set}" = set; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043 for ac_prog in flex lex
6044do
6045 # Extract the first word of "$ac_prog", so it can be a program name with args.
6046set dummy $ac_prog; ac_word=$2
6047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049if test "${ac_cv_prog_LEX+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052 if test -n "$LEX"; then
6053 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058 IFS=$as_save_IFS
6059 test -z "$as_dir" && as_dir=.
6060 for ac_exec_ext in '' $ac_executable_extensions; do
6061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6062 ac_cv_prog_LEX="$ac_prog"
6063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 break 2
6065 fi
6066done
6067done
6068IFS=$as_save_IFS
6069
6070fi
6071fi
6072LEX=$ac_cv_prog_LEX
6073if test -n "$LEX"; then
6074 { echo "$as_me:$LINENO: result: $LEX" >&5
6075echo "${ECHO_T}$LEX" >&6; }
6076else
6077 { echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6; }
6079fi
6080
6081
6082 test -n "$LEX" && break
6083done
6084test -n "$LEX" || LEX=":"
6085
6086if test -z "$LEXLIB"
6087then
6088 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6089echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6090if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6091 echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093 ac_check_lib_save_LIBS=$LIBS
6094LIBS="-lfl $LIBS"
6095cat >conftest.$ac_ext <<_ACEOF
6096/* confdefs.h. */
6097_ACEOF
6098cat confdefs.h >>conftest.$ac_ext
6099cat >>conftest.$ac_ext <<_ACEOF
6100/* end confdefs.h. */
6101
6102/* Override any GCC internal prototype to avoid an error.
6103 Use char because int might match the return type of a GCC
6104 builtin and then its argument prototype would still apply. */
6105#ifdef __cplusplus
6106extern "C"
6107#endif
6108char yywrap ();
6109int
6110main ()
6111{
6112return yywrap ();
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117rm -f conftest.$ac_objext conftest$ac_exeext
6118if { (ac_try="$ac_link"
6119case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122esac
6123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6124 (eval "$ac_link") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } &&
6131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6132 { (case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135esac
6136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_try") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }; } &&
6141 { ac_try='test -s conftest$ac_exeext'
6142 { (case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145esac
6146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_try") 2>&5
6148 ac_status=$?
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_cv_lib_fl_yywrap=yes
6152else
6153 echo "$as_me: failed program was:" >&5
6154sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 ac_cv_lib_fl_yywrap=no
6157fi
6158
6159rm -f core conftest.err conftest.$ac_objext \
6160 conftest$ac_exeext conftest.$ac_ext
6161LIBS=$ac_check_lib_save_LIBS
6162fi
6163{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6164echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6165if test $ac_cv_lib_fl_yywrap = yes; then
6166 LEXLIB="-lfl"
6167else
6168 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6169echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6170if test "${ac_cv_lib_l_yywrap+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6172else
6173 ac_check_lib_save_LIBS=$LIBS
6174LIBS="-ll $LIBS"
6175cat >conftest.$ac_ext <<_ACEOF
6176/* confdefs.h. */
6177_ACEOF
6178cat confdefs.h >>conftest.$ac_ext
6179cat >>conftest.$ac_ext <<_ACEOF
6180/* end confdefs.h. */
6181
6182/* Override any GCC internal prototype to avoid an error.
6183 Use char because int might match the return type of a GCC
6184 builtin and then its argument prototype would still apply. */
6185#ifdef __cplusplus
6186extern "C"
6187#endif
6188char yywrap ();
6189int
6190main ()
6191{
6192return yywrap ();
6193 ;
6194 return 0;
6195}
6196_ACEOF
6197rm -f conftest.$ac_objext conftest$ac_exeext
6198if { (ac_try="$ac_link"
6199case "(($ac_try" in
6200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6202esac
6203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_link") 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212 { (case "(($ac_try" in
6213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6214 *) ac_try_echo=$ac_try;;
6215esac
6216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6217 (eval "$ac_try") 2>&5
6218 ac_status=$?
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; } &&
6221 { ac_try='test -s conftest$ac_exeext'
6222 { (case "(($ac_try" in
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6225esac
6226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6227 (eval "$ac_try") 2>&5
6228 ac_status=$?
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); }; }; then
6231 ac_cv_lib_l_yywrap=yes
6232else
6233 echo "$as_me: failed program was:" >&5
6234sed 's/^/| /' conftest.$ac_ext >&5
6235
6236 ac_cv_lib_l_yywrap=no
6237fi
6238
6239rm -f core conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241LIBS=$ac_check_lib_save_LIBS
6242fi
6243{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6244echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6245if test $ac_cv_lib_l_yywrap = yes; then
6246 LEXLIB="-ll"
6247fi
6248
6249fi
6250
6251fi
6252
6253if test "x$LEX" != "x:"; then
6254 { echo "$as_me:$LINENO: checking lex output file root" >&5
6255echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6256if test "${ac_cv_prog_lex_root+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 # The minimal lex program is just a single line: %%. But some broken lexes
6260# (Solaris, I think it was) want two %% lines, so accommodate them.
6261cat >conftest.l <<_ACEOF
6262%%
6263%%
6264_ACEOF
6265{ (ac_try="$LEX conftest.l"
6266case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269esac
6270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$LEX conftest.l") 2>&5
6272 ac_status=$?
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }
6275if test -f lex.yy.c; then
6276 ac_cv_prog_lex_root=lex.yy
6277elif test -f lexyy.c; then
6278 ac_cv_prog_lex_root=lexyy
6279else
6280 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6281echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6282 { (exit 1); exit 1; }; }
6283fi
6284fi
6285{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6286echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6287rm -f conftest.l
6288LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6289
6290{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6291echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6292if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295 # POSIX says lex can declare yytext either as a pointer or an array; the
6296# default is implementation-dependent. Figure out which it is, since
6297# not all implementations provide the %pointer and %array declarations.
6298ac_cv_prog_lex_yytext_pointer=no
6299echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6300ac_save_LIBS=$LIBS
6301LIBS="$LIBS $LEXLIB"
6302cat >conftest.$ac_ext <<_ACEOF
6303`cat $LEX_OUTPUT_ROOT.c`
6304_ACEOF
6305rm -f conftest.$ac_objext conftest$ac_exeext
6306if { (ac_try="$ac_link"
6307case "(($ac_try" in
6308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6309 *) ac_try_echo=$ac_try;;
6310esac
6311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6312 (eval "$ac_link") 2>conftest.er1
6313 ac_status=$?
6314 grep -v '^ *+' conftest.er1 >conftest.err
6315 rm -f conftest.er1
6316 cat conftest.err >&5
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); } &&
6319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6320 { (case "(($ac_try" in
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6323esac
6324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_try") 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333esac
6334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_try") 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_cv_prog_lex_yytext_pointer=yes
6340else
6341 echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344
6345fi
6346
6347rm -f core conftest.err conftest.$ac_objext \
6348 conftest$ac_exeext conftest.$ac_ext
6349LIBS=$ac_save_LIBS
6350rm -f "${LEX_OUTPUT_ROOT}.c"
6351
6352fi
6353{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6354echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6355if test $ac_cv_prog_lex_yytext_pointer = yes; then
6356
6357cat >>confdefs.h <<\_ACEOF
6358#define YYTEXT_POINTER 1
6359_ACEOF
6360
6361fi
6362
6363fi
6364
6365fi
6366{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6367echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6368if test "$LEX" != "flex"; then
6369 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6370echo "$as_me: error: flex not found but required" >&2;}
6371 { (exit 1); exit 1; }; }
6372else
6373 FLEX=flex
6374
6375fi
6376
6377{ echo "$as_me:$LINENO: checking " >&5
6378echo $ECHO_N "checking ... $ECHO_C" >&6; }
6379if test "${llvm_cv_has_bison+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
6382 for ac_prog in 'bison -y' byacc
6383do
6384 # Extract the first word of "$ac_prog", so it can be a program name with args.
6385set dummy $ac_prog; ac_word=$2
6386{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6388if test "${ac_cv_prog_YACC+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6390else
6391 if test -n "$YACC"; then
6392 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6393else
6394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395for as_dir in $PATH
6396do
6397 IFS=$as_save_IFS
6398 test -z "$as_dir" && as_dir=.
6399 for ac_exec_ext in '' $ac_executable_extensions; do
6400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6401 ac_cv_prog_YACC="$ac_prog"
6402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403 break 2
6404 fi
6405done
6406done
6407IFS=$as_save_IFS
6408
6409fi
6410fi
6411YACC=$ac_cv_prog_YACC
6412if test -n "$YACC"; then
6413 { echo "$as_me:$LINENO: result: $YACC" >&5
6414echo "${ECHO_T}$YACC" >&6; }
6415else
6416 { echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6; }
6418fi
6419
6420
6421 test -n "$YACC" && break
6422done
6423test -n "$YACC" || YACC="yacc"
6424
6425fi
6426{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6427echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6428if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006429
6430 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6431echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006432else
6433 BISON=bison
6434
6435fi
6436
6437{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6438echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6439if test "${lt_cv_path_NM+set}" = set; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6441else
6442 if test -n "$NM"; then
6443 # Let the user override the test.
6444 lt_cv_path_NM="$NM"
6445else
6446 lt_nm_to_check="${ac_tool_prefix}nm"
6447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6448 lt_nm_to_check="$lt_nm_to_check nm"
6449 fi
6450 for lt_tmp_nm in $lt_nm_to_check; do
6451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6453 IFS="$lt_save_ifs"
6454 test -z "$ac_dir" && ac_dir=.
6455 tmp_nm="$ac_dir/$lt_tmp_nm"
6456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6457 # Check to see if the nm accepts a BSD-compat flag.
6458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6459 # nm: unknown option "B" ignored
6460 # Tru64's nm complains that /dev/null is an invalid object file
6461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6462 */dev/null* | *'Invalid file or object type'*)
6463 lt_cv_path_NM="$tmp_nm -B"
6464 break
6465 ;;
6466 *)
6467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6468 */dev/null*)
6469 lt_cv_path_NM="$tmp_nm -p"
6470 break
6471 ;;
6472 *)
6473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6474 continue # so that we can try to find one that supports BSD flags
6475 ;;
6476 esac
6477 ;;
6478 esac
6479 fi
6480 done
6481 IFS="$lt_save_ifs"
6482 done
6483 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6484fi
6485fi
6486{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6487echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6488NM="$lt_cv_path_NM"
6489
6490
6491
6492{ echo "$as_me:$LINENO: checking for GNU make" >&5
6493echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6494if test "${llvm_cv_gnu_make_command+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
6496else
6497 llvm_cv_gnu_make_command=''
6498 for a in "$MAKE" make gmake gnumake ; do
6499 if test -z "$a" ; then continue ; fi ;
6500 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6501 then
6502 llvm_cv_gnu_make_command=$a ;
6503 break;
6504 fi
6505 done
6506fi
6507{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6508echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6509 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6510 ifGNUmake='' ;
6511 else
6512 ifGNUmake='#' ;
6513 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6514echo "${ECHO_T}\"Not found\"" >&6; };
6515 fi
6516
6517
6518{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6519echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6520LN_S=$as_ln_s
6521if test "$LN_S" = "ln -s"; then
6522 { echo "$as_me:$LINENO: result: yes" >&5
6523echo "${ECHO_T}yes" >&6; }
6524else
6525 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6526echo "${ECHO_T}no, using $LN_S" >&6; }
6527fi
6528
6529# Extract the first word of "cmp", so it can be a program name with args.
6530set dummy cmp; ac_word=$2
6531{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6533if test "${ac_cv_path_CMP+set}" = set; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536 case $CMP in
6537 [\\/]* | ?:[\\/]*)
6538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6539 ;;
6540 *)
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553done
6554IFS=$as_save_IFS
6555
6556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6557 ;;
6558esac
6559fi
6560CMP=$ac_cv_path_CMP
6561if test -n "$CMP"; then
6562 { echo "$as_me:$LINENO: result: $CMP" >&5
6563echo "${ECHO_T}$CMP" >&6; }
6564else
6565 { echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6; }
6567fi
6568
6569
6570# Extract the first word of "cp", so it can be a program name with args.
6571set dummy cp; ac_word=$2
6572{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6574if test "${ac_cv_path_CP+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577 case $CP in
6578 [\\/]* | ?:[\\/]*)
6579 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6580 ;;
6581 *)
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6589 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594done
6595IFS=$as_save_IFS
6596
6597 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6598 ;;
6599esac
6600fi
6601CP=$ac_cv_path_CP
6602if test -n "$CP"; then
6603 { echo "$as_me:$LINENO: result: $CP" >&5
6604echo "${ECHO_T}$CP" >&6; }
6605else
6606 { echo "$as_me:$LINENO: result: no" >&5
6607echo "${ECHO_T}no" >&6; }
6608fi
6609
6610
6611# Extract the first word of "date", so it can be a program name with args.
6612set dummy date; ac_word=$2
6613{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615if test "${ac_cv_path_DATE+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6617else
6618 case $DATE in
6619 [\\/]* | ?:[\\/]*)
6620 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6621 ;;
6622 *)
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626 IFS=$as_save_IFS
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 break 2
6633 fi
6634done
6635done
6636IFS=$as_save_IFS
6637
6638 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6639 ;;
6640esac
6641fi
6642DATE=$ac_cv_path_DATE
6643if test -n "$DATE"; then
6644 { echo "$as_me:$LINENO: result: $DATE" >&5
6645echo "${ECHO_T}$DATE" >&6; }
6646else
6647 { echo "$as_me:$LINENO: result: no" >&5
6648echo "${ECHO_T}no" >&6; }
6649fi
6650
6651
6652# Extract the first word of "find", so it can be a program name with args.
6653set dummy find; ac_word=$2
6654{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6656if test "${ac_cv_path_FIND+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658else
6659 case $FIND in
6660 [\\/]* | ?:[\\/]*)
6661 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6662 ;;
6663 *)
6664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665for as_dir in $PATH
6666do
6667 IFS=$as_save_IFS
6668 test -z "$as_dir" && as_dir=.
6669 for ac_exec_ext in '' $ac_executable_extensions; do
6670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6671 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6673 break 2
6674 fi
6675done
6676done
6677IFS=$as_save_IFS
6678
6679 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6680 ;;
6681esac
6682fi
6683FIND=$ac_cv_path_FIND
6684if test -n "$FIND"; then
6685 { echo "$as_me:$LINENO: result: $FIND" >&5
6686echo "${ECHO_T}$FIND" >&6; }
6687else
6688 { echo "$as_me:$LINENO: result: no" >&5
6689echo "${ECHO_T}no" >&6; }
6690fi
6691
6692
6693# Extract the first word of "grep", so it can be a program name with args.
6694set dummy grep; ac_word=$2
6695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697if test "${ac_cv_path_GREP+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 case $GREP in
6701 [\\/]* | ?:[\\/]*)
6702 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6703 ;;
6704 *)
6705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH
6707do
6708 IFS=$as_save_IFS
6709 test -z "$as_dir" && as_dir=.
6710 for ac_exec_ext in '' $ac_executable_extensions; do
6711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6712 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6714 break 2
6715 fi
6716done
6717done
6718IFS=$as_save_IFS
6719
6720 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6721 ;;
6722esac
6723fi
6724GREP=$ac_cv_path_GREP
6725if test -n "$GREP"; then
6726 { echo "$as_me:$LINENO: result: $GREP" >&5
6727echo "${ECHO_T}$GREP" >&6; }
6728else
6729 { echo "$as_me:$LINENO: result: no" >&5
6730echo "${ECHO_T}no" >&6; }
6731fi
6732
6733
6734# Extract the first word of "mkdir", so it can be a program name with args.
6735set dummy mkdir; ac_word=$2
6736{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6738if test "${ac_cv_path_MKDIR+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 case $MKDIR in
6742 [\\/]* | ?:[\\/]*)
6743 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6744 ;;
6745 *)
6746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747for as_dir in $PATH
6748do
6749 IFS=$as_save_IFS
6750 test -z "$as_dir" && as_dir=.
6751 for ac_exec_ext in '' $ac_executable_extensions; do
6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6753 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6755 break 2
6756 fi
6757done
6758done
6759IFS=$as_save_IFS
6760
6761 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6762 ;;
6763esac
6764fi
6765MKDIR=$ac_cv_path_MKDIR
6766if test -n "$MKDIR"; then
6767 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6768echo "${ECHO_T}$MKDIR" >&6; }
6769else
6770 { echo "$as_me:$LINENO: result: no" >&5
6771echo "${ECHO_T}no" >&6; }
6772fi
6773
6774
6775# Extract the first word of "mv", so it can be a program name with args.
6776set dummy mv; ac_word=$2
6777{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6779if test "${ac_cv_path_MV+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782 case $MV in
6783 [\\/]* | ?:[\\/]*)
6784 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6785 ;;
6786 *)
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788for as_dir in $PATH
6789do
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6797 fi
6798done
6799done
6800IFS=$as_save_IFS
6801
6802 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6803 ;;
6804esac
6805fi
6806MV=$ac_cv_path_MV
6807if test -n "$MV"; then
6808 { echo "$as_me:$LINENO: result: $MV" >&5
6809echo "${ECHO_T}$MV" >&6; }
6810else
6811 { echo "$as_me:$LINENO: result: no" >&5
6812echo "${ECHO_T}no" >&6; }
6813fi
6814
6815
6816if test -n "$ac_tool_prefix"; then
6817 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6818set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6819{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821if test "${ac_cv_prog_RANLIB+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6823else
6824 if test -n "$RANLIB"; then
6825 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6826else
6827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828for as_dir in $PATH
6829do
6830 IFS=$as_save_IFS
6831 test -z "$as_dir" && as_dir=.
6832 for ac_exec_ext in '' $ac_executable_extensions; do
6833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6834 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6836 break 2
6837 fi
6838done
6839done
6840IFS=$as_save_IFS
6841
6842fi
6843fi
6844RANLIB=$ac_cv_prog_RANLIB
6845if test -n "$RANLIB"; then
6846 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6847echo "${ECHO_T}$RANLIB" >&6; }
6848else
6849 { echo "$as_me:$LINENO: result: no" >&5
6850echo "${ECHO_T}no" >&6; }
6851fi
6852
6853
6854fi
6855if test -z "$ac_cv_prog_RANLIB"; then
6856 ac_ct_RANLIB=$RANLIB
6857 # Extract the first word of "ranlib", so it can be a program name with args.
6858set dummy ranlib; ac_word=$2
6859{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6862 echo $ECHO_N "(cached) $ECHO_C" >&6
6863else
6864 if test -n "$ac_ct_RANLIB"; then
6865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6866else
6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868for as_dir in $PATH
6869do
6870 IFS=$as_save_IFS
6871 test -z "$as_dir" && as_dir=.
6872 for ac_exec_ext in '' $ac_executable_extensions; do
6873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6874 ac_cv_prog_ac_ct_RANLIB="ranlib"
6875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6876 break 2
6877 fi
6878done
6879done
6880IFS=$as_save_IFS
6881
6882fi
6883fi
6884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6885if test -n "$ac_ct_RANLIB"; then
6886 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6887echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6888else
6889 { echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6; }
6891fi
6892
6893 if test "x$ac_ct_RANLIB" = x; then
6894 RANLIB=":"
6895 else
6896 case $cross_compiling:$ac_tool_warned in
6897yes:)
6898{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6899whose name does not start with the host triplet. If you think this
6900configuration is useful to you, please write to autoconf@gnu.org." >&5
6901echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6902whose name does not start with the host triplet. If you think this
6903configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6904ac_tool_warned=yes ;;
6905esac
6906 RANLIB=$ac_ct_RANLIB
6907 fi
6908else
6909 RANLIB="$ac_cv_prog_RANLIB"
6910fi
6911
6912# Extract the first word of "rm", so it can be a program name with args.
6913set dummy rm; ac_word=$2
6914{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6916if test "${ac_cv_path_RM+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 case $RM in
6920 [\\/]* | ?:[\\/]*)
6921 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6922 ;;
6923 *)
6924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6925for as_dir in $PATH
6926do
6927 IFS=$as_save_IFS
6928 test -z "$as_dir" && as_dir=.
6929 for ac_exec_ext in '' $ac_executable_extensions; do
6930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6931 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6933 break 2
6934 fi
6935done
6936done
6937IFS=$as_save_IFS
6938
6939 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6940 ;;
6941esac
6942fi
6943RM=$ac_cv_path_RM
6944if test -n "$RM"; then
6945 { echo "$as_me:$LINENO: result: $RM" >&5
6946echo "${ECHO_T}$RM" >&6; }
6947else
6948 { echo "$as_me:$LINENO: result: no" >&5
6949echo "${ECHO_T}no" >&6; }
6950fi
6951
6952
6953# Extract the first word of "sed", so it can be a program name with args.
6954set dummy sed; ac_word=$2
6955{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6957if test "${ac_cv_path_SED+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959else
6960 case $SED in
6961 [\\/]* | ?:[\\/]*)
6962 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6963 ;;
6964 *)
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966for as_dir in $PATH
6967do
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6975 fi
6976done
6977done
6978IFS=$as_save_IFS
6979
6980 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6981 ;;
6982esac
6983fi
6984SED=$ac_cv_path_SED
6985if test -n "$SED"; then
6986 { echo "$as_me:$LINENO: result: $SED" >&5
6987echo "${ECHO_T}$SED" >&6; }
6988else
6989 { echo "$as_me:$LINENO: result: no" >&5
6990echo "${ECHO_T}no" >&6; }
6991fi
6992
6993
6994# Extract the first word of "tar", so it can be a program name with args.
6995set dummy tar; ac_word=$2
6996{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6998if test "${ac_cv_path_TAR+set}" = set; then
6999 echo $ECHO_N "(cached) $ECHO_C" >&6
7000else
7001 case $TAR in
7002 [\\/]* | ?:[\\/]*)
7003 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7004 ;;
7005 *)
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018done
7019IFS=$as_save_IFS
7020
7021 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7022 ;;
7023esac
7024fi
7025TAR=$ac_cv_path_TAR
7026if test -n "$TAR"; then
7027 { echo "$as_me:$LINENO: result: $TAR" >&5
7028echo "${ECHO_T}$TAR" >&6; }
7029else
7030 { echo "$as_me:$LINENO: result: no" >&5
7031echo "${ECHO_T}no" >&6; }
7032fi
7033
7034
7035# Extract the first word of "pwd", so it can be a program name with args.
7036set dummy pwd; ac_word=$2
7037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7039if test "${ac_cv_path_BINPWD+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042 case $BINPWD in
7043 [\\/]* | ?:[\\/]*)
7044 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7045 ;;
7046 *)
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7054 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7063 ;;
7064esac
7065fi
7066BINPWD=$ac_cv_path_BINPWD
7067if test -n "$BINPWD"; then
7068 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7069echo "${ECHO_T}$BINPWD" >&6; }
7070else
7071 { echo "$as_me:$LINENO: result: no" >&5
7072echo "${ECHO_T}no" >&6; }
7073fi
7074
7075
7076
7077# Extract the first word of "Graphviz", so it can be a program name with args.
7078set dummy Graphviz; ac_word=$2
7079{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7080echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7081if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7082 echo $ECHO_N "(cached) $ECHO_C" >&6
7083else
7084 case $GRAPHVIZ in
7085 [\\/]* | ?:[\\/]*)
7086 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7087 ;;
7088 *)
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7096 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7099 fi
7100done
7101done
7102IFS=$as_save_IFS
7103
7104 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7105 ;;
7106esac
7107fi
7108GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7109if test -n "$GRAPHVIZ"; then
7110 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7111echo "${ECHO_T}$GRAPHVIZ" >&6; }
7112else
7113 { echo "$as_me:$LINENO: result: no" >&5
7114echo "${ECHO_T}no" >&6; }
7115fi
7116
7117
7118if test "$GRAPHVIZ" != "echo Graphviz" ; then
7119
7120cat >>confdefs.h <<\_ACEOF
7121#define HAVE_GRAPHVIZ 1
7122_ACEOF
7123
Jeff Cohen28783c32007-01-12 18:22:38 +00007124 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007125 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7126 fi
7127
7128cat >>confdefs.h <<_ACEOF
7129#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7130_ACEOF
7131
7132fi
7133# Extract the first word of "dot", so it can be a program name with args.
7134set dummy dot; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_path_DOT+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140 case $DOT in
7141 [\\/]* | ?:[\\/]*)
7142 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7143 ;;
7144 *)
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157done
7158IFS=$as_save_IFS
7159
7160 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7161 ;;
7162esac
7163fi
7164DOT=$ac_cv_path_DOT
7165if test -n "$DOT"; then
7166 { echo "$as_me:$LINENO: result: $DOT" >&5
7167echo "${ECHO_T}$DOT" >&6; }
7168else
7169 { echo "$as_me:$LINENO: result: no" >&5
7170echo "${ECHO_T}no" >&6; }
7171fi
7172
7173
7174if test "$DOT" != "echo dot" ; then
7175
7176cat >>confdefs.h <<\_ACEOF
7177#define HAVE_DOT 1
7178_ACEOF
7179
Jeff Cohen28783c32007-01-12 18:22:38 +00007180 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007181 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7182 fi
7183
7184cat >>confdefs.h <<_ACEOF
7185#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7186_ACEOF
7187
7188fi
7189for ac_prog in gv gsview32
7190do
7191 # Extract the first word of "$ac_prog", so it can be a program name with args.
7192set dummy $ac_prog; ac_word=$2
7193{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7195if test "${ac_cv_path_GV+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198 case $GV in
7199 [\\/]* | ?:[\\/]*)
7200 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7201 ;;
7202 *)
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204for as_dir in $PATH
7205do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7210 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214done
7215done
7216IFS=$as_save_IFS
7217
7218 ;;
7219esac
7220fi
7221GV=$ac_cv_path_GV
7222if test -n "$GV"; then
7223 { echo "$as_me:$LINENO: result: $GV" >&5
7224echo "${ECHO_T}$GV" >&6; }
7225else
7226 { echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6; }
7228fi
7229
7230
7231 test -n "$GV" && break
7232done
7233test -n "$GV" || GV="echo gv"
7234
7235if test "$GV" != "echo gv" ; then
7236
7237cat >>confdefs.h <<\_ACEOF
7238#define HAVE_GV 1
7239_ACEOF
7240
Jeff Cohen28783c32007-01-12 18:22:38 +00007241 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007242 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7243 fi
7244
7245cat >>confdefs.h <<_ACEOF
7246#define LLVM_PATH_GV "$GV${EXEEXT}"
7247_ACEOF
7248
7249fi
7250# Extract the first word of "dotty", so it can be a program name with args.
7251set dummy dotty; ac_word=$2
7252{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7254if test "${ac_cv_path_DOTTY+set}" = set; then
7255 echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257 case $DOTTY in
7258 [\\/]* | ?:[\\/]*)
7259 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7260 ;;
7261 *)
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263for as_dir in $PATH
7264do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7269 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273done
7274done
7275IFS=$as_save_IFS
7276
7277 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7278 ;;
7279esac
7280fi
7281DOTTY=$ac_cv_path_DOTTY
7282if test -n "$DOTTY"; then
7283 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7284echo "${ECHO_T}$DOTTY" >&6; }
7285else
7286 { echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6; }
7288fi
7289
7290
7291if test "$DOTTY" != "echo dotty" ; then
7292
7293cat >>confdefs.h <<\_ACEOF
7294#define HAVE_DOTTY 1
7295_ACEOF
7296
Jeff Cohen28783c32007-01-12 18:22:38 +00007297 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007298 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7299 fi
7300
7301cat >>confdefs.h <<_ACEOF
7302#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7303_ACEOF
7304
7305fi
7306
7307
7308# Extract the first word of "perl", so it can be a program name with args.
7309set dummy perl; ac_word=$2
7310{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7312if test "${ac_cv_path_PERL+set}" = set; then
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315 case $PERL in
7316 [\\/]* | ?:[\\/]*)
7317 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7318 ;;
7319 *)
7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7321for as_dir in $PATH
7322do
7323 IFS=$as_save_IFS
7324 test -z "$as_dir" && as_dir=.
7325 for ac_exec_ext in '' $ac_executable_extensions; do
7326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7327 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 break 2
7330 fi
7331done
7332done
7333IFS=$as_save_IFS
7334
7335 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7336 ;;
7337esac
7338fi
7339PERL=$ac_cv_path_PERL
7340if test -n "$PERL"; then
7341 { echo "$as_me:$LINENO: result: $PERL" >&5
7342echo "${ECHO_T}$PERL" >&6; }
7343else
7344 { echo "$as_me:$LINENO: result: no" >&5
7345echo "${ECHO_T}no" >&6; }
7346fi
7347
7348
7349if test "$PERL" != "none"; then
7350 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7351echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7352 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7353 { echo "$as_me:$LINENO: result: yes" >&5
7354echo "${ECHO_T}yes" >&6; }
7355 else
7356 PERL=none
7357 { echo "$as_me:$LINENO: result: not found" >&5
7358echo "${ECHO_T}not found" >&6; }
7359 fi
7360fi
7361
7362
7363if test x"$PERL" = xnone; then
7364 HAVE_PERL=0
7365
7366else
7367 HAVE_PERL=1
7368
7369fi
7370
7371# Find a good install program. We prefer a C program (faster),
7372# so one script is as good as another. But avoid the broken or
7373# incompatible versions:
7374# SysV /etc/install, /usr/sbin/install
7375# SunOS /usr/etc/install
7376# IRIX /sbin/install
7377# AIX /bin/install
7378# AmigaOS /C/install, which installs bootblocks on floppy discs
7379# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7380# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7381# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7382# OS/2's system install, which has a completely different semantic
7383# ./install, which can be erroneously created by make from ./install.sh.
7384{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7385echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7386if test -z "$INSTALL"; then
7387if test "${ac_cv_path_install+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391for as_dir in $PATH
7392do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 # Account for people who put trailing slashes in PATH elements.
7396case $as_dir/ in
7397 ./ | .// | /cC/* | \
7398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7399 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7400 /usr/ucb/* ) ;;
7401 *)
7402 # OSF1 and SCO ODT 3.0 have their own names for install.
7403 # Don't use installbsd from OSF since it installs stuff as root
7404 # by default.
7405 for ac_prog in ginstall scoinst install; do
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7408 if test $ac_prog = install &&
7409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7410 # AIX install. It has an incompatible calling convention.
7411 :
7412 elif test $ac_prog = install &&
7413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7414 # program-specific install script used by HP pwplus--don't use.
7415 :
7416 else
7417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7418 break 3
7419 fi
7420 fi
7421 done
7422 done
7423 ;;
7424esac
7425done
7426IFS=$as_save_IFS
7427
7428
7429fi
7430 if test "${ac_cv_path_install+set}" = set; then
7431 INSTALL=$ac_cv_path_install
7432 else
7433 # As a last resort, use the slow shell script. Don't cache a
7434 # value for INSTALL within a source directory, because that will
7435 # break other packages using the cache if that directory is
7436 # removed, or if the value is a relative name.
7437 INSTALL=$ac_install_sh
7438 fi
7439fi
7440{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7441echo "${ECHO_T}$INSTALL" >&6; }
7442
7443# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7444# It thinks the first close brace ends the variable substitution.
7445test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7446
7447test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7448
7449test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7450
7451
7452# Extract the first word of "bzip2", so it can be a program name with args.
7453set dummy bzip2; ac_word=$2
7454{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456if test "${ac_cv_path_BZIP2+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7458else
7459 case $BZIP2 in
7460 [\\/]* | ?:[\\/]*)
7461 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7462 ;;
7463 *)
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7471 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476done
7477IFS=$as_save_IFS
7478
7479 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7480 ;;
7481esac
7482fi
7483BZIP2=$ac_cv_path_BZIP2
7484if test -n "$BZIP2"; then
7485 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7486echo "${ECHO_T}$BZIP2" >&6; }
7487else
7488 { echo "$as_me:$LINENO: result: no" >&5
7489echo "${ECHO_T}no" >&6; }
7490fi
7491
7492
7493# Extract the first word of "doxygen", so it can be a program name with args.
7494set dummy doxygen; ac_word=$2
7495{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7496echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7497if test "${ac_cv_path_DOXYGEN+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 case $DOXYGEN in
7501 [\\/]* | ?:[\\/]*)
7502 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7503 ;;
7504 *)
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506for as_dir in $PATH
7507do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516done
7517done
7518IFS=$as_save_IFS
7519
7520 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7521 ;;
7522esac
7523fi
7524DOXYGEN=$ac_cv_path_DOXYGEN
7525if test -n "$DOXYGEN"; then
7526 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7527echo "${ECHO_T}$DOXYGEN" >&6; }
7528else
7529 { echo "$as_me:$LINENO: result: no" >&5
7530echo "${ECHO_T}no" >&6; }
7531fi
7532
7533
Reid Spencera773bd52006-08-04 18:18:08 +00007534# Extract the first word of "groff", so it can be a program name with args.
7535set dummy groff; ac_word=$2
7536{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7538if test "${ac_cv_path_GROFF+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541 case $GROFF in
7542 [\\/]* | ?:[\\/]*)
7543 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7544 ;;
7545 *)
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547for as_dir in $PATH
7548do
7549 IFS=$as_save_IFS
7550 test -z "$as_dir" && as_dir=.
7551 for ac_exec_ext in '' $ac_executable_extensions; do
7552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7553 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555 break 2
7556 fi
7557done
7558done
7559IFS=$as_save_IFS
7560
7561 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7562 ;;
7563esac
7564fi
7565GROFF=$ac_cv_path_GROFF
7566if test -n "$GROFF"; then
7567 { echo "$as_me:$LINENO: result: $GROFF" >&5
7568echo "${ECHO_T}$GROFF" >&6; }
7569else
7570 { echo "$as_me:$LINENO: result: no" >&5
7571echo "${ECHO_T}no" >&6; }
7572fi
7573
7574
7575# Extract the first word of "gzip", so it can be a program name with args.
7576set dummy gzip; ac_word=$2
7577{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7579if test "${ac_cv_path_GZIP+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581else
7582 case $GZIP in
7583 [\\/]* | ?:[\\/]*)
7584 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7585 ;;
7586 *)
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7594 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599done
7600IFS=$as_save_IFS
7601
7602 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7603 ;;
7604esac
7605fi
7606GZIP=$ac_cv_path_GZIP
7607if test -n "$GZIP"; then
7608 { echo "$as_me:$LINENO: result: $GZIP" >&5
7609echo "${ECHO_T}$GZIP" >&6; }
7610else
7611 { echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6; }
7613fi
7614
7615
7616# Extract the first word of "pod2html", so it can be a program name with args.
7617set dummy pod2html; ac_word=$2
7618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7620if test "${ac_cv_path_POD2HTML+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 case $POD2HTML in
7624 [\\/]* | ?:[\\/]*)
7625 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7626 ;;
7627 *)
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7638 fi
7639done
7640done
7641IFS=$as_save_IFS
7642
7643 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7644 ;;
7645esac
7646fi
7647POD2HTML=$ac_cv_path_POD2HTML
7648if test -n "$POD2HTML"; then
7649 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7650echo "${ECHO_T}$POD2HTML" >&6; }
7651else
7652 { echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6; }
7654fi
7655
7656
7657# Extract the first word of "pod2man", so it can be a program name with args.
7658set dummy pod2man; ac_word=$2
7659{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7661if test "${ac_cv_path_POD2MAN+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663else
7664 case $POD2MAN in
7665 [\\/]* | ?:[\\/]*)
7666 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7667 ;;
7668 *)
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7676 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680done
7681done
7682IFS=$as_save_IFS
7683
7684 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7685 ;;
7686esac
7687fi
7688POD2MAN=$ac_cv_path_POD2MAN
7689if test -n "$POD2MAN"; then
7690 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7691echo "${ECHO_T}$POD2MAN" >&6; }
7692else
7693 { echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6; }
7695fi
7696
7697
7698# Extract the first word of "runtest", so it can be a program name with args.
7699set dummy runtest; ac_word=$2
7700{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7702if test "${ac_cv_path_RUNTEST+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705 case $RUNTEST in
7706 [\\/]* | ?:[\\/]*)
7707 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7708 ;;
7709 *)
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7719 break 2
7720 fi
7721done
7722done
7723IFS=$as_save_IFS
7724
7725 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7726 ;;
7727esac
7728fi
7729RUNTEST=$ac_cv_path_RUNTEST
7730if test -n "$RUNTEST"; then
7731 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7732echo "${ECHO_T}$RUNTEST" >&6; }
7733else
7734 { echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6; }
7736fi
7737
7738
7739
7740no_itcl=true
7741{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7742echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7743
7744# Check whether --with-tclinclude was given.
7745if test "${with_tclinclude+set}" = set; then
7746 withval=$with_tclinclude; with_tclinclude=${withval}
7747else
7748 with_tclinclude=''
7749fi
7750
7751if test "${ac_cv_path_tclsh+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754
7755if test x"${with_tclinclude}" != x ; then
7756 if test -f ${with_tclinclude}/tclsh ; then
7757 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7758 elif test -f ${with_tclinclude}/src/tclsh ; then
7759 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7760 else
7761 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7762echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7763 { (exit 1); exit 1; }; }
7764 fi
7765fi
7766
7767if test x"${ac_cv_path_tclsh}" = x ; then
7768 { echo "$as_me:$LINENO: result: none" >&5
7769echo "${ECHO_T}none" >&6; }
7770 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
7771do
7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
7773set dummy $ac_prog; ac_word=$2
7774{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776if test "${ac_cv_path_TCLSH+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7778else
7779 case $TCLSH in
7780 [\\/]* | ?:[\\/]*)
7781 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7782 ;;
7783 *)
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7785for as_dir in $PATH
7786do
7787 IFS=$as_save_IFS
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 break 2
7794 fi
7795done
7796done
7797IFS=$as_save_IFS
7798
7799 ;;
7800esac
7801fi
7802TCLSH=$ac_cv_path_TCLSH
7803if test -n "$TCLSH"; then
7804 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7805echo "${ECHO_T}$TCLSH" >&6; }
7806else
7807 { echo "$as_me:$LINENO: result: no" >&5
7808echo "${ECHO_T}no" >&6; }
7809fi
7810
7811
7812 test -n "$TCLSH" && break
7813done
7814
7815 if test x"${TCLSH}" = x ; then
7816 ac_cv_path_tclsh='';
7817 else
7818 ac_cv_path_tclsh="${TCLSH}";
7819 fi
7820else
7821 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7822echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7823 TCLSH="${ac_cv_path_tclsh}"
7824
7825fi
7826
7827fi
7828
7829# Extract the first word of "zip", so it can be a program name with args.
7830set dummy zip; ac_word=$2
7831{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7832echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7833if test "${ac_cv_path_ZIP+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7835else
7836 case $ZIP in
7837 [\\/]* | ?:[\\/]*)
7838 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7839 ;;
7840 *)
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7851 fi
7852done
7853done
7854IFS=$as_save_IFS
7855
7856 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7857 ;;
7858esac
7859fi
7860ZIP=$ac_cv_path_ZIP
7861if test -n "$ZIP"; then
7862 { echo "$as_me:$LINENO: result: $ZIP" >&5
7863echo "${ECHO_T}$ZIP" >&6; }
7864else
7865 { echo "$as_me:$LINENO: result: no" >&5
7866echo "${ECHO_T}no" >&6; }
7867fi
7868
7869
7870
7871{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7872echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7873if test "${llvm_cv_link_use_r+set}" = set; then
7874 echo $ECHO_N "(cached) $ECHO_C" >&6
7875else
7876 ac_ext=c
7877ac_cpp='$CPP $CPPFLAGS'
7878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881
7882 oldcflags="$CFLAGS"
7883 CFLAGS="$CFLAGS -Wl,-R."
7884 cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
7890
7891int
7892main ()
7893{
7894int main() { return 0; }
7895 ;
7896 return 0;
7897}
7898_ACEOF
7899rm -f conftest.$ac_objext conftest$ac_exeext
7900if { (ac_try="$ac_link"
7901case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7904esac
7905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_link") 2>conftest.er1
7907 ac_status=$?
7908 grep -v '^ *+' conftest.er1 >conftest.err
7909 rm -f conftest.er1
7910 cat conftest.err >&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7914 { (case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917esac
7918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_try") 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (case "(($ac_try" in
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7927esac
7928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_try") 2>&5
7930 ac_status=$?
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 llvm_cv_link_use_r=yes
7934else
7935 echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 llvm_cv_link_use_r=no
7939fi
7940
7941rm -f core conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 CFLAGS="$oldcflags"
7944 ac_ext=c
7945ac_cpp='$CPP $CPPFLAGS'
7946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949
7950
7951fi
7952{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7953echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7954if test "$llvm_cv_link_use_r" = yes ; then
7955
7956cat >>confdefs.h <<\_ACEOF
7957#define HAVE_LINK_R 1
7958_ACEOF
7959
7960 fi
7961
7962
7963
7964
7965{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7966echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7967if test "${ac_cv_c_const+set}" = set; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970 cat >conftest.$ac_ext <<_ACEOF
7971/* confdefs.h. */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h. */
7976
7977int
7978main ()
7979{
7980/* FIXME: Include the comments suggested by Paul. */
7981#ifndef __cplusplus
7982 /* Ultrix mips cc rejects this. */
7983 typedef int charset[2];
7984 const charset x;
7985 /* SunOS 4.1.1 cc rejects this. */
7986 char const *const *ccp;
7987 char **p;
7988 /* NEC SVR4.0.2 mips cc rejects this. */
7989 struct point {int x, y;};
7990 static struct point const zero = {0,0};
7991 /* AIX XL C 1.02.0.0 rejects this.
7992 It does not let you subtract one const X* pointer from another in
7993 an arm of an if-expression whose if-part is not a constant
7994 expression */
7995 const char *g = "string";
7996 ccp = &g + (g ? g-g : 0);
7997 /* HPUX 7.0 cc rejects these. */
7998 ++ccp;
7999 p = (char**) ccp;
8000 ccp = (char const *const *) p;
8001 { /* SCO 3.2v4 cc rejects this. */
8002 char *t;
8003 char const *s = 0 ? (char *) 0 : (char const *) 0;
8004
8005 *t++ = 0;
8006 if (s) return 0;
8007 }
8008 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8009 int x[] = {25, 17};
8010 const int *foo = &x[0];
8011 ++foo;
8012 }
8013 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8014 typedef const int *iptr;
8015 iptr p = 0;
8016 ++p;
8017 }
8018 { /* AIX XL C 1.02.0.0 rejects this saying
8019 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8020 struct s { int j; const int *ap[3]; };
8021 struct s *b; b->j = 5;
8022 }
8023 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8024 const int foo = 10;
8025 if (!foo) return 0;
8026 }
8027 return !x[0] && !zero.x;
8028#endif
8029
8030 ;
8031 return 0;
8032}
8033_ACEOF
8034rm -f conftest.$ac_objext
8035if { (ac_try="$ac_compile"
8036case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039esac
8040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052esac
8053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest.$ac_objext'
8059 { (case "(($ac_try" in
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8062esac
8063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_try") 2>&5
8065 ac_status=$?
8066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067 (exit $ac_status); }; }; then
8068 ac_cv_c_const=yes
8069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
8072
8073 ac_cv_c_const=no
8074fi
8075
8076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077fi
8078{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8079echo "${ECHO_T}$ac_cv_c_const" >&6; }
8080if test $ac_cv_c_const = no; then
8081
8082cat >>confdefs.h <<\_ACEOF
8083#define const
8084_ACEOF
8085
8086fi
8087
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008088
8089
8090
8091
8092
8093ac_header_dirent=no
8094for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8095 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008096{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8097echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 cat >conftest.$ac_ext <<_ACEOF
8102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
8107#include <sys/types.h>
8108#include <$ac_hdr>
8109
8110int
8111main ()
8112{
8113if ((DIR *) 0)
8114return 0;
8115 ;
8116 return 0;
8117}
8118_ACEOF
8119rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008120if { (ac_try="$ac_compile"
8121case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124esac
8125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8134 { (case "(($ac_try" in
8135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8136 *) ac_try_echo=$ac_try;;
8137esac
8138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8139 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008144 { (case "(($ac_try" in
8145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8146 *) ac_try_echo=$ac_try;;
8147esac
8148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8149 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008150 ac_status=$?
8151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152 (exit $ac_status); }; }; then
8153 eval "$as_ac_Header=yes"
8154else
8155 echo "$as_me: failed program was:" >&5
8156sed 's/^/| /' conftest.$ac_ext >&5
8157
Reid Spencera773bd52006-08-04 18:18:08 +00008158 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008159fi
Reid Spencera773bd52006-08-04 18:18:08 +00008160
8161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008162fi
Reid Spencera773bd52006-08-04 18:18:08 +00008163ac_res=`eval echo '${'$as_ac_Header'}'`
8164 { echo "$as_me:$LINENO: result: $ac_res" >&5
8165echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008166if test `eval echo '${'$as_ac_Header'}'` = yes; then
8167 cat >>confdefs.h <<_ACEOF
8168#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8169_ACEOF
8170
8171ac_header_dirent=$ac_hdr; break
8172fi
8173
8174done
8175# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8176if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008177 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8178echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008179if test "${ac_cv_search_opendir+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181else
8182 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008183cat >conftest.$ac_ext <<_ACEOF
8184/* confdefs.h. */
8185_ACEOF
8186cat confdefs.h >>conftest.$ac_ext
8187cat >>conftest.$ac_ext <<_ACEOF
8188/* end confdefs.h. */
8189
Reid Spencera773bd52006-08-04 18:18:08 +00008190/* Override any GCC internal prototype to avoid an error.
8191 Use char because int might match the return type of a GCC
8192 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008193#ifdef __cplusplus
8194extern "C"
8195#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008196char opendir ();
8197int
8198main ()
8199{
Reid Spencera773bd52006-08-04 18:18:08 +00008200return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008201 ;
8202 return 0;
8203}
8204_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008205for ac_lib in '' dir; do
8206 if test -z "$ac_lib"; then
8207 ac_res="none required"
8208 else
8209 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008211 fi
8212 rm -f conftest.$ac_objext conftest$ac_exeext
8213if { (ac_try="$ac_link"
8214case "(($ac_try" in
8215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8216 *) ac_try_echo=$ac_try;;
8217esac
8218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8219 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8227 { (case "(($ac_try" in
8228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229 *) ac_try_echo=$ac_try;;
8230esac
8231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; } &&
8236 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008237 { (case "(($ac_try" in
8238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8239 *) ac_try_echo=$ac_try;;
8240esac
8241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8242 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008243 ac_status=$?
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008246 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008247else
8248 echo "$as_me: failed program was:" >&5
8249sed 's/^/| /' conftest.$ac_ext >&5
8250
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008251
8252fi
8253
Reid Spencera773bd52006-08-04 18:18:08 +00008254rm -f core conftest.err conftest.$ac_objext \
8255 conftest$ac_exeext
8256 if test "${ac_cv_search_opendir+set}" = set; then
8257 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008258fi
John Criswell7a73b802003-06-30 21:59:07 +00008259done
Reid Spencera773bd52006-08-04 18:18:08 +00008260if test "${ac_cv_search_opendir+set}" = set; then
8261 :
8262else
8263 ac_cv_search_opendir=no
8264fi
8265rm conftest.$ac_ext
8266LIBS=$ac_func_search_save_LIBS
8267fi
8268{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8269echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8270ac_res=$ac_cv_search_opendir
8271if test "$ac_res" != no; then
8272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008273
Reid Spencera773bd52006-08-04 18:18:08 +00008274fi
8275
8276else
8277 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8278echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8279if test "${ac_cv_search_opendir+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8281else
8282 ac_func_search_save_LIBS=$LIBS
8283cat >conftest.$ac_ext <<_ACEOF
8284/* confdefs.h. */
8285_ACEOF
8286cat confdefs.h >>conftest.$ac_ext
8287cat >>conftest.$ac_ext <<_ACEOF
8288/* end confdefs.h. */
8289
8290/* Override any GCC internal prototype to avoid an error.
8291 Use char because int might match the return type of a GCC
8292 builtin and then its argument prototype would still apply. */
8293#ifdef __cplusplus
8294extern "C"
8295#endif
8296char opendir ();
8297int
8298main ()
8299{
8300return opendir ();
8301 ;
8302 return 0;
8303}
8304_ACEOF
8305for ac_lib in '' x; do
8306 if test -z "$ac_lib"; then
8307 ac_res="none required"
8308 else
8309 ac_res=-l$ac_lib
8310 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8311 fi
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (ac_try="$ac_link"
8314case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317esac
8318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_link") 2>conftest.er1
8320 ac_status=$?
8321 grep -v '^ *+' conftest.er1 >conftest.err
8322 rm -f conftest.er1
8323 cat conftest.err >&5
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); } &&
8326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8327 { (case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330esac
8331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332 (eval "$ac_try") 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest$ac_exeext'
8337 { (case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340esac
8341eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8342 (eval "$ac_try") 2>&5
8343 ac_status=$?
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); }; }; then
8346 ac_cv_search_opendir=$ac_res
8347else
8348 echo "$as_me: failed program was:" >&5
8349sed 's/^/| /' conftest.$ac_ext >&5
8350
8351
8352fi
8353
8354rm -f core conftest.err conftest.$ac_objext \
8355 conftest$ac_exeext
8356 if test "${ac_cv_search_opendir+set}" = set; then
8357 break
8358fi
8359done
8360if test "${ac_cv_search_opendir+set}" = set; then
8361 :
8362else
8363 ac_cv_search_opendir=no
8364fi
8365rm conftest.$ac_ext
8366LIBS=$ac_func_search_save_LIBS
8367fi
8368{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8369echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8370ac_res=$ac_cv_search_opendir
8371if test "$ac_res" != no; then
8372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8373
8374fi
8375
8376fi
John Criswell7a73b802003-06-30 21:59:07 +00008377
8378
8379for ac_header in dlfcn.h
8380do
8381as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008382if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8385if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008386 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008387fi
Reid Spencera773bd52006-08-04 18:18:08 +00008388ac_res=`eval echo '${'$as_ac_Header'}'`
8389 { echo "$as_me:$LINENO: result: $ac_res" >&5
8390echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008391else
Brian Gaeke0a621332004-09-08 20:38:05 +00008392 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008393{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8394echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008395cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008396/* confdefs.h. */
8397_ACEOF
8398cat confdefs.h >>conftest.$ac_ext
8399cat >>conftest.$ac_ext <<_ACEOF
8400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008401$ac_includes_default
8402#include <$ac_header>
8403_ACEOF
8404rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008405if { (ac_try="$ac_compile"
8406case "(($ac_try" in
8407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8408 *) ac_try_echo=$ac_try;;
8409esac
8410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8411 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8419 { (case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008425 ac_status=$?
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); }; } &&
8428 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008429 { (case "(($ac_try" in
8430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431 *) ac_try_echo=$ac_try;;
8432esac
8433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008438 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008439else
8440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008441sed 's/^/| /' conftest.$ac_ext >&5
8442
Reid Spencera773bd52006-08-04 18:18:08 +00008443 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008444fi
Reid Spencera773bd52006-08-04 18:18:08 +00008445
8446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8447{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8448echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008449
8450# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008451{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8452echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008453cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008454/* confdefs.h. */
8455_ACEOF
8456cat confdefs.h >>conftest.$ac_ext
8457cat >>conftest.$ac_ext <<_ACEOF
8458/* end confdefs.h. */
8459#include <$ac_header>
8460_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008461if { (ac_try="$ac_cpp conftest.$ac_ext"
8462case "(($ac_try" in
8463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } >/dev/null; then
8474 if test -s conftest.err; then
8475 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008477 else
8478 ac_cpp_err=
8479 fi
8480else
8481 ac_cpp_err=yes
8482fi
8483if test -z "$ac_cpp_err"; then
8484 ac_header_preproc=yes
8485else
8486 echo "$as_me: failed program was:" >&5
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489 ac_header_preproc=no
8490fi
Reid Spencera773bd52006-08-04 18:18:08 +00008491
Brian Gaeke0a621332004-09-08 20:38:05 +00008492rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008493{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8494echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008495
8496# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008497case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8498 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8500echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8502echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8503 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008504 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008505 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8507echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8509echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8511echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8513echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8515echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8517echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008518 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008519## ----------------------------------- ##
8520## Report this to llvmbugs@cs.uiuc.edu ##
8521## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008522_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008523 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008524 ;;
8525esac
Reid Spencera773bd52006-08-04 18:18:08 +00008526{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8528if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008529 echo $ECHO_N "(cached) $ECHO_C" >&6
8530else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008531 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008532fi
Reid Spencera773bd52006-08-04 18:18:08 +00008533ac_res=`eval echo '${'$as_ac_Header'}'`
8534 { echo "$as_me:$LINENO: result: $ac_res" >&5
8535echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008536
8537fi
John Criswell7a73b802003-06-30 21:59:07 +00008538if test `eval echo '${'$as_ac_Header'}'` = yes; then
8539 cat >>confdefs.h <<_ACEOF
8540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8541_ACEOF
8542
8543fi
8544
8545done
8546
Reid Spencera773bd52006-08-04 18:18:08 +00008547# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008548if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008549 enableval=$enable_ltdl_install;
8550fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008551
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008552
8553
8554
8555if test x"${enable_ltdl_install-no}" != xno; then
8556 INSTALL_LTDL_TRUE=
8557 INSTALL_LTDL_FALSE='#'
8558else
8559 INSTALL_LTDL_TRUE='#'
8560 INSTALL_LTDL_FALSE=
8561fi
8562
8563
8564
8565if test x"${enable_ltdl_convenience-no}" != xno; then
8566 CONVENIENCE_LTDL_TRUE=
8567 CONVENIENCE_LTDL_FALSE='#'
8568else
8569 CONVENIENCE_LTDL_TRUE='#'
8570 CONVENIENCE_LTDL_FALSE=
8571fi
8572
8573
Reid Spencera773bd52006-08-04 18:18:08 +00008574{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8575echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008576library_names_spec=
8577libname_spec='lib$name'
8578soname_spec=
8579shrext_cmds=".so"
8580postinstall_cmds=
8581postuninstall_cmds=
8582finish_cmds=
8583finish_eval=
8584shlibpath_var=
8585shlibpath_overrides_runpath=unknown
8586version_type=none
8587dynamic_linker="$host_os ld.so"
8588sys_lib_dlsearch_path_spec="/lib /usr/lib"
8589if test "$GCC" = yes; then
8590 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8591 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8592 # if the path contains ";" then we assume it to be the separator
8593 # otherwise default to the standard path separator (i.e. ":") - it is
8594 # assumed that no part of a normal pathname contains ";" but that should
8595 # okay in the real world where ";" in dirpaths is itself problematic.
8596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8597 else
8598 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8599 fi
8600else
8601 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8602fi
8603need_lib_prefix=unknown
8604hardcode_into_libs=no
8605
8606# when you set need_version to no, make sure it does not cause -set_version
8607# flags to be left without arguments
8608need_version=unknown
8609
8610case $host_os in
8611aix3*)
8612 version_type=linux
8613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8614 shlibpath_var=LIBPATH
8615
8616 # AIX 3 has no versioning support, so we append a major version to the name.
8617 soname_spec='${libname}${release}${shared_ext}$major'
8618 ;;
8619
8620aix4* | aix5*)
8621 version_type=linux
8622 need_lib_prefix=no
8623 need_version=no
8624 hardcode_into_libs=yes
8625 if test "$host_cpu" = ia64; then
8626 # AIX 5 supports IA64
8627 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8628 shlibpath_var=LD_LIBRARY_PATH
8629 else
8630 # With GCC up to 2.95.x, collect2 would create an import file
8631 # for dependence libraries. The import file would start with
8632 # the line `#! .'. This would cause the generated library to
8633 # depend on `.', always an invalid library. This was fixed in
8634 # development snapshots of GCC prior to 3.0.
8635 case $host_os in
8636 aix4 | aix4.[01] | aix4.[01].*)
8637 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8638 echo ' yes '
8639 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8640 :
8641 else
8642 can_build_shared=no
8643 fi
8644 ;;
8645 esac
8646 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8647 # soname into executable. Probably we can add versioning support to
8648 # collect2, so additional links can be useful in future.
8649 if test "$aix_use_runtimelinking" = yes; then
8650 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8651 # instead of lib<name>.a to let people know that these are not
8652 # typical AIX shared libraries.
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654 else
8655 # We preserve .a as extension for shared libraries through AIX4.2
8656 # and later when we are not doing run time linking.
8657 library_names_spec='${libname}${release}.a $libname.a'
8658 soname_spec='${libname}${release}${shared_ext}$major'
8659 fi
8660 shlibpath_var=LIBPATH
8661 fi
8662 ;;
8663
8664amigaos*)
8665 library_names_spec='$libname.ixlibrary $libname.a'
8666 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8667 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'
8668 ;;
8669
8670beos*)
8671 library_names_spec='${libname}${shared_ext}'
8672 dynamic_linker="$host_os ld.so"
8673 shlibpath_var=LIBRARY_PATH
8674 ;;
8675
8676bsdi[45]*)
8677 version_type=linux
8678 need_version=no
8679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8680 soname_spec='${libname}${release}${shared_ext}$major'
8681 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8682 shlibpath_var=LD_LIBRARY_PATH
8683 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8684 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8685 # the default ld.so.conf also contains /usr/contrib/lib and
8686 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8687 # libtool to hard-code these into programs
8688 ;;
8689
8690cygwin* | mingw* | pw32*)
8691 version_type=windows
8692 shrext_cmds=".dll"
8693 need_version=no
8694 need_lib_prefix=no
8695
8696 case $GCC,$host_os in
8697 yes,cygwin* | yes,mingw* | yes,pw32*)
8698 library_names_spec='$libname.dll.a'
8699 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8700 postinstall_cmds='base_file=`basename \${file}`~
8701 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8702 dldir=$destdir/`dirname \$dlpath`~
8703 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008704 $install_prog $dir/$dlname \$dldir/$dlname~
8705 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8707 dlpath=$dir/\$dldll~
8708 $rm \$dlpath'
8709 shlibpath_overrides_runpath=yes
8710
8711 case $host_os in
8712 cygwin*)
8713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8716 ;;
8717 mingw*)
8718 # MinGW DLLs use traditional 'lib' prefix
8719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8721 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8722 # It is most probably a Windows format PATH printed by
8723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8724 # path with ; separators, and with drive letters. We can handle the
8725 # drive letters (cygwin fileutils understands them), so leave them,
8726 # especially as we might pass files found there to a mingw objdump,
8727 # which wouldn't understand a cygwinified path. Ahh.
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8729 else
8730 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8731 fi
8732 ;;
8733 pw32*)
8734 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008735 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 +00008736 ;;
8737 esac
8738 ;;
8739
8740 *)
8741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8742 ;;
8743 esac
8744 dynamic_linker='Win32 ld.exe'
8745 # FIXME: first we should search . and the directory the executable is in
8746 shlibpath_var=PATH
8747 ;;
8748
8749darwin* | rhapsody*)
8750 dynamic_linker="$host_os dyld"
8751 version_type=darwin
8752 need_lib_prefix=no
8753 need_version=no
8754 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8755 soname_spec='${libname}${release}${major}$shared_ext'
8756 shlibpath_overrides_runpath=yes
8757 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008759 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8760 if test "$GCC" = yes; then
8761 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"`
8762 else
8763 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8764 fi
8765 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8766 ;;
8767
8768dgux*)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
8772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8773 soname_spec='${libname}${release}${shared_ext}$major'
8774 shlibpath_var=LD_LIBRARY_PATH
8775 ;;
8776
8777freebsd1*)
8778 dynamic_linker=no
8779 ;;
8780
8781kfreebsd*-gnu)
8782 version_type=linux
8783 need_lib_prefix=no
8784 need_version=no
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 shlibpath_var=LD_LIBRARY_PATH
8788 shlibpath_overrides_runpath=no
8789 hardcode_into_libs=yes
8790 dynamic_linker='GNU ld.so'
8791 ;;
8792
Reid Spencera773bd52006-08-04 18:18:08 +00008793freebsd* | dragonfly*)
8794 # DragonFly does not have aout. When/if they implement a new
8795 # versioning mechanism, adjust this.
8796 if test -x /usr/bin/objformat; then
8797 objformat=`/usr/bin/objformat`
8798 else
8799 case $host_os in
8800 freebsd[123]*) objformat=aout ;;
8801 *) objformat=elf ;;
8802 esac
8803 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 version_type=freebsd-$objformat
8805 case $version_type in
8806 freebsd-elf*)
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8808 need_version=no
8809 need_lib_prefix=no
8810 ;;
8811 freebsd-*)
8812 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8813 need_version=yes
8814 ;;
8815 esac
8816 shlibpath_var=LD_LIBRARY_PATH
8817 case $host_os in
8818 freebsd2*)
8819 shlibpath_overrides_runpath=yes
8820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008821 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008822 shlibpath_overrides_runpath=yes
8823 hardcode_into_libs=yes
8824 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008825 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8826 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008827 shlibpath_overrides_runpath=no
8828 hardcode_into_libs=yes
8829 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008830 freebsd*) # from 4.6 on
8831 shlibpath_overrides_runpath=yes
8832 hardcode_into_libs=yes
8833 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008834 esac
8835 ;;
8836
8837gnu*)
8838 version_type=linux
8839 need_lib_prefix=no
8840 need_version=no
8841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8842 soname_spec='${libname}${release}${shared_ext}$major'
8843 shlibpath_var=LD_LIBRARY_PATH
8844 hardcode_into_libs=yes
8845 ;;
8846
8847hpux9* | hpux10* | hpux11*)
8848 # Give a soname corresponding to the major version so that dld.sl refuses to
8849 # link against other versions.
8850 version_type=sunos
8851 need_lib_prefix=no
8852 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008853 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008854 ia64*)
8855 shrext_cmds='.so'
8856 hardcode_into_libs=yes
8857 dynamic_linker="$host_os dld.so"
8858 shlibpath_var=LD_LIBRARY_PATH
8859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8861 soname_spec='${libname}${release}${shared_ext}$major'
8862 if test "X$HPUX_IA64_MODE" = X32; then
8863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8864 else
8865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8866 fi
8867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8868 ;;
8869 hppa*64*)
8870 shrext_cmds='.sl'
8871 hardcode_into_libs=yes
8872 dynamic_linker="$host_os dld.sl"
8873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8876 soname_spec='${libname}${release}${shared_ext}$major'
8877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8879 ;;
8880 *)
8881 shrext_cmds='.sl'
8882 dynamic_linker="$host_os dld.sl"
8883 shlibpath_var=SHLIB_PATH
8884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8886 soname_spec='${libname}${release}${shared_ext}$major'
8887 ;;
8888 esac
8889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8890 postinstall_cmds='chmod 555 $lib'
8891 ;;
8892
Reid Spencera773bd52006-08-04 18:18:08 +00008893interix3*)
8894 version_type=linux
8895 need_lib_prefix=no
8896 need_version=no
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8900 shlibpath_var=LD_LIBRARY_PATH
8901 shlibpath_overrides_runpath=no
8902 hardcode_into_libs=yes
8903 ;;
8904
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008905irix5* | irix6* | nonstopux*)
8906 case $host_os in
8907 nonstopux*) version_type=nonstopux ;;
8908 *)
8909 if test "$lt_cv_prog_gnu_ld" = yes; then
8910 version_type=linux
8911 else
8912 version_type=irix
8913 fi ;;
8914 esac
8915 need_lib_prefix=no
8916 need_version=no
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8919 case $host_os in
8920 irix5* | nonstopux*)
8921 libsuff= shlibsuff=
8922 ;;
8923 *)
8924 case $LD in # libtool.m4 will add one of these switches to LD
8925 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8926 libsuff= shlibsuff= libmagic=32-bit;;
8927 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8928 libsuff=32 shlibsuff=N32 libmagic=N32;;
8929 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8930 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8931 *) libsuff= shlibsuff= libmagic=never-match;;
8932 esac
8933 ;;
8934 esac
8935 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8936 shlibpath_overrides_runpath=no
8937 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8938 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8939 hardcode_into_libs=yes
8940 ;;
8941
8942# No shared lib support for Linux oldld, aout, or coff.
8943linux*oldld* | linux*aout* | linux*coff*)
8944 dynamic_linker=no
8945 ;;
8946
8947# This must be Linux ELF.
8948linux*)
8949 version_type=linux
8950 need_lib_prefix=no
8951 need_version=no
8952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953 soname_spec='${libname}${release}${shared_ext}$major'
8954 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=no
8957 # This implies no fast_install, which is unacceptable.
8958 # Some rework will be needed to allow for fast_install
8959 # before this can be enabled.
8960 hardcode_into_libs=yes
8961
8962 # Append ld.so.conf contents to the search path
8963 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008964 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 +00008965 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8966 fi
8967
8968 # We used to test for /lib/ld.so.1 and disable shared libraries on
8969 # powerpc, because MkLinux only supported shared libraries with the
8970 # GNU dynamic linker. Since this was broken with cross compilers,
8971 # most powerpc-linux boxes support dynamic linking these days and
8972 # people can always --disable-shared, the test was removed, and we
8973 # assume the GNU/Linux dynamic linker is in use.
8974 dynamic_linker='GNU/Linux ld.so'
8975 ;;
8976
8977knetbsd*-gnu)
8978 version_type=linux
8979 need_lib_prefix=no
8980 need_version=no
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 shlibpath_overrides_runpath=no
8985 hardcode_into_libs=yes
8986 dynamic_linker='GNU ld.so'
8987 ;;
8988
8989netbsd*)
8990 version_type=sunos
8991 need_lib_prefix=no
8992 need_version=no
8993 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8995 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8996 dynamic_linker='NetBSD (a.out) ld.so'
8997 else
8998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8999 soname_spec='${libname}${release}${shared_ext}$major'
9000 dynamic_linker='NetBSD ld.elf_so'
9001 fi
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9005 ;;
9006
9007newsos6)
9008 version_type=linux
9009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9010 shlibpath_var=LD_LIBRARY_PATH
9011 shlibpath_overrides_runpath=yes
9012 ;;
9013
9014nto-qnx*)
9015 version_type=linux
9016 need_lib_prefix=no
9017 need_version=no
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 shlibpath_var=LD_LIBRARY_PATH
9021 shlibpath_overrides_runpath=yes
9022 ;;
9023
9024openbsd*)
9025 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009026 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009027 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009028 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9029 case $host_os in
9030 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9031 *) need_version=no ;;
9032 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9037 case $host_os in
9038 openbsd2.[89] | openbsd2.[89].*)
9039 shlibpath_overrides_runpath=no
9040 ;;
9041 *)
9042 shlibpath_overrides_runpath=yes
9043 ;;
9044 esac
9045 else
9046 shlibpath_overrides_runpath=yes
9047 fi
9048 ;;
9049
9050os2*)
9051 libname_spec='$name'
9052 shrext_cmds=".dll"
9053 need_lib_prefix=no
9054 library_names_spec='$libname${shared_ext} $libname.a'
9055 dynamic_linker='OS/2 ld.exe'
9056 shlibpath_var=LIBPATH
9057 ;;
9058
9059osf3* | osf4* | osf5*)
9060 version_type=osf
9061 need_lib_prefix=no
9062 need_version=no
9063 soname_spec='${libname}${release}${shared_ext}$major'
9064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9065 shlibpath_var=LD_LIBRARY_PATH
9066 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9067 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9068 ;;
9069
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009070solaris*)
9071 version_type=linux
9072 need_lib_prefix=no
9073 need_version=no
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9078 hardcode_into_libs=yes
9079 # ldd complains unless libraries are executable
9080 postinstall_cmds='chmod +x $lib'
9081 ;;
9082
9083sunos4*)
9084 version_type=sunos
9085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9086 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9087 shlibpath_var=LD_LIBRARY_PATH
9088 shlibpath_overrides_runpath=yes
9089 if test "$with_gnu_ld" = yes; then
9090 need_lib_prefix=no
9091 fi
9092 need_version=yes
9093 ;;
9094
Reid Spencera773bd52006-08-04 18:18:08 +00009095sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009096 version_type=linux
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 soname_spec='${libname}${release}${shared_ext}$major'
9099 shlibpath_var=LD_LIBRARY_PATH
9100 case $host_vendor in
9101 sni)
9102 shlibpath_overrides_runpath=no
9103 need_lib_prefix=no
9104 export_dynamic_flag_spec='${wl}-Blargedynsym'
9105 runpath_var=LD_RUN_PATH
9106 ;;
9107 siemens)
9108 need_lib_prefix=no
9109 ;;
9110 motorola)
9111 need_lib_prefix=no
9112 need_version=no
9113 shlibpath_overrides_runpath=no
9114 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9115 ;;
9116 esac
9117 ;;
9118
9119sysv4*MP*)
9120 if test -d /usr/nec ;then
9121 version_type=linux
9122 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9123 soname_spec='$libname${shared_ext}.$major'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 fi
9126 ;;
9127
Reid Spencera773bd52006-08-04 18:18:08 +00009128sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9129 version_type=freebsd-elf
9130 need_lib_prefix=no
9131 need_version=no
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 hardcode_into_libs=yes
9136 if test "$with_gnu_ld" = yes; then
9137 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9138 shlibpath_overrides_runpath=no
9139 else
9140 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9141 shlibpath_overrides_runpath=yes
9142 case $host_os in
9143 sco3.2v5*)
9144 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9145 ;;
9146 esac
9147 fi
9148 sys_lib_dlsearch_path_spec='/usr/lib'
9149 ;;
9150
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009151uts4*)
9152 version_type=linux
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 ;;
9157
9158*)
9159 dynamic_linker=no
9160 ;;
9161esac
Reid Spencera773bd52006-08-04 18:18:08 +00009162{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9163echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009164test "$dynamic_linker" = no && can_build_shared=no
9165
Reid Spencera773bd52006-08-04 18:18:08 +00009166variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9167if test "$GCC" = yes; then
9168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9169fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009170
Reid Spencera773bd52006-08-04 18:18:08 +00009171
9172{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9173echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009174if test "${libltdl_cv_shlibext+set}" = set; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9176else
9177
9178module=yes
9179eval libltdl_cv_shlibext=$shrext_cmds
9180
9181fi
Reid Spencera773bd52006-08-04 18:18:08 +00009182{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9183echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009184if test -n "$libltdl_cv_shlibext"; then
9185
9186cat >>confdefs.h <<_ACEOF
9187#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9188_ACEOF
9189
9190fi
9191
9192
Reid Spencera773bd52006-08-04 18:18:08 +00009193{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9194echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009195if test "${libltdl_cv_shlibpath_var+set}" = set; then
9196 echo $ECHO_N "(cached) $ECHO_C" >&6
9197else
9198 libltdl_cv_shlibpath_var="$shlibpath_var"
9199fi
Reid Spencera773bd52006-08-04 18:18:08 +00009200{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9201echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009202if test -n "$libltdl_cv_shlibpath_var"; then
9203
9204cat >>confdefs.h <<_ACEOF
9205#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9206_ACEOF
9207
9208fi
9209
9210
Reid Spencera773bd52006-08-04 18:18:08 +00009211{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9212echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009213if test "${libltdl_cv_sys_search_path+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9215else
9216 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9217fi
Reid Spencera773bd52006-08-04 18:18:08 +00009218{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9219echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009220if test -n "$libltdl_cv_sys_search_path"; then
9221 sys_search_path=
9222 for dir in $libltdl_cv_sys_search_path; do
9223 if test -z "$sys_search_path"; then
9224 sys_search_path="$dir"
9225 else
9226 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9227 fi
9228 done
9229
9230cat >>confdefs.h <<_ACEOF
9231#define LTDL_SYSSEARCHPATH "$sys_search_path"
9232_ACEOF
9233
9234fi
9235
Reid Spencera773bd52006-08-04 18:18:08 +00009236{ echo "$as_me:$LINENO: checking for objdir" >&5
9237echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009238if test "${libltdl_cv_objdir+set}" = set; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9240else
9241 libltdl_cv_objdir="$objdir"
9242 if test -n "$objdir"; then
9243 :
9244 else
9245 rm -f .libs 2>/dev/null
9246 mkdir .libs 2>/dev/null
9247 if test -d .libs; then
9248 libltdl_cv_objdir=.libs
9249 else
9250 # MS-DOS does not allow filenames that begin with a dot.
9251 libltdl_cv_objdir=_libs
9252 fi
9253 rmdir .libs 2>/dev/null
9254 fi
9255
9256fi
Reid Spencera773bd52006-08-04 18:18:08 +00009257{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9258echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009259
9260cat >>confdefs.h <<_ACEOF
9261#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9262_ACEOF
9263
9264
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009265
9266
9267
9268
9269# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009270{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9271echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009272if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9274else
9275
9276# These are sane defaults that work on at least a few old systems.
9277# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9278
9279# Character class describing NM global symbol codes.
9280symcode='[BCDEGRST]'
9281
9282# Regexp to match symbols that can be accessed directly from C.
9283sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9284
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009285# Transform an extracted symbol line into a proper C declaration
9286lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9287
9288# Transform an extracted symbol line into symbol name and symbol address
9289lt_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'"
9290
9291# Define system-specific variables.
9292case $host_os in
9293aix*)
9294 symcode='[BCDT]'
9295 ;;
9296cygwin* | mingw* | pw32*)
9297 symcode='[ABCDGISTW]'
9298 ;;
9299hpux*) # Its linker distinguishes data from code symbols
9300 if test "$host_cpu" = ia64; then
9301 symcode='[ABCDEGRST]'
9302 fi
9303 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9304 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'"
9305 ;;
9306linux*)
9307 if test "$host_cpu" = ia64; then
9308 symcode='[ABCDGIRSTW]'
9309 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9310 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'"
9311 fi
9312 ;;
9313irix* | nonstopux*)
9314 symcode='[BCDEGRST]'
9315 ;;
9316osf*)
9317 symcode='[BCDEGQRST]'
9318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009319solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009320 symcode='[BDRT]'
9321 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009322sco3.2v5*)
9323 symcode='[DT]'
9324 ;;
9325sysv4.2uw2*)
9326 symcode='[DT]'
9327 ;;
9328sysv5* | sco5v6* | unixware* | OpenUNIX*)
9329 symcode='[ABDT]'
9330 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009331sysv4)
9332 symcode='[DFNSTU]'
9333 ;;
9334esac
9335
9336# Handle CRLF in mingw tool chain
9337opt_cr=
9338case $build_os in
9339mingw*)
9340 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9341 ;;
9342esac
9343
9344# If we're using GNU nm, then use its standard symbol codes.
9345case `$NM -V 2>&1` in
9346*GNU* | *'with BFD'*)
9347 symcode='[ABCDGIRSTW]' ;;
9348esac
9349
9350# Try without a prefix undercore, then with it.
9351for ac_symprfx in "" "_"; do
9352
Reid Spencera773bd52006-08-04 18:18:08 +00009353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9354 symxfrm="\\1 $ac_symprfx\\2 \\2"
9355
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009356 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009357 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 +00009358
9359 # Check to see that the pipe works correctly.
9360 pipe_works=no
9361
9362 rm -f conftest*
9363 cat > conftest.$ac_ext <<EOF
9364#ifdef __cplusplus
9365extern "C" {
9366#endif
9367char nm_test_var;
9368void nm_test_func(){}
9369#ifdef __cplusplus
9370}
9371#endif
9372int main(){nm_test_var='a';nm_test_func();return(0);}
9373EOF
9374
9375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9376 (eval $ac_compile) 2>&5
9377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); }; then
9380 # Now try to grab the symbols.
9381 nlist=conftest.nm
9382 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9383 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9384 ac_status=$?
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && test -s "$nlist"; then
9387 # Try sorting and uniquifying the output.
9388 if sort "$nlist" | uniq > "$nlist"T; then
9389 mv -f "$nlist"T "$nlist"
9390 else
9391 rm -f "$nlist"T
9392 fi
9393
9394 # Make sure that we snagged all the symbols we need.
9395 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9396 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9397 cat <<EOF > conftest.$ac_ext
9398#ifdef __cplusplus
9399extern "C" {
9400#endif
9401
9402EOF
9403 # Now generate the symbol file.
9404 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9405
9406 cat <<EOF >> conftest.$ac_ext
9407#if defined (__STDC__) && __STDC__
9408# define lt_ptr_t void *
9409#else
9410# define lt_ptr_t char *
9411# define const
9412#endif
9413
9414/* The mapping between symbol names and symbols. */
9415const struct {
9416 const char *name;
9417 lt_ptr_t address;
9418}
9419lt_preloaded_symbols[] =
9420{
9421EOF
9422 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9423 cat <<\EOF >> conftest.$ac_ext
9424 {0, (lt_ptr_t) 0}
9425};
9426
9427#ifdef __cplusplus
9428}
9429#endif
9430EOF
9431 # Now try linking the two files.
9432 mv conftest.$ac_objext conftstm.$ac_objext
9433 lt_save_LIBS="$LIBS"
9434 lt_save_CFLAGS="$CFLAGS"
9435 LIBS="conftstm.$ac_objext"
9436 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>&5
9439 ac_status=$?
9440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9442 pipe_works=yes
9443 fi
9444 LIBS="$lt_save_LIBS"
9445 CFLAGS="$lt_save_CFLAGS"
9446 else
9447 echo "cannot find nm_test_func in $nlist" >&5
9448 fi
9449 else
9450 echo "cannot find nm_test_var in $nlist" >&5
9451 fi
9452 else
9453 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9454 fi
9455 else
9456 echo "$progname: failed program was:" >&5
9457 cat conftest.$ac_ext >&5
9458 fi
9459 rm -f conftest* conftst*
9460
9461 # Do not use the global_symbol_pipe unless it works.
9462 if test "$pipe_works" = yes; then
9463 break
9464 else
9465 lt_cv_sys_global_symbol_pipe=
9466 fi
9467done
9468
9469fi
9470
9471if test -z "$lt_cv_sys_global_symbol_pipe"; then
9472 lt_cv_sys_global_symbol_to_cdecl=
9473fi
9474if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009475 { echo "$as_me:$LINENO: result: failed" >&5
9476echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009477else
Reid Spencera773bd52006-08-04 18:18:08 +00009478 { echo "$as_me:$LINENO: result: ok" >&5
9479echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009480fi
9481
9482
Reid Spencera773bd52006-08-04 18:18:08 +00009483{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9484echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009485if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9489 libltdl_cv_preloaded_symbols=yes
9490 else
9491 libltdl_cv_preloaded_symbols=no
9492 fi
9493
9494fi
Reid Spencera773bd52006-08-04 18:18:08 +00009495{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9496echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009497if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9498
9499cat >>confdefs.h <<\_ACEOF
9500#define HAVE_PRELOADED_SYMBOLS 1
9501_ACEOF
9502
9503fi
9504
9505LIBADD_DL=
9506
9507ac_ext=c
9508ac_cpp='$CPP $CPPFLAGS'
9509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9511ac_compiler_gnu=$ac_cv_c_compiler_gnu
9512
9513
Reid Spencera773bd52006-08-04 18:18:08 +00009514{ echo "$as_me:$LINENO: checking for shl_load" >&5
9515echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009516if test "${ac_cv_func_shl_load+set}" = set; then
9517 echo $ECHO_N "(cached) $ECHO_C" >&6
9518else
9519 cat >conftest.$ac_ext <<_ACEOF
9520/* confdefs.h. */
9521_ACEOF
9522cat confdefs.h >>conftest.$ac_ext
9523cat >>conftest.$ac_ext <<_ACEOF
9524/* end confdefs.h. */
9525/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9527#define shl_load innocuous_shl_load
9528
9529/* System header to define __stub macros and hopefully few prototypes,
9530 which can conflict with char shl_load (); below.
9531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9532 <limits.h> exists even on freestanding compilers. */
9533
9534#ifdef __STDC__
9535# include <limits.h>
9536#else
9537# include <assert.h>
9538#endif
9539
9540#undef shl_load
9541
Reid Spencera773bd52006-08-04 18:18:08 +00009542/* Override any GCC internal prototype to avoid an error.
9543 Use char because int might match the return type of a GCC
9544 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545#ifdef __cplusplus
9546extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009547#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009548char shl_load ();
9549/* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009552#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009553choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009554#endif
9555
9556int
9557main ()
9558{
Reid Spencera773bd52006-08-04 18:18:08 +00009559return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009560 ;
9561 return 0;
9562}
9563_ACEOF
9564rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009565if { (ac_try="$ac_link"
9566case "(($ac_try" in
9567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9568 *) ac_try_echo=$ac_try;;
9569esac
9570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9571 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009572 ac_status=$?
9573 grep -v '^ *+' conftest.er1 >conftest.err
9574 rm -f conftest.er1
9575 cat conftest.err >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9579 { (case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582esac
9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; } &&
9588 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009589 { (case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592esac
9593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009595 ac_status=$?
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); }; }; then
9598 ac_cv_func_shl_load=yes
9599else
9600 echo "$as_me: failed program was:" >&5
9601sed 's/^/| /' conftest.$ac_ext >&5
9602
Reid Spencera773bd52006-08-04 18:18:08 +00009603 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009604fi
Reid Spencera773bd52006-08-04 18:18:08 +00009605
9606rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009607 conftest$ac_exeext conftest.$ac_ext
9608fi
Reid Spencera773bd52006-08-04 18:18:08 +00009609{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9610echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009611if test $ac_cv_func_shl_load = yes; then
9612
9613cat >>confdefs.h <<\_ACEOF
9614#define HAVE_SHL_LOAD 1
9615_ACEOF
9616
9617else
Reid Spencera773bd52006-08-04 18:18:08 +00009618 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9619echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009620if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9621 echo $ECHO_N "(cached) $ECHO_C" >&6
9622else
9623 ac_check_lib_save_LIBS=$LIBS
9624LIBS="-ldld $LIBS"
9625cat >conftest.$ac_ext <<_ACEOF
9626/* confdefs.h. */
9627_ACEOF
9628cat confdefs.h >>conftest.$ac_ext
9629cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */
9631
Reid Spencera773bd52006-08-04 18:18:08 +00009632/* Override any GCC internal prototype to avoid an error.
9633 Use char because int might match the return type of a GCC
9634 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009635#ifdef __cplusplus
9636extern "C"
9637#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638char shl_load ();
9639int
9640main ()
9641{
Reid Spencera773bd52006-08-04 18:18:08 +00009642return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009643 ;
9644 return 0;
9645}
9646_ACEOF
9647rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009648if { (ac_try="$ac_link"
9649case "(($ac_try" in
9650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9652esac
9653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009655 ac_status=$?
9656 grep -v '^ *+' conftest.er1 >conftest.err
9657 rm -f conftest.er1
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9665esac
9666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009668 ac_status=$?
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; } &&
9671 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009672 { (case "(($ac_try" in
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9675esac
9676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009678 ac_status=$?
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); }; }; then
9681 ac_cv_lib_dld_shl_load=yes
9682else
9683 echo "$as_me: failed program was:" >&5
9684sed 's/^/| /' conftest.$ac_ext >&5
9685
Reid Spencera773bd52006-08-04 18:18:08 +00009686 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009687fi
Reid Spencera773bd52006-08-04 18:18:08 +00009688
9689rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690 conftest$ac_exeext conftest.$ac_ext
9691LIBS=$ac_check_lib_save_LIBS
9692fi
Reid Spencera773bd52006-08-04 18:18:08 +00009693{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9694echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009695if test $ac_cv_lib_dld_shl_load = yes; then
9696
9697cat >>confdefs.h <<\_ACEOF
9698#define HAVE_SHL_LOAD 1
9699_ACEOF
9700
9701 LIBADD_DL="$LIBADD_DL -ldld"
9702else
Reid Spencera773bd52006-08-04 18:18:08 +00009703 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9704echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009705if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707else
9708 ac_check_lib_save_LIBS=$LIBS
9709LIBS="-ldl $LIBS"
9710cat >conftest.$ac_ext <<_ACEOF
9711/* confdefs.h. */
9712_ACEOF
9713cat confdefs.h >>conftest.$ac_ext
9714cat >>conftest.$ac_ext <<_ACEOF
9715/* end confdefs.h. */
9716
Reid Spencera773bd52006-08-04 18:18:08 +00009717/* Override any GCC internal prototype to avoid an error.
9718 Use char because int might match the return type of a GCC
9719 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009720#ifdef __cplusplus
9721extern "C"
9722#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723char dlopen ();
9724int
9725main ()
9726{
Reid Spencera773bd52006-08-04 18:18:08 +00009727return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009728 ;
9729 return 0;
9730}
9731_ACEOF
9732rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009733if { (ac_try="$ac_link"
9734case "(($ac_try" in
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9737esac
9738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009740 ac_status=$?
9741 grep -v '^ *+' conftest.er1 >conftest.err
9742 rm -f conftest.er1
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9750esac
9751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009753 ac_status=$?
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760esac
9761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9766 ac_cv_lib_dl_dlopen=yes
9767else
9768 echo "$as_me: failed program was:" >&5
9769sed 's/^/| /' conftest.$ac_ext >&5
9770
Reid Spencera773bd52006-08-04 18:18:08 +00009771 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009772fi
Reid Spencera773bd52006-08-04 18:18:08 +00009773
9774rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009775 conftest$ac_exeext conftest.$ac_ext
9776LIBS=$ac_check_lib_save_LIBS
9777fi
Reid Spencera773bd52006-08-04 18:18:08 +00009778{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9779echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009780if test $ac_cv_lib_dl_dlopen = yes; then
9781
9782cat >>confdefs.h <<\_ACEOF
9783#define HAVE_LIBDL 1
9784_ACEOF
9785
9786 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9787else
9788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
9794#if HAVE_DLFCN_H
9795# include <dlfcn.h>
9796#endif
9797
9798int
9799main ()
9800{
9801dlopen(0, 0);
9802 ;
9803 return 0;
9804}
9805_ACEOF
9806rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009807if { (ac_try="$ac_link"
9808case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9811esac
9812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009814 ac_status=$?
9815 grep -v '^ *+' conftest.er1 >conftest.err
9816 rm -f conftest.er1
9817 cat conftest.err >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9821 { (case "(($ac_try" in
9822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823 *) ac_try_echo=$ac_try;;
9824esac
9825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; } &&
9830 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009831 { (case "(($ac_try" in
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9834esac
9835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840
9841cat >>confdefs.h <<\_ACEOF
9842#define HAVE_LIBDL 1
9843_ACEOF
9844 libltdl_cv_func_dlopen="yes"
9845else
9846 echo "$as_me: failed program was:" >&5
9847sed 's/^/| /' conftest.$ac_ext >&5
9848
Reid Spencera773bd52006-08-04 18:18:08 +00009849 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9850echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009851if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9852 echo $ECHO_N "(cached) $ECHO_C" >&6
9853else
9854 ac_check_lib_save_LIBS=$LIBS
9855LIBS="-lsvld $LIBS"
9856cat >conftest.$ac_ext <<_ACEOF
9857/* confdefs.h. */
9858_ACEOF
9859cat confdefs.h >>conftest.$ac_ext
9860cat >>conftest.$ac_ext <<_ACEOF
9861/* end confdefs.h. */
9862
Reid Spencera773bd52006-08-04 18:18:08 +00009863/* Override any GCC internal prototype to avoid an error.
9864 Use char because int might match the return type of a GCC
9865 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009866#ifdef __cplusplus
9867extern "C"
9868#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869char dlopen ();
9870int
9871main ()
9872{
Reid Spencera773bd52006-08-04 18:18:08 +00009873return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009874 ;
9875 return 0;
9876}
9877_ACEOF
9878rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009879if { (ac_try="$ac_link"
9880case "(($ac_try" in
9881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882 *) ac_try_echo=$ac_try;;
9883esac
9884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009886 ac_status=$?
9887 grep -v '^ *+' conftest.er1 >conftest.err
9888 rm -f conftest.er1
9889 cat conftest.err >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896esac
9897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009899 ac_status=$?
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; } &&
9902 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_lib_svld_dlopen=yes
9913else
9914 echo "$as_me: failed program was:" >&5
9915sed 's/^/| /' conftest.$ac_ext >&5
9916
Reid Spencera773bd52006-08-04 18:18:08 +00009917 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009918fi
Reid Spencera773bd52006-08-04 18:18:08 +00009919
9920rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921 conftest$ac_exeext conftest.$ac_ext
9922LIBS=$ac_check_lib_save_LIBS
9923fi
Reid Spencera773bd52006-08-04 18:18:08 +00009924{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9925echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009926if test $ac_cv_lib_svld_dlopen = yes; then
9927
9928cat >>confdefs.h <<\_ACEOF
9929#define HAVE_LIBDL 1
9930_ACEOF
9931
9932 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9933else
Reid Spencera773bd52006-08-04 18:18:08 +00009934 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9935echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009936if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9937 echo $ECHO_N "(cached) $ECHO_C" >&6
9938else
9939 ac_check_lib_save_LIBS=$LIBS
9940LIBS="-ldld $LIBS"
9941cat >conftest.$ac_ext <<_ACEOF
9942/* confdefs.h. */
9943_ACEOF
9944cat confdefs.h >>conftest.$ac_ext
9945cat >>conftest.$ac_ext <<_ACEOF
9946/* end confdefs.h. */
9947
Reid Spencera773bd52006-08-04 18:18:08 +00009948/* Override any GCC internal prototype to avoid an error.
9949 Use char because int might match the return type of a GCC
9950 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009951#ifdef __cplusplus
9952extern "C"
9953#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954char dld_link ();
9955int
9956main ()
9957{
Reid Spencera773bd52006-08-04 18:18:08 +00009958return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009959 ;
9960 return 0;
9961}
9962_ACEOF
9963rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009964if { (ac_try="$ac_link"
9965case "(($ac_try" in
9966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967 *) ac_try_echo=$ac_try;;
9968esac
9969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9970 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9978 { (case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981esac
9982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009984 ac_status=$?
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; } &&
9987 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991esac
9992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_lib_dld_dld_link=yes
9998else
9999 echo "$as_me: failed program was:" >&5
10000sed 's/^/| /' conftest.$ac_ext >&5
10001
Reid Spencera773bd52006-08-04 18:18:08 +000010002 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010003fi
Reid Spencera773bd52006-08-04 18:18:08 +000010004
10005rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010006 conftest$ac_exeext conftest.$ac_ext
10007LIBS=$ac_check_lib_save_LIBS
10008fi
Reid Spencera773bd52006-08-04 18:18:08 +000010009{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10010echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010011if test $ac_cv_lib_dld_dld_link = yes; then
10012
10013cat >>confdefs.h <<\_ACEOF
10014#define HAVE_DLD 1
10015_ACEOF
10016
10017 LIBADD_DL="$LIBADD_DL -ldld"
10018else
Reid Spencera773bd52006-08-04 18:18:08 +000010019 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10020echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010021if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023else
10024 cat >conftest.$ac_ext <<_ACEOF
10025/* confdefs.h. */
10026_ACEOF
10027cat confdefs.h >>conftest.$ac_ext
10028cat >>conftest.$ac_ext <<_ACEOF
10029/* end confdefs.h. */
10030/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10032#define _dyld_func_lookup innocuous__dyld_func_lookup
10033
10034/* System header to define __stub macros and hopefully few prototypes,
10035 which can conflict with char _dyld_func_lookup (); below.
10036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10037 <limits.h> exists even on freestanding compilers. */
10038
10039#ifdef __STDC__
10040# include <limits.h>
10041#else
10042# include <assert.h>
10043#endif
10044
10045#undef _dyld_func_lookup
10046
Reid Spencera773bd52006-08-04 18:18:08 +000010047/* Override any GCC internal prototype to avoid an error.
10048 Use char because int might match the return type of a GCC
10049 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050#ifdef __cplusplus
10051extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010052#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010053char _dyld_func_lookup ();
10054/* The GNU C library defines this for functions which it implements
10055 to always fail with ENOSYS. Some functions are actually named
10056 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010057#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010058choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010059#endif
10060
10061int
10062main ()
10063{
Reid Spencera773bd52006-08-04 18:18:08 +000010064return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010065 ;
10066 return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010070if { (ac_try="$ac_link"
10071case "(($ac_try" in
10072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10073 *) ac_try_echo=$ac_try;;
10074esac
10075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10076 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010077 ac_status=$?
10078 grep -v '^ *+' conftest.er1 >conftest.err
10079 rm -f conftest.er1
10080 cat conftest.err >&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10084 { (case "(($ac_try" in
10085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10086 *) ac_try_echo=$ac_try;;
10087esac
10088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10089 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010090 ac_status=$?
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); }; } &&
10093 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010094 { (case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097esac
10098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10099 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; }; then
10103 ac_cv_func__dyld_func_lookup=yes
10104else
10105 echo "$as_me: failed program was:" >&5
10106sed 's/^/| /' conftest.$ac_ext >&5
10107
Reid Spencera773bd52006-08-04 18:18:08 +000010108 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010109fi
Reid Spencera773bd52006-08-04 18:18:08 +000010110
10111rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010112 conftest$ac_exeext conftest.$ac_ext
10113fi
Reid Spencera773bd52006-08-04 18:18:08 +000010114{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10115echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010116if test $ac_cv_func__dyld_func_lookup = yes; then
10117
10118cat >>confdefs.h <<\_ACEOF
10119#define HAVE_DYLD 1
10120_ACEOF
10121
10122fi
10123
10124
10125fi
10126
10127
10128fi
10129
10130
10131fi
Reid Spencera773bd52006-08-04 18:18:08 +000010132
10133rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010134 conftest$ac_exeext conftest.$ac_ext
10135
10136fi
10137
10138
10139fi
10140
10141
10142fi
10143
10144
10145if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10146then
10147 lt_save_LIBS="$LIBS"
10148 LIBS="$LIBS $LIBADD_DL"
10149
10150for ac_func in dlerror
10151do
10152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010153{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10155if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h. */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h. */
10164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10166#define $ac_func innocuous_$ac_func
10167
10168/* System header to define __stub macros and hopefully few prototypes,
10169 which can conflict with char $ac_func (); below.
10170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10171 <limits.h> exists even on freestanding compilers. */
10172
10173#ifdef __STDC__
10174# include <limits.h>
10175#else
10176# include <assert.h>
10177#endif
10178
10179#undef $ac_func
10180
Reid Spencera773bd52006-08-04 18:18:08 +000010181/* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184#ifdef __cplusplus
10185extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010186#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010187char $ac_func ();
10188/* The GNU C library defines this for functions which it implements
10189 to always fail with ENOSYS. Some functions are actually named
10190 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010191#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010192choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010193#endif
10194
10195int
10196main ()
10197{
Reid Spencera773bd52006-08-04 18:18:08 +000010198return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010199 ;
10200 return 0;
10201}
10202_ACEOF
10203rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010204if { (ac_try="$ac_link"
10205case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10208esac
10209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10218 { (case "(($ac_try" in
10219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220 *) ac_try_echo=$ac_try;;
10221esac
10222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010224 ac_status=$?
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); }; } &&
10227 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010228 { (case "(($ac_try" in
10229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10230 *) ac_try_echo=$ac_try;;
10231esac
10232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10233 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010234 ac_status=$?
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); }; }; then
10237 eval "$as_ac_var=yes"
10238else
10239 echo "$as_me: failed program was:" >&5
10240sed 's/^/| /' conftest.$ac_ext >&5
10241
Reid Spencera773bd52006-08-04 18:18:08 +000010242 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010243fi
Reid Spencera773bd52006-08-04 18:18:08 +000010244
10245rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010246 conftest$ac_exeext conftest.$ac_ext
10247fi
Reid Spencera773bd52006-08-04 18:18:08 +000010248ac_res=`eval echo '${'$as_ac_var'}'`
10249 { echo "$as_me:$LINENO: result: $ac_res" >&5
10250echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010251if test `eval echo '${'$as_ac_var'}'` = yes; then
10252 cat >>confdefs.h <<_ACEOF
10253#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10254_ACEOF
10255
10256fi
10257done
10258
10259 LIBS="$lt_save_LIBS"
10260fi
10261ac_ext=c
10262ac_cpp='$CPP $CPPFLAGS'
10263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265ac_compiler_gnu=$ac_cv_c_compiler_gnu
10266
10267
10268
Reid Spencera773bd52006-08-04 18:18:08 +000010269{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10270echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010271if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 ac_cv_sys_symbol_underscore=no
10275 cat > conftest.$ac_ext <<EOF
10276void nm_test_func(){}
10277int main(){nm_test_func;return 0;}
10278EOF
10279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10280 (eval $ac_compile) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; then
10284 # Now try to grab the symbols.
10285 ac_nlist=conftest.nm
10286 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10287 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } && test -s "$ac_nlist"; then
10291 # See whether the symbols have a leading underscore.
10292 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10293 ac_cv_sys_symbol_underscore=yes
10294 else
10295 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10296 :
10297 else
10298 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10299 fi
10300 fi
10301 else
10302 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10303 fi
10304 else
10305 echo "configure: failed program was:" >&5
10306 cat conftest.c >&5
10307 fi
10308 rm -rf conftest*
10309
10310fi
Reid Spencera773bd52006-08-04 18:18:08 +000010311{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10312echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010313
10314
10315if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10316 if test x"$libltdl_cv_func_dlopen" = xyes ||
10317 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010318 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10319echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010320if test "${libltdl_cv_need_uscore+set}" = set; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10322else
10323 libltdl_cv_need_uscore=unknown
10324 save_LIBS="$LIBS"
10325 LIBS="$LIBS $LIBADD_DL"
10326 if test "$cross_compiling" = yes; then :
10327 libltdl_cv_need_uscore=cross
10328else
10329 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10330 lt_status=$lt_dlunknown
10331 cat > conftest.$ac_ext <<EOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000010332#line 10332 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010333#include "confdefs.h"
10334
10335#if HAVE_DLFCN_H
10336#include <dlfcn.h>
10337#endif
10338
10339#include <stdio.h>
10340
10341#ifdef RTLD_GLOBAL
10342# define LT_DLGLOBAL RTLD_GLOBAL
10343#else
10344# ifdef DL_GLOBAL
10345# define LT_DLGLOBAL DL_GLOBAL
10346# else
10347# define LT_DLGLOBAL 0
10348# endif
10349#endif
10350
10351/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10352 find out it does not work in some platform. */
10353#ifndef LT_DLLAZY_OR_NOW
10354# ifdef RTLD_LAZY
10355# define LT_DLLAZY_OR_NOW RTLD_LAZY
10356# else
10357# ifdef DL_LAZY
10358# define LT_DLLAZY_OR_NOW DL_LAZY
10359# else
10360# ifdef RTLD_NOW
10361# define LT_DLLAZY_OR_NOW RTLD_NOW
10362# else
10363# ifdef DL_NOW
10364# define LT_DLLAZY_OR_NOW DL_NOW
10365# else
10366# define LT_DLLAZY_OR_NOW 0
10367# endif
10368# endif
10369# endif
10370# endif
10371#endif
10372
10373#ifdef __cplusplus
10374extern "C" void exit (int);
10375#endif
10376
10377void fnord() { int i=42;}
10378int main ()
10379{
10380 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10381 int status = $lt_dlunknown;
10382
10383 if (self)
10384 {
10385 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10386 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10387 /* dlclose (self); */
10388 }
Reid Spencera773bd52006-08-04 18:18:08 +000010389 else
10390 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010391
10392 exit (status);
10393}
10394EOF
10395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10396 (eval $ac_link) 2>&5
10397 ac_status=$?
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010400 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010401 lt_status=$?
10402 case x$lt_status in
10403 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10404 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010405 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010406 esac
10407 else :
10408 # compilation failed
10409
10410 fi
10411fi
10412rm -fr conftest*
10413
10414 LIBS="$save_LIBS"
10415
10416fi
Reid Spencera773bd52006-08-04 18:18:08 +000010417{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10418echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010419 fi
10420fi
10421
10422if test x"$libltdl_cv_need_uscore" = xyes; then
10423
10424cat >>confdefs.h <<\_ACEOF
10425#define NEED_USCORE 1
10426_ACEOF
10427
10428fi
10429
10430
Reid Spencera773bd52006-08-04 18:18:08 +000010431{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10432echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010433if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435else
10436 # PORTME does your system automatically load deplibs for dlopen?
10437 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10438 # For now, we just catch OSes we know something about -- in the
10439 # future, we'll try test this programmatically.
10440 libltdl_cv_sys_dlopen_deplibs=unknown
10441 case "$host_os" in
10442 aix3*|aix4.1.*|aix4.2.*)
10443 # Unknown whether this is true for these versions of AIX, but
10444 # we want this `case' here to explicitly catch those versions.
10445 libltdl_cv_sys_dlopen_deplibs=unknown
10446 ;;
10447 aix[45]*)
10448 libltdl_cv_sys_dlopen_deplibs=yes
10449 ;;
10450 darwin*)
10451 # Assuming the user has installed a libdl from somewhere, this is true
10452 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10453 libltdl_cv_sys_dlopen_deplibs=yes
10454 ;;
10455 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10456 # GNU and its variants, using gnu ld.so (Glibc)
10457 libltdl_cv_sys_dlopen_deplibs=yes
10458 ;;
10459 hpux10*|hpux11*)
10460 libltdl_cv_sys_dlopen_deplibs=yes
10461 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010462 interix*)
10463 libltdl_cv_sys_dlopen_deplibs=yes
10464 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010465 irix[12345]*|irix6.[01]*)
10466 # Catch all versions of IRIX before 6.2, and indicate that we don't
10467 # know how it worked for any of those versions.
10468 libltdl_cv_sys_dlopen_deplibs=unknown
10469 ;;
10470 irix*)
10471 # The case above catches anything before 6.2, and it's known that
10472 # at 6.2 and later dlopen does load deplibs.
10473 libltdl_cv_sys_dlopen_deplibs=yes
10474 ;;
10475 netbsd*)
10476 libltdl_cv_sys_dlopen_deplibs=yes
10477 ;;
10478 openbsd*)
10479 libltdl_cv_sys_dlopen_deplibs=yes
10480 ;;
10481 osf[1234]*)
10482 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10483 # it did *not* use an RPATH in a shared library to find objects the
10484 # library depends on, so we explictly say `no'.
10485 libltdl_cv_sys_dlopen_deplibs=no
10486 ;;
10487 osf5.0|osf5.0a|osf5.1)
10488 # dlopen *does* load deplibs and with the right loader patch applied
10489 # it even uses RPATH in a shared library to search for shared objects
10490 # that the library depends on, but there's no easy way to know if that
10491 # patch is installed. Since this is the case, all we can really
10492 # say is unknown -- it depends on the patch being installed. If
10493 # it is, this changes to `yes'. Without it, it would be `no'.
10494 libltdl_cv_sys_dlopen_deplibs=unknown
10495 ;;
10496 osf*)
10497 # the two cases above should catch all versions of osf <= 5.1. Read
10498 # the comments above for what we know about them.
10499 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10500 # is used to find them so we can finally say `yes'.
10501 libltdl_cv_sys_dlopen_deplibs=yes
10502 ;;
10503 solaris*)
10504 libltdl_cv_sys_dlopen_deplibs=yes
10505 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10507 libltdl_cv_sys_dlopen_deplibs=yes
10508 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509 esac
10510
10511fi
Reid Spencera773bd52006-08-04 18:18:08 +000010512{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10513echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010514if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10515
10516cat >>confdefs.h <<\_ACEOF
10517#define LTDL_DLOPEN_DEPLIBS 1
10518_ACEOF
10519
10520fi
10521
10522
10523for ac_header in argz.h
10524do
10525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10529if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531fi
Reid Spencera773bd52006-08-04 18:18:08 +000010532ac_res=`eval echo '${'$as_ac_Header'}'`
10533 { echo "$as_me:$LINENO: result: $ac_res" >&5
10534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010535else
10536 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010537{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539cat >conftest.$ac_ext <<_ACEOF
10540/* confdefs.h. */
10541_ACEOF
10542cat confdefs.h >>conftest.$ac_ext
10543cat >>conftest.$ac_ext <<_ACEOF
10544/* end confdefs.h. */
10545$ac_includes_default
10546#include <$ac_header>
10547_ACEOF
10548rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010549if { (ac_try="$ac_compile"
10550case "(($ac_try" in
10551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552 *) ac_try_echo=$ac_try;;
10553esac
10554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010556 ac_status=$?
10557 grep -v '^ *+' conftest.er1 >conftest.err
10558 rm -f conftest.er1
10559 cat conftest.err >&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10563 { (case "(($ac_try" in
10564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10565 *) ac_try_echo=$ac_try;;
10566esac
10567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10568 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010569 ac_status=$?
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; } &&
10572 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010573 { (case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576esac
10577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579 ac_status=$?
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; }; then
10582 ac_header_compiler=yes
10583else
10584 echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
Reid Spencera773bd52006-08-04 18:18:08 +000010587 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010588fi
Reid Spencera773bd52006-08-04 18:18:08 +000010589
10590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10591{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10592echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010593
10594# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010595{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010597cat >conftest.$ac_ext <<_ACEOF
10598/* confdefs.h. */
10599_ACEOF
10600cat confdefs.h >>conftest.$ac_ext
10601cat >>conftest.$ac_ext <<_ACEOF
10602/* end confdefs.h. */
10603#include <$ac_header>
10604_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010605if { (ac_try="$ac_cpp conftest.$ac_ext"
10606case "(($ac_try" in
10607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608 *) ac_try_echo=$ac_try;;
10609esac
10610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010612 ac_status=$?
10613 grep -v '^ *+' conftest.er1 >conftest.err
10614 rm -f conftest.er1
10615 cat conftest.err >&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); } >/dev/null; then
10618 if test -s conftest.err; then
10619 ac_cpp_err=$ac_c_preproc_warn_flag
10620 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10621 else
10622 ac_cpp_err=
10623 fi
10624else
10625 ac_cpp_err=yes
10626fi
10627if test -z "$ac_cpp_err"; then
10628 ac_header_preproc=yes
10629else
10630 echo "$as_me: failed program was:" >&5
10631sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 ac_header_preproc=no
10634fi
Reid Spencera773bd52006-08-04 18:18:08 +000010635
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010636rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010637{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10638echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010639
10640# So? What about this header?
10641case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10642 yes:no: )
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10646echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10647 ac_header_preproc=yes
10648 ;;
10649 no:yes:* )
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10651echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10653echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10655echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10657echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10659echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10661echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010662 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010663## ----------------------------------- ##
10664## Report this to llvmbugs@cs.uiuc.edu ##
10665## ----------------------------------- ##
10666_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010667 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010668 ;;
10669esac
Reid Spencera773bd52006-08-04 18:18:08 +000010670{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 eval "$as_ac_Header=\$ac_header_preproc"
10676fi
Reid Spencera773bd52006-08-04 18:18:08 +000010677ac_res=`eval echo '${'$as_ac_Header'}'`
10678 { echo "$as_me:$LINENO: result: $ac_res" >&5
10679echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010680
10681fi
10682if test `eval echo '${'$as_ac_Header'}'` = yes; then
10683 cat >>confdefs.h <<_ACEOF
10684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10685_ACEOF
10686
10687fi
10688
10689done
10690
10691
Reid Spencera773bd52006-08-04 18:18:08 +000010692{ echo "$as_me:$LINENO: checking for error_t" >&5
10693echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010694if test "${ac_cv_type_error_t+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696else
10697 cat >conftest.$ac_ext <<_ACEOF
10698/* confdefs.h. */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h. */
10703#if HAVE_ARGZ_H
10704# include <argz.h>
10705#endif
10706
Reid Spencera773bd52006-08-04 18:18:08 +000010707typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010708int
10709main ()
10710{
Reid Spencera773bd52006-08-04 18:18:08 +000010711if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010713if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010714 return 0;
10715 ;
10716 return 0;
10717}
10718_ACEOF
10719rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010720if { (ac_try="$ac_compile"
10721case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724esac
10725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10734 { (case "(($ac_try" in
10735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10736 *) ac_try_echo=$ac_try;;
10737esac
10738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10739 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; } &&
10743 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010744 { (case "(($ac_try" in
10745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10746 *) ac_try_echo=$ac_try;;
10747esac
10748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10749 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010750 ac_status=$?
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); }; }; then
10753 ac_cv_type_error_t=yes
10754else
10755 echo "$as_me: failed program was:" >&5
10756sed 's/^/| /' conftest.$ac_ext >&5
10757
Reid Spencera773bd52006-08-04 18:18:08 +000010758 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010759fi
Reid Spencera773bd52006-08-04 18:18:08 +000010760
10761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762fi
Reid Spencera773bd52006-08-04 18:18:08 +000010763{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10764echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010765if test $ac_cv_type_error_t = yes; then
10766
10767cat >>confdefs.h <<_ACEOF
10768#define HAVE_ERROR_T 1
10769_ACEOF
10770
10771
10772else
10773
10774cat >>confdefs.h <<\_ACEOF
10775#define error_t int
10776_ACEOF
10777
10778fi
10779
10780
10781
10782
10783
10784
10785
10786for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10787do
10788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010789{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10791if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792 echo $ECHO_N "(cached) $ECHO_C" >&6
10793else
10794 cat >conftest.$ac_ext <<_ACEOF
10795/* confdefs.h. */
10796_ACEOF
10797cat confdefs.h >>conftest.$ac_ext
10798cat >>conftest.$ac_ext <<_ACEOF
10799/* end confdefs.h. */
10800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10802#define $ac_func innocuous_$ac_func
10803
10804/* System header to define __stub macros and hopefully few prototypes,
10805 which can conflict with char $ac_func (); below.
10806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10807 <limits.h> exists even on freestanding compilers. */
10808
10809#ifdef __STDC__
10810# include <limits.h>
10811#else
10812# include <assert.h>
10813#endif
10814
10815#undef $ac_func
10816
Reid Spencera773bd52006-08-04 18:18:08 +000010817/* Override any GCC internal prototype to avoid an error.
10818 Use char because int might match the return type of a GCC
10819 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820#ifdef __cplusplus
10821extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010822#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010823char $ac_func ();
10824/* The GNU C library defines this for functions which it implements
10825 to always fail with ENOSYS. Some functions are actually named
10826 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010827#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010828choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010829#endif
10830
10831int
10832main ()
10833{
Reid Spencera773bd52006-08-04 18:18:08 +000010834return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010835 ;
10836 return 0;
10837}
10838_ACEOF
10839rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010840if { (ac_try="$ac_link"
10841case "(($ac_try" in
10842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10844esac
10845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10854 { (case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }; } &&
10863 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; }; then
10873 eval "$as_ac_var=yes"
10874else
10875 echo "$as_me: failed program was:" >&5
10876sed 's/^/| /' conftest.$ac_ext >&5
10877
Reid Spencera773bd52006-08-04 18:18:08 +000010878 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010879fi
Reid Spencera773bd52006-08-04 18:18:08 +000010880
10881rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010882 conftest$ac_exeext conftest.$ac_ext
10883fi
Reid Spencera773bd52006-08-04 18:18:08 +000010884ac_res=`eval echo '${'$as_ac_var'}'`
10885 { echo "$as_me:$LINENO: result: $ac_res" >&5
10886echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010887if test `eval echo '${'$as_ac_var'}'` = yes; then
10888 cat >>confdefs.h <<_ACEOF
10889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10890_ACEOF
10891
10892fi
10893done
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10923 stdio.h unistd.h
10924do
10925as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931fi
Reid Spencera773bd52006-08-04 18:18:08 +000010932ac_res=`eval echo '${'$as_ac_Header'}'`
10933 { echo "$as_me:$LINENO: result: $ac_res" >&5
10934echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010935else
10936 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010937{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10938echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945$ac_includes_default
10946#include <$ac_header>
10947_ACEOF
10948rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010949if { (ac_try="$ac_compile"
10950case "(($ac_try" in
10951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10952 *) ac_try_echo=$ac_try;;
10953esac
10954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10955 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010956 ac_status=$?
10957 grep -v '^ *+' conftest.er1 >conftest.err
10958 rm -f conftest.er1
10959 cat conftest.err >&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10963 { (case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966esac
10967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; } &&
10972 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010973 { (case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976esac
10977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); }; }; then
10982 ac_header_compiler=yes
10983else
10984 echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
Reid Spencera773bd52006-08-04 18:18:08 +000010987 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010988fi
Reid Spencera773bd52006-08-04 18:18:08 +000010989
10990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10991{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10992echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010993
10994# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010995{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10996echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010997cat >conftest.$ac_ext <<_ACEOF
10998/* confdefs.h. */
10999_ACEOF
11000cat confdefs.h >>conftest.$ac_ext
11001cat >>conftest.$ac_ext <<_ACEOF
11002/* end confdefs.h. */
11003#include <$ac_header>
11004_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011005if { (ac_try="$ac_cpp conftest.$ac_ext"
11006case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11009esac
11010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011012 ac_status=$?
11013 grep -v '^ *+' conftest.er1 >conftest.err
11014 rm -f conftest.er1
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } >/dev/null; then
11018 if test -s conftest.err; then
11019 ac_cpp_err=$ac_c_preproc_warn_flag
11020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11021 else
11022 ac_cpp_err=
11023 fi
11024else
11025 ac_cpp_err=yes
11026fi
11027if test -z "$ac_cpp_err"; then
11028 ac_header_preproc=yes
11029else
11030 echo "$as_me: failed program was:" >&5
11031sed 's/^/| /' conftest.$ac_ext >&5
11032
11033 ac_header_preproc=no
11034fi
Reid Spencera773bd52006-08-04 18:18:08 +000011035
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011036rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011037{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11038echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011039
11040# So? What about this header?
11041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11042 yes:no: )
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11047 ac_header_preproc=yes
11048 ;;
11049 no:yes:* )
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011062 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011063## ----------------------------------- ##
11064## Report this to llvmbugs@cs.uiuc.edu ##
11065## ----------------------------------- ##
11066_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011067 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011068 ;;
11069esac
Reid Spencera773bd52006-08-04 18:18:08 +000011070{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11072if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011073 echo $ECHO_N "(cached) $ECHO_C" >&6
11074else
11075 eval "$as_ac_Header=\$ac_header_preproc"
11076fi
Reid Spencera773bd52006-08-04 18:18:08 +000011077ac_res=`eval echo '${'$as_ac_Header'}'`
11078 { echo "$as_me:$LINENO: result: $ac_res" >&5
11079echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011080
11081fi
11082if test `eval echo '${'$as_ac_Header'}'` = yes; then
11083 cat >>confdefs.h <<_ACEOF
11084#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11085_ACEOF
11086
11087fi
11088
11089done
11090
11091
11092
11093
11094
11095for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11096do
11097as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11101if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011102 echo $ECHO_N "(cached) $ECHO_C" >&6
11103fi
Reid Spencera773bd52006-08-04 18:18:08 +000011104ac_res=`eval echo '${'$as_ac_Header'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011107else
11108 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011109{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11110echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111cat >conftest.$ac_ext <<_ACEOF
11112/* confdefs.h. */
11113_ACEOF
11114cat confdefs.h >>conftest.$ac_ext
11115cat >>conftest.$ac_ext <<_ACEOF
11116/* end confdefs.h. */
11117$ac_includes_default
11118#include <$ac_header>
11119_ACEOF
11120rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011121if { (ac_try="$ac_compile"
11122case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125esac
11126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135 { (case "(($ac_try" in
11136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11138esac
11139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011141 ac_status=$?
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; } &&
11144 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011145 { (case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148esac
11149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011151 ac_status=$?
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); }; }; then
11154 ac_header_compiler=yes
11155else
11156 echo "$as_me: failed program was:" >&5
11157sed 's/^/| /' conftest.$ac_ext >&5
11158
Reid Spencera773bd52006-08-04 18:18:08 +000011159 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011160fi
Reid Spencera773bd52006-08-04 18:18:08 +000011161
11162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11164echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011165
11166# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011167{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11168echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011169cat >conftest.$ac_ext <<_ACEOF
11170/* confdefs.h. */
11171_ACEOF
11172cat confdefs.h >>conftest.$ac_ext
11173cat >>conftest.$ac_ext <<_ACEOF
11174/* end confdefs.h. */
11175#include <$ac_header>
11176_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011177if { (ac_try="$ac_cpp conftest.$ac_ext"
11178case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181esac
11182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } >/dev/null; then
11190 if test -s conftest.err; then
11191 ac_cpp_err=$ac_c_preproc_warn_flag
11192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11193 else
11194 ac_cpp_err=
11195 fi
11196else
11197 ac_cpp_err=yes
11198fi
11199if test -z "$ac_cpp_err"; then
11200 ac_header_preproc=yes
11201else
11202 echo "$as_me: failed program was:" >&5
11203sed 's/^/| /' conftest.$ac_ext >&5
11204
11205 ac_header_preproc=no
11206fi
Reid Spencera773bd52006-08-04 18:18:08 +000011207
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011208rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11210echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011211
11212# So? What about this header?
11213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11214 yes:no: )
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11219 ac_header_preproc=yes
11220 ;;
11221 no:yes:* )
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011234 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011235## ----------------------------------- ##
11236## Report this to llvmbugs@cs.uiuc.edu ##
11237## ----------------------------------- ##
11238_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011239 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011240 ;;
11241esac
Reid Spencera773bd52006-08-04 18:18:08 +000011242{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11244if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011245 echo $ECHO_N "(cached) $ECHO_C" >&6
11246else
11247 eval "$as_ac_Header=\$ac_header_preproc"
11248fi
Reid Spencera773bd52006-08-04 18:18:08 +000011249ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011252
11253fi
11254if test `eval echo '${'$as_ac_Header'}'` = yes; then
11255 cat >>confdefs.h <<_ACEOF
11256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11257_ACEOF
11258
11259fi
11260
11261done
11262
11263
11264
11265for ac_header in string.h strings.h
11266do
11267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011268if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273fi
Reid Spencera773bd52006-08-04 18:18:08 +000011274ac_res=`eval echo '${'$as_ac_Header'}'`
11275 { echo "$as_me:$LINENO: result: $ac_res" >&5
11276echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011277else
11278 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011279{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281cat >conftest.$ac_ext <<_ACEOF
11282/* confdefs.h. */
11283_ACEOF
11284cat confdefs.h >>conftest.$ac_ext
11285cat >>conftest.$ac_ext <<_ACEOF
11286/* end confdefs.h. */
11287$ac_includes_default
11288#include <$ac_header>
11289_ACEOF
11290rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011291if { (ac_try="$ac_compile"
11292case "(($ac_try" in
11293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294 *) ac_try_echo=$ac_try;;
11295esac
11296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11305 { (case "(($ac_try" in
11306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11307 *) ac_try_echo=$ac_try;;
11308esac
11309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11310 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011311 ac_status=$?
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; } &&
11314 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011315 { (case "(($ac_try" in
11316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317 *) ac_try_echo=$ac_try;;
11318esac
11319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 ac_header_compiler=yes
11325else
11326 echo "$as_me: failed program was:" >&5
11327sed 's/^/| /' conftest.$ac_ext >&5
11328
Reid Spencera773bd52006-08-04 18:18:08 +000011329 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011330fi
Reid Spencera773bd52006-08-04 18:18:08 +000011331
11332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11333{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011335
11336# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011337{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345#include <$ac_header>
11346_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011347if { (ac_try="$ac_cpp conftest.$ac_ext"
11348case "(($ac_try" in
11349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11350 *) ac_try_echo=$ac_try;;
11351esac
11352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011354 ac_status=$?
11355 grep -v '^ *+' conftest.er1 >conftest.err
11356 rm -f conftest.er1
11357 cat conftest.err >&5
11358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11359 (exit $ac_status); } >/dev/null; then
11360 if test -s conftest.err; then
11361 ac_cpp_err=$ac_c_preproc_warn_flag
11362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11363 else
11364 ac_cpp_err=
11365 fi
11366else
11367 ac_cpp_err=yes
11368fi
11369if test -z "$ac_cpp_err"; then
11370 ac_header_preproc=yes
11371else
11372 echo "$as_me: failed program was:" >&5
11373sed 's/^/| /' conftest.$ac_ext >&5
11374
11375 ac_header_preproc=no
11376fi
Reid Spencera773bd52006-08-04 18:18:08 +000011377
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011378rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011379{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11380echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011381
11382# So? What about this header?
11383case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11384 yes:no: )
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11386echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11388echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11389 ac_header_preproc=yes
11390 ;;
11391 no:yes:* )
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11393echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11395echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11397echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11399echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11401echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11403echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011404 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011405## ----------------------------------- ##
11406## Report this to llvmbugs@cs.uiuc.edu ##
11407## ----------------------------------- ##
11408_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011409 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011410 ;;
11411esac
Reid Spencera773bd52006-08-04 18:18:08 +000011412{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416else
11417 eval "$as_ac_Header=\$ac_header_preproc"
11418fi
Reid Spencera773bd52006-08-04 18:18:08 +000011419ac_res=`eval echo '${'$as_ac_Header'}'`
11420 { echo "$as_me:$LINENO: result: $ac_res" >&5
11421echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011422
11423fi
11424if test `eval echo '${'$as_ac_Header'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11427_ACEOF
11428 break
11429fi
11430
11431done
11432
11433
11434
11435
11436for ac_func in strchr index
11437do
11438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011439{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11441if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442 echo $ECHO_N "(cached) $ECHO_C" >&6
11443else
11444 cat >conftest.$ac_ext <<_ACEOF
11445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
11450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11452#define $ac_func innocuous_$ac_func
11453
11454/* System header to define __stub macros and hopefully few prototypes,
11455 which can conflict with char $ac_func (); below.
11456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11457 <limits.h> exists even on freestanding compilers. */
11458
11459#ifdef __STDC__
11460# include <limits.h>
11461#else
11462# include <assert.h>
11463#endif
11464
11465#undef $ac_func
11466
Reid Spencera773bd52006-08-04 18:18:08 +000011467/* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470#ifdef __cplusplus
11471extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011472#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011473char $ac_func ();
11474/* The GNU C library defines this for functions which it implements
11475 to always fail with ENOSYS. Some functions are actually named
11476 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011477#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011478choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011479#endif
11480
11481int
11482main ()
11483{
Reid Spencera773bd52006-08-04 18:18:08 +000011484return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011485 ;
11486 return 0;
11487}
11488_ACEOF
11489rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011490if { (ac_try="$ac_link"
11491case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11504 { (case "(($ac_try" in
11505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11506 *) ac_try_echo=$ac_try;;
11507esac
11508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11509 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011510 ac_status=$?
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); }; } &&
11513 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011514 { (case "(($ac_try" in
11515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11516 *) ac_try_echo=$ac_try;;
11517esac
11518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11519 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; }; then
11523 eval "$as_ac_var=yes"
11524else
11525 echo "$as_me: failed program was:" >&5
11526sed 's/^/| /' conftest.$ac_ext >&5
11527
Reid Spencera773bd52006-08-04 18:18:08 +000011528 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011529fi
Reid Spencera773bd52006-08-04 18:18:08 +000011530
11531rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011532 conftest$ac_exeext conftest.$ac_ext
11533fi
Reid Spencera773bd52006-08-04 18:18:08 +000011534ac_res=`eval echo '${'$as_ac_var'}'`
11535 { echo "$as_me:$LINENO: result: $ac_res" >&5
11536echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011537if test `eval echo '${'$as_ac_var'}'` = yes; then
11538 cat >>confdefs.h <<_ACEOF
11539#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11540_ACEOF
11541 break
11542fi
11543done
11544
11545
11546
11547for ac_func in strrchr rindex
11548do
11549as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011550{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11551echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11552if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554else
11555 cat >conftest.$ac_ext <<_ACEOF
11556/* confdefs.h. */
11557_ACEOF
11558cat confdefs.h >>conftest.$ac_ext
11559cat >>conftest.$ac_ext <<_ACEOF
11560/* end confdefs.h. */
11561/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11563#define $ac_func innocuous_$ac_func
11564
11565/* System header to define __stub macros and hopefully few prototypes,
11566 which can conflict with char $ac_func (); below.
11567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11568 <limits.h> exists even on freestanding compilers. */
11569
11570#ifdef __STDC__
11571# include <limits.h>
11572#else
11573# include <assert.h>
11574#endif
11575
11576#undef $ac_func
11577
Reid Spencera773bd52006-08-04 18:18:08 +000011578/* Override any GCC internal prototype to avoid an error.
11579 Use char because int might match the return type of a GCC
11580 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581#ifdef __cplusplus
11582extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011583#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011584char $ac_func ();
11585/* The GNU C library defines this for functions which it implements
11586 to always fail with ENOSYS. Some functions are actually named
11587 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011588#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011589choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011590#endif
11591
11592int
11593main ()
11594{
Reid Spencera773bd52006-08-04 18:18:08 +000011595return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011596 ;
11597 return 0;
11598}
11599_ACEOF
11600rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011601if { (ac_try="$ac_link"
11602case "(($ac_try" in
11603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11604 *) ac_try_echo=$ac_try;;
11605esac
11606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011608 ac_status=$?
11609 grep -v '^ *+' conftest.er1 >conftest.err
11610 rm -f conftest.er1
11611 cat conftest.err >&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; } &&
11624 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011625 { (case "(($ac_try" in
11626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11627 *) ac_try_echo=$ac_try;;
11628esac
11629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11630 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011631 ac_status=$?
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); }; }; then
11634 eval "$as_ac_var=yes"
11635else
11636 echo "$as_me: failed program was:" >&5
11637sed 's/^/| /' conftest.$ac_ext >&5
11638
Reid Spencera773bd52006-08-04 18:18:08 +000011639 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640fi
Reid Spencera773bd52006-08-04 18:18:08 +000011641
11642rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011643 conftest$ac_exeext conftest.$ac_ext
11644fi
Reid Spencera773bd52006-08-04 18:18:08 +000011645ac_res=`eval echo '${'$as_ac_var'}'`
11646 { echo "$as_me:$LINENO: result: $ac_res" >&5
11647echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011648if test `eval echo '${'$as_ac_var'}'` = yes; then
11649 cat >>confdefs.h <<_ACEOF
11650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11651_ACEOF
11652 break
11653fi
11654done
11655
11656
11657
11658for ac_func in memcpy bcopy
11659do
11660as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011661{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11662echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665else
11666 cat >conftest.$ac_ext <<_ACEOF
11667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
11672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674#define $ac_func innocuous_$ac_func
11675
11676/* System header to define __stub macros and hopefully few prototypes,
11677 which can conflict with char $ac_func (); below.
11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 <limits.h> exists even on freestanding compilers. */
11680
11681#ifdef __STDC__
11682# include <limits.h>
11683#else
11684# include <assert.h>
11685#endif
11686
11687#undef $ac_func
11688
Reid Spencera773bd52006-08-04 18:18:08 +000011689/* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692#ifdef __cplusplus
11693extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011694#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011695char $ac_func ();
11696/* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011699#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011700choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011701#endif
11702
11703int
11704main ()
11705{
Reid Spencera773bd52006-08-04 18:18:08 +000011706return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011707 ;
11708 return 0;
11709}
11710_ACEOF
11711rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011712if { (ac_try="$ac_link"
11713case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11726 { (case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11729esac
11730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011732 ac_status=$?
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; } &&
11735 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011736 { (case "(($ac_try" in
11737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738 *) ac_try_echo=$ac_try;;
11739esac
11740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
11745 eval "$as_ac_var=yes"
11746else
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
Reid Spencera773bd52006-08-04 18:18:08 +000011750 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011751fi
Reid Spencera773bd52006-08-04 18:18:08 +000011752
11753rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011754 conftest$ac_exeext conftest.$ac_ext
11755fi
Reid Spencera773bd52006-08-04 18:18:08 +000011756ac_res=`eval echo '${'$as_ac_var'}'`
11757 { echo "$as_me:$LINENO: result: $ac_res" >&5
11758echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011759if test `eval echo '${'$as_ac_var'}'` = yes; then
11760 cat >>confdefs.h <<_ACEOF
11761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11762_ACEOF
11763 break
11764fi
11765done
11766
11767
11768
11769for ac_func in memmove strcmp
11770do
11771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011772{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11774if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775 echo $ECHO_N "(cached) $ECHO_C" >&6
11776else
11777 cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
11783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11785#define $ac_func innocuous_$ac_func
11786
11787/* System header to define __stub macros and hopefully few prototypes,
11788 which can conflict with char $ac_func (); below.
11789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11790 <limits.h> exists even on freestanding compilers. */
11791
11792#ifdef __STDC__
11793# include <limits.h>
11794#else
11795# include <assert.h>
11796#endif
11797
11798#undef $ac_func
11799
Reid Spencera773bd52006-08-04 18:18:08 +000011800/* Override any GCC internal prototype to avoid an error.
11801 Use char because int might match the return type of a GCC
11802 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803#ifdef __cplusplus
11804extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011805#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011806char $ac_func ();
11807/* The GNU C library defines this for functions which it implements
11808 to always fail with ENOSYS. Some functions are actually named
11809 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011810#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011811choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011812#endif
11813
11814int
11815main ()
11816{
Reid Spencera773bd52006-08-04 18:18:08 +000011817return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011818 ;
11819 return 0;
11820}
11821_ACEOF
11822rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011823if { (ac_try="$ac_link"
11824case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840esac
11841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011843 ac_status=$?
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); }; } &&
11846 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011847 { (case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850esac
11851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011853 ac_status=$?
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; }; then
11856 eval "$as_ac_var=yes"
11857else
11858 echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
Reid Spencera773bd52006-08-04 18:18:08 +000011861 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011862fi
Reid Spencera773bd52006-08-04 18:18:08 +000011863
11864rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011865 conftest$ac_exeext conftest.$ac_ext
11866fi
Reid Spencera773bd52006-08-04 18:18:08 +000011867ac_res=`eval echo '${'$as_ac_var'}'`
11868 { echo "$as_me:$LINENO: result: $ac_res" >&5
11869echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011870if test `eval echo '${'$as_ac_var'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11873_ACEOF
11874
11875fi
11876done
11877
11878
11879
11880
11881for ac_func in closedir opendir readdir
11882do
11883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011884{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11886if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887 echo $ECHO_N "(cached) $ECHO_C" >&6
11888else
11889 cat >conftest.$ac_ext <<_ACEOF
11890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
11895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11897#define $ac_func innocuous_$ac_func
11898
11899/* System header to define __stub macros and hopefully few prototypes,
11900 which can conflict with char $ac_func (); below.
11901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11902 <limits.h> exists even on freestanding compilers. */
11903
11904#ifdef __STDC__
11905# include <limits.h>
11906#else
11907# include <assert.h>
11908#endif
11909
11910#undef $ac_func
11911
Reid Spencera773bd52006-08-04 18:18:08 +000011912/* Override any GCC internal prototype to avoid an error.
11913 Use char because int might match the return type of a GCC
11914 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915#ifdef __cplusplus
11916extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011917#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011918char $ac_func ();
11919/* The GNU C library defines this for functions which it implements
11920 to always fail with ENOSYS. Some functions are actually named
11921 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011922#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011923choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011924#endif
11925
11926int
11927main ()
11928{
Reid Spencera773bd52006-08-04 18:18:08 +000011929return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011930 ;
11931 return 0;
11932}
11933_ACEOF
11934rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011935if { (ac_try="$ac_link"
11936case "(($ac_try" in
11937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11938 *) ac_try_echo=$ac_try;;
11939esac
11940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11941 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011942 ac_status=$?
11943 grep -v '^ *+' conftest.er1 >conftest.err
11944 rm -f conftest.er1
11945 cat conftest.err >&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11949 { (case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952esac
11953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011959 { (case "(($ac_try" in
11960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11961 *) ac_try_echo=$ac_try;;
11962esac
11963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11964 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; }; then
11968 eval "$as_ac_var=yes"
11969else
11970 echo "$as_me: failed program was:" >&5
11971sed 's/^/| /' conftest.$ac_ext >&5
11972
Reid Spencera773bd52006-08-04 18:18:08 +000011973 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011974fi
Reid Spencera773bd52006-08-04 18:18:08 +000011975
11976rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011977 conftest$ac_exeext conftest.$ac_ext
11978fi
Reid Spencera773bd52006-08-04 18:18:08 +000011979ac_res=`eval echo '${'$as_ac_var'}'`
11980 { echo "$as_me:$LINENO: result: $ac_res" >&5
11981echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011982if test `eval echo '${'$as_ac_var'}'` = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11985_ACEOF
11986
11987fi
11988done
11989
11990
Reid Spencera773bd52006-08-04 18:18:08 +000011991# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011993 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011994 case $enableval in
11995 yes) enable_shared=yes ;;
11996 no) enable_shared=no ;;
11997 *)
11998 enable_shared=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_shared=yes
12005 fi
12006 done
12007 IFS="$lt_save_ifs"
12008 ;;
12009 esac
12010else
12011 enable_shared=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# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012017 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012018 case $enableval in
12019 yes) enable_static=yes ;;
12020 no) enable_static=no ;;
12021 *)
12022 enable_static=no
12023 # Look at the argument we got. We use all the common list separators.
12024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12025 for pkg in $enableval; do
12026 IFS="$lt_save_ifs"
12027 if test "X$pkg" = "X$p"; then
12028 enable_static=yes
12029 fi
12030 done
12031 IFS="$lt_save_ifs"
12032 ;;
12033 esac
12034else
12035 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012036fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012037
Reid Spencera773bd52006-08-04 18:18:08 +000012038
12039# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012041 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012042 case $enableval in
12043 yes) enable_fast_install=yes ;;
12044 no) enable_fast_install=no ;;
12045 *)
12046 enable_fast_install=no
12047 # Look at the argument we got. We use all the common list separators.
12048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12049 for pkg in $enableval; do
12050 IFS="$lt_save_ifs"
12051 if test "X$pkg" = "X$p"; then
12052 enable_fast_install=yes
12053 fi
12054 done
12055 IFS="$lt_save_ifs"
12056 ;;
12057 esac
12058else
12059 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012060fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012061
Reid Spencera773bd52006-08-04 18:18:08 +000012062
12063{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12064echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012065if test "${lt_cv_path_SED+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067else
12068 # Loop through the user's path and test for sed and gsed.
12069# Then use that list of sed's as ones to test for truncation.
12070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12071for as_dir in $PATH
12072do
12073 IFS=$as_save_IFS
12074 test -z "$as_dir" && as_dir=.
12075 for lt_ac_prog in sed gsed; do
12076 for ac_exec_ext in '' $ac_executable_extensions; do
12077 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12078 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12079 fi
12080 done
12081 done
12082done
12083lt_ac_max=0
12084lt_ac_count=0
12085# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12086# along with /bin/sed that truncates output.
12087for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012088 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089 cat /dev/null > conftest.in
12090 lt_ac_count=0
12091 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12092 # Check for GNU sed and select it if it is found.
12093 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12094 lt_cv_path_SED=$lt_ac_sed
12095 break
12096 fi
12097 while true; do
12098 cat conftest.in conftest.in >conftest.tmp
12099 mv conftest.tmp conftest.in
12100 cp conftest.in conftest.nl
12101 echo >>conftest.nl
12102 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12103 cmp -s conftest.out conftest.nl || break
12104 # 10000 chars as input seems more than enough
12105 test $lt_ac_count -gt 10 && break
12106 lt_ac_count=`expr $lt_ac_count + 1`
12107 if test $lt_ac_count -gt $lt_ac_max; then
12108 lt_ac_max=$lt_ac_count
12109 lt_cv_path_SED=$lt_ac_sed
12110 fi
12111 done
12112done
12113
12114fi
12115
12116SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012117{ echo "$as_me:$LINENO: result: $SED" >&5
12118echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012119
12120
Reid Spencera773bd52006-08-04 18:18:08 +000012121# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012123 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012124else
12125 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012126fi
12127
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012128ac_prog=ld
12129if test "$GCC" = yes; then
12130 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012131 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12132echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133 case $host in
12134 *-*-mingw*)
12135 # gcc leaves a trailing carriage return which upsets mingw
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12137 *)
12138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12139 esac
12140 case $ac_prog in
12141 # Accept absolute paths.
12142 [\\/]* | ?:[\\/]*)
12143 re_direlt='/[^/][^/]*/\.\./'
12144 # Canonicalize the pathname of ld
12145 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12147 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12148 done
12149 test -z "$LD" && LD="$ac_prog"
12150 ;;
12151 "")
12152 # If it fails, then pretend we aren't using GCC.
12153 ac_prog=ld
12154 ;;
12155 *)
12156 # If it is relative, then search for the first ld in PATH.
12157 with_gnu_ld=unknown
12158 ;;
12159 esac
12160elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012161 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12162echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012163else
Reid Spencera773bd52006-08-04 18:18:08 +000012164 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12165echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012166fi
12167if test "${lt_cv_path_LD+set}" = set; then
12168 echo $ECHO_N "(cached) $ECHO_C" >&6
12169else
12170 if test -z "$LD"; then
12171 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12172 for ac_dir in $PATH; do
12173 IFS="$lt_save_ifs"
12174 test -z "$ac_dir" && ac_dir=.
12175 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12176 lt_cv_path_LD="$ac_dir/$ac_prog"
12177 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012178 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179 # Break only if it was the GNU/non-GNU ld that we prefer.
12180 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12181 *GNU* | *'with BFD'*)
12182 test "$with_gnu_ld" != no && break
12183 ;;
12184 *)
12185 test "$with_gnu_ld" != yes && break
12186 ;;
12187 esac
12188 fi
12189 done
12190 IFS="$lt_save_ifs"
12191else
12192 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12193fi
12194fi
12195
12196LD="$lt_cv_path_LD"
12197if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012198 { echo "$as_me:$LINENO: result: $LD" >&5
12199echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012200else
Reid Spencera773bd52006-08-04 18:18:08 +000012201 { echo "$as_me:$LINENO: result: no" >&5
12202echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012203fi
12204test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12205echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12206 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012207{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12208echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012209if test "${lt_cv_prog_gnu_ld+set}" = set; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
Reid Spencera773bd52006-08-04 18:18:08 +000012212 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012213case `$LD -v 2>&1 </dev/null` in
12214*GNU* | *'with BFD'*)
12215 lt_cv_prog_gnu_ld=yes
12216 ;;
12217*)
12218 lt_cv_prog_gnu_ld=no
12219 ;;
12220esac
12221fi
Reid Spencera773bd52006-08-04 18:18:08 +000012222{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12223echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224with_gnu_ld=$lt_cv_prog_gnu_ld
12225
12226
Reid Spencera773bd52006-08-04 18:18:08 +000012227{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12228echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012229if test "${lt_cv_ld_reload_flag+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231else
12232 lt_cv_ld_reload_flag='-r'
12233fi
Reid Spencera773bd52006-08-04 18:18:08 +000012234{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12235echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012236reload_flag=$lt_cv_ld_reload_flag
12237case $reload_flag in
12238"" | " "*) ;;
12239*) reload_flag=" $reload_flag" ;;
12240esac
12241reload_cmds='$LD$reload_flag -o $output$reload_objs'
12242case $host_os in
12243 darwin*)
12244 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012245 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012246 else
12247 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12248 fi
12249 ;;
12250esac
12251
Reid Spencera773bd52006-08-04 18:18:08 +000012252{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12253echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012254if test "${lt_cv_deplibs_check_method+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
12257 lt_cv_file_magic_cmd='$MAGIC_CMD'
12258lt_cv_file_magic_test_file=
12259lt_cv_deplibs_check_method='unknown'
12260# Need to set the preceding variable on all platforms that support
12261# interlibrary dependencies.
12262# 'none' -- dependencies not supported.
12263# `unknown' -- same as none, but documents that we really don't know.
12264# 'pass_all' -- all dependencies passed with no checks.
12265# 'test_compile' -- check by making test program.
12266# 'file_magic [[regex]]' -- check by looking for files in library path
12267# which responds to the $file_magic_cmd with a given extended regex.
12268# If you have `file' or equivalent on your system and you're not sure
12269# whether `pass_all' will *always* work, you probably want this one.
12270
12271case $host_os in
12272aix4* | aix5*)
12273 lt_cv_deplibs_check_method=pass_all
12274 ;;
12275
12276beos*)
12277 lt_cv_deplibs_check_method=pass_all
12278 ;;
12279
12280bsdi[45]*)
12281 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12282 lt_cv_file_magic_cmd='/usr/bin/file -L'
12283 lt_cv_file_magic_test_file=/shlib/libc.so
12284 ;;
12285
12286cygwin*)
12287 # func_win32_libid is a shell function defined in ltmain.sh
12288 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12289 lt_cv_file_magic_cmd='func_win32_libid'
12290 ;;
12291
12292mingw* | pw32*)
12293 # Base MSYS/MinGW do not provide the 'file' command needed by
12294 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12295 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12296 lt_cv_file_magic_cmd='$OBJDUMP -f'
12297 ;;
12298
12299darwin* | rhapsody*)
12300 lt_cv_deplibs_check_method=pass_all
12301 ;;
12302
Reid Spencera773bd52006-08-04 18:18:08 +000012303freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012304 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12305 case $host_cpu in
12306 i*86 )
12307 # Not sure whether the presence of OpenBSD here was a mistake.
12308 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012309 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 +000012310 lt_cv_file_magic_cmd=/usr/bin/file
12311 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12312 ;;
12313 esac
12314 else
12315 lt_cv_deplibs_check_method=pass_all
12316 fi
12317 ;;
12318
12319gnu*)
12320 lt_cv_deplibs_check_method=pass_all
12321 ;;
12322
12323hpux10.20* | hpux11*)
12324 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012325 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012326 ia64*)
12327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12328 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12329 ;;
12330 hppa*64*)
12331 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]'
12332 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12333 ;;
12334 *)
12335 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12336 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12337 ;;
12338 esac
12339 ;;
12340
Reid Spencera773bd52006-08-04 18:18:08 +000012341interix3*)
12342 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12344 ;;
12345
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012346irix5* | irix6* | nonstopux*)
12347 case $LD in
12348 *-32|*"-32 ") libmagic=32-bit;;
12349 *-n32|*"-n32 ") libmagic=N32;;
12350 *-64|*"-64 ") libmagic=64-bit;;
12351 *) libmagic=never-match;;
12352 esac
12353 lt_cv_deplibs_check_method=pass_all
12354 ;;
12355
12356# This must be Linux ELF.
12357linux*)
12358 lt_cv_deplibs_check_method=pass_all
12359 ;;
12360
12361netbsd*)
12362 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12364 else
12365 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12366 fi
12367 ;;
12368
12369newos6*)
12370 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12371 lt_cv_file_magic_cmd=/usr/bin/file
12372 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12373 ;;
12374
12375nto-qnx*)
12376 lt_cv_deplibs_check_method=unknown
12377 ;;
12378
12379openbsd*)
12380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12382 else
12383 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12384 fi
12385 ;;
12386
12387osf3* | osf4* | osf5*)
12388 lt_cv_deplibs_check_method=pass_all
12389 ;;
12390
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012391solaris*)
12392 lt_cv_deplibs_check_method=pass_all
12393 ;;
12394
Reid Spencera773bd52006-08-04 18:18:08 +000012395sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012396 case $host_vendor in
12397 motorola)
12398 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]'
12399 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12400 ;;
12401 ncr)
12402 lt_cv_deplibs_check_method=pass_all
12403 ;;
12404 sequent)
12405 lt_cv_file_magic_cmd='/bin/file'
12406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12407 ;;
12408 sni)
12409 lt_cv_file_magic_cmd='/bin/file'
12410 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12411 lt_cv_file_magic_test_file=/lib/libc.so
12412 ;;
12413 siemens)
12414 lt_cv_deplibs_check_method=pass_all
12415 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012416 pc)
12417 lt_cv_deplibs_check_method=pass_all
12418 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419 esac
12420 ;;
12421
Reid Spencera773bd52006-08-04 18:18:08 +000012422sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012423 lt_cv_deplibs_check_method=pass_all
12424 ;;
12425esac
12426
12427fi
Reid Spencera773bd52006-08-04 18:18:08 +000012428{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12429echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012430file_magic_cmd=$lt_cv_file_magic_cmd
12431deplibs_check_method=$lt_cv_deplibs_check_method
12432test -z "$deplibs_check_method" && deplibs_check_method=unknown
12433
12434
12435
12436# If no C compiler was specified, use CC.
12437LTCC=${LTCC-"$CC"}
12438
Reid Spencera773bd52006-08-04 18:18:08 +000012439# If no C compiler flags were specified, use CFLAGS.
12440LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12441
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012442# Allow CC to be a program name with arguments.
12443compiler=$CC
12444
Reid Spencera773bd52006-08-04 18:18:08 +000012445# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012446if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012447 enableval=$enable_libtool_lock;
12448fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012449
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012450test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12451
12452# Some flags need to be propagated to the compiler or linker for good
12453# libtool support.
12454case $host in
12455ia64-*-hpux*)
12456 # Find out which ABI we are using.
12457 echo 'int i;' > conftest.$ac_ext
12458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12459 (eval $ac_compile) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; then
12463 case `/usr/bin/file conftest.$ac_objext` in
12464 *ELF-32*)
12465 HPUX_IA64_MODE="32"
12466 ;;
12467 *ELF-64*)
12468 HPUX_IA64_MODE="64"
12469 ;;
12470 esac
12471 fi
12472 rm -rf conftest*
12473 ;;
12474*-*-irix6*)
12475 # Find out which ABI we are using.
Reid Spencerb6a7aa72007-01-19 17:41:47 +000012476 echo '#line 12476 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12478 (eval $ac_compile) 2>&5
12479 ac_status=$?
12480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481 (exit $ac_status); }; then
12482 if test "$lt_cv_prog_gnu_ld" = yes; then
12483 case `/usr/bin/file conftest.$ac_objext` in
12484 *32-bit*)
12485 LD="${LD-ld} -melf32bsmip"
12486 ;;
12487 *N32*)
12488 LD="${LD-ld} -melf32bmipn32"
12489 ;;
12490 *64-bit*)
12491 LD="${LD-ld} -melf64bmip"
12492 ;;
12493 esac
12494 else
12495 case `/usr/bin/file conftest.$ac_objext` in
12496 *32-bit*)
12497 LD="${LD-ld} -32"
12498 ;;
12499 *N32*)
12500 LD="${LD-ld} -n32"
12501 ;;
12502 *64-bit*)
12503 LD="${LD-ld} -64"
12504 ;;
12505 esac
12506 fi
12507 fi
12508 rm -rf conftest*
12509 ;;
12510
12511x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12512 # Find out which ABI we are using.
12513 echo 'int i;' > conftest.$ac_ext
12514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12515 (eval $ac_compile) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012519 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012520 *32-bit*)
12521 case $host in
12522 x86_64-*linux*)
12523 LD="${LD-ld} -m elf_i386"
12524 ;;
12525 ppc64-*linux*|powerpc64-*linux*)
12526 LD="${LD-ld} -m elf32ppclinux"
12527 ;;
12528 s390x-*linux*)
12529 LD="${LD-ld} -m elf_s390"
12530 ;;
12531 sparc64-*linux*)
12532 LD="${LD-ld} -m elf32_sparc"
12533 ;;
12534 esac
12535 ;;
12536 *64-bit*)
12537 case $host in
12538 x86_64-*linux*)
12539 LD="${LD-ld} -m elf_x86_64"
12540 ;;
12541 ppc*-*linux*|powerpc*-*linux*)
12542 LD="${LD-ld} -m elf64ppc"
12543 ;;
12544 s390*-*linux*)
12545 LD="${LD-ld} -m elf64_s390"
12546 ;;
12547 sparc*-*linux*)
12548 LD="${LD-ld} -m elf64_sparc"
12549 ;;
12550 esac
12551 ;;
12552 esac
12553 fi
12554 rm -rf conftest*
12555 ;;
12556
12557*-*-sco3.2v5*)
12558 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12559 SAVE_CFLAGS="$CFLAGS"
12560 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012561 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12562echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012563if test "${lt_cv_cc_needs_belf+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12565else
12566 ac_ext=c
12567ac_cpp='$CPP $CPPFLAGS'
12568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12570ac_compiler_gnu=$ac_cv_c_compiler_gnu
12571
12572 cat >conftest.$ac_ext <<_ACEOF
12573/* confdefs.h. */
12574_ACEOF
12575cat confdefs.h >>conftest.$ac_ext
12576cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */
12578
Reid Spencera773bd52006-08-04 18:18:08 +000012579int
12580main ()
12581{
12582
12583 ;
12584 return 0;
12585}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012586_ACEOF
12587rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012588if { (ac_try="$ac_link"
12589case "(($ac_try" in
12590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12591 *) ac_try_echo=$ac_try;;
12592esac
12593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12594 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012595 ac_status=$?
12596 grep -v '^ *+' conftest.er1 >conftest.err
12597 rm -f conftest.er1
12598 cat conftest.err >&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12602 { (case "(($ac_try" in
12603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12604 *) ac_try_echo=$ac_try;;
12605esac
12606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12607 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012612 { (case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615esac
12616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 lt_cv_cc_needs_belf=yes
12622else
12623 echo "$as_me: failed program was:" >&5
12624sed 's/^/| /' conftest.$ac_ext >&5
12625
Reid Spencera773bd52006-08-04 18:18:08 +000012626 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012627fi
Reid Spencera773bd52006-08-04 18:18:08 +000012628
12629rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012630 conftest$ac_exeext conftest.$ac_ext
12631 ac_ext=c
12632ac_cpp='$CPP $CPPFLAGS'
12633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12635ac_compiler_gnu=$ac_cv_c_compiler_gnu
12636
12637fi
Reid Spencera773bd52006-08-04 18:18:08 +000012638{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12639echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012640 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12641 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12642 CFLAGS="$SAVE_CFLAGS"
12643 fi
12644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012645sparc*-*solaris*)
12646 # Find out which ABI we are using.
12647 echo 'int i;' > conftest.$ac_ext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>&5
12650 ac_status=$?
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); }; then
12653 case `/usr/bin/file conftest.o` in
12654 *64-bit*)
12655 case $lt_cv_prog_gnu_ld in
12656 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12657 *) LD="${LD-ld} -64" ;;
12658 esac
12659 ;;
12660 esac
12661 fi
12662 rm -rf conftest*
12663 ;;
12664
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012665
12666esac
12667
12668need_locks="$enable_libtool_lock"
12669
12670
Reid Spencer2706f8c2004-09-19 23:53:36 +000012671
12672
12673if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12674 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12675 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012676 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012677ac_cpp='$CXXCPP $CPPFLAGS'
12678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012681{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12682echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012683if test -z "$CXXCPP"; then
12684 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
John Criswell47fdd832003-07-14 16:52:07 +000012687 # Double quotes because CXXCPP needs to be expanded
12688 for CXXCPP in "$CXX -E" "/lib/cpp"
12689 do
12690 ac_preproc_ok=false
12691for ac_cxx_preproc_warn_flag in '' yes
12692do
12693 # Use a header file that comes with gcc, so configuring glibc
12694 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12696 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012697 # On the NeXT, cc -E runs the code through the compiler's parser,
12698 # not just through cpp. "Syntax error" is here to catch this case.
12699 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012700/* confdefs.h. */
12701_ACEOF
12702cat confdefs.h >>conftest.$ac_ext
12703cat >>conftest.$ac_ext <<_ACEOF
12704/* end confdefs.h. */
12705#ifdef __STDC__
12706# include <limits.h>
12707#else
12708# include <assert.h>
12709#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012710 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012711_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012712if { (ac_try="$ac_cpp conftest.$ac_ext"
12713case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716esac
12717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012719 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012720 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null; then
12725 if test -s conftest.err; then
12726 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012727 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012728 else
John Criswell47fdd832003-07-14 16:52:07 +000012729 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012730 fi
John Criswell47fdd832003-07-14 16:52:07 +000012731else
12732 ac_cpp_err=yes
12733fi
12734if test -z "$ac_cpp_err"; then
12735 :
12736else
12737 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012738sed 's/^/| /' conftest.$ac_ext >&5
12739
John Criswell47fdd832003-07-14 16:52:07 +000012740 # Broken: fails on valid input.
12741continue
12742fi
Reid Spencera773bd52006-08-04 18:18:08 +000012743
John Criswell47fdd832003-07-14 16:52:07 +000012744rm -f conftest.err conftest.$ac_ext
12745
Reid Spencera773bd52006-08-04 18:18:08 +000012746 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012747 # can be detected and how.
12748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012749/* confdefs.h. */
12750_ACEOF
12751cat confdefs.h >>conftest.$ac_ext
12752cat >>conftest.$ac_ext <<_ACEOF
12753/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012754#include <ac_nonexistent.h>
12755_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012756if { (ac_try="$ac_cpp conftest.$ac_ext"
12757case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760esac
12761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012763 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012764 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } >/dev/null; then
12769 if test -s conftest.err; then
12770 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012772 else
12773 ac_cpp_err=
12774 fi
12775else
12776 ac_cpp_err=yes
12777fi
12778if test -z "$ac_cpp_err"; then
12779 # Broken: success on invalid input.
12780continue
12781else
12782 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012783sed 's/^/| /' conftest.$ac_ext >&5
12784
John Criswell47fdd832003-07-14 16:52:07 +000012785 # Passes both tests.
12786ac_preproc_ok=:
12787break
12788fi
Reid Spencera773bd52006-08-04 18:18:08 +000012789
John Criswell47fdd832003-07-14 16:52:07 +000012790rm -f conftest.err conftest.$ac_ext
12791
12792done
12793# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12794rm -f conftest.err conftest.$ac_ext
12795if $ac_preproc_ok; then
12796 break
John Criswell7a73b802003-06-30 21:59:07 +000012797fi
12798
John Criswell47fdd832003-07-14 16:52:07 +000012799 done
12800 ac_cv_prog_CXXCPP=$CXXCPP
12801
12802fi
12803 CXXCPP=$ac_cv_prog_CXXCPP
12804else
12805 ac_cv_prog_CXXCPP=$CXXCPP
12806fi
Reid Spencera773bd52006-08-04 18:18:08 +000012807{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12808echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012809ac_preproc_ok=false
12810for ac_cxx_preproc_warn_flag in '' yes
12811do
12812 # Use a header file that comes with gcc, so configuring glibc
12813 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12815 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012816 # On the NeXT, cc -E runs the code through the compiler's parser,
12817 # not just through cpp. "Syntax error" is here to catch this case.
12818 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012819/* confdefs.h. */
12820_ACEOF
12821cat confdefs.h >>conftest.$ac_ext
12822cat >>conftest.$ac_ext <<_ACEOF
12823/* end confdefs.h. */
12824#ifdef __STDC__
12825# include <limits.h>
12826#else
12827# include <assert.h>
12828#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012829 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012830_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012831if { (ac_try="$ac_cpp conftest.$ac_ext"
12832case "(($ac_try" in
12833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12834 *) ac_try_echo=$ac_try;;
12835esac
12836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012838 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012839 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012840 rm -f conftest.er1
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } >/dev/null; then
12844 if test -s conftest.err; then
12845 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012846 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012847 else
12848 ac_cpp_err=
12849 fi
12850else
12851 ac_cpp_err=yes
12852fi
12853if test -z "$ac_cpp_err"; then
12854 :
12855else
12856 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012857sed 's/^/| /' conftest.$ac_ext >&5
12858
John Criswell47fdd832003-07-14 16:52:07 +000012859 # Broken: fails on valid input.
12860continue
12861fi
Reid Spencera773bd52006-08-04 18:18:08 +000012862
John Criswell47fdd832003-07-14 16:52:07 +000012863rm -f conftest.err conftest.$ac_ext
12864
Reid Spencera773bd52006-08-04 18:18:08 +000012865 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012866 # can be detected and how.
12867 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012868/* confdefs.h. */
12869_ACEOF
12870cat confdefs.h >>conftest.$ac_ext
12871cat >>conftest.$ac_ext <<_ACEOF
12872/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012873#include <ac_nonexistent.h>
12874_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012875if { (ac_try="$ac_cpp conftest.$ac_ext"
12876case "(($ac_try" in
12877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12878 *) ac_try_echo=$ac_try;;
12879esac
12880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012882 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012883 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012884 rm -f conftest.er1
12885 cat conftest.err >&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } >/dev/null; then
12888 if test -s conftest.err; then
12889 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012890 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012891 else
12892 ac_cpp_err=
12893 fi
12894else
12895 ac_cpp_err=yes
12896fi
12897if test -z "$ac_cpp_err"; then
12898 # Broken: success on invalid input.
12899continue
12900else
12901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012902sed 's/^/| /' conftest.$ac_ext >&5
12903
John Criswell47fdd832003-07-14 16:52:07 +000012904 # Passes both tests.
12905ac_preproc_ok=:
12906break
12907fi
Reid Spencera773bd52006-08-04 18:18:08 +000012908
John Criswell47fdd832003-07-14 16:52:07 +000012909rm -f conftest.err conftest.$ac_ext
12910
12911done
12912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12913rm -f conftest.err conftest.$ac_ext
12914if $ac_preproc_ok; then
12915 :
12916else
John Criswell0c38eaf2003-09-10 15:17:25 +000012917 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12918See \`config.log' for more details." >&5
12919echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12920See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012921 { (exit 1); exit 1; }; }
12922fi
12923
Reid Spencera773bd52006-08-04 18:18:08 +000012924ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012925ac_cpp='$CXXCPP $CPPFLAGS'
12926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12929
Reid Spencer2706f8c2004-09-19 23:53:36 +000012930fi
12931
John Criswell47fdd832003-07-14 16:52:07 +000012932
12933ac_ext=f
12934ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12935ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12936ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12937if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012938 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 +000012939 do
12940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12941set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012942{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012944if test "${ac_cv_prog_F77+set}" = set; then
12945 echo $ECHO_N "(cached) $ECHO_C" >&6
12946else
12947 if test -n "$F77"; then
12948 ac_cv_prog_F77="$F77" # Let the user override the test.
12949else
12950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12951for as_dir in $PATH
12952do
12953 IFS=$as_save_IFS
12954 test -z "$as_dir" && as_dir=.
12955 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012956 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 +000012957 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12959 break 2
12960 fi
12961done
12962done
Reid Spencera773bd52006-08-04 18:18:08 +000012963IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012964
12965fi
12966fi
12967F77=$ac_cv_prog_F77
12968if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012969 { echo "$as_me:$LINENO: result: $F77" >&5
12970echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012971else
Reid Spencera773bd52006-08-04 18:18:08 +000012972 { echo "$as_me:$LINENO: result: no" >&5
12973echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012974fi
12975
Reid Spencera773bd52006-08-04 18:18:08 +000012976
John Criswell47fdd832003-07-14 16:52:07 +000012977 test -n "$F77" && break
12978 done
12979fi
12980if test -z "$F77"; then
12981 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012982 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 +000012983do
12984 # Extract the first word of "$ac_prog", so it can be a program name with args.
12985set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012988if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12989 echo $ECHO_N "(cached) $ECHO_C" >&6
12990else
12991 if test -n "$ac_ct_F77"; then
12992 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12993else
12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995for as_dir in $PATH
12996do
12997 IFS=$as_save_IFS
12998 test -z "$as_dir" && as_dir=.
12999 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013000 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 +000013001 ac_cv_prog_ac_ct_F77="$ac_prog"
13002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13003 break 2
13004 fi
13005done
13006done
Reid Spencera773bd52006-08-04 18:18:08 +000013007IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013008
13009fi
13010fi
13011ac_ct_F77=$ac_cv_prog_ac_ct_F77
13012if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013013 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13014echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013015else
Reid Spencera773bd52006-08-04 18:18:08 +000013016 { echo "$as_me:$LINENO: result: no" >&5
13017echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013018fi
13019
Reid Spencera773bd52006-08-04 18:18:08 +000013020
John Criswell47fdd832003-07-14 16:52:07 +000013021 test -n "$ac_ct_F77" && break
13022done
13023
Reid Spencera773bd52006-08-04 18:18:08 +000013024 if test "x$ac_ct_F77" = x; then
13025 F77=""
13026 else
13027 case $cross_compiling:$ac_tool_warned in
13028yes:)
13029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13030whose name does not start with the host triplet. If you think this
13031configuration is useful to you, please write to autoconf@gnu.org." >&5
13032echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13033whose name does not start with the host triplet. If you think this
13034configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13035ac_tool_warned=yes ;;
13036esac
13037 F77=$ac_ct_F77
13038 fi
John Criswell47fdd832003-07-14 16:52:07 +000013039fi
13040
13041
13042# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013043echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013044ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013045{ (ac_try="$ac_compiler --version >&5"
13046case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049esac
13050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013052 ac_status=$?
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013055{ (ac_try="$ac_compiler -v >&5"
13056case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13059esac
13060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013062 ac_status=$?
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013065{ (ac_try="$ac_compiler -V >&5"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013072 ac_status=$?
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013075rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013076
13077# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013078# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013079ac_save_ext=$ac_ext
13080ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013081{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13082echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013083if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13085else
13086 cat >conftest.$ac_ext <<_ACEOF
13087 program main
13088#ifndef __GNUC__
13089 choke me
13090#endif
13091
13092 end
13093_ACEOF
13094rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013095if { (ac_try="$ac_compile"
13096case "(($ac_try" in
13097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13098 *) ac_try_echo=$ac_try;;
13099esac
13100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13101 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013108 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13109 { (case "(($ac_try" in
13110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111 *) ac_try_echo=$ac_try;;
13112esac
13113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13122esac
13123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013125 ac_status=$?
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; }; then
13128 ac_compiler_gnu=yes
13129else
13130 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013131sed 's/^/| /' conftest.$ac_ext >&5
13132
Reid Spencera773bd52006-08-04 18:18:08 +000013133 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013134fi
Reid Spencera773bd52006-08-04 18:18:08 +000013135
13136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013137ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13138
13139fi
Reid Spencera773bd52006-08-04 18:18:08 +000013140{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13141echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013142ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013143ac_test_FFLAGS=${FFLAGS+set}
13144ac_save_FFLAGS=$FFLAGS
13145FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013146{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13147echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013148if test "${ac_cv_prog_f77_g+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150else
13151 FFLAGS=-g
13152cat >conftest.$ac_ext <<_ACEOF
13153 program main
13154
13155 end
13156_ACEOF
13157rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013158if { (ac_try="$ac_compile"
13159case "(($ac_try" in
13160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161 *) ac_try_echo=$ac_try;;
13162esac
13163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13164 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013171 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13172 { (case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13177 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013182 { (case "(($ac_try" in
13183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184 *) ac_try_echo=$ac_try;;
13185esac
13186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_prog_f77_g=yes
13192else
13193 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013194sed 's/^/| /' conftest.$ac_ext >&5
13195
Reid Spencera773bd52006-08-04 18:18:08 +000013196 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013197fi
Reid Spencera773bd52006-08-04 18:18:08 +000013198
13199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013200
13201fi
Reid Spencera773bd52006-08-04 18:18:08 +000013202{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13203echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013204if test "$ac_test_FFLAGS" = set; then
13205 FFLAGS=$ac_save_FFLAGS
13206elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013207 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013208 FFLAGS="-g -O2"
13209 else
13210 FFLAGS="-g"
13211 fi
13212else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013213 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013214 FFLAGS="-O2"
13215 else
13216 FFLAGS=
13217 fi
13218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013219
13220G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013221ac_ext=c
13222ac_cpp='$CPP $CPPFLAGS'
13223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225ac_compiler_gnu=$ac_cv_c_compiler_gnu
13226
13227
13228
13229# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13230
13231# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013232{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13233echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013234if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13236else
13237 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013238 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013239
13240 case $build_os in
13241 msdosdjgpp*)
13242 # On DJGPP, this test can blow up pretty badly due to problems in libc
13243 # (any single argument exceeding 2000 bytes causes a buffer overrun
13244 # during glob expansion). Even if it were fixed, the result of this
13245 # check would be larger than it should be.
13246 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13247 ;;
13248
13249 gnu*)
13250 # Under GNU Hurd, this test is not required because there is
13251 # no limit to the length of command line arguments.
13252 # Libtool will interpret -1 as no limit whatsoever
13253 lt_cv_sys_max_cmd_len=-1;
13254 ;;
13255
13256 cygwin* | mingw*)
13257 # On Win9x/ME, this test blows up -- it succeeds, but takes
13258 # about 5 minutes as the teststring grows exponentially.
13259 # Worse, since 9x/ME are not pre-emptively multitasking,
13260 # you end up with a "frozen" computer, even though with patience
13261 # the test eventually succeeds (with a max line length of 256k).
13262 # Instead, let's just punt: use the minimum linelength reported by
13263 # all of the supported platforms: 8192 (on NT/2K/XP).
13264 lt_cv_sys_max_cmd_len=8192;
13265 ;;
13266
Reid Spencer2706f8c2004-09-19 23:53:36 +000013267 amigaos*)
13268 # On AmigaOS with pdksh, this test takes hours, literally.
13269 # So we just punt and use a minimum line length of 8192.
13270 lt_cv_sys_max_cmd_len=8192;
13271 ;;
13272
Reid Spencera773bd52006-08-04 18:18:08 +000013273 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013274 # This has been around since 386BSD, at least. Likely further.
13275 if test -x /sbin/sysctl; then
13276 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13277 elif test -x /usr/sbin/sysctl; then
13278 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13279 else
Reid Spencera773bd52006-08-04 18:18:08 +000013280 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013281 fi
13282 # And add a safety zone
13283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013285 ;;
13286
Reid Spencera773bd52006-08-04 18:18:08 +000013287 interix*)
13288 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13289 lt_cv_sys_max_cmd_len=196608
13290 ;;
13291
13292 osf*)
13293 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13294 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13295 # nice to cause kernel panics so lets avoid the loop below.
13296 # First set a reasonable default.
13297 lt_cv_sys_max_cmd_len=16384
13298 #
13299 if test -x /sbin/sysconfig; then
13300 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13301 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13302 esac
13303 fi
13304 ;;
13305 sco3.2v5*)
13306 lt_cv_sys_max_cmd_len=102400
13307 ;;
13308 sysv5* | sco5v6* | sysv4.2uw2*)
13309 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13310 if test -n "$kargmax"; then
13311 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13312 else
13313 lt_cv_sys_max_cmd_len=32768
13314 fi
13315 ;;
13316 *)
John Criswell47fdd832003-07-14 16:52:07 +000013317 # If test is not a shell built-in, we'll probably end up computing a
13318 # maximum length that is only half of the actual maximum length, but
13319 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13321 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13322 = "XX$teststring") >/dev/null 2>&1 &&
13323 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013324 lt_cv_sys_max_cmd_len=$new_result &&
13325 test $i != 17 # 1/2 MB should be enough
13326 do
13327 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013328 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013329 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013330 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013331 # Add a significant safety factor because C++ compilers can tack on massive
13332 # amounts of additional arguments before passing them to the linker.
13333 # It appears as though 1/2 is a usable value.
13334 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13335 ;;
13336 esac
13337
13338fi
13339
13340if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013341 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13342echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013343else
Reid Spencera773bd52006-08-04 18:18:08 +000013344 { echo "$as_me:$LINENO: result: none" >&5
13345echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013346fi
13347
13348
13349
13350
13351# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013352{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13353echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013354if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356else
13357
13358# These are sane defaults that work on at least a few old systems.
13359# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13360
13361# Character class describing NM global symbol codes.
13362symcode='[BCDEGRST]'
13363
13364# Regexp to match symbols that can be accessed directly from C.
13365sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13366
John Criswell47fdd832003-07-14 16:52:07 +000013367# Transform an extracted symbol line into a proper C declaration
13368lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13369
13370# Transform an extracted symbol line into symbol name and symbol address
13371lt_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'"
13372
13373# Define system-specific variables.
13374case $host_os in
13375aix*)
13376 symcode='[BCDT]'
13377 ;;
13378cygwin* | mingw* | pw32*)
13379 symcode='[ABCDGISTW]'
13380 ;;
13381hpux*) # Its linker distinguishes data from code symbols
13382 if test "$host_cpu" = ia64; then
13383 symcode='[ABCDEGRST]'
13384 fi
13385 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13386 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'"
13387 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013388linux*)
13389 if test "$host_cpu" = ia64; then
13390 symcode='[ABCDGIRSTW]'
13391 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13392 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'"
13393 fi
13394 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013395irix* | nonstopux*)
13396 symcode='[BCDEGRST]'
13397 ;;
13398osf*)
13399 symcode='[BCDEGQRST]'
13400 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013401solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013402 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013403 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013404sco3.2v5*)
13405 symcode='[DT]'
13406 ;;
13407sysv4.2uw2*)
13408 symcode='[DT]'
13409 ;;
13410sysv5* | sco5v6* | unixware* | OpenUNIX*)
13411 symcode='[ABDT]'
13412 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013413sysv4)
13414 symcode='[DFNSTU]'
13415 ;;
13416esac
13417
13418# Handle CRLF in mingw tool chain
13419opt_cr=
13420case $build_os in
13421mingw*)
13422 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13423 ;;
13424esac
13425
13426# If we're using GNU nm, then use its standard symbol codes.
13427case `$NM -V 2>&1` in
13428*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013429 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013430esac
13431
13432# Try without a prefix undercore, then with it.
13433for ac_symprfx in "" "_"; do
13434
Reid Spencera773bd52006-08-04 18:18:08 +000013435 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13436 symxfrm="\\1 $ac_symprfx\\2 \\2"
13437
John Criswell47fdd832003-07-14 16:52:07 +000013438 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013439 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 +000013440
13441 # Check to see that the pipe works correctly.
13442 pipe_works=no
13443
13444 rm -f conftest*
13445 cat > conftest.$ac_ext <<EOF
13446#ifdef __cplusplus
13447extern "C" {
13448#endif
13449char nm_test_var;
13450void nm_test_func(){}
13451#ifdef __cplusplus
13452}
13453#endif
13454int main(){nm_test_var='a';nm_test_func();return(0);}
13455EOF
13456
13457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13458 (eval $ac_compile) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; then
13462 # Now try to grab the symbols.
13463 nlist=conftest.nm
13464 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13466 ac_status=$?
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && test -s "$nlist"; then
13469 # Try sorting and uniquifying the output.
13470 if sort "$nlist" | uniq > "$nlist"T; then
13471 mv -f "$nlist"T "$nlist"
13472 else
13473 rm -f "$nlist"T
13474 fi
13475
13476 # Make sure that we snagged all the symbols we need.
13477 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13478 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13479 cat <<EOF > conftest.$ac_ext
13480#ifdef __cplusplus
13481extern "C" {
13482#endif
13483
13484EOF
13485 # Now generate the symbol file.
13486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13487
13488 cat <<EOF >> conftest.$ac_ext
13489#if defined (__STDC__) && __STDC__
13490# define lt_ptr_t void *
13491#else
13492# define lt_ptr_t char *
13493# define const
13494#endif
13495
13496/* The mapping between symbol names and symbols. */
13497const struct {
13498 const char *name;
13499 lt_ptr_t address;
13500}
13501lt_preloaded_symbols[] =
13502{
13503EOF
13504 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13505 cat <<\EOF >> conftest.$ac_ext
13506 {0, (lt_ptr_t) 0}
13507};
13508
13509#ifdef __cplusplus
13510}
13511#endif
13512EOF
13513 # Now try linking the two files.
13514 mv conftest.$ac_objext conftstm.$ac_objext
13515 lt_save_LIBS="$LIBS"
13516 lt_save_CFLAGS="$CFLAGS"
13517 LIBS="conftstm.$ac_objext"
13518 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13520 (eval $ac_link) 2>&5
13521 ac_status=$?
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13524 pipe_works=yes
13525 fi
13526 LIBS="$lt_save_LIBS"
13527 CFLAGS="$lt_save_CFLAGS"
13528 else
13529 echo "cannot find nm_test_func in $nlist" >&5
13530 fi
13531 else
13532 echo "cannot find nm_test_var in $nlist" >&5
13533 fi
13534 else
13535 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13536 fi
13537 else
13538 echo "$progname: failed program was:" >&5
13539 cat conftest.$ac_ext >&5
13540 fi
13541 rm -f conftest* conftst*
13542
13543 # Do not use the global_symbol_pipe unless it works.
13544 if test "$pipe_works" = yes; then
13545 break
13546 else
13547 lt_cv_sys_global_symbol_pipe=
13548 fi
13549done
13550
13551fi
13552
13553if test -z "$lt_cv_sys_global_symbol_pipe"; then
13554 lt_cv_sys_global_symbol_to_cdecl=
13555fi
13556if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013557 { echo "$as_me:$LINENO: result: failed" >&5
13558echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013559else
Reid Spencera773bd52006-08-04 18:18:08 +000013560 { echo "$as_me:$LINENO: result: ok" >&5
13561echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013562fi
13563
Reid Spencera773bd52006-08-04 18:18:08 +000013564{ echo "$as_me:$LINENO: checking for objdir" >&5
13565echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013566if test "${lt_cv_objdir+set}" = set; then
13567 echo $ECHO_N "(cached) $ECHO_C" >&6
13568else
13569 rm -f .libs 2>/dev/null
13570mkdir .libs 2>/dev/null
13571if test -d .libs; then
13572 lt_cv_objdir=.libs
13573else
13574 # MS-DOS does not allow filenames that begin with a dot.
13575 lt_cv_objdir=_libs
13576fi
13577rmdir .libs 2>/dev/null
13578fi
Reid Spencera773bd52006-08-04 18:18:08 +000013579{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13580echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013581objdir=$lt_cv_objdir
13582
13583
13584
13585
13586
13587case $host_os in
13588aix3*)
13589 # AIX sometimes has problems with the GCC collect2 program. For some
13590 # reason, if we set the COLLECT_NAMES environment variable, the problems
13591 # vanish in a puff of smoke.
13592 if test "X${COLLECT_NAMES+set}" != Xset; then
13593 COLLECT_NAMES=
13594 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013595 fi
13596 ;;
13597esac
13598
John Criswell47fdd832003-07-14 16:52:07 +000013599# Sed substitution that helps us do robust quoting. It backslashifies
13600# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013601Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013602sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13603
13604# Same as above, but do not quote variable references.
13605double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13606
13607# Sed substitution to delay expansion of an escaped shell variable in a
13608# double_quote_subst'ed string.
13609delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13610
13611# Sed substitution to avoid accidental globbing in evaled expressions
13612no_glob_subst='s/\*/\\\*/g'
13613
13614# Constants:
13615rm="rm -f"
13616
13617# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013618default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013619can_build_shared=yes
13620
Reid Spencera773bd52006-08-04 18:18:08 +000013621# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013622# which needs '.lib').
13623libext=a
13624ltmain="$ac_aux_dir/ltmain.sh"
13625ofile="$default_ofile"
13626with_gnu_ld="$lt_cv_prog_gnu_ld"
13627
13628if test -n "$ac_tool_prefix"; then
13629 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13630set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013633if test "${ac_cv_prog_AR+set}" = set; then
13634 echo $ECHO_N "(cached) $ECHO_C" >&6
13635else
13636 if test -n "$AR"; then
13637 ac_cv_prog_AR="$AR" # Let the user override the test.
13638else
13639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13640for as_dir in $PATH
13641do
13642 IFS=$as_save_IFS
13643 test -z "$as_dir" && as_dir=.
13644 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013645 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 +000013646 ac_cv_prog_AR="${ac_tool_prefix}ar"
13647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13648 break 2
13649 fi
13650done
13651done
Reid Spencera773bd52006-08-04 18:18:08 +000013652IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013653
13654fi
13655fi
13656AR=$ac_cv_prog_AR
13657if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013658 { echo "$as_me:$LINENO: result: $AR" >&5
13659echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013660else
Reid Spencera773bd52006-08-04 18:18:08 +000013661 { echo "$as_me:$LINENO: result: no" >&5
13662echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013663fi
13664
Reid Spencera773bd52006-08-04 18:18:08 +000013665
John Criswell47fdd832003-07-14 16:52:07 +000013666fi
13667if test -z "$ac_cv_prog_AR"; then
13668 ac_ct_AR=$AR
13669 # Extract the first word of "ar", so it can be a program name with args.
13670set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013671{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013673if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13674 echo $ECHO_N "(cached) $ECHO_C" >&6
13675else
13676 if test -n "$ac_ct_AR"; then
13677 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13678else
13679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680for as_dir in $PATH
13681do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013685 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 +000013686 ac_cv_prog_ac_ct_AR="ar"
13687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13688 break 2
13689 fi
13690done
13691done
Reid Spencera773bd52006-08-04 18:18:08 +000013692IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013693
John Criswell47fdd832003-07-14 16:52:07 +000013694fi
13695fi
13696ac_ct_AR=$ac_cv_prog_ac_ct_AR
13697if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013698 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13699echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013700else
Reid Spencera773bd52006-08-04 18:18:08 +000013701 { echo "$as_me:$LINENO: result: no" >&5
13702echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013703fi
13704
Reid Spencera773bd52006-08-04 18:18:08 +000013705 if test "x$ac_ct_AR" = x; then
13706 AR="false"
13707 else
13708 case $cross_compiling:$ac_tool_warned in
13709yes:)
13710{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13711whose name does not start with the host triplet. If you think this
13712configuration is useful to you, please write to autoconf@gnu.org." >&5
13713echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13714whose name does not start with the host triplet. If you think this
13715configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13716ac_tool_warned=yes ;;
13717esac
13718 AR=$ac_ct_AR
13719 fi
John Criswell47fdd832003-07-14 16:52:07 +000013720else
13721 AR="$ac_cv_prog_AR"
13722fi
13723
John Criswell7a73b802003-06-30 21:59:07 +000013724if test -n "$ac_tool_prefix"; then
13725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13726set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013727{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013729if test "${ac_cv_prog_RANLIB+set}" = set; then
13730 echo $ECHO_N "(cached) $ECHO_C" >&6
13731else
13732 if test -n "$RANLIB"; then
13733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13734else
13735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13736for as_dir in $PATH
13737do
13738 IFS=$as_save_IFS
13739 test -z "$as_dir" && as_dir=.
13740 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013741 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 +000013742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13744 break 2
13745 fi
13746done
13747done
Reid Spencera773bd52006-08-04 18:18:08 +000013748IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013749
13750fi
13751fi
13752RANLIB=$ac_cv_prog_RANLIB
13753if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013754 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13755echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013756else
Reid Spencera773bd52006-08-04 18:18:08 +000013757 { echo "$as_me:$LINENO: result: no" >&5
13758echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013759fi
13760
Reid Spencera773bd52006-08-04 18:18:08 +000013761
John Criswell7a73b802003-06-30 21:59:07 +000013762fi
13763if test -z "$ac_cv_prog_RANLIB"; then
13764 ac_ct_RANLIB=$RANLIB
13765 # Extract the first word of "ranlib", so it can be a program name with args.
13766set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013767{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013769if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771else
13772 if test -n "$ac_ct_RANLIB"; then
13773 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13774else
13775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776for as_dir in $PATH
13777do
13778 IFS=$as_save_IFS
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013781 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 +000013782 ac_cv_prog_ac_ct_RANLIB="ranlib"
13783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13784 break 2
13785 fi
13786done
13787done
Reid Spencera773bd52006-08-04 18:18:08 +000013788IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013789
John Criswell7a73b802003-06-30 21:59:07 +000013790fi
13791fi
13792ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13793if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013794 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13795echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013796else
Reid Spencera773bd52006-08-04 18:18:08 +000013797 { echo "$as_me:$LINENO: result: no" >&5
13798echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013799fi
13800
Reid Spencera773bd52006-08-04 18:18:08 +000013801 if test "x$ac_ct_RANLIB" = x; then
13802 RANLIB=":"
13803 else
13804 case $cross_compiling:$ac_tool_warned in
13805yes:)
13806{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13807whose name does not start with the host triplet. If you think this
13808configuration is useful to you, please write to autoconf@gnu.org." >&5
13809echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13810whose name does not start with the host triplet. If you think this
13811configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13812ac_tool_warned=yes ;;
13813esac
13814 RANLIB=$ac_ct_RANLIB
13815 fi
John Criswell7a73b802003-06-30 21:59:07 +000013816else
13817 RANLIB="$ac_cv_prog_RANLIB"
13818fi
13819
13820if test -n "$ac_tool_prefix"; then
13821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13822set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013823{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013825if test "${ac_cv_prog_STRIP+set}" = set; then
13826 echo $ECHO_N "(cached) $ECHO_C" >&6
13827else
13828 if test -n "$STRIP"; then
13829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13830else
13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013837 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 +000013838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 break 2
13841 fi
13842done
13843done
Reid Spencera773bd52006-08-04 18:18:08 +000013844IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013845
13846fi
13847fi
13848STRIP=$ac_cv_prog_STRIP
13849if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013850 { echo "$as_me:$LINENO: result: $STRIP" >&5
13851echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013852else
Reid Spencera773bd52006-08-04 18:18:08 +000013853 { echo "$as_me:$LINENO: result: no" >&5
13854echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013855fi
13856
Reid Spencera773bd52006-08-04 18:18:08 +000013857
John Criswell7a73b802003-06-30 21:59:07 +000013858fi
13859if test -z "$ac_cv_prog_STRIP"; then
13860 ac_ct_STRIP=$STRIP
13861 # Extract the first word of "strip", so it can be a program name with args.
13862set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013863{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13864echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013865if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13867else
13868 if test -n "$ac_ct_STRIP"; then
13869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13870else
13871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13872for as_dir in $PATH
13873do
13874 IFS=$as_save_IFS
13875 test -z "$as_dir" && as_dir=.
13876 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013877 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 +000013878 ac_cv_prog_ac_ct_STRIP="strip"
13879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13880 break 2
13881 fi
13882done
13883done
Reid Spencera773bd52006-08-04 18:18:08 +000013884IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013885
John Criswell7a73b802003-06-30 21:59:07 +000013886fi
13887fi
13888ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13889if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013890 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13891echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013892else
Reid Spencera773bd52006-08-04 18:18:08 +000013893 { echo "$as_me:$LINENO: result: no" >&5
13894echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013895fi
13896
Reid Spencera773bd52006-08-04 18:18:08 +000013897 if test "x$ac_ct_STRIP" = x; then
13898 STRIP=":"
13899 else
13900 case $cross_compiling:$ac_tool_warned in
13901yes:)
13902{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13903whose name does not start with the host triplet. If you think this
13904configuration is useful to you, please write to autoconf@gnu.org." >&5
13905echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13906whose name does not start with the host triplet. If you think this
13907configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13908ac_tool_warned=yes ;;
13909esac
13910 STRIP=$ac_ct_STRIP
13911 fi
John Criswell7a73b802003-06-30 21:59:07 +000013912else
13913 STRIP="$ac_cv_prog_STRIP"
13914fi
13915
13916
John Criswell7a73b802003-06-30 21:59:07 +000013917old_CC="$CC"
13918old_CFLAGS="$CFLAGS"
13919
13920# Set sane defaults for various variables
13921test -z "$AR" && AR=ar
13922test -z "$AR_FLAGS" && AR_FLAGS=cru
13923test -z "$AS" && AS=as
13924test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013925test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013926test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013927test -z "$DLLTOOL" && DLLTOOL=dlltool
13928test -z "$LD" && LD=ld
13929test -z "$LN_S" && LN_S="ln -s"
13930test -z "$MAGIC_CMD" && MAGIC_CMD=file
13931test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013932test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013933test -z "$OBJDUMP" && OBJDUMP=objdump
13934test -z "$RANLIB" && RANLIB=:
13935test -z "$STRIP" && STRIP=:
13936test -z "$ac_objext" && ac_objext=o
13937
John Criswell7a73b802003-06-30 21:59:07 +000013938# Determine commands to create old-style static archives.
13939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13940old_postinstall_cmds='chmod 644 $oldlib'
13941old_postuninstall_cmds=
13942
13943if test -n "$RANLIB"; then
13944 case $host_os in
13945 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013947 ;;
13948 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013950 ;;
13951 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013953fi
13954
Reid Spencera773bd52006-08-04 18:18:08 +000013955for cc_temp in $compiler""; do
13956 case $cc_temp in
13957 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13958 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13959 \-*) ;;
13960 *) break;;
13961 esac
13962done
13963cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13964
Reid Spencer2706f8c2004-09-19 23:53:36 +000013965
John Criswell47fdd832003-07-14 16:52:07 +000013966# Only perform the check for file, if the check method requires it
13967case $deplibs_check_method in
13968file_magic*)
13969 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013970 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13971echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013972if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13973 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013974else
John Criswell47fdd832003-07-14 16:52:07 +000013975 case $MAGIC_CMD in
13976[\\/*] | ?:[\\/]*)
13977 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13978 ;;
13979*)
13980 lt_save_MAGIC_CMD="$MAGIC_CMD"
13981 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13982 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13983 for ac_dir in $ac_dummy; do
13984 IFS="$lt_save_ifs"
13985 test -z "$ac_dir" && ac_dir=.
13986 if test -f $ac_dir/${ac_tool_prefix}file; then
13987 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13988 if test -n "$file_magic_test_file"; then
13989 case $deplibs_check_method in
13990 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013991 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013992 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13993 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13994 $EGREP "$file_magic_regex" > /dev/null; then
13995 :
13996 else
13997 cat <<EOF 1>&2
13998
13999*** Warning: the command libtool uses to detect shared libraries,
14000*** $file_magic_cmd, produces output that libtool cannot recognize.
14001*** The result is that libtool may fail to recognize shared libraries
14002*** as such. This will affect the creation of libtool libraries that
14003*** depend on shared libraries, but programs linked with such libtool
14004*** libraries will work regardless of this problem. Nevertheless, you
14005*** may want to report the problem to your system manager and/or to
14006*** bug-libtool@gnu.org
14007
14008EOF
14009 fi ;;
14010 esac
14011 fi
14012 break
14013 fi
14014 done
14015 IFS="$lt_save_ifs"
14016 MAGIC_CMD="$lt_save_MAGIC_CMD"
14017 ;;
14018esac
John Criswell7a73b802003-06-30 21:59:07 +000014019fi
John Criswell7a73b802003-06-30 21:59:07 +000014020
John Criswell47fdd832003-07-14 16:52:07 +000014021MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14022if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014023 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14024echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014025else
Reid Spencera773bd52006-08-04 18:18:08 +000014026 { echo "$as_me:$LINENO: result: no" >&5
14027echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014028fi
John Criswell7a73b802003-06-30 21:59:07 +000014029
John Criswell47fdd832003-07-14 16:52:07 +000014030if test -z "$lt_cv_path_MAGIC_CMD"; then
14031 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014032 { echo "$as_me:$LINENO: checking for file" >&5
14033echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014034if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036else
14037 case $MAGIC_CMD in
14038[\\/*] | ?:[\\/]*)
14039 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14040 ;;
14041*)
14042 lt_save_MAGIC_CMD="$MAGIC_CMD"
14043 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14044 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14045 for ac_dir in $ac_dummy; do
14046 IFS="$lt_save_ifs"
14047 test -z "$ac_dir" && ac_dir=.
14048 if test -f $ac_dir/file; then
14049 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14050 if test -n "$file_magic_test_file"; then
14051 case $deplibs_check_method in
14052 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014053 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014054 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14055 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14056 $EGREP "$file_magic_regex" > /dev/null; then
14057 :
14058 else
14059 cat <<EOF 1>&2
14060
14061*** Warning: the command libtool uses to detect shared libraries,
14062*** $file_magic_cmd, produces output that libtool cannot recognize.
14063*** The result is that libtool may fail to recognize shared libraries
14064*** as such. This will affect the creation of libtool libraries that
14065*** depend on shared libraries, but programs linked with such libtool
14066*** libraries will work regardless of this problem. Nevertheless, you
14067*** may want to report the problem to your system manager and/or to
14068*** bug-libtool@gnu.org
14069
14070EOF
14071 fi ;;
14072 esac
14073 fi
14074 break
14075 fi
14076 done
14077 IFS="$lt_save_ifs"
14078 MAGIC_CMD="$lt_save_MAGIC_CMD"
14079 ;;
14080esac
14081fi
14082
14083MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14084if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014085 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14086echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014087else
Reid Spencera773bd52006-08-04 18:18:08 +000014088 { echo "$as_me:$LINENO: result: no" >&5
14089echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014090fi
14091
14092 else
14093 MAGIC_CMD=:
14094 fi
14095fi
14096
14097 fi
14098 ;;
14099esac
14100
Reid Spencer17795972004-11-18 09:47:37 +000014101enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014102enable_win32_dll=no
14103
Reid Spencera773bd52006-08-04 18:18:08 +000014104# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014105if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014106 enableval=$enable_libtool_lock;
14107fi
John Criswell47fdd832003-07-14 16:52:07 +000014108
John Criswell47fdd832003-07-14 16:52:07 +000014109test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14110
John Criswell7a73b802003-06-30 21:59:07 +000014111
Reid Spencera773bd52006-08-04 18:18:08 +000014112# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014113if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014114 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014115else
14116 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014117fi
14118
John Criswell7a73b802003-06-30 21:59:07 +000014119test -z "$pic_mode" && pic_mode=default
14120
John Criswell47fdd832003-07-14 16:52:07 +000014121# Use C for the default configuration in the libtool script
14122tagname=
14123lt_save_CC="$CC"
14124ac_ext=c
14125ac_cpp='$CPP $CPPFLAGS'
14126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14128ac_compiler_gnu=$ac_cv_c_compiler_gnu
14129
14130
14131# Source file extension for C test sources.
14132ac_ext=c
14133
14134# Object file extension for compiled C test sources.
14135objext=o
14136objext=$objext
14137
14138# Code to be used in simple compile tests
14139lt_simple_compile_test_code="int some_variable = 0;\n"
14140
14141# Code to be used in simple link tests
14142lt_simple_link_test_code='int main(){return(0);}\n'
14143
14144
14145# If no C compiler was specified, use CC.
14146LTCC=${LTCC-"$CC"}
14147
Reid Spencera773bd52006-08-04 18:18:08 +000014148# If no C compiler flags were specified, use CFLAGS.
14149LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14150
John Criswell47fdd832003-07-14 16:52:07 +000014151# Allow CC to be a program name with arguments.
14152compiler=$CC
14153
14154
Reid Spencera773bd52006-08-04 18:18:08 +000014155# save warnings/boilerplate of simple test code
14156ac_outfile=conftest.$ac_objext
14157printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14158eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14159_lt_compiler_boilerplate=`cat conftest.err`
14160$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014161
Reid Spencera773bd52006-08-04 18:18:08 +000014162ac_outfile=conftest.$ac_objext
14163printf "$lt_simple_link_test_code" >conftest.$ac_ext
14164eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14165_lt_linker_boilerplate=`cat conftest.err`
14166$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014167
14168
John Criswell47fdd832003-07-14 16:52:07 +000014169
14170lt_prog_compiler_no_builtin_flag=
14171
14172if test "$GCC" = yes; then
14173 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14174
Reid Spencer2706f8c2004-09-19 23:53:36 +000014175
Reid Spencera773bd52006-08-04 18:18:08 +000014176{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14177echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014178if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14180else
14181 lt_cv_prog_compiler_rtti_exceptions=no
14182 ac_outfile=conftest.$ac_objext
14183 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14184 lt_compiler_flag="-fno-rtti -fno-exceptions"
14185 # Insert the option either (1) after the last *FLAGS variable, or
14186 # (2) before a word containing "conftest.", or (3) at the end.
14187 # Note that $ac_compile itself does not contain backslashes and begins
14188 # with a dollar sign (not a hyphen), so the echo should work correctly.
14189 # The option is referenced via a variable to avoid confusing sed.
14190 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14193 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014194 (eval echo "\"\$as_me:14194: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014195 (eval "$lt_compile" 2>conftest.err)
14196 ac_status=$?
14197 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014198 echo "$as_me:14198: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014199 if (exit $ac_status) && test -s "$ac_outfile"; then
14200 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014201 # So say no if there are warnings other than the usual output.
14202 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14204 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014205 lt_cv_prog_compiler_rtti_exceptions=yes
14206 fi
14207 fi
14208 $rm conftest*
14209
14210fi
Reid Spencera773bd52006-08-04 18:18:08 +000014211{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14212echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014213
14214if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14215 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14216else
14217 :
14218fi
14219
14220fi
14221
14222lt_prog_compiler_wl=
14223lt_prog_compiler_pic=
14224lt_prog_compiler_static=
14225
Reid Spencera773bd52006-08-04 18:18:08 +000014226{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014228
14229 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014230 lt_prog_compiler_wl='-Wl,'
14231 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014232
14233 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014234 aix*)
14235 # All AIX code is PIC.
14236 if test "$host_cpu" = ia64; then
14237 # AIX 5 now supports IA64 processor
14238 lt_prog_compiler_static='-Bstatic'
14239 fi
John Criswell7a73b802003-06-30 21:59:07 +000014240 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014241
John Criswell7a73b802003-06-30 21:59:07 +000014242 amigaos*)
14243 # FIXME: we need at least 68020 code to build shared libraries, but
14244 # adding the `-m68020' flag to GCC prevents building anything better,
14245 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014246 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014247 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014248
14249 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014250 # PIC is the default for these OSes.
14251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014252
14253 mingw* | pw32* | os2*)
14254 # This hack is so that the source file can tell whether it is being
14255 # built for inclusion in a dll (and should export symbols for example).
14256 lt_prog_compiler_pic='-DDLL_EXPORT'
14257 ;;
14258
John Criswell7a73b802003-06-30 21:59:07 +000014259 darwin* | rhapsody*)
14260 # PIC is the default on this platform
14261 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014262 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014263 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014264
Reid Spencera773bd52006-08-04 18:18:08 +000014265 interix3*)
14266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14267 # Instead, we relocate shared libraries at runtime.
14268 ;;
14269
John Criswell47fdd832003-07-14 16:52:07 +000014270 msdosdjgpp*)
14271 # Just because we use GCC doesn't mean we suddenly get shared libraries
14272 # on systems that don't support them.
14273 lt_prog_compiler_can_build_shared=no
14274 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014275 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014276
John Criswell7a73b802003-06-30 21:59:07 +000014277 sysv4*MP*)
14278 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014279 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014280 fi
14281 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014282
14283 hpux*)
14284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14285 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014286 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014287 hppa*64*|ia64*)
14288 # +Z the default
14289 ;;
14290 *)
14291 lt_prog_compiler_pic='-fPIC'
14292 ;;
14293 esac
14294 ;;
14295
John Criswell7a73b802003-06-30 21:59:07 +000014296 *)
John Criswell47fdd832003-07-14 16:52:07 +000014297 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014298 ;;
14299 esac
14300 else
John Criswell47fdd832003-07-14 16:52:07 +000014301 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014302 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014303 aix*)
14304 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014305 if test "$host_cpu" = ia64; then
14306 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014307 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014308 else
John Criswell47fdd832003-07-14 16:52:07 +000014309 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014310 fi
14311 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014312 darwin*)
14313 # PIC is the default on this platform
14314 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014315 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014316 xlc*)
14317 lt_prog_compiler_pic='-qnocommon'
14318 lt_prog_compiler_wl='-Wl,'
14319 ;;
14320 esac
14321 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014322
John Criswell47fdd832003-07-14 16:52:07 +000014323 mingw* | pw32* | os2*)
14324 # This hack is so that the source file can tell whether it is being
14325 # built for inclusion in a dll (and should export symbols for example).
14326 lt_prog_compiler_pic='-DDLL_EXPORT'
14327 ;;
14328
John Criswell7a73b802003-06-30 21:59:07 +000014329 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014330 lt_prog_compiler_wl='-Wl,'
14331 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14332 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014333 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014334 hppa*64*|ia64*)
14335 # +Z the default
14336 ;;
14337 *)
14338 lt_prog_compiler_pic='+Z'
14339 ;;
14340 esac
14341 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14342 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014343 ;;
14344
John Criswell47fdd832003-07-14 16:52:07 +000014345 irix5* | irix6* | nonstopux*)
14346 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014347 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014348 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014349 ;;
14350
14351 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014352 lt_prog_compiler_pic='-KPIC'
14353 lt_prog_compiler_static='-Bstatic'
14354 ;;
14355
14356 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014357 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014358 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014359 lt_prog_compiler_wl='-Wl,'
14360 lt_prog_compiler_pic='-KPIC'
14361 lt_prog_compiler_static='-static'
14362 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014363 pgcc* | pgf77* | pgf90* | pgf95*)
14364 # Portland Group compilers (*not* the Pentium gcc compiler,
14365 # which looks to be a dead project)
14366 lt_prog_compiler_wl='-Wl,'
14367 lt_prog_compiler_pic='-fpic'
14368 lt_prog_compiler_static='-Bstatic'
14369 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014370 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014371 lt_prog_compiler_wl='-Wl,'
14372 # All Alpha code is PIC.
14373 lt_prog_compiler_static='-non_shared'
14374 ;;
14375 esac
John Criswell7a73b802003-06-30 21:59:07 +000014376 ;;
14377
14378 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014379 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014380 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014381 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014382 ;;
14383
John Criswell7a73b802003-06-30 21:59:07 +000014384 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014385 lt_prog_compiler_pic='-KPIC'
14386 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014387 case $cc_basename in
14388 f77* | f90* | f95*)
14389 lt_prog_compiler_wl='-Qoption ld ';;
14390 *)
14391 lt_prog_compiler_wl='-Wl,';;
14392 esac
John Criswell7a73b802003-06-30 21:59:07 +000014393 ;;
14394
14395 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014396 lt_prog_compiler_wl='-Qoption ld '
14397 lt_prog_compiler_pic='-PIC'
14398 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014399 ;;
14400
Reid Spencera773bd52006-08-04 18:18:08 +000014401 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014402 lt_prog_compiler_wl='-Wl,'
14403 lt_prog_compiler_pic='-KPIC'
14404 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014405 ;;
14406
14407 sysv4*MP*)
14408 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014409 lt_prog_compiler_pic='-Kconform_pic'
14410 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014411 fi
14412 ;;
14413
Reid Spencera773bd52006-08-04 18:18:08 +000014414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14415 lt_prog_compiler_wl='-Wl,'
14416 lt_prog_compiler_pic='-KPIC'
14417 lt_prog_compiler_static='-Bstatic'
14418 ;;
14419
14420 unicos*)
14421 lt_prog_compiler_wl='-Wl,'
14422 lt_prog_compiler_can_build_shared=no
14423 ;;
14424
John Criswell47fdd832003-07-14 16:52:07 +000014425 uts4*)
14426 lt_prog_compiler_pic='-pic'
14427 lt_prog_compiler_static='-Bstatic'
14428 ;;
14429
John Criswell7a73b802003-06-30 21:59:07 +000014430 *)
John Criswell47fdd832003-07-14 16:52:07 +000014431 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014432 ;;
14433 esac
14434 fi
14435
Reid Spencera773bd52006-08-04 18:18:08 +000014436{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14437echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014438
John Criswell47fdd832003-07-14 16:52:07 +000014439#
14440# Check to make sure the PIC flag actually works.
14441#
14442if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014443
Reid Spencera773bd52006-08-04 18:18:08 +000014444{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014446if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014447 echo $ECHO_N "(cached) $ECHO_C" >&6
14448else
John Criswell47fdd832003-07-14 16:52:07 +000014449 lt_prog_compiler_pic_works=no
14450 ac_outfile=conftest.$ac_objext
14451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14452 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14453 # Insert the option either (1) after the last *FLAGS variable, or
14454 # (2) before a word containing "conftest.", or (3) at the end.
14455 # Note that $ac_compile itself does not contain backslashes and begins
14456 # with a dollar sign (not a hyphen), so the echo should work correctly.
14457 # The option is referenced via a variable to avoid confusing sed.
14458 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014459 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014460 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14461 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014462 (eval echo "\"\$as_me:14462: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014463 (eval "$lt_compile" 2>conftest.err)
14464 ac_status=$?
14465 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014466 echo "$as_me:14466: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014467 if (exit $ac_status) && test -s "$ac_outfile"; then
14468 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014469 # So say no if there are warnings other than the usual output.
14470 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14471 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14472 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014473 lt_prog_compiler_pic_works=yes
14474 fi
14475 fi
14476 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014477
John Criswell47fdd832003-07-14 16:52:07 +000014478fi
Reid Spencera773bd52006-08-04 18:18:08 +000014479{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14480echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014481
John Criswell47fdd832003-07-14 16:52:07 +000014482if test x"$lt_prog_compiler_pic_works" = xyes; then
14483 case $lt_prog_compiler_pic in
14484 "" | " "*) ;;
14485 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14486 esac
John Criswell7a73b802003-06-30 21:59:07 +000014487else
John Criswell47fdd832003-07-14 16:52:07 +000014488 lt_prog_compiler_pic=
14489 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014490fi
14491
John Criswell7a73b802003-06-30 21:59:07 +000014492fi
Reid Spencera773bd52006-08-04 18:18:08 +000014493case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014494 # For platforms which do not support PIC, -DPIC is meaningless:
14495 *djgpp*)
14496 lt_prog_compiler_pic=
14497 ;;
14498 *)
14499 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14500 ;;
14501esac
John Criswell7a73b802003-06-30 21:59:07 +000014502
Reid Spencera773bd52006-08-04 18:18:08 +000014503#
14504# Check to make sure the static flag actually works.
14505#
14506wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14507{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14508echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14509if test "${lt_prog_compiler_static_works+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14511else
14512 lt_prog_compiler_static_works=no
14513 save_LDFLAGS="$LDFLAGS"
14514 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14515 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14516 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14517 # The linker can only warn and ignore the option if not recognized
14518 # So say no if there are warnings
14519 if test -s conftest.err; then
14520 # Append any errors to the config.log.
14521 cat conftest.err 1>&5
14522 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14523 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524 if diff conftest.exp conftest.er2 >/dev/null; then
14525 lt_prog_compiler_static_works=yes
14526 fi
14527 else
14528 lt_prog_compiler_static_works=yes
14529 fi
14530 fi
14531 $rm conftest*
14532 LDFLAGS="$save_LDFLAGS"
14533
14534fi
14535{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14536echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14537
14538if test x"$lt_prog_compiler_static_works" = xyes; then
14539 :
14540else
14541 lt_prog_compiler_static=
14542fi
14543
14544
14545{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014547if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014548 echo $ECHO_N "(cached) $ECHO_C" >&6
14549else
John Criswell47fdd832003-07-14 16:52:07 +000014550 lt_cv_prog_compiler_c_o=no
14551 $rm -r conftest 2>/dev/null
14552 mkdir conftest
14553 cd conftest
14554 mkdir out
14555 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014556
John Criswell47fdd832003-07-14 16:52:07 +000014557 lt_compiler_flag="-o out/conftest2.$ac_objext"
14558 # Insert the option either (1) after the last *FLAGS variable, or
14559 # (2) before a word containing "conftest.", or (3) at the end.
14560 # Note that $ac_compile itself does not contain backslashes and begins
14561 # with a dollar sign (not a hyphen), so the echo should work correctly.
14562 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014563 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014564 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14565 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014566 (eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014567 (eval "$lt_compile" 2>out/conftest.err)
14568 ac_status=$?
14569 cat out/conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000014570 echo "$as_me:14570: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014571 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14572 then
14573 # The compiler can only warn and ignore the option if not recognized
14574 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014575 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14576 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14577 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014578 lt_cv_prog_compiler_c_o=yes
14579 fi
14580 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014581 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014582 $rm conftest*
14583 # SGI C++ compiler will create directory out/ii_files/ for
14584 # template instantiation
14585 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14586 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014587 cd ..
14588 rmdir conftest
14589 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014590
14591fi
Reid Spencera773bd52006-08-04 18:18:08 +000014592{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14593echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014594
John Criswell7a73b802003-06-30 21:59:07 +000014595
John Criswell7a73b802003-06-30 21:59:07 +000014596hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014598 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014599 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14600echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014601 hard_links=yes
14602 $rm conftest*
14603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14604 touch conftest.a
14605 ln conftest.a conftest.b 2>&5 || hard_links=no
14606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014607 { echo "$as_me:$LINENO: result: $hard_links" >&5
14608echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014609 if test "$hard_links" = no; then
14610 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14611echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14612 need_locks=warn
14613 fi
14614else
14615 need_locks=no
14616fi
John Criswell7a73b802003-06-30 21:59:07 +000014617
Reid Spencera773bd52006-08-04 18:18:08 +000014618{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14619echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014620
14621 runpath_var=
14622 allow_undefined_flag=
14623 enable_shared_with_static_runtimes=no
14624 archive_cmds=
14625 archive_expsym_cmds=
14626 old_archive_From_new_cmds=
14627 old_archive_from_expsyms_cmds=
14628 export_dynamic_flag_spec=
14629 whole_archive_flag_spec=
14630 thread_safe_flag_spec=
14631 hardcode_libdir_flag_spec=
14632 hardcode_libdir_flag_spec_ld=
14633 hardcode_libdir_separator=
14634 hardcode_direct=no
14635 hardcode_minus_L=no
14636 hardcode_shlibpath_var=unsupported
14637 link_all_deplibs=unknown
14638 hardcode_automatic=no
14639 module_cmds=
14640 module_expsym_cmds=
14641 always_export_symbols=no
14642 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14643 # include_expsyms should be a list of space-separated symbols to be *always*
14644 # included in the symbol list
14645 include_expsyms=
14646 # exclude_expsyms can be an extended regexp of symbols to exclude
14647 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14648 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14649 # as well as any symbol that contains `d'.
14650 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14651 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14652 # platforms (ab)use it in PIC code, but their linkers get confused if
14653 # the symbol is explicitly referenced. Since portable code cannot
14654 # rely on this symbol name, it's probably fine to never include it in
14655 # preloaded symbol tables.
14656 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014657 # Just being paranoid about ensuring that cc_basename is set.
14658 for cc_temp in $compiler""; do
14659 case $cc_temp in
14660 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14661 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14662 \-*) ;;
14663 *) break;;
14664 esac
14665done
14666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014667
14668 case $host_os in
14669 cygwin* | mingw* | pw32*)
14670 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14671 # When not using gcc, we currently assume that we are using
14672 # Microsoft Visual C++.
14673 if test "$GCC" != yes; then
14674 with_gnu_ld=no
14675 fi
14676 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014677 interix*)
14678 # we just hope/assume this is gcc and not c89 (= MSVC++)
14679 with_gnu_ld=yes
14680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014681 openbsd*)
14682 with_gnu_ld=no
14683 ;;
14684 esac
14685
14686 ld_shlibs=yes
14687 if test "$with_gnu_ld" = yes; then
14688 # If archive_cmds runs LD, not CC, wlarc should be empty
14689 wlarc='${wl}'
14690
Reid Spencera773bd52006-08-04 18:18:08 +000014691 # Set some defaults for GNU ld with shared library support. These
14692 # are reset later if shared libraries are not supported. Putting them
14693 # here allows them to be overridden if necessary.
14694 runpath_var=LD_RUN_PATH
14695 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14696 export_dynamic_flag_spec='${wl}--export-dynamic'
14697 # ancient GNU ld didn't support --whole-archive et. al.
14698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14699 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14700 else
14701 whole_archive_flag_spec=
14702 fi
14703 supports_anon_versioning=no
14704 case `$LD -v 2>/dev/null` in
14705 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14706 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14707 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14708 *\ 2.11.*) ;; # other 2.11 versions
14709 *) supports_anon_versioning=yes ;;
14710 esac
14711
John Criswell47fdd832003-07-14 16:52:07 +000014712 # See if GNU ld supports shared libraries.
14713 case $host_os in
14714 aix3* | aix4* | aix5*)
14715 # On AIX/PPC, the GNU linker is very broken
14716 if test "$host_cpu" != ia64; then
14717 ld_shlibs=no
14718 cat <<EOF 1>&2
14719
14720*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14721*** to be unable to reliably create shared libraries on AIX.
14722*** Therefore, libtool is disabling shared libraries support. If you
14723*** really care for shared libraries, you may want to modify your PATH
14724*** so that a non-GNU linker is found, and then restart.
14725
14726EOF
14727 fi
14728 ;;
14729
14730 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014731 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 +000014732 hardcode_libdir_flag_spec='-L$libdir'
14733 hardcode_minus_L=yes
14734
14735 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14736 # that the semantics of dynamic libraries on AmigaOS, at least up
14737 # to version 4, is to share data among multiple programs linked
14738 # with the same dynamic library. Since this doesn't match the
14739 # behavior of shared libraries on other platforms, we can't use
14740 # them.
14741 ld_shlibs=no
14742 ;;
14743
14744 beos*)
14745 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14746 allow_undefined_flag=unsupported
14747 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14748 # support --undefined. This deserves some investigation. FIXME
14749 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14750 else
14751 ld_shlibs=no
14752 fi
14753 ;;
14754
14755 cygwin* | mingw* | pw32*)
14756 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14757 # as there is no search path for DLLs.
14758 hardcode_libdir_flag_spec='-L$libdir'
14759 allow_undefined_flag=unsupported
14760 always_export_symbols=no
14761 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014762 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 +000014763
14764 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014765 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 +000014766 # If the export-symbols file already is a .def file (1st line
14767 # is EXPORTS), use it as is; otherwise, prepend...
14768 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14769 cp $export_symbols $output_objdir/$soname.def;
14770 else
14771 echo EXPORTS > $output_objdir/$soname.def;
14772 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014773 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014774 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14775 else
14776 ld_shlibs=no
14777 fi
14778 ;;
14779
14780 interix3*)
14781 hardcode_direct=no
14782 hardcode_shlibpath_var=no
14783 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14784 export_dynamic_flag_spec='${wl}-E'
14785 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14786 # Instead, shared libraries are loaded at an image base (0x10000000 by
14787 # default) and relocated if they conflict, which is a slow very memory
14788 # consuming and fragmenting process. To avoid this, we pick a random,
14789 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14790 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14791 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14792 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'
14793 ;;
14794
14795 linux*)
14796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14797 tmp_addflag=
14798 case $cc_basename,$host_cpu in
14799 pgcc*) # Portland Group C compiler
14800 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'
14801 tmp_addflag=' $pic_flag'
14802 ;;
14803 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14804 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'
14805 tmp_addflag=' $pic_flag -Mnomain' ;;
14806 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14807 tmp_addflag=' -i_dynamic' ;;
14808 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14809 tmp_addflag=' -i_dynamic -nofor_main' ;;
14810 ifc* | ifort*) # Intel Fortran compiler
14811 tmp_addflag=' -nofor_main' ;;
14812 esac
14813 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14814
14815 if test $supports_anon_versioning = yes; then
14816 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14818 $echo "local: *; };" >> $output_objdir/$libname.ver~
14819 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14820 fi
John Criswell47fdd832003-07-14 16:52:07 +000014821 else
14822 ld_shlibs=no
14823 fi
14824 ;;
14825
14826 netbsd*)
14827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14828 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14829 wlarc=
14830 else
14831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14832 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14833 fi
14834 ;;
14835
Reid Spencera773bd52006-08-04 18:18:08 +000014836 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014837 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14838 ld_shlibs=no
14839 cat <<EOF 1>&2
14840
14841*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14842*** create shared libraries on Solaris systems. Therefore, libtool
14843*** is disabling shared libraries support. We urge you to upgrade GNU
14844*** binutils to release 2.9.1 or newer. Another option is to modify
14845*** your PATH or compiler configuration so that the native linker is
14846*** used, and then restart.
14847
14848EOF
14849 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14850 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14851 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14852 else
14853 ld_shlibs=no
14854 fi
14855 ;;
14856
Reid Spencera773bd52006-08-04 18:18:08 +000014857 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14858 case `$LD -v 2>&1` in
14859 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14860 ld_shlibs=no
14861 cat <<_LT_EOF 1>&2
14862
14863*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14864*** reliably create shared libraries on SCO systems. Therefore, libtool
14865*** is disabling shared libraries support. We urge you to upgrade GNU
14866*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14867*** your PATH or compiler configuration so that the native linker is
14868*** used, and then restart.
14869
14870_LT_EOF
14871 ;;
14872 *)
14873 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14874 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14875 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14876 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14877 else
14878 ld_shlibs=no
14879 fi
14880 ;;
14881 esac
14882 ;;
14883
John Criswell47fdd832003-07-14 16:52:07 +000014884 sunos4*)
14885 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14886 wlarc=
14887 hardcode_direct=yes
14888 hardcode_shlibpath_var=no
14889 ;;
14890
14891 *)
14892 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14893 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14894 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14895 else
14896 ld_shlibs=no
14897 fi
14898 ;;
14899 esac
14900
Reid Spencera773bd52006-08-04 18:18:08 +000014901 if test "$ld_shlibs" = no; then
14902 runpath_var=
14903 hardcode_libdir_flag_spec=
14904 export_dynamic_flag_spec=
14905 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014906 fi
14907 else
14908 # PORTME fill in a description of your system's linker (not GNU ld)
14909 case $host_os in
14910 aix3*)
14911 allow_undefined_flag=unsupported
14912 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014913 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 +000014914 # Note: this linker hardcodes the directories in LIBPATH if there
14915 # are no directories specified by -L.
14916 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014917 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014918 # Neither direct hardcoding nor static linking is supported with a
14919 # broken collect2.
14920 hardcode_direct=unsupported
14921 fi
14922 ;;
14923
14924 aix4* | aix5*)
14925 if test "$host_cpu" = ia64; then
14926 # On IA64, the linker does run time linking by default, so we don't
14927 # have to do anything special.
14928 aix_use_runtimelinking=no
14929 exp_sym_flag='-Bexport'
14930 no_entry_flag=""
14931 else
14932 # If we're using GNU nm, then we don't want the "-C" option.
14933 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14934 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14935 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'
14936 else
14937 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'
14938 fi
14939 aix_use_runtimelinking=no
14940
14941 # Test if we are trying to use run time linking or normal
14942 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14943 # need to do runtime linking.
14944 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14945 for ld_flag in $LDFLAGS; do
14946 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14947 aix_use_runtimelinking=yes
14948 break
14949 fi
14950 done
Reid Spencera773bd52006-08-04 18:18:08 +000014951 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014952 esac
14953
14954 exp_sym_flag='-bexport'
14955 no_entry_flag='-bnoentry'
14956 fi
14957
14958 # When large executables or shared objects are built, AIX ld can
14959 # have problems creating the table of contents. If linking a library
14960 # or program results in "error TOC overflow" add -mminimal-toc to
14961 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14962 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14963
14964 archive_cmds=''
14965 hardcode_direct=yes
14966 hardcode_libdir_separator=':'
14967 link_all_deplibs=yes
14968
14969 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014970 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014971 # We only want to do this on AIX 4.2 and lower, the check
14972 # below for broken collect2 doesn't work under 4.3+
14973 collect2name=`${CC} -print-prog-name=collect2`
14974 if test -f "$collect2name" && \
14975 strings "$collect2name" | grep resolve_lib_name >/dev/null
14976 then
14977 # We have reworked collect2
14978 hardcode_direct=yes
14979 else
14980 # We have old collect2
14981 hardcode_direct=unsupported
14982 # It fails to find uninstalled libraries when the uninstalled
14983 # path is not listed in the libpath. Setting hardcode_minus_L
14984 # to unsupported forces relinking
14985 hardcode_minus_L=yes
14986 hardcode_libdir_flag_spec='-L$libdir'
14987 hardcode_libdir_separator=
14988 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014989 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014990 esac
14991 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014992 if test "$aix_use_runtimelinking" = yes; then
14993 shared_flag="$shared_flag "'${wl}-G'
14994 fi
John Criswell47fdd832003-07-14 16:52:07 +000014995 else
14996 # not using gcc
14997 if test "$host_cpu" = ia64; then
14998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14999 # chokes on -Wl,-G. The following line is correct:
15000 shared_flag='-G'
15001 else
Reid Spencera773bd52006-08-04 18:18:08 +000015002 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015003 shared_flag='${wl}-G'
15004 else
15005 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015006 fi
John Criswell47fdd832003-07-14 16:52:07 +000015007 fi
15008 fi
15009
15010 # It seems that -bexpall does not export symbols beginning with
15011 # underscore (_), so it is better to generate a list of symbols to export.
15012 always_export_symbols=yes
15013 if test "$aix_use_runtimelinking" = yes; then
15014 # Warning - without using the other runtime loading flags (-brtl),
15015 # -berok will link without error, but may produce a broken library.
15016 allow_undefined_flag='-berok'
15017 # Determine the default libpath from the value encoded in an empty executable.
15018 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015019/* confdefs.h. */
15020_ACEOF
15021cat confdefs.h >>conftest.$ac_ext
15022cat >>conftest.$ac_ext <<_ACEOF
15023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015024
John Criswell7a73b802003-06-30 21:59:07 +000015025int
15026main ()
15027{
John Criswell47fdd832003-07-14 16:52:07 +000015028
John Criswell7a73b802003-06-30 21:59:07 +000015029 ;
15030 return 0;
15031}
15032_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015033rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015034if { (ac_try="$ac_link"
15035case "(($ac_try" in
15036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037 *) ac_try_echo=$ac_try;;
15038esac
15039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015042 grep -v '^ *+' conftest.er1 >conftest.err
15043 rm -f conftest.er1
15044 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15048 { (case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051esac
15052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; } &&
15057 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015058 { (case "(($ac_try" in
15059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060 *) ac_try_echo=$ac_try;;
15061esac
15062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015064 ac_status=$?
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015067
John Criswell47fdd832003-07-14 16:52:07 +000015068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15069}'`
15070# Check for a 64-bit object if we didn't find anything.
15071if 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; }
15072}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015073else
15074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015075sed 's/^/| /' conftest.$ac_ext >&5
15076
Reid Spencera773bd52006-08-04 18:18:08 +000015077
John Criswell7a73b802003-06-30 21:59:07 +000015078fi
Reid Spencera773bd52006-08-04 18:18:08 +000015079
15080rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015081 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015083
John Criswell47fdd832003-07-14 16:52:07 +000015084 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015085 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 +000015086 else
15087 if test "$host_cpu" = ia64; then
15088 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15089 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015090 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 +000015091 else
15092 # Determine the default libpath from the value encoded in an empty executable.
15093 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015094/* confdefs.h. */
15095_ACEOF
15096cat confdefs.h >>conftest.$ac_ext
15097cat >>conftest.$ac_ext <<_ACEOF
15098/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015099
John Criswell47fdd832003-07-14 16:52:07 +000015100int
15101main ()
15102{
John Criswell7a73b802003-06-30 21:59:07 +000015103
John Criswell47fdd832003-07-14 16:52:07 +000015104 ;
15105 return 0;
15106}
15107_ACEOF
15108rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015109if { (ac_try="$ac_link"
15110case "(($ac_try" in
15111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112 *) ac_try_echo=$ac_try;;
15113esac
15114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015116 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015117 grep -v '^ *+' conftest.er1 >conftest.err
15118 rm -f conftest.er1
15119 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15123 { (case "(($ac_try" in
15124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15126esac
15127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015129 ac_status=$?
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; } &&
15132 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015133 { (case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015142
John Criswell47fdd832003-07-14 16:52:07 +000015143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15144}'`
15145# Check for a 64-bit object if we didn't find anything.
15146if 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; }
15147}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015148else
John Criswell47fdd832003-07-14 16:52:07 +000015149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015150sed 's/^/| /' conftest.$ac_ext >&5
15151
Reid Spencera773bd52006-08-04 18:18:08 +000015152
John Criswell47fdd832003-07-14 16:52:07 +000015153fi
Reid Spencera773bd52006-08-04 18:18:08 +000015154
15155rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015156 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015158
John Criswell47fdd832003-07-14 16:52:07 +000015159 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15160 # Warning - without using the other run time loading flags,
15161 # -berok will link without error, but may produce a broken library.
15162 no_undefined_flag=' ${wl}-bernotok'
15163 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015164 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015165 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015166 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015167 # This is similar to how AIX traditionally builds its shared libraries.
15168 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 +000015169 fi
15170 fi
John Criswell7a73b802003-06-30 21:59:07 +000015171 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015172
15173 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015174 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 +000015175 hardcode_libdir_flag_spec='-L$libdir'
15176 hardcode_minus_L=yes
15177 # see comment about different semantics on the GNU ld section
15178 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015179 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015180
Reid Spencer2706f8c2004-09-19 23:53:36 +000015181 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015182 export_dynamic_flag_spec=-rdynamic
15183 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015184
John Criswell47fdd832003-07-14 16:52:07 +000015185 cygwin* | mingw* | pw32*)
15186 # When not using gcc, we currently assume that we are using
15187 # Microsoft Visual C++.
15188 # hardcode_libdir_flag_spec is actually meaningless, as there is
15189 # no search path for DLLs.
15190 hardcode_libdir_flag_spec=' '
15191 allow_undefined_flag=unsupported
15192 # Tell ltmain to make .lib files, not .a files.
15193 libext=lib
15194 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015195 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015196 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015197 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015198 # The linker will automatically build a .lib file if we build a DLL.
15199 old_archive_From_new_cmds='true'
15200 # FIXME: Should let the user specify the lib program.
15201 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15202 fix_srcfile_path='`cygpath -w "$srcfile"`'
15203 enable_shared_with_static_runtimes=yes
15204 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015205
John Criswell47fdd832003-07-14 16:52:07 +000015206 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015207 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015208 rhapsody* | darwin1.[012])
15209 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15210 ;;
15211 *) # Darwin 1.3 on
15212 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15213 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15214 else
15215 case ${MACOSX_DEPLOYMENT_TARGET} in
15216 10.[012])
15217 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15218 ;;
15219 10.*)
15220 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15221 ;;
15222 esac
15223 fi
15224 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015225 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015226 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015227 hardcode_direct=no
15228 hardcode_automatic=yes
15229 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015230 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015231 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015232 if test "$GCC" = yes ; then
15233 output_verbose_link_cmd='echo'
15234 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15235 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015236 # 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 +000015237 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}'
15238 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 +000015239 else
Reid Spencera773bd52006-08-04 18:18:08 +000015240 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015241 xlc*)
15242 output_verbose_link_cmd='echo'
15243 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15244 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015245 # 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 +000015246 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}'
15247 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 +000015248 ;;
15249 *)
15250 ld_shlibs=no
15251 ;;
15252 esac
John Criswell7a73b802003-06-30 21:59:07 +000015253 fi
John Criswell47fdd832003-07-14 16:52:07 +000015254 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015255
John Criswell47fdd832003-07-14 16:52:07 +000015256 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015257 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015258 hardcode_libdir_flag_spec='-L$libdir'
15259 hardcode_shlibpath_var=no
15260 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015261
John Criswell47fdd832003-07-14 16:52:07 +000015262 freebsd1*)
15263 ld_shlibs=no
15264 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015265
John Criswell47fdd832003-07-14 16:52:07 +000015266 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15267 # support. Future versions do this automatically, but an explicit c++rt0.o
15268 # does not break anything, and helps significantly (at the cost of a little
15269 # extra space).
15270 freebsd2.2*)
15271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15272 hardcode_libdir_flag_spec='-R$libdir'
15273 hardcode_direct=yes
15274 hardcode_shlibpath_var=no
15275 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015276
John Criswell47fdd832003-07-14 16:52:07 +000015277 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15278 freebsd2*)
15279 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_direct=yes
15281 hardcode_minus_L=yes
15282 hardcode_shlibpath_var=no
15283 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015284
John Criswell47fdd832003-07-14 16:52:07 +000015285 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015286 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015287 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15288 hardcode_libdir_flag_spec='-R$libdir'
15289 hardcode_direct=yes
15290 hardcode_shlibpath_var=no
15291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015292
John Criswell47fdd832003-07-14 16:52:07 +000015293 hpux9*)
15294 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015295 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 +000015296 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015297 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 +000015298 fi
15299 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15300 hardcode_libdir_separator=:
15301 hardcode_direct=yes
15302
15303 # hardcode_minus_L: Not really in the search PATH,
15304 # but as the default location of the library.
15305 hardcode_minus_L=yes
15306 export_dynamic_flag_spec='${wl}-E'
15307 ;;
15308
Reid Spencera773bd52006-08-04 18:18:08 +000015309 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015310 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15312 else
15313 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15314 fi
15315 if test "$with_gnu_ld" = no; then
15316 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15317 hardcode_libdir_separator=:
15318
15319 hardcode_direct=yes
15320 export_dynamic_flag_spec='${wl}-E'
15321
15322 # hardcode_minus_L: Not really in the search PATH,
15323 # but as the default location of the library.
15324 hardcode_minus_L=yes
15325 fi
15326 ;;
15327
15328 hpux11*)
15329 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15330 case $host_cpu in
15331 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015332 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15333 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015334 ia64*)
15335 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15336 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015337 *)
15338 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15339 ;;
15340 esac
15341 else
Reid Spencera773bd52006-08-04 18:18:08 +000015342 case $host_cpu in
15343 hppa*64*)
15344 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15345 ;;
15346 ia64*)
15347 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015348 ;;
15349 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015350 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 +000015351 ;;
15352 esac
15353 fi
15354 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15356 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015357
Reid Spencera773bd52006-08-04 18:18:08 +000015358 case $host_cpu in
15359 hppa*64*|ia64*)
15360 hardcode_libdir_flag_spec_ld='+b $libdir'
15361 hardcode_direct=no
15362 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015363 ;;
15364 *)
John Criswell47fdd832003-07-14 16:52:07 +000015365 hardcode_direct=yes
15366 export_dynamic_flag_spec='${wl}-E'
15367
15368 # hardcode_minus_L: Not really in the search PATH,
15369 # but as the default location of the library.
15370 hardcode_minus_L=yes
15371 ;;
15372 esac
15373 fi
15374 ;;
15375
15376 irix5* | irix6* | nonstopux*)
15377 if test "$GCC" = yes; then
15378 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'
15379 else
15380 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'
15381 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15382 fi
15383 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15384 hardcode_libdir_separator=:
15385 link_all_deplibs=yes
15386 ;;
15387
15388 netbsd*)
15389 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15390 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15391 else
15392 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15393 fi
15394 hardcode_libdir_flag_spec='-R$libdir'
15395 hardcode_direct=yes
15396 hardcode_shlibpath_var=no
15397 ;;
15398
15399 newsos6)
15400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15401 hardcode_direct=yes
15402 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15403 hardcode_libdir_separator=:
15404 hardcode_shlibpath_var=no
15405 ;;
15406
15407 openbsd*)
15408 hardcode_direct=yes
15409 hardcode_shlibpath_var=no
15410 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015412 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 +000015413 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15414 export_dynamic_flag_spec='${wl}-E'
15415 else
15416 case $host_os in
15417 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15418 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15419 hardcode_libdir_flag_spec='-R$libdir'
15420 ;;
15421 *)
15422 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15423 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15424 ;;
15425 esac
15426 fi
15427 ;;
15428
15429 os2*)
15430 hardcode_libdir_flag_spec='-L$libdir'
15431 hardcode_minus_L=yes
15432 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015433 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 +000015434 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15435 ;;
15436
15437 osf3*)
15438 if test "$GCC" = yes; then
15439 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15440 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'
15441 else
15442 allow_undefined_flag=' -expect_unresolved \*'
15443 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'
15444 fi
15445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15446 hardcode_libdir_separator=:
15447 ;;
15448
15449 osf4* | osf5*) # as osf3* with the addition of -msym flag
15450 if test "$GCC" = yes; then
15451 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15452 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'
15453 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15454 else
15455 allow_undefined_flag=' -expect_unresolved \*'
15456 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 +000015457 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 +000015458 $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 +000015459
John Criswell47fdd832003-07-14 16:52:07 +000015460 # Both c and cxx compiler support -rpath directly
15461 hardcode_libdir_flag_spec='-rpath $libdir'
15462 fi
15463 hardcode_libdir_separator=:
15464 ;;
15465
John Criswell47fdd832003-07-14 16:52:07 +000015466 solaris*)
15467 no_undefined_flag=' -z text'
15468 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015469 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015470 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015471 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15472 $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 +000015473 else
Reid Spencera773bd52006-08-04 18:18:08 +000015474 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015475 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015476 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15477 $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 +000015478 fi
15479 hardcode_libdir_flag_spec='-R$libdir'
15480 hardcode_shlibpath_var=no
15481 case $host_os in
15482 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015483 *)
15484 # The compiler driver will combine linker options so we
15485 # cannot just pass the convience library names through
15486 # without $wl, iff we do not link with $LD.
15487 # Luckily, gcc supports the same syntax we need for Sun Studio.
15488 # Supported since Solaris 2.6 (maybe 2.5.1?)
15489 case $wlarc in
15490 '')
15491 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15492 *)
15493 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' ;;
15494 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015495 esac
15496 link_all_deplibs=yes
15497 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015498
John Criswell47fdd832003-07-14 16:52:07 +000015499 sunos4*)
15500 if test "x$host_vendor" = xsequent; then
15501 # Use $CC to link under sequent, because it throws in some extra .o
15502 # files that make .init and .fini sections work.
15503 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15504 else
15505 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15506 fi
15507 hardcode_libdir_flag_spec='-L$libdir'
15508 hardcode_direct=yes
15509 hardcode_minus_L=yes
15510 hardcode_shlibpath_var=no
15511 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015512
John Criswell47fdd832003-07-14 16:52:07 +000015513 sysv4)
15514 case $host_vendor in
15515 sni)
15516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15517 hardcode_direct=yes # is this really true???
15518 ;;
15519 siemens)
15520 ## LD is ld it makes a PLAMLIB
15521 ## CC just makes a GrossModule.
15522 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15523 reload_cmds='$CC -r -o $output$reload_objs'
15524 hardcode_direct=no
15525 ;;
15526 motorola)
15527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15528 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15529 ;;
15530 esac
15531 runpath_var='LD_RUN_PATH'
15532 hardcode_shlibpath_var=no
15533 ;;
15534
15535 sysv4.3*)
15536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15537 hardcode_shlibpath_var=no
15538 export_dynamic_flag_spec='-Bexport'
15539 ;;
15540
15541 sysv4*MP*)
15542 if test -d /usr/nec; then
15543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15544 hardcode_shlibpath_var=no
15545 runpath_var=LD_RUN_PATH
15546 hardcode_runpath_var=yes
15547 ld_shlibs=yes
15548 fi
15549 ;;
15550
Reid Spencera773bd52006-08-04 18:18:08 +000015551 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15552 no_undefined_flag='${wl}-z,text'
15553 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015554 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015555 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015556
John Criswell47fdd832003-07-14 16:52:07 +000015557 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015558 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 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 +000015560 else
Reid Spencera773bd52006-08-04 18:18:08 +000015561 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15562 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 +000015563 fi
John Criswell47fdd832003-07-14 16:52:07 +000015564 ;;
15565
Reid Spencera773bd52006-08-04 18:18:08 +000015566 sysv5* | sco3.2v5* | sco5v6*)
15567 # Note: We can NOT use -z defs as we might desire, because we do not
15568 # link with -lc, and that would cause any symbols used from libc to
15569 # always be unresolved, which means just about no library would
15570 # ever link correctly. If we're not using GNU ld we use -z text
15571 # though, which does catch some bad symbols but isn't as heavy-handed
15572 # as -z defs.
15573 no_undefined_flag='${wl}-z,text'
15574 allow_undefined_flag='${wl}-z,nodefs'
15575 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015576 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015577 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15578 hardcode_libdir_separator=':'
15579 link_all_deplibs=yes
15580 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015581 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015582
15583 if test "$GCC" = yes; then
15584 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15585 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 else
15587 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15589 fi
John Criswell47fdd832003-07-14 16:52:07 +000015590 ;;
15591
15592 uts4*)
15593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15594 hardcode_libdir_flag_spec='-L$libdir'
15595 hardcode_shlibpath_var=no
15596 ;;
15597
15598 *)
15599 ld_shlibs=no
15600 ;;
15601 esac
15602 fi
15603
Reid Spencera773bd52006-08-04 18:18:08 +000015604{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15605echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015606test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015607
John Criswell47fdd832003-07-14 16:52:07 +000015608#
15609# Do we need to explicitly link libc?
15610#
15611case "x$archive_cmds_need_lc" in
15612x|xyes)
15613 # Assume -lc should be added
15614 archive_cmds_need_lc=yes
15615
15616 if test "$enable_shared" = yes && test "$GCC" = yes; then
15617 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015618 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015619 # FIXME: we may have to deal with multi-command sequences.
15620 ;;
15621 '$CC '*)
15622 # Test whether the compiler implicitly links with -lc since on some
15623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15624 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015625 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15626echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015627 $rm conftest*
15628 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15629
15630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15631 (eval $ac_compile) 2>&5
15632 ac_status=$?
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } 2>conftest.err; then
15635 soname=conftest
15636 lib=conftest
15637 libobjs=conftest.$ac_objext
15638 deplibs=
15639 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015640 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015641 compiler_flags=-v
15642 linker_flags=-v
15643 verstring=
15644 output_objdir=.
15645 libname=conftest
15646 lt_save_allow_undefined_flag=$allow_undefined_flag
15647 allow_undefined_flag=
15648 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15649 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15650 ac_status=$?
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); }
15653 then
15654 archive_cmds_need_lc=no
15655 else
15656 archive_cmds_need_lc=yes
15657 fi
15658 allow_undefined_flag=$lt_save_allow_undefined_flag
15659 else
15660 cat conftest.err 1>&5
15661 fi
15662 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015663 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15664echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015665 ;;
15666 esac
15667 fi
15668 ;;
15669esac
15670
Reid Spencera773bd52006-08-04 18:18:08 +000015671{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15672echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015673library_names_spec=
15674libname_spec='lib$name'
15675soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015676shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015677postinstall_cmds=
15678postuninstall_cmds=
15679finish_cmds=
15680finish_eval=
15681shlibpath_var=
15682shlibpath_overrides_runpath=unknown
15683version_type=none
15684dynamic_linker="$host_os ld.so"
15685sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015686if test "$GCC" = yes; then
15687 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15688 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15689 # if the path contains ";" then we assume it to be the separator
15690 # otherwise default to the standard path separator (i.e. ":") - it is
15691 # assumed that no part of a normal pathname contains ";" but that should
15692 # okay in the real world where ";" in dirpaths is itself problematic.
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15694 else
15695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15696 fi
15697else
15698 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15699fi
15700need_lib_prefix=unknown
15701hardcode_into_libs=no
15702
15703# when you set need_version to no, make sure it does not cause -set_version
15704# flags to be left without arguments
15705need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015706
15707case $host_os in
15708aix3*)
15709 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015711 shlibpath_var=LIBPATH
15712
John Criswell47fdd832003-07-14 16:52:07 +000015713 # AIX 3 has no versioning support, so we append a major version to the name.
15714 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015715 ;;
15716
15717aix4* | aix5*)
15718 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015719 need_lib_prefix=no
15720 need_version=no
15721 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015722 if test "$host_cpu" = ia64; then
15723 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015724 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015725 shlibpath_var=LD_LIBRARY_PATH
15726 else
15727 # With GCC up to 2.95.x, collect2 would create an import file
15728 # for dependence libraries. The import file would start with
15729 # the line `#! .'. This would cause the generated library to
15730 # depend on `.', always an invalid library. This was fixed in
15731 # development snapshots of GCC prior to 3.0.
15732 case $host_os in
15733 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015734 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15735 echo ' yes '
15736 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15737 :
15738 else
15739 can_build_shared=no
15740 fi
15741 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015742 esac
John Criswell47fdd832003-07-14 16:52:07 +000015743 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15744 # soname into executable. Probably we can add versioning support to
15745 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015746 if test "$aix_use_runtimelinking" = yes; then
15747 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15748 # instead of lib<name>.a to let people know that these are not
15749 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015751 else
15752 # We preserve .a as extension for shared libraries through AIX4.2
15753 # and later when we are not doing run time linking.
15754 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015755 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015756 fi
15757 shlibpath_var=LIBPATH
15758 fi
15759 ;;
15760
15761amigaos*)
15762 library_names_spec='$libname.ixlibrary $libname.a'
15763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015764 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 +000015765 ;;
15766
15767beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015768 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015769 dynamic_linker="$host_os ld.so"
15770 shlibpath_var=LIBRARY_PATH
15771 ;;
15772
Reid Spencer2706f8c2004-09-19 23:53:36 +000015773bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015774 version_type=linux
15775 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15777 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015778 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15781 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015782 # the default ld.so.conf also contains /usr/contrib/lib and
15783 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15784 # libtool to hard-code these into programs
15785 ;;
15786
15787cygwin* | mingw* | pw32*)
15788 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015789 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015790 need_version=no
15791 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015792
John Criswell7a73b802003-06-30 21:59:07 +000015793 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015794 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015795 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015796 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015797 postinstall_cmds='base_file=`basename \${file}`~
15798 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15799 dldir=$destdir/`dirname \$dlpath`~
15800 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015801 $install_prog $dir/$dlname \$dldir/$dlname~
15802 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015803 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015805 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015806 shlibpath_overrides_runpath=yes
15807
15808 case $host_os in
15809 cygwin*)
15810 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15811 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 +000015812 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015813 ;;
15814 mingw*)
15815 # MinGW DLLs use traditional 'lib' prefix
15816 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15817 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15818 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15819 # It is most probably a Windows format PATH printed by
15820 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15821 # path with ; separators, and with drive letters. We can handle the
15822 # drive letters (cygwin fileutils understands them), so leave them,
15823 # especially as we might pass files found there to a mingw objdump,
15824 # which wouldn't understand a cygwinified path. Ahh.
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15826 else
15827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15828 fi
15829 ;;
15830 pw32*)
15831 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015832 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 +000015833 ;;
15834 esac
John Criswell7a73b802003-06-30 21:59:07 +000015835 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015836
John Criswell7a73b802003-06-30 21:59:07 +000015837 *)
John Criswell47fdd832003-07-14 16:52:07 +000015838 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015839 ;;
15840 esac
15841 dynamic_linker='Win32 ld.exe'
15842 # FIXME: first we should search . and the directory the executable is in
15843 shlibpath_var=PATH
15844 ;;
15845
15846darwin* | rhapsody*)
15847 dynamic_linker="$host_os dyld"
15848 version_type=darwin
15849 need_lib_prefix=no
15850 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015851 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015852 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015853 shlibpath_overrides_runpath=yes
15854 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015855 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015856 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015857 if test "$GCC" = yes; then
15858 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"`
15859 else
15860 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015861 fi
15862 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15863 ;;
15864
15865dgux*)
15866 version_type=linux
15867 need_lib_prefix=no
15868 need_version=no
15869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15870 soname_spec='${libname}${release}${shared_ext}$major'
15871 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015872 ;;
15873
15874freebsd1*)
15875 dynamic_linker=no
15876 ;;
15877
Reid Spencer2706f8c2004-09-19 23:53:36 +000015878kfreebsd*-gnu)
15879 version_type=linux
15880 need_lib_prefix=no
15881 need_version=no
15882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15883 soname_spec='${libname}${release}${shared_ext}$major'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 hardcode_into_libs=yes
15887 dynamic_linker='GNU ld.so'
15888 ;;
15889
Reid Spencera773bd52006-08-04 18:18:08 +000015890freebsd* | dragonfly*)
15891 # DragonFly does not have aout. When/if they implement a new
15892 # versioning mechanism, adjust this.
15893 if test -x /usr/bin/objformat; then
15894 objformat=`/usr/bin/objformat`
15895 else
15896 case $host_os in
15897 freebsd[123]*) objformat=aout ;;
15898 *) objformat=elf ;;
15899 esac
15900 fi
John Criswell7a73b802003-06-30 21:59:07 +000015901 version_type=freebsd-$objformat
15902 case $version_type in
15903 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015905 need_version=no
15906 need_lib_prefix=no
15907 ;;
15908 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015910 need_version=yes
15911 ;;
15912 esac
15913 shlibpath_var=LD_LIBRARY_PATH
15914 case $host_os in
15915 freebsd2*)
15916 shlibpath_overrides_runpath=yes
15917 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015918 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015919 shlibpath_overrides_runpath=yes
15920 hardcode_into_libs=yes
15921 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015922 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15923 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015924 shlibpath_overrides_runpath=no
15925 hardcode_into_libs=yes
15926 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015927 freebsd*) # from 4.6 on
15928 shlibpath_overrides_runpath=yes
15929 hardcode_into_libs=yes
15930 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015931 esac
15932 ;;
15933
15934gnu*)
15935 version_type=linux
15936 need_lib_prefix=no
15937 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15939 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015940 shlibpath_var=LD_LIBRARY_PATH
15941 hardcode_into_libs=yes
15942 ;;
15943
15944hpux9* | hpux10* | hpux11*)
15945 # Give a soname corresponding to the major version so that dld.sl refuses to
15946 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015947 version_type=sunos
15948 need_lib_prefix=no
15949 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015950 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015951 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015952 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015953 hardcode_into_libs=yes
15954 dynamic_linker="$host_os dld.so"
15955 shlibpath_var=LD_LIBRARY_PATH
15956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 if test "X$HPUX_IA64_MODE" = X32; then
15960 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15961 else
15962 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15963 fi
15964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15965 ;;
15966 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015967 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015968 hardcode_into_libs=yes
15969 dynamic_linker="$host_os dld.sl"
15970 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15971 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973 soname_spec='${libname}${release}${shared_ext}$major'
15974 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15976 ;;
15977 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015978 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015979 dynamic_linker="$host_os dld.sl"
15980 shlibpath_var=SHLIB_PATH
15981 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15983 soname_spec='${libname}${release}${shared_ext}$major'
15984 ;;
15985 esac
John Criswell7a73b802003-06-30 21:59:07 +000015986 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15987 postinstall_cmds='chmod 555 $lib'
15988 ;;
15989
Reid Spencera773bd52006-08-04 18:18:08 +000015990interix3*)
15991 version_type=linux
15992 need_lib_prefix=no
15993 need_version=no
15994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15995 soname_spec='${libname}${release}${shared_ext}$major'
15996 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15997 shlibpath_var=LD_LIBRARY_PATH
15998 shlibpath_overrides_runpath=no
15999 hardcode_into_libs=yes
16000 ;;
16001
John Criswell47fdd832003-07-14 16:52:07 +000016002irix5* | irix6* | nonstopux*)
16003 case $host_os in
16004 nonstopux*) version_type=nonstopux ;;
16005 *)
16006 if test "$lt_cv_prog_gnu_ld" = yes; then
16007 version_type=linux
16008 else
16009 version_type=irix
16010 fi ;;
16011 esac
John Criswell7a73b802003-06-30 21:59:07 +000016012 need_lib_prefix=no
16013 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016014 soname_spec='${libname}${release}${shared_ext}$major'
16015 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 +000016016 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016017 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016018 libsuff= shlibsuff=
16019 ;;
16020 *)
16021 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016022 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16023 libsuff= shlibsuff= libmagic=32-bit;;
16024 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16025 libsuff=32 shlibsuff=N32 libmagic=N32;;
16026 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16027 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016028 *) libsuff= shlibsuff= libmagic=never-match;;
16029 esac
16030 ;;
16031 esac
16032 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16033 shlibpath_overrides_runpath=no
16034 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16035 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016036 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016037 ;;
16038
16039# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016040linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016041 dynamic_linker=no
16042 ;;
16043
16044# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016045linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016046 version_type=linux
16047 need_lib_prefix=no
16048 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16052 shlibpath_var=LD_LIBRARY_PATH
16053 shlibpath_overrides_runpath=no
16054 # This implies no fast_install, which is unacceptable.
16055 # Some rework will be needed to allow for fast_install
16056 # before this can be enabled.
16057 hardcode_into_libs=yes
16058
Reid Spencer2706f8c2004-09-19 23:53:36 +000016059 # Append ld.so.conf contents to the search path
16060 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016061 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 +000016062 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16063 fi
16064
John Criswell7a73b802003-06-30 21:59:07 +000016065 # We used to test for /lib/ld.so.1 and disable shared libraries on
16066 # powerpc, because MkLinux only supported shared libraries with the
16067 # GNU dynamic linker. Since this was broken with cross compilers,
16068 # most powerpc-linux boxes support dynamic linking these days and
16069 # people can always --disable-shared, the test was removed, and we
16070 # assume the GNU/Linux dynamic linker is in use.
16071 dynamic_linker='GNU/Linux ld.so'
16072 ;;
16073
Reid Spencer2706f8c2004-09-19 23:53:36 +000016074knetbsd*-gnu)
16075 version_type=linux
16076 need_lib_prefix=no
16077 need_version=no
16078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16079 soname_spec='${libname}${release}${shared_ext}$major'
16080 shlibpath_var=LD_LIBRARY_PATH
16081 shlibpath_overrides_runpath=no
16082 hardcode_into_libs=yes
16083 dynamic_linker='GNU ld.so'
16084 ;;
16085
John Criswell7a73b802003-06-30 21:59:07 +000016086netbsd*)
16087 version_type=sunos
16088 need_lib_prefix=no
16089 need_version=no
16090 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16093 dynamic_linker='NetBSD (a.out) ld.so'
16094 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016096 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016097 dynamic_linker='NetBSD ld.elf_so'
16098 fi
16099 shlibpath_var=LD_LIBRARY_PATH
16100 shlibpath_overrides_runpath=yes
16101 hardcode_into_libs=yes
16102 ;;
16103
16104newsos6)
16105 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16107 shlibpath_var=LD_LIBRARY_PATH
16108 shlibpath_overrides_runpath=yes
16109 ;;
16110
Reid Spencer2706f8c2004-09-19 23:53:36 +000016111nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016112 version_type=linux
16113 need_lib_prefix=no
16114 need_version=no
16115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016117 shlibpath_var=LD_LIBRARY_PATH
16118 shlibpath_overrides_runpath=yes
16119 ;;
16120
16121openbsd*)
16122 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016123 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016124 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016125 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16126 case $host_os in
16127 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16128 *) need_version=no ;;
16129 esac
John Criswell47fdd832003-07-14 16:52:07 +000016130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16132 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016133 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 +000016134 case $host_os in
16135 openbsd2.[89] | openbsd2.[89].*)
16136 shlibpath_overrides_runpath=no
16137 ;;
16138 *)
16139 shlibpath_overrides_runpath=yes
16140 ;;
16141 esac
John Criswell7a73b802003-06-30 21:59:07 +000016142 else
16143 shlibpath_overrides_runpath=yes
16144 fi
John Criswell7a73b802003-06-30 21:59:07 +000016145 ;;
16146
16147os2*)
16148 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016149 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016150 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016151 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016152 dynamic_linker='OS/2 ld.exe'
16153 shlibpath_var=LIBPATH
16154 ;;
16155
16156osf3* | osf4* | osf5*)
16157 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016158 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016159 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016160 soname_spec='${libname}${release}${shared_ext}$major'
16161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016162 shlibpath_var=LD_LIBRARY_PATH
16163 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16164 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16165 ;;
16166
John Criswell7a73b802003-06-30 21:59:07 +000016167solaris*)
16168 version_type=linux
16169 need_lib_prefix=no
16170 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016173 shlibpath_var=LD_LIBRARY_PATH
16174 shlibpath_overrides_runpath=yes
16175 hardcode_into_libs=yes
16176 # ldd complains unless libraries are executable
16177 postinstall_cmds='chmod +x $lib'
16178 ;;
16179
16180sunos4*)
16181 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016183 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16184 shlibpath_var=LD_LIBRARY_PATH
16185 shlibpath_overrides_runpath=yes
16186 if test "$with_gnu_ld" = yes; then
16187 need_lib_prefix=no
16188 fi
16189 need_version=yes
16190 ;;
16191
Reid Spencera773bd52006-08-04 18:18:08 +000016192sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016193 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016196 shlibpath_var=LD_LIBRARY_PATH
16197 case $host_vendor in
16198 sni)
16199 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016200 need_lib_prefix=no
16201 export_dynamic_flag_spec='${wl}-Blargedynsym'
16202 runpath_var=LD_RUN_PATH
16203 ;;
16204 siemens)
16205 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016206 ;;
16207 motorola)
16208 need_lib_prefix=no
16209 need_version=no
16210 shlibpath_overrides_runpath=no
16211 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16212 ;;
16213 esac
16214 ;;
16215
John Criswell7a73b802003-06-30 21:59:07 +000016216sysv4*MP*)
16217 if test -d /usr/nec ;then
16218 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016219 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16220 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016221 shlibpath_var=LD_LIBRARY_PATH
16222 fi
16223 ;;
16224
Reid Spencera773bd52006-08-04 18:18:08 +000016225sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16226 version_type=freebsd-elf
16227 need_lib_prefix=no
16228 need_version=no
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 shlibpath_var=LD_LIBRARY_PATH
16232 hardcode_into_libs=yes
16233 if test "$with_gnu_ld" = yes; then
16234 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16235 shlibpath_overrides_runpath=no
16236 else
16237 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16238 shlibpath_overrides_runpath=yes
16239 case $host_os in
16240 sco3.2v5*)
16241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16242 ;;
16243 esac
16244 fi
16245 sys_lib_dlsearch_path_spec='/usr/lib'
16246 ;;
16247
John Criswell47fdd832003-07-14 16:52:07 +000016248uts4*)
16249 version_type=linux
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 shlibpath_var=LD_LIBRARY_PATH
16253 ;;
16254
John Criswell7a73b802003-06-30 21:59:07 +000016255*)
16256 dynamic_linker=no
16257 ;;
16258esac
Reid Spencera773bd52006-08-04 18:18:08 +000016259{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16260echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016261test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016262
Reid Spencera773bd52006-08-04 18:18:08 +000016263variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16264if test "$GCC" = yes; then
16265 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16266fi
16267
16268{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16269echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016270hardcode_action=
16271if test -n "$hardcode_libdir_flag_spec" || \
16272 test -n "$runpath_var" || \
16273 test "X$hardcode_automatic" = "Xyes" ; then
16274
16275 # We can hardcode non-existant directories.
16276 if test "$hardcode_direct" != no &&
16277 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16278 # have to relink, otherwise we might link with an installed library
16279 # when we should be linking with a yet-to-be-installed one
16280 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16281 test "$hardcode_minus_L" != no; then
16282 # Linking always hardcodes the temporary library directory.
16283 hardcode_action=relink
16284 else
16285 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16286 hardcode_action=immediate
16287 fi
16288else
16289 # We cannot hardcode anything, or else we can only hardcode existing
16290 # directories.
16291 hardcode_action=unsupported
16292fi
Reid Spencera773bd52006-08-04 18:18:08 +000016293{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16294echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016295
16296if test "$hardcode_action" = relink; then
16297 # Fast installation is not supported
16298 enable_fast_install=no
16299elif test "$shlibpath_overrides_runpath" = yes ||
16300 test "$enable_shared" = no; then
16301 # Fast installation is not necessary
16302 enable_fast_install=needless
16303fi
16304
16305striplib=
16306old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016307{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16308echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016309if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16310 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16311 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016312 { echo "$as_me:$LINENO: result: yes" >&5
16313echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016314else
16315# FIXME - insert some real tests, host_os isn't really good enough
16316 case $host_os in
16317 darwin*)
16318 if test -n "$STRIP" ; then
16319 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016320 { echo "$as_me:$LINENO: result: yes" >&5
16321echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016322 else
Reid Spencera773bd52006-08-04 18:18:08 +000016323 { echo "$as_me:$LINENO: result: no" >&5
16324echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016325fi
16326 ;;
16327 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016328 { echo "$as_me:$LINENO: result: no" >&5
16329echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016330 ;;
16331 esac
16332fi
16333
John Criswell7a73b802003-06-30 21:59:07 +000016334if test "x$enable_dlopen" != xyes; then
16335 enable_dlopen=unknown
16336 enable_dlopen_self=unknown
16337 enable_dlopen_self_static=unknown
16338else
16339 lt_cv_dlopen=no
16340 lt_cv_dlopen_libs=
16341
16342 case $host_os in
16343 beos*)
16344 lt_cv_dlopen="load_add_on"
16345 lt_cv_dlopen_libs=
16346 lt_cv_dlopen_self=yes
16347 ;;
16348
John Criswell47fdd832003-07-14 16:52:07 +000016349 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016350 lt_cv_dlopen="LoadLibrary"
16351 lt_cv_dlopen_libs=
16352 ;;
16353
John Criswell47fdd832003-07-14 16:52:07 +000016354 cygwin*)
16355 lt_cv_dlopen="dlopen"
16356 lt_cv_dlopen_libs=
16357 ;;
16358
16359 darwin*)
16360 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016361 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16362echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016363if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366 ac_check_lib_save_LIBS=$LIBS
16367LIBS="-ldl $LIBS"
16368cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016374
Reid Spencera773bd52006-08-04 18:18:08 +000016375/* Override any GCC internal prototype to avoid an error.
16376 Use char because int might match the return type of a GCC
16377 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016378#ifdef __cplusplus
16379extern "C"
16380#endif
John Criswell47fdd832003-07-14 16:52:07 +000016381char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016382int
16383main ()
16384{
Reid Spencera773bd52006-08-04 18:18:08 +000016385return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016386 ;
16387 return 0;
16388}
16389_ACEOF
16390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016391if { (ac_try="$ac_link"
16392case "(($ac_try" in
16393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394 *) ac_try_echo=$ac_try;;
16395esac
16396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016399 grep -v '^ *+' conftest.er1 >conftest.err
16400 rm -f conftest.er1
16401 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16405 { (case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16408esac
16409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016415 { (case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16418esac
16419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016421 ac_status=$?
16422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16423 (exit $ac_status); }; }; then
16424 ac_cv_lib_dl_dlopen=yes
16425else
16426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016427sed 's/^/| /' conftest.$ac_ext >&5
16428
Reid Spencera773bd52006-08-04 18:18:08 +000016429 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016430fi
Reid Spencera773bd52006-08-04 18:18:08 +000016431
16432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016433 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016434LIBS=$ac_check_lib_save_LIBS
16435fi
Reid Spencera773bd52006-08-04 18:18:08 +000016436{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16437echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016438if test $ac_cv_lib_dl_dlopen = yes; then
16439 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16440else
16441
16442 lt_cv_dlopen="dyld"
16443 lt_cv_dlopen_libs=
16444 lt_cv_dlopen_self=yes
16445
16446fi
16447
16448 ;;
16449
John Criswell7a73b802003-06-30 21:59:07 +000016450 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016451 { echo "$as_me:$LINENO: checking for shl_load" >&5
16452echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016453if test "${ac_cv_func_shl_load+set}" = set; then
16454 echo $ECHO_N "(cached) $ECHO_C" >&6
16455else
16456 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016457/* confdefs.h. */
16458_ACEOF
16459cat confdefs.h >>conftest.$ac_ext
16460cat >>conftest.$ac_ext <<_ACEOF
16461/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016462/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16464#define shl_load innocuous_shl_load
16465
John Criswell7a73b802003-06-30 21:59:07 +000016466/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016467 which can conflict with char shl_load (); below.
16468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16469 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016470
John Criswell0c38eaf2003-09-10 15:17:25 +000016471#ifdef __STDC__
16472# include <limits.h>
16473#else
16474# include <assert.h>
16475#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016476
16477#undef shl_load
16478
Reid Spencera773bd52006-08-04 18:18:08 +000016479/* Override any GCC internal prototype to avoid an error.
16480 Use char because int might match the return type of a GCC
16481 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016482#ifdef __cplusplus
16483extern "C"
16484#endif
John Criswell7a73b802003-06-30 21:59:07 +000016485char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016486/* The GNU C library defines this for functions which it implements
16487 to always fail with ENOSYS. Some functions are actually named
16488 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016489#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016490choke me
John Criswell7a73b802003-06-30 21:59:07 +000016491#endif
16492
John Criswell0c38eaf2003-09-10 15:17:25 +000016493int
16494main ()
16495{
Reid Spencera773bd52006-08-04 18:18:08 +000016496return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016497 ;
16498 return 0;
16499}
16500_ACEOF
16501rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016502if { (ac_try="$ac_link"
16503case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16506esac
16507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16516 { (case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519esac
16520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016522 ac_status=$?
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); }; } &&
16525 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016526 { (case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; }; then
16535 ac_cv_func_shl_load=yes
16536else
16537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016538sed 's/^/| /' conftest.$ac_ext >&5
16539
Reid Spencera773bd52006-08-04 18:18:08 +000016540 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016541fi
Reid Spencera773bd52006-08-04 18:18:08 +000016542
16543rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016544 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016545fi
Reid Spencera773bd52006-08-04 18:18:08 +000016546{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16547echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016548if test $ac_cv_func_shl_load = yes; then
16549 lt_cv_dlopen="shl_load"
16550else
Reid Spencera773bd52006-08-04 18:18:08 +000016551 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16552echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016553if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16554 echo $ECHO_N "(cached) $ECHO_C" >&6
16555else
16556 ac_check_lib_save_LIBS=$LIBS
16557LIBS="-ldld $LIBS"
16558cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016559/* confdefs.h. */
16560_ACEOF
16561cat confdefs.h >>conftest.$ac_ext
16562cat >>conftest.$ac_ext <<_ACEOF
16563/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016564
Reid Spencera773bd52006-08-04 18:18:08 +000016565/* Override any GCC internal prototype to avoid an error.
16566 Use char because int might match the return type of a GCC
16567 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016568#ifdef __cplusplus
16569extern "C"
16570#endif
John Criswell7a73b802003-06-30 21:59:07 +000016571char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016572int
16573main ()
16574{
Reid Spencera773bd52006-08-04 18:18:08 +000016575return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016576 ;
16577 return 0;
16578}
16579_ACEOF
16580rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016581if { (ac_try="$ac_link"
16582case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16585esac
16586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016589 grep -v '^ *+' conftest.er1 >conftest.err
16590 rm -f conftest.er1
16591 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16595 { (case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16598esac
16599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; } &&
16604 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016605 { (case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608esac
16609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016611 ac_status=$?
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); }; }; then
16614 ac_cv_lib_dld_shl_load=yes
16615else
16616 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016617sed 's/^/| /' conftest.$ac_ext >&5
16618
Reid Spencera773bd52006-08-04 18:18:08 +000016619 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016620fi
Reid Spencera773bd52006-08-04 18:18:08 +000016621
16622rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016623 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016624LIBS=$ac_check_lib_save_LIBS
16625fi
Reid Spencera773bd52006-08-04 18:18:08 +000016626{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16627echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016628if test $ac_cv_lib_dld_shl_load = yes; then
16629 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16630else
Reid Spencera773bd52006-08-04 18:18:08 +000016631 { echo "$as_me:$LINENO: checking for dlopen" >&5
16632echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016633if test "${ac_cv_func_dlopen+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016642/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16644#define dlopen innocuous_dlopen
16645
John Criswell7a73b802003-06-30 21:59:07 +000016646/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016647 which can conflict with char dlopen (); below.
16648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16649 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016650
John Criswell0c38eaf2003-09-10 15:17:25 +000016651#ifdef __STDC__
16652# include <limits.h>
16653#else
16654# include <assert.h>
16655#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016656
16657#undef dlopen
16658
Reid Spencera773bd52006-08-04 18:18:08 +000016659/* Override any GCC internal prototype to avoid an error.
16660 Use char because int might match the return type of a GCC
16661 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016662#ifdef __cplusplus
16663extern "C"
16664#endif
John Criswell7a73b802003-06-30 21:59:07 +000016665char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016666/* The GNU C library defines this for functions which it implements
16667 to always fail with ENOSYS. Some functions are actually named
16668 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016669#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016670choke me
John Criswell7a73b802003-06-30 21:59:07 +000016671#endif
16672
John Criswell0c38eaf2003-09-10 15:17:25 +000016673int
16674main ()
16675{
Reid Spencera773bd52006-08-04 18:18:08 +000016676return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016677 ;
16678 return 0;
16679}
16680_ACEOF
16681rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016682if { (ac_try="$ac_link"
16683case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686esac
16687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016689 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016690 grep -v '^ *+' conftest.er1 >conftest.err
16691 rm -f conftest.er1
16692 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16696 { (case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699esac
16700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16701 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709esac
16710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16711 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); }; }; then
16715 ac_cv_func_dlopen=yes
16716else
16717 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016718sed 's/^/| /' conftest.$ac_ext >&5
16719
Reid Spencera773bd52006-08-04 18:18:08 +000016720 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016721fi
Reid Spencera773bd52006-08-04 18:18:08 +000016722
16723rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016725fi
Reid Spencera773bd52006-08-04 18:18:08 +000016726{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16727echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016728if test $ac_cv_func_dlopen = yes; then
16729 lt_cv_dlopen="dlopen"
16730else
Reid Spencera773bd52006-08-04 18:18:08 +000016731 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16732echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016733if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16735else
16736 ac_check_lib_save_LIBS=$LIBS
16737LIBS="-ldl $LIBS"
16738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016744
Reid Spencera773bd52006-08-04 18:18:08 +000016745/* Override any GCC internal prototype to avoid an error.
16746 Use char because int might match the return type of a GCC
16747 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016748#ifdef __cplusplus
16749extern "C"
16750#endif
John Criswell7a73b802003-06-30 21:59:07 +000016751char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016752int
16753main ()
16754{
Reid Spencera773bd52006-08-04 18:18:08 +000016755return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016756 ;
16757 return 0;
16758}
16759_ACEOF
16760rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016761if { (ac_try="$ac_link"
16762case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16765esac
16766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016769 grep -v '^ *+' conftest.er1 >conftest.err
16770 rm -f conftest.er1
16771 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775 { (case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778esac
16779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; } &&
16784 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016785 { (case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16788esac
16789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016791 ac_status=$?
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; }; then
16794 ac_cv_lib_dl_dlopen=yes
16795else
16796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016797sed 's/^/| /' conftest.$ac_ext >&5
16798
Reid Spencera773bd52006-08-04 18:18:08 +000016799 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016800fi
Reid Spencera773bd52006-08-04 18:18:08 +000016801
16802rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016803 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016804LIBS=$ac_check_lib_save_LIBS
16805fi
Reid Spencera773bd52006-08-04 18:18:08 +000016806{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16807echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016808if test $ac_cv_lib_dl_dlopen = yes; then
16809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16810else
Reid Spencera773bd52006-08-04 18:18:08 +000016811 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16812echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016813if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815else
16816 ac_check_lib_save_LIBS=$LIBS
16817LIBS="-lsvld $LIBS"
16818cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016819/* confdefs.h. */
16820_ACEOF
16821cat confdefs.h >>conftest.$ac_ext
16822cat >>conftest.$ac_ext <<_ACEOF
16823/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016824
Reid Spencera773bd52006-08-04 18:18:08 +000016825/* Override any GCC internal prototype to avoid an error.
16826 Use char because int might match the return type of a GCC
16827 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016828#ifdef __cplusplus
16829extern "C"
16830#endif
John Criswell7a73b802003-06-30 21:59:07 +000016831char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016832int
16833main ()
16834{
Reid Spencera773bd52006-08-04 18:18:08 +000016835return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016836 ;
16837 return 0;
16838}
16839_ACEOF
16840rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016841if { (ac_try="$ac_link"
16842case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845esac
16846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858esac
16859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016861 ac_status=$?
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; } &&
16864 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016865 { (case "(($ac_try" in
16866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16867 *) ac_try_echo=$ac_try;;
16868esac
16869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16870 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016871 ac_status=$?
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_cv_lib_svld_dlopen=yes
16875else
16876 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016877sed 's/^/| /' conftest.$ac_ext >&5
16878
Reid Spencera773bd52006-08-04 18:18:08 +000016879 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016880fi
Reid Spencera773bd52006-08-04 18:18:08 +000016881
16882rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016883 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016884LIBS=$ac_check_lib_save_LIBS
16885fi
Reid Spencera773bd52006-08-04 18:18:08 +000016886{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16887echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016888if test $ac_cv_lib_svld_dlopen = yes; then
16889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16890else
Reid Spencera773bd52006-08-04 18:18:08 +000016891 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16892echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016893if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895else
16896 ac_check_lib_save_LIBS=$LIBS
16897LIBS="-ldld $LIBS"
16898cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016904
Reid Spencera773bd52006-08-04 18:18:08 +000016905/* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016908#ifdef __cplusplus
16909extern "C"
16910#endif
John Criswell7a73b802003-06-30 21:59:07 +000016911char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016912int
16913main ()
16914{
Reid Spencera773bd52006-08-04 18:18:08 +000016915return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016921if { (ac_try="$ac_link"
16922case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16925esac
16926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016928 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016929 grep -v '^ *+' conftest.er1 >conftest.err
16930 rm -f conftest.er1
16931 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16935 { (case "(($ac_try" in
16936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16937 *) ac_try_echo=$ac_try;;
16938esac
16939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16940 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016941 ac_status=$?
16942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); }; } &&
16944 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016945 { (case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16948esac
16949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_cv_lib_dld_dld_link=yes
16955else
16956 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016957sed 's/^/| /' conftest.$ac_ext >&5
16958
Reid Spencera773bd52006-08-04 18:18:08 +000016959 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016960fi
Reid Spencera773bd52006-08-04 18:18:08 +000016961
16962rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016963 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016964LIBS=$ac_check_lib_save_LIBS
16965fi
Reid Spencera773bd52006-08-04 18:18:08 +000016966{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16967echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016968if test $ac_cv_lib_dld_dld_link = yes; then
16969 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16970fi
16971
16972
16973fi
16974
16975
16976fi
16977
16978
16979fi
16980
16981
16982fi
16983
16984
16985fi
16986
16987 ;;
16988 esac
16989
16990 if test "x$lt_cv_dlopen" != xno; then
16991 enable_dlopen=yes
16992 else
16993 enable_dlopen=no
16994 fi
16995
16996 case $lt_cv_dlopen in
16997 dlopen)
16998 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000017000
17001 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017002 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017003
17004 save_LIBS="$LIBS"
17005 LIBS="$lt_cv_dlopen_libs $LIBS"
17006
Reid Spencera773bd52006-08-04 18:18:08 +000017007 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17008echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017009if test "${lt_cv_dlopen_self+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011else
17012 if test "$cross_compiling" = yes; then :
17013 lt_cv_dlopen_self=cross
17014else
John Criswell47fdd832003-07-14 16:52:07 +000017015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017016 lt_status=$lt_dlunknown
17017 cat > conftest.$ac_ext <<EOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000017018#line 17018 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017019#include "confdefs.h"
17020
17021#if HAVE_DLFCN_H
17022#include <dlfcn.h>
17023#endif
17024
17025#include <stdio.h>
17026
17027#ifdef RTLD_GLOBAL
17028# define LT_DLGLOBAL RTLD_GLOBAL
17029#else
17030# ifdef DL_GLOBAL
17031# define LT_DLGLOBAL DL_GLOBAL
17032# else
17033# define LT_DLGLOBAL 0
17034# endif
17035#endif
17036
17037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17038 find out it does not work in some platform. */
17039#ifndef LT_DLLAZY_OR_NOW
17040# ifdef RTLD_LAZY
17041# define LT_DLLAZY_OR_NOW RTLD_LAZY
17042# else
17043# ifdef DL_LAZY
17044# define LT_DLLAZY_OR_NOW DL_LAZY
17045# else
17046# ifdef RTLD_NOW
17047# define LT_DLLAZY_OR_NOW RTLD_NOW
17048# else
17049# ifdef DL_NOW
17050# define LT_DLLAZY_OR_NOW DL_NOW
17051# else
17052# define LT_DLLAZY_OR_NOW 0
17053# endif
17054# endif
17055# endif
17056# endif
17057#endif
17058
17059#ifdef __cplusplus
17060extern "C" void exit (int);
17061#endif
17062
17063void fnord() { int i=42;}
17064int main ()
17065{
17066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17067 int status = $lt_dlunknown;
17068
17069 if (self)
17070 {
17071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17073 /* dlclose (self); */
17074 }
Reid Spencera773bd52006-08-04 18:18:08 +000017075 else
17076 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017077
17078 exit (status);
17079}
17080EOF
17081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17082 (eval $ac_link) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017086 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017087 lt_status=$?
17088 case x$lt_status in
17089 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17090 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017091 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017092 esac
17093 else :
17094 # compilation failed
17095 lt_cv_dlopen_self=no
17096 fi
17097fi
17098rm -fr conftest*
17099
17100
17101fi
Reid Spencera773bd52006-08-04 18:18:08 +000017102{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17103echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017104
17105 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017106 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17107 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17108echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017109if test "${lt_cv_dlopen_self_static+set}" = set; then
17110 echo $ECHO_N "(cached) $ECHO_C" >&6
17111else
17112 if test "$cross_compiling" = yes; then :
17113 lt_cv_dlopen_self_static=cross
17114else
John Criswell47fdd832003-07-14 16:52:07 +000017115 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017116 lt_status=$lt_dlunknown
17117 cat > conftest.$ac_ext <<EOF
Reid Spencerb6a7aa72007-01-19 17:41:47 +000017118#line 17118 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017119#include "confdefs.h"
17120
17121#if HAVE_DLFCN_H
17122#include <dlfcn.h>
17123#endif
17124
17125#include <stdio.h>
17126
17127#ifdef RTLD_GLOBAL
17128# define LT_DLGLOBAL RTLD_GLOBAL
17129#else
17130# ifdef DL_GLOBAL
17131# define LT_DLGLOBAL DL_GLOBAL
17132# else
17133# define LT_DLGLOBAL 0
17134# endif
17135#endif
17136
17137/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17138 find out it does not work in some platform. */
17139#ifndef LT_DLLAZY_OR_NOW
17140# ifdef RTLD_LAZY
17141# define LT_DLLAZY_OR_NOW RTLD_LAZY
17142# else
17143# ifdef DL_LAZY
17144# define LT_DLLAZY_OR_NOW DL_LAZY
17145# else
17146# ifdef RTLD_NOW
17147# define LT_DLLAZY_OR_NOW RTLD_NOW
17148# else
17149# ifdef DL_NOW
17150# define LT_DLLAZY_OR_NOW DL_NOW
17151# else
17152# define LT_DLLAZY_OR_NOW 0
17153# endif
17154# endif
17155# endif
17156# endif
17157#endif
17158
17159#ifdef __cplusplus
17160extern "C" void exit (int);
17161#endif
17162
17163void fnord() { int i=42;}
17164int main ()
17165{
17166 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17167 int status = $lt_dlunknown;
17168
17169 if (self)
17170 {
17171 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17172 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17173 /* dlclose (self); */
17174 }
Reid Spencera773bd52006-08-04 18:18:08 +000017175 else
17176 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017177
17178 exit (status);
17179}
17180EOF
17181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17182 (eval $ac_link) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017186 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017187 lt_status=$?
17188 case x$lt_status in
17189 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17190 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017191 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017192 esac
17193 else :
17194 # compilation failed
17195 lt_cv_dlopen_self_static=no
17196 fi
17197fi
17198rm -fr conftest*
17199
17200
17201fi
Reid Spencera773bd52006-08-04 18:18:08 +000017202{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17203echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017204 fi
17205
17206 CPPFLAGS="$save_CPPFLAGS"
17207 LDFLAGS="$save_LDFLAGS"
17208 LIBS="$save_LIBS"
17209 ;;
17210 esac
17211
17212 case $lt_cv_dlopen_self in
17213 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17214 *) enable_dlopen_self=unknown ;;
17215 esac
17216
17217 case $lt_cv_dlopen_self_static in
17218 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17219 *) enable_dlopen_self_static=unknown ;;
17220 esac
17221fi
17222
17223
Reid Spencera773bd52006-08-04 18:18:08 +000017224# Report which library types will actually be built
17225{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17226echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17227{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17228echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017229
Reid Spencera773bd52006-08-04 18:18:08 +000017230{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17231echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017232test "$can_build_shared" = "no" && enable_shared=no
17233
17234# On AIX, shared libraries and static libraries use the same namespace, and
17235# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017236case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017237aix3*)
17238 test "$enable_shared" = yes && enable_static=no
17239 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017240 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017241 postinstall_cmds='$RANLIB $lib'
17242 fi
17243 ;;
17244
Reid Spencer2706f8c2004-09-19 23:53:36 +000017245aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017246 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17247 test "$enable_shared" = yes && enable_static=no
17248 fi
John Criswell7a73b802003-06-30 21:59:07 +000017249 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017250esac
Reid Spencera773bd52006-08-04 18:18:08 +000017251{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17252echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017253
Reid Spencera773bd52006-08-04 18:18:08 +000017254{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17255echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017256# Make sure either enable_shared or enable_static is yes.
17257test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017258{ echo "$as_me:$LINENO: result: $enable_static" >&5
17259echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017260
17261# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017262# libtool distribution, otherwise you forgot to ship ltmain.sh
17263# with your package, and you will get complaints that there are
17264# no rules to generate ltmain.sh.
17265if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017266 # See if we are running on zsh, and set the options which allow our commands through
17267 # without removal of \ escapes.
17268 if test -n "${ZSH_VERSION+set}" ; then
17269 setopt NO_GLOB_SUBST
17270 fi
John Criswell7a73b802003-06-30 21:59:07 +000017271 # Now quote all the things that may contain metacharacters while being
17272 # careful not to overquote the AC_SUBSTed values. We take copies of the
17273 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017274 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 +000017275 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017276 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17277 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17278 deplibs_check_method reload_flag reload_cmds need_locks \
17279 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17280 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017281 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017282 old_postinstall_cmds old_postuninstall_cmds \
17283 compiler \
17284 CC \
17285 LD \
17286 lt_prog_compiler_wl \
17287 lt_prog_compiler_pic \
17288 lt_prog_compiler_static \
17289 lt_prog_compiler_no_builtin_flag \
17290 export_dynamic_flag_spec \
17291 thread_safe_flag_spec \
17292 whole_archive_flag_spec \
17293 enable_shared_with_static_runtimes \
17294 old_archive_cmds \
17295 old_archive_from_new_cmds \
17296 predep_objects \
17297 postdep_objects \
17298 predeps \
17299 postdeps \
17300 compiler_lib_search_path \
17301 archive_cmds \
17302 archive_expsym_cmds \
17303 postinstall_cmds \
17304 postuninstall_cmds \
17305 old_archive_from_expsyms_cmds \
17306 allow_undefined_flag \
17307 no_undefined_flag \
17308 export_symbols_cmds \
17309 hardcode_libdir_flag_spec \
17310 hardcode_libdir_flag_spec_ld \
17311 hardcode_libdir_separator \
17312 hardcode_automatic \
17313 module_cmds \
17314 module_expsym_cmds \
17315 lt_cv_prog_compiler_c_o \
17316 exclude_expsyms \
17317 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017318
17319 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017320 old_archive_cmds | \
17321 old_archive_from_new_cmds | \
17322 archive_cmds | \
17323 archive_expsym_cmds | \
17324 module_cmds | \
17325 module_expsym_cmds | \
17326 old_archive_from_expsyms_cmds | \
17327 export_symbols_cmds | \
17328 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017329 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017330 old_postinstall_cmds | old_postuninstall_cmds | \
17331 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017332 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017333 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 +000017334 ;;
17335 *)
17336 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17337 ;;
17338 esac
17339 done
17340
John Criswell47fdd832003-07-14 16:52:07 +000017341 case $lt_echo in
17342 *'\$0 --fallback-echo"')
17343 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17344 ;;
17345 esac
17346
17347cfgfile="${ofile}T"
17348 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17349 $rm -f "$cfgfile"
17350 { echo "$as_me:$LINENO: creating $ofile" >&5
17351echo "$as_me: creating $ofile" >&6;}
17352
17353 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017354#! $SHELL
17355
John Criswell47fdd832003-07-14 16:52:07 +000017356# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017357# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17358# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17359#
John Criswell47fdd832003-07-14 16:52:07 +000017360# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17361# Free Software Foundation, Inc.
17362#
17363# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017364# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17365#
17366# This program is free software; you can redistribute it and/or modify
17367# it under the terms of the GNU General Public License as published by
17368# the Free Software Foundation; either version 2 of the License, or
17369# (at your option) any later version.
17370#
17371# This program is distributed in the hope that it will be useful, but
17372# WITHOUT ANY WARRANTY; without even the implied warranty of
17373# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17374# General Public License for more details.
17375#
17376# You should have received a copy of the GNU General Public License
17377# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017378# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017379#
17380# As a special exception to the GNU General Public License, if you
17381# distribute this file as part of a program that contains a
17382# configuration script generated by Autoconf, you may include it under
17383# the same distribution terms that you use for the rest of that program.
17384
John Criswell47fdd832003-07-14 16:52:07 +000017385# A sed program that does not truncate output.
17386SED=$lt_SED
17387
John Criswell7a73b802003-06-30 21:59:07 +000017388# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017389Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017390
17391# The HP-UX ksh and POSIX shell print the target directory to stdout
17392# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017394
John Criswell47fdd832003-07-14 16:52:07 +000017395# The names of the tagged configurations supported by this script.
17396available_tags=
17397
John Criswell7a73b802003-06-30 21:59:07 +000017398# ### BEGIN LIBTOOL CONFIG
17399
17400# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17401
17402# Shell to use when invoking shell scripts.
17403SHELL=$lt_SHELL
17404
17405# Whether or not to build shared libraries.
17406build_libtool_libs=$enable_shared
17407
17408# Whether or not to build static libraries.
17409build_old_libs=$enable_static
17410
17411# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017412build_libtool_need_lc=$archive_cmds_need_lc
17413
17414# Whether or not to disallow shared libs when runtime libs are static
17415allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017416
17417# Whether or not to optimize for fast installation.
17418fast_install=$enable_fast_install
17419
17420# The host system.
17421host_alias=$host_alias
17422host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017423host_os=$host_os
17424
17425# The build system.
17426build_alias=$build_alias
17427build=$build
17428build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017429
17430# An echo program that does not interpret backslashes.
17431echo=$lt_echo
17432
17433# The archiver.
17434AR=$lt_AR
17435AR_FLAGS=$lt_AR_FLAGS
17436
John Criswell47fdd832003-07-14 16:52:07 +000017437# A C compiler.
17438LTCC=$lt_LTCC
17439
Reid Spencera773bd52006-08-04 18:18:08 +000017440# LTCC compiler flags.
17441LTCFLAGS=$lt_LTCFLAGS
17442
John Criswell47fdd832003-07-14 16:52:07 +000017443# A language-specific compiler.
17444CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017445
17446# Is the compiler the GNU C compiler?
17447with_gcc=$GCC
17448
John Criswell47fdd832003-07-14 16:52:07 +000017449# An ERE matcher.
17450EGREP=$lt_EGREP
17451
John Criswell7a73b802003-06-30 21:59:07 +000017452# The linker used to build libraries.
17453LD=$lt_LD
17454
17455# Whether we need hard or soft links.
17456LN_S=$lt_LN_S
17457
17458# A BSD-compatible nm program.
17459NM=$lt_NM
17460
17461# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017462STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017463
17464# Used to examine libraries when file_magic_cmd begins "file"
17465MAGIC_CMD=$MAGIC_CMD
17466
17467# Used on cygwin: DLL creation program.
17468DLLTOOL="$DLLTOOL"
17469
17470# Used on cygwin: object dumper.
17471OBJDUMP="$OBJDUMP"
17472
17473# Used on cygwin: assembler.
17474AS="$AS"
17475
17476# The name of the directory that contains temporary libtool files.
17477objdir=$objdir
17478
17479# How to create reloadable object files.
17480reload_flag=$lt_reload_flag
17481reload_cmds=$lt_reload_cmds
17482
17483# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017484wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017485
17486# Object file suffix (normally "o").
17487objext="$ac_objext"
17488
17489# Old archive suffix (normally "a").
17490libext="$libext"
17491
John Criswell47fdd832003-07-14 16:52:07 +000017492# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017493shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017494
John Criswell7a73b802003-06-30 21:59:07 +000017495# Executable file suffix (normally "").
17496exeext="$exeext"
17497
17498# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017499pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017500pic_mode=$pic_mode
17501
John Criswell47fdd832003-07-14 16:52:07 +000017502# What is the maximum length of a command?
17503max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017504
John Criswell47fdd832003-07-14 16:52:07 +000017505# Does compiler simultaneously support -c and -o options?
17506compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017507
Reid Spencera773bd52006-08-04 18:18:08 +000017508# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017509need_locks=$lt_need_locks
17510
17511# Do we need the lib prefix for modules?
17512need_lib_prefix=$need_lib_prefix
17513
17514# Do we need a version for libraries?
17515need_version=$need_version
17516
17517# Whether dlopen is supported.
17518dlopen_support=$enable_dlopen
17519
17520# Whether dlopen of programs is supported.
17521dlopen_self=$enable_dlopen_self
17522
17523# Whether dlopen of statically linked programs is supported.
17524dlopen_self_static=$enable_dlopen_self_static
17525
17526# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017527link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017528
17529# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017530no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017531
17532# Compiler flag to allow reflexive dlopens.
17533export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17534
17535# Compiler flag to generate shared objects directly from archives.
17536whole_archive_flag_spec=$lt_whole_archive_flag_spec
17537
17538# Compiler flag to generate thread-safe objects.
17539thread_safe_flag_spec=$lt_thread_safe_flag_spec
17540
17541# Library versioning type.
17542version_type=$version_type
17543
17544# Format of library name prefix.
17545libname_spec=$lt_libname_spec
17546
17547# List of archive names. First name is the real one, the rest are links.
17548# The last name is the one that the linker finds with -lNAME.
17549library_names_spec=$lt_library_names_spec
17550
17551# The coded name of the library, if different from the real name.
17552soname_spec=$lt_soname_spec
17553
17554# Commands used to build and install an old-style archive.
17555RANLIB=$lt_RANLIB
17556old_archive_cmds=$lt_old_archive_cmds
17557old_postinstall_cmds=$lt_old_postinstall_cmds
17558old_postuninstall_cmds=$lt_old_postuninstall_cmds
17559
17560# Create an old-style archive from a shared archive.
17561old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17562
17563# Create a temporary old-style archive to link instead of a shared archive.
17564old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17565
17566# Commands used to build and install a shared archive.
17567archive_cmds=$lt_archive_cmds
17568archive_expsym_cmds=$lt_archive_expsym_cmds
17569postinstall_cmds=$lt_postinstall_cmds
17570postuninstall_cmds=$lt_postuninstall_cmds
17571
John Criswell47fdd832003-07-14 16:52:07 +000017572# Commands used to build a loadable module (assumed same as above if empty)
17573module_cmds=$lt_module_cmds
17574module_expsym_cmds=$lt_module_expsym_cmds
17575
John Criswell7a73b802003-06-30 21:59:07 +000017576# Commands to strip libraries.
17577old_striplib=$lt_old_striplib
17578striplib=$lt_striplib
17579
John Criswell47fdd832003-07-14 16:52:07 +000017580# Dependencies to place before the objects being linked to create a
17581# shared library.
17582predep_objects=$lt_predep_objects
17583
17584# Dependencies to place after the objects being linked to create a
17585# shared library.
17586postdep_objects=$lt_postdep_objects
17587
17588# Dependencies to place before the objects being linked to create a
17589# shared library.
17590predeps=$lt_predeps
17591
17592# Dependencies to place after the objects being linked to create a
17593# shared library.
17594postdeps=$lt_postdeps
17595
17596# The library search path used internally by the compiler when linking
17597# a shared library.
17598compiler_lib_search_path=$lt_compiler_lib_search_path
17599
John Criswell7a73b802003-06-30 21:59:07 +000017600# Method to check whether dependent libraries are shared objects.
17601deplibs_check_method=$lt_deplibs_check_method
17602
17603# Command to use when deplibs_check_method == file_magic.
17604file_magic_cmd=$lt_file_magic_cmd
17605
17606# Flag that allows shared libraries with undefined symbols to be built.
17607allow_undefined_flag=$lt_allow_undefined_flag
17608
17609# Flag that forces no undefined symbols.
17610no_undefined_flag=$lt_no_undefined_flag
17611
17612# Commands used to finish a libtool library installation in a directory.
17613finish_cmds=$lt_finish_cmds
17614
17615# Same as above, but a single script fragment to be evaled but not shown.
17616finish_eval=$lt_finish_eval
17617
17618# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017619global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017620
17621# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017622global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017623
17624# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017625global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017626
17627# This is the shared library runtime path variable.
17628runpath_var=$runpath_var
17629
17630# This is the shared library path variable.
17631shlibpath_var=$shlibpath_var
17632
17633# Is shlibpath searched before the hard-coded library search path?
17634shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17635
17636# How to hardcode a shared library path into an executable.
17637hardcode_action=$hardcode_action
17638
17639# Whether we should hardcode library paths into libraries.
17640hardcode_into_libs=$hardcode_into_libs
17641
17642# Flag to hardcode \$libdir into a binary during linking.
17643# This must work even if \$libdir does not exist.
17644hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17645
John Criswell47fdd832003-07-14 16:52:07 +000017646# If ld is used when linking, flag to hardcode \$libdir into
17647# a binary during linking. This must work even if \$libdir does
17648# not exist.
17649hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17650
John Criswell7a73b802003-06-30 21:59:07 +000017651# Whether we need a single -rpath flag with a separated argument.
17652hardcode_libdir_separator=$lt_hardcode_libdir_separator
17653
John Criswell47fdd832003-07-14 16:52:07 +000017654# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017655# resulting binary.
17656hardcode_direct=$hardcode_direct
17657
17658# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17659# resulting binary.
17660hardcode_minus_L=$hardcode_minus_L
17661
17662# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17663# the resulting binary.
17664hardcode_shlibpath_var=$hardcode_shlibpath_var
17665
John Criswell47fdd832003-07-14 16:52:07 +000017666# Set to yes if building a shared library automatically hardcodes DIR into the library
17667# and all subsequent libraries and executables linked against it.
17668hardcode_automatic=$hardcode_automatic
17669
John Criswell7a73b802003-06-30 21:59:07 +000017670# Variables whose values should be saved in libtool wrapper scripts and
17671# restored at relink time.
17672variables_saved_for_relink="$variables_saved_for_relink"
17673
17674# Whether libtool must link a program against all its dependency libraries.
17675link_all_deplibs=$link_all_deplibs
17676
17677# Compile-time system search path for libraries
17678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17679
17680# Run-time system search path for libraries
17681sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17682
17683# Fix the shell variable \$srcfile for the compiler.
17684fix_srcfile_path="$fix_srcfile_path"
17685
17686# Set to yes if exported symbols are required.
17687always_export_symbols=$always_export_symbols
17688
17689# The commands to list exported symbols.
17690export_symbols_cmds=$lt_export_symbols_cmds
17691
17692# The commands to extract the exported symbol list from a shared archive.
17693extract_expsyms_cmds=$lt_extract_expsyms_cmds
17694
17695# Symbols that should not be listed in the preloaded symbols.
17696exclude_expsyms=$lt_exclude_expsyms
17697
17698# Symbols that must always be exported.
17699include_expsyms=$lt_include_expsyms
17700
17701# ### END LIBTOOL CONFIG
17702
17703__EOF__
17704
John Criswell47fdd832003-07-14 16:52:07 +000017705
John Criswell7a73b802003-06-30 21:59:07 +000017706 case $host_os in
17707 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017708 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017709
17710# AIX sometimes has problems with the GCC collect2 program. For some
17711# reason, if we set the COLLECT_NAMES environment variable, the problems
17712# vanish in a puff of smoke.
17713if test "X${COLLECT_NAMES+set}" != Xset; then
17714 COLLECT_NAMES=
17715 export COLLECT_NAMES
17716fi
17717EOF
17718 ;;
17719 esac
17720
John Criswell7a73b802003-06-30 21:59:07 +000017721 # We use sed instead of cat because bash on DJGPP gets confused if
17722 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17723 # text mode, it properly converts lines to CR/LF. This bash problem
17724 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017725 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017726
John Criswell47fdd832003-07-14 16:52:07 +000017727 mv -f "$cfgfile" "$ofile" || \
17728 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017729 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017730
17731else
17732 # If there is no Makefile yet, we rely on a make rule to execute
17733 # `config.status --recheck' to rerun these tests and create the
17734 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17736 if test -f "$ltmain_in"; then
17737 test -f Makefile && make "$ltmain"
17738 fi
John Criswell7a73b802003-06-30 21:59:07 +000017739fi
John Criswell7a73b802003-06-30 21:59:07 +000017740
17741
John Criswell47fdd832003-07-14 16:52:07 +000017742ac_ext=c
17743ac_cpp='$CPP $CPPFLAGS'
17744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17746ac_compiler_gnu=$ac_cv_c_compiler_gnu
17747
17748CC="$lt_save_CC"
17749
17750
Reid Spencera773bd52006-08-04 18:18:08 +000017751# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017752if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017753 withval=$with_tags; tagnames="$withval"
17754fi
17755
John Criswell47fdd832003-07-14 16:52:07 +000017756
17757if test -f "$ltmain" && test -n "$tagnames"; then
17758 if test ! -f "${ofile}"; then
17759 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17760echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17761 fi
17762
17763 if test -z "$LTCC"; then
17764 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17765 if test -z "$LTCC"; then
17766 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17767echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17768 else
17769 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17770echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17771 fi
17772 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017773 if test -z "$LTCFLAGS"; then
17774 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17775 fi
John Criswell47fdd832003-07-14 16:52:07 +000017776
17777 # Extract list of available tagged configurations in $ofile.
17778 # Note that this assumes the entire list is on one line.
17779 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17780
17781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17782 for tagname in $tagnames; do
17783 IFS="$lt_save_ifs"
17784 # Check whether tagname contains only valid characters
17785 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17786 "") ;;
17787 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17788echo "$as_me: error: invalid tag name: $tagname" >&2;}
17789 { (exit 1); exit 1; }; }
17790 ;;
17791 esac
17792
17793 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17794 then
17795 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17796echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17797 { (exit 1); exit 1; }; }
17798 fi
17799
17800 # Update the list of available tags.
17801 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017802 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017803
17804 case $tagname in
17805 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017806 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17807 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17808 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017809 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017810ac_cpp='$CXXCPP $CPPFLAGS'
17811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17814
17815
17816
17817
17818archive_cmds_need_lc_CXX=no
17819allow_undefined_flag_CXX=
17820always_export_symbols_CXX=no
17821archive_expsym_cmds_CXX=
17822export_dynamic_flag_spec_CXX=
17823hardcode_direct_CXX=no
17824hardcode_libdir_flag_spec_CXX=
17825hardcode_libdir_flag_spec_ld_CXX=
17826hardcode_libdir_separator_CXX=
17827hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017828hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017829hardcode_automatic_CXX=no
17830module_cmds_CXX=
17831module_expsym_cmds_CXX=
17832link_all_deplibs_CXX=unknown
17833old_archive_cmds_CXX=$old_archive_cmds
17834no_undefined_flag_CXX=
17835whole_archive_flag_spec_CXX=
17836enable_shared_with_static_runtimes_CXX=no
17837
17838# Dependencies to place before and after the object being linked:
17839predep_objects_CXX=
17840postdep_objects_CXX=
17841predeps_CXX=
17842postdeps_CXX=
17843compiler_lib_search_path_CXX=
17844
17845# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017846ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017847
17848# Object file extension for compiled C++ test sources.
17849objext=o
17850objext_CXX=$objext
17851
17852# Code to be used in simple compile tests
17853lt_simple_compile_test_code="int some_variable = 0;\n"
17854
17855# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017856lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017857
17858# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17859
17860# If no C compiler was specified, use CC.
17861LTCC=${LTCC-"$CC"}
17862
Reid Spencera773bd52006-08-04 18:18:08 +000017863# If no C compiler flags were specified, use CFLAGS.
17864LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17865
John Criswell47fdd832003-07-14 16:52:07 +000017866# Allow CC to be a program name with arguments.
17867compiler=$CC
17868
17869
Reid Spencera773bd52006-08-04 18:18:08 +000017870# save warnings/boilerplate of simple test code
17871ac_outfile=conftest.$ac_objext
17872printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17873eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17874_lt_compiler_boilerplate=`cat conftest.err`
17875$rm conftest*
17876
17877ac_outfile=conftest.$ac_objext
17878printf "$lt_simple_link_test_code" >conftest.$ac_ext
17879eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17880_lt_linker_boilerplate=`cat conftest.err`
17881$rm conftest*
17882
17883
John Criswell47fdd832003-07-14 16:52:07 +000017884# Allow CC to be a program name with arguments.
17885lt_save_CC=$CC
17886lt_save_LD=$LD
17887lt_save_GCC=$GCC
17888GCC=$GXX
17889lt_save_with_gnu_ld=$with_gnu_ld
17890lt_save_path_LD=$lt_cv_path_LD
17891if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17892 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17893else
Reid Spencera773bd52006-08-04 18:18:08 +000017894 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017895fi
17896if test -n "${lt_cv_path_LDCXX+set}"; then
17897 lt_cv_path_LD=$lt_cv_path_LDCXX
17898else
Reid Spencera773bd52006-08-04 18:18:08 +000017899 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017900fi
17901test -z "${LDCXX+set}" || LD=$LDCXX
17902CC=${CXX-"c++"}
17903compiler=$CC
17904compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017905for cc_temp in $compiler""; do
17906 case $cc_temp in
17907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17909 \-*) ;;
17910 *) break;;
17911 esac
17912done
17913cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17914
John Criswell47fdd832003-07-14 16:52:07 +000017915
17916# We don't want -fno-exception wen compiling C++ code, so set the
17917# no_builtin_flag separately
17918if test "$GXX" = yes; then
17919 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17920else
17921 lt_prog_compiler_no_builtin_flag_CXX=
17922fi
17923
17924if test "$GXX" = yes; then
17925 # Set up default GNU C++ configuration
17926
17927
Reid Spencera773bd52006-08-04 18:18:08 +000017928# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017929if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017930 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017931else
17932 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017933fi
17934
John Criswell47fdd832003-07-14 16:52:07 +000017935ac_prog=ld
17936if test "$GCC" = yes; then
17937 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017938 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17939echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017940 case $host in
17941 *-*-mingw*)
17942 # gcc leaves a trailing carriage return which upsets mingw
17943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17944 *)
17945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17946 esac
17947 case $ac_prog in
17948 # Accept absolute paths.
17949 [\\/]* | ?:[\\/]*)
17950 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017951 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017952 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17954 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17955 done
17956 test -z "$LD" && LD="$ac_prog"
17957 ;;
17958 "")
17959 # If it fails, then pretend we aren't using GCC.
17960 ac_prog=ld
17961 ;;
17962 *)
17963 # If it is relative, then search for the first ld in PATH.
17964 with_gnu_ld=unknown
17965 ;;
17966 esac
17967elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017968 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17969echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017970else
Reid Spencera773bd52006-08-04 18:18:08 +000017971 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17972echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017973fi
17974if test "${lt_cv_path_LD+set}" = set; then
17975 echo $ECHO_N "(cached) $ECHO_C" >&6
17976else
17977 if test -z "$LD"; then
17978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17979 for ac_dir in $PATH; do
17980 IFS="$lt_save_ifs"
17981 test -z "$ac_dir" && ac_dir=.
17982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17983 lt_cv_path_LD="$ac_dir/$ac_prog"
17984 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017985 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017986 # Break only if it was the GNU/non-GNU ld that we prefer.
17987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17988 *GNU* | *'with BFD'*)
17989 test "$with_gnu_ld" != no && break
17990 ;;
17991 *)
17992 test "$with_gnu_ld" != yes && break
17993 ;;
17994 esac
17995 fi
17996 done
17997 IFS="$lt_save_ifs"
17998else
17999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18000fi
18001fi
18002
18003LD="$lt_cv_path_LD"
18004if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018005 { echo "$as_me:$LINENO: result: $LD" >&5
18006echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018007else
Reid Spencera773bd52006-08-04 18:18:08 +000018008 { echo "$as_me:$LINENO: result: no" >&5
18009echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018010fi
18011test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18012echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18013 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018014{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18015echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018016if test "${lt_cv_prog_gnu_ld+set}" = set; then
18017 echo $ECHO_N "(cached) $ECHO_C" >&6
18018else
Reid Spencera773bd52006-08-04 18:18:08 +000018019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018020case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018021*GNU* | *'with BFD'*)
18022 lt_cv_prog_gnu_ld=yes
18023 ;;
18024*)
18025 lt_cv_prog_gnu_ld=no
18026 ;;
18027esac
18028fi
Reid Spencera773bd52006-08-04 18:18:08 +000018029{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18030echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018031with_gnu_ld=$lt_cv_prog_gnu_ld
18032
18033
18034
18035 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18036 # archiving commands below assume that GNU ld is being used.
18037 if test "$with_gnu_ld" = yes; then
18038 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18039 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'
18040
18041 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18042 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18043
18044 # If archive_cmds runs LD, not CC, wlarc should be empty
18045 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18046 # investigate it a little bit more. (MM)
18047 wlarc='${wl}'
18048
18049 # ancient GNU ld didn't support --whole-archive et. al.
18050 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18051 grep 'no-whole-archive' > /dev/null; then
18052 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18053 else
18054 whole_archive_flag_spec_CXX=
18055 fi
18056 else
18057 with_gnu_ld=no
18058 wlarc=
18059
18060 # A generic and very simple default shared library creation
18061 # command for GNU C++ for the case where it uses the native
18062 # linker, instead of GNU ld. If possible, this setting should
18063 # overridden to take advantage of the native linker features on
18064 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018066 fi
18067
18068 # Commands to make compiler produce verbose output that lists
18069 # what "hidden" libraries, object files and flags are used when
18070 # linking a shared library.
18071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18072
18073else
18074 GXX=no
18075 with_gnu_ld=no
18076 wlarc=
18077fi
18078
18079# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018080{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18081echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018082ld_shlibs_CXX=yes
18083case $host_os in
18084 aix3*)
18085 # FIXME: insert proper C++ library support
18086 ld_shlibs_CXX=no
18087 ;;
18088 aix4* | aix5*)
18089 if test "$host_cpu" = ia64; then
18090 # On IA64, the linker does run time linking by default, so we don't
18091 # have to do anything special.
18092 aix_use_runtimelinking=no
18093 exp_sym_flag='-Bexport'
18094 no_entry_flag=""
18095 else
18096 aix_use_runtimelinking=no
18097
18098 # Test if we are trying to use run time linking or normal
18099 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18100 # need to do runtime linking.
18101 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18102 for ld_flag in $LDFLAGS; do
18103 case $ld_flag in
18104 *-brtl*)
18105 aix_use_runtimelinking=yes
18106 break
18107 ;;
18108 esac
18109 done
Reid Spencera773bd52006-08-04 18:18:08 +000018110 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018111 esac
18112
18113 exp_sym_flag='-bexport'
18114 no_entry_flag='-bnoentry'
18115 fi
18116
18117 # When large executables or shared objects are built, AIX ld can
18118 # have problems creating the table of contents. If linking a library
18119 # or program results in "error TOC overflow" add -mminimal-toc to
18120 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18121 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18122
18123 archive_cmds_CXX=''
18124 hardcode_direct_CXX=yes
18125 hardcode_libdir_separator_CXX=':'
18126 link_all_deplibs_CXX=yes
18127
18128 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018129 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018130 # We only want to do this on AIX 4.2 and lower, the check
18131 # below for broken collect2 doesn't work under 4.3+
18132 collect2name=`${CC} -print-prog-name=collect2`
18133 if test -f "$collect2name" && \
18134 strings "$collect2name" | grep resolve_lib_name >/dev/null
18135 then
18136 # We have reworked collect2
18137 hardcode_direct_CXX=yes
18138 else
18139 # We have old collect2
18140 hardcode_direct_CXX=unsupported
18141 # It fails to find uninstalled libraries when the uninstalled
18142 # path is not listed in the libpath. Setting hardcode_minus_L
18143 # to unsupported forces relinking
18144 hardcode_minus_L_CXX=yes
18145 hardcode_libdir_flag_spec_CXX='-L$libdir'
18146 hardcode_libdir_separator_CXX=
18147 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018148 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018149 esac
18150 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018151 if test "$aix_use_runtimelinking" = yes; then
18152 shared_flag="$shared_flag "'${wl}-G'
18153 fi
John Criswell47fdd832003-07-14 16:52:07 +000018154 else
18155 # not using gcc
18156 if test "$host_cpu" = ia64; then
18157 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18158 # chokes on -Wl,-G. The following line is correct:
18159 shared_flag='-G'
18160 else
18161 if test "$aix_use_runtimelinking" = yes; then
18162 shared_flag='${wl}-G'
18163 else
18164 shared_flag='${wl}-bM:SRE'
18165 fi
18166 fi
18167 fi
18168
18169 # It seems that -bexpall does not export symbols beginning with
18170 # underscore (_), so it is better to generate a list of symbols to export.
18171 always_export_symbols_CXX=yes
18172 if test "$aix_use_runtimelinking" = yes; then
18173 # Warning - without using the other runtime loading flags (-brtl),
18174 # -berok will link without error, but may produce a broken library.
18175 allow_undefined_flag_CXX='-berok'
18176 # Determine the default libpath from the value encoded in an empty executable.
18177 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018178/* confdefs.h. */
18179_ACEOF
18180cat confdefs.h >>conftest.$ac_ext
18181cat >>conftest.$ac_ext <<_ACEOF
18182/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018183
John Criswell47fdd832003-07-14 16:52:07 +000018184int
18185main ()
18186{
18187
18188 ;
18189 return 0;
18190}
18191_ACEOF
18192rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018193if { (ac_try="$ac_link"
18194case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18197esac
18198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018200 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018201 grep -v '^ *+' conftest.er1 >conftest.err
18202 rm -f conftest.er1
18203 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18207 { (case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18210esac
18211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018217 { (case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18220esac
18221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018223 ac_status=$?
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); }; }; then
18226
18227aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18228}'`
18229# Check for a 64-bit object if we didn't find anything.
18230if 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; }
18231}'`; fi
18232else
18233 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018234sed 's/^/| /' conftest.$ac_ext >&5
18235
Reid Spencera773bd52006-08-04 18:18:08 +000018236
John Criswell47fdd832003-07-14 16:52:07 +000018237fi
Reid Spencera773bd52006-08-04 18:18:08 +000018238
18239rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018240 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018241if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18242
18243 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18244
Reid Spencera773bd52006-08-04 18:18:08 +000018245 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 +000018246 else
18247 if test "$host_cpu" = ia64; then
18248 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18249 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018250 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 +000018251 else
18252 # Determine the default libpath from the value encoded in an empty executable.
18253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018259
John Criswell47fdd832003-07-14 16:52:07 +000018260int
18261main ()
18262{
18263
18264 ;
18265 return 0;
18266}
18267_ACEOF
18268rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018269if { (ac_try="$ac_link"
18270case "(($ac_try" in
18271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18272 *) ac_try_echo=$ac_try;;
18273esac
18274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18275 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18283 { (case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286esac
18287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; } &&
18292 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018293 { (case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18296esac
18297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302
18303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18304}'`
18305# Check for a 64-bit object if we didn't find anything.
18306if 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; }
18307}'`; fi
18308else
18309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018310sed 's/^/| /' conftest.$ac_ext >&5
18311
Reid Spencera773bd52006-08-04 18:18:08 +000018312
John Criswell47fdd832003-07-14 16:52:07 +000018313fi
Reid Spencera773bd52006-08-04 18:18:08 +000018314
18315rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018316 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18318
18319 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18320 # Warning - without using the other run time loading flags,
18321 # -berok will link without error, but may produce a broken library.
18322 no_undefined_flag_CXX=' ${wl}-bernotok'
18323 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018324 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018325 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018326 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018327 # This is similar to how AIX traditionally builds its shared libraries.
18328 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 +000018329 fi
18330 fi
18331 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018332
18333 beos*)
18334 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18335 allow_undefined_flag_CXX=unsupported
18336 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18337 # support --undefined. This deserves some investigation. FIXME
18338 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18339 else
18340 ld_shlibs_CXX=no
18341 fi
18342 ;;
18343
John Criswell47fdd832003-07-14 16:52:07 +000018344 chorus*)
18345 case $cc_basename in
18346 *)
18347 # FIXME: insert proper C++ library support
18348 ld_shlibs_CXX=no
18349 ;;
18350 esac
18351 ;;
18352
18353 cygwin* | mingw* | pw32*)
18354 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18355 # as there is no search path for DLLs.
18356 hardcode_libdir_flag_spec_CXX='-L$libdir'
18357 allow_undefined_flag_CXX=unsupported
18358 always_export_symbols_CXX=no
18359 enable_shared_with_static_runtimes_CXX=yes
18360
18361 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018362 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 +000018363 # If the export-symbols file already is a .def file (1st line
18364 # is EXPORTS), use it as is; otherwise, prepend...
18365 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18366 cp $export_symbols $output_objdir/$soname.def;
18367 else
18368 echo EXPORTS > $output_objdir/$soname.def;
18369 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018370 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018371 $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 +000018372 else
18373 ld_shlibs_CXX=no
18374 fi
18375 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018376 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018377 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018378 rhapsody* | darwin1.[012])
18379 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18380 ;;
18381 *) # Darwin 1.3 on
18382 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18383 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18384 else
18385 case ${MACOSX_DEPLOYMENT_TARGET} in
18386 10.[012])
18387 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18388 ;;
18389 10.*)
18390 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18391 ;;
18392 esac
18393 fi
18394 ;;
18395 esac
18396 archive_cmds_need_lc_CXX=no
18397 hardcode_direct_CXX=no
18398 hardcode_automatic_CXX=yes
18399 hardcode_shlibpath_var_CXX=unsupported
18400 whole_archive_flag_spec_CXX=''
18401 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018402
Reid Spencer2706f8c2004-09-19 23:53:36 +000018403 if test "$GXX" = yes ; then
18404 lt_int_apple_cc_single_mod=no
18405 output_verbose_link_cmd='echo'
18406 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18407 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018408 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018409 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018410 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 +000018411 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018412 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 +000018413 fi
18414 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018415 # 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 +000018416 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018417 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 +000018418 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018419 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 +000018420 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018421 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 +000018422 else
Reid Spencera773bd52006-08-04 18:18:08 +000018423 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018424 xlc*)
18425 output_verbose_link_cmd='echo'
18426 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'
18427 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018428 # 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 +000018429 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}'
18430 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 +000018431 ;;
18432 *)
18433 ld_shlibs_CXX=no
18434 ;;
18435 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018436 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018437 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018438
18439 dgux*)
18440 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018441 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018442 # FIXME: insert proper C++ library support
18443 ld_shlibs_CXX=no
18444 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018445 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018446 # Green Hills C++ Compiler
18447 # FIXME: insert proper C++ library support
18448 ld_shlibs_CXX=no
18449 ;;
18450 *)
18451 # FIXME: insert proper C++ library support
18452 ld_shlibs_CXX=no
18453 ;;
18454 esac
18455 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018456 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018457 # C++ shared libraries reported to be fairly broken before switch to ELF
18458 ld_shlibs_CXX=no
18459 ;;
18460 freebsd-elf*)
18461 archive_cmds_need_lc_CXX=no
18462 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018463 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018464 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18465 # conventions
18466 ld_shlibs_CXX=yes
18467 ;;
18468 gnu*)
18469 ;;
18470 hpux9*)
18471 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18472 hardcode_libdir_separator_CXX=:
18473 export_dynamic_flag_spec_CXX='${wl}-E'
18474 hardcode_direct_CXX=yes
18475 hardcode_minus_L_CXX=yes # Not in the search PATH,
18476 # but as the default
18477 # location of the library.
18478
18479 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018480 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018481 # FIXME: insert proper C++ library support
18482 ld_shlibs_CXX=no
18483 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018484 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018485 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 +000018486 # Commands to make compiler produce verbose output that lists
18487 # what "hidden" libraries, object files and flags are used when
18488 # linking a shared library.
18489 #
18490 # There doesn't appear to be a way to prevent this compiler from
18491 # explicitly linking system object files so we need to strip them
18492 # from the output so that they don't get included in the library
18493 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018494 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 +000018495 ;;
18496 *)
18497 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018498 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 +000018499 else
18500 # FIXME: insert proper C++ library support
18501 ld_shlibs_CXX=no
18502 fi
18503 ;;
18504 esac
18505 ;;
18506 hpux10*|hpux11*)
18507 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018508 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18509 hardcode_libdir_separator_CXX=:
18510
18511 case $host_cpu in
18512 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018513 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018514 ;;
18515 *)
John Criswell47fdd832003-07-14 16:52:07 +000018516 export_dynamic_flag_spec_CXX='${wl}-E'
18517 ;;
18518 esac
18519 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018520 case $host_cpu in
18521 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018522 hardcode_direct_CXX=no
18523 hardcode_shlibpath_var_CXX=no
18524 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018525 *)
18526 hardcode_direct_CXX=yes
18527 hardcode_minus_L_CXX=yes # Not in the search PATH,
18528 # but as the default
18529 # location of the library.
18530 ;;
18531 esac
18532
18533 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018534 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018535 # FIXME: insert proper C++ library support
18536 ld_shlibs_CXX=no
18537 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018538 aCC*)
18539 case $host_cpu in
18540 hppa*64*)
18541 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18542 ;;
18543 ia64*)
18544 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 +000018545 ;;
18546 *)
18547 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18548 ;;
18549 esac
18550 # Commands to make compiler produce verbose output that lists
18551 # what "hidden" libraries, object files and flags are used when
18552 # linking a shared library.
18553 #
18554 # There doesn't appear to be a way to prevent this compiler from
18555 # explicitly linking system object files so we need to strip them
18556 # from the output so that they don't get included in the library
18557 # dependencies.
18558 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'
18559 ;;
18560 *)
18561 if test "$GXX" = yes; then
18562 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018563 case $host_cpu in
18564 hppa*64*)
18565 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18566 ;;
18567 ia64*)
18568 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 +000018569 ;;
18570 *)
18571 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'
18572 ;;
18573 esac
18574 fi
18575 else
18576 # FIXME: insert proper C++ library support
18577 ld_shlibs_CXX=no
18578 fi
18579 ;;
18580 esac
18581 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018582 interix3*)
18583 hardcode_direct_CXX=no
18584 hardcode_shlibpath_var_CXX=no
18585 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18586 export_dynamic_flag_spec_CXX='${wl}-E'
18587 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18588 # Instead, shared libraries are loaded at an image base (0x10000000 by
18589 # default) and relocated if they conflict, which is a slow very memory
18590 # consuming and fragmenting process. To avoid this, we pick a random,
18591 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18592 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18593 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'
18594 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'
18595 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018596 irix5* | irix6*)
18597 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018598 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018599 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018600 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 +000018601
18602 # Archives containing C++ object files must be created using
18603 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18604 # necessary to make sure instantiated templates are included
18605 # in the archive.
18606 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18607 ;;
18608 *)
18609 if test "$GXX" = yes; then
18610 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018611 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 +000018612 else
18613 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'
18614 fi
18615 fi
18616 link_all_deplibs_CXX=yes
18617 ;;
18618 esac
18619 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18620 hardcode_libdir_separator_CXX=:
18621 ;;
18622 linux*)
18623 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018624 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018625 # Kuck and Associates, Inc. (KAI) C++ Compiler
18626
18627 # KCC will only create a shared library if the output file
18628 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18629 # to its proper name (with version) after linking.
18630 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'
18631 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'
18632 # Commands to make compiler produce verbose output that lists
18633 # what "hidden" libraries, object files and flags are used when
18634 # linking a shared library.
18635 #
18636 # There doesn't appear to be a way to prevent this compiler from
18637 # explicitly linking system object files so we need to strip them
18638 # from the output so that they don't get included in the library
18639 # dependencies.
18640 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'
18641
18642 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18643 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18644
18645 # Archives containing C++ object files must be created using
18646 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18647 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018649 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018650 # Intel C++
18651 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018652 # version 8.0 and above of icpc choke on multiply defined symbols
18653 # if we add $predep_objects and $postdep_objects, however 7.1 and
18654 # earlier do not add the objects themselves.
18655 case `$CC -V 2>&1` in
18656 *"Version 7."*)
18657 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18658 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'
18659 ;;
18660 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018661 tmp_idyn=
18662 case $host_cpu in
18663 ia64*) tmp_idyn=' -i_dynamic';;
18664 esac
18665 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18666 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 +000018667 ;;
18668 esac
John Criswell47fdd832003-07-14 16:52:07 +000018669 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018670 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18671 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18672 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18673 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018674 pgCC*)
18675 # Portland Group C++ compiler
18676 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18677 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'
18678
18679 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18680 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18681 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'
18682 ;;
18683 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018684 # Compaq C++
18685 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18686 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'
18687
18688 runpath_var=LD_RUN_PATH
18689 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18690 hardcode_libdir_separator_CXX=:
18691
18692 # Commands to make compiler produce verbose output that lists
18693 # what "hidden" libraries, object files and flags are used when
18694 # linking a shared library.
18695 #
18696 # There doesn't appear to be a way to prevent this compiler from
18697 # explicitly linking system object files so we need to strip them
18698 # from the output so that they don't get included in the library
18699 # dependencies.
18700 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'
18701 ;;
18702 esac
18703 ;;
18704 lynxos*)
18705 # FIXME: insert proper C++ library support
18706 ld_shlibs_CXX=no
18707 ;;
18708 m88k*)
18709 # FIXME: insert proper C++ library support
18710 ld_shlibs_CXX=no
18711 ;;
18712 mvs*)
18713 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018714 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018715 # FIXME: insert proper C++ library support
18716 ld_shlibs_CXX=no
18717 ;;
18718 *)
18719 # FIXME: insert proper C++ library support
18720 ld_shlibs_CXX=no
18721 ;;
18722 esac
18723 ;;
18724 netbsd*)
18725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18727 wlarc=
18728 hardcode_libdir_flag_spec_CXX='-R$libdir'
18729 hardcode_direct_CXX=yes
18730 hardcode_shlibpath_var_CXX=no
18731 fi
18732 # Workaround some broken pre-1.5 toolchains
18733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18734 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018735 openbsd2*)
18736 # C++ shared libraries are fairly broken
18737 ld_shlibs_CXX=no
18738 ;;
18739 openbsd*)
18740 hardcode_direct_CXX=yes
18741 hardcode_shlibpath_var_CXX=no
18742 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18743 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18744 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18745 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18746 export_dynamic_flag_spec_CXX='${wl}-E'
18747 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18748 fi
18749 output_verbose_link_cmd='echo'
18750 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018751 osf3*)
18752 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018753 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018754 # Kuck and Associates, Inc. (KAI) C++ Compiler
18755
18756 # KCC will only create a shared library if the output file
18757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18758 # to its proper name (with version) after linking.
18759 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'
18760
18761 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18762 hardcode_libdir_separator_CXX=:
18763
18764 # Archives containing C++ object files must be created using
18765 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18766 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18767
18768 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018769 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018770 # Rational C++ 2.4.1
18771 # FIXME: insert proper C++ library support
18772 ld_shlibs_CXX=no
18773 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018774 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018775 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018776 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 +000018777
18778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18779 hardcode_libdir_separator_CXX=:
18780
18781 # Commands to make compiler produce verbose output that lists
18782 # what "hidden" libraries, object files and flags are used when
18783 # linking a shared library.
18784 #
18785 # There doesn't appear to be a way to prevent this compiler from
18786 # explicitly linking system object files so we need to strip them
18787 # from the output so that they don't get included in the library
18788 # dependencies.
18789 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'
18790 ;;
18791 *)
18792 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018794 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 +000018795
18796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18797 hardcode_libdir_separator_CXX=:
18798
18799 # Commands to make compiler produce verbose output that lists
18800 # what "hidden" libraries, object files and flags are used when
18801 # linking a shared library.
18802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18803
18804 else
18805 # FIXME: insert proper C++ library support
18806 ld_shlibs_CXX=no
18807 fi
18808 ;;
18809 esac
18810 ;;
18811 osf4* | osf5*)
18812 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018813 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018814 # Kuck and Associates, Inc. (KAI) C++ Compiler
18815
18816 # KCC will only create a shared library if the output file
18817 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18818 # to its proper name (with version) after linking.
18819 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'
18820
18821 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18822 hardcode_libdir_separator_CXX=:
18823
18824 # Archives containing C++ object files must be created using
18825 # the KAI C++ compiler.
18826 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18827 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018828 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018829 # Rational C++ 2.4.1
18830 # FIXME: insert proper C++ library support
18831 ld_shlibs_CXX=no
18832 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018833 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018834 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018835 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 +000018836 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18837 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018838 $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 +000018839 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018840
18841 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18842 hardcode_libdir_separator_CXX=:
18843
18844 # Commands to make compiler produce verbose output that lists
18845 # what "hidden" libraries, object files and flags are used when
18846 # linking a shared library.
18847 #
18848 # There doesn't appear to be a way to prevent this compiler from
18849 # explicitly linking system object files so we need to strip them
18850 # from the output so that they don't get included in the library
18851 # dependencies.
18852 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'
18853 ;;
18854 *)
18855 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018857 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 +000018858
18859 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18860 hardcode_libdir_separator_CXX=:
18861
18862 # Commands to make compiler produce verbose output that lists
18863 # what "hidden" libraries, object files and flags are used when
18864 # linking a shared library.
18865 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18866
18867 else
18868 # FIXME: insert proper C++ library support
18869 ld_shlibs_CXX=no
18870 fi
18871 ;;
18872 esac
18873 ;;
18874 psos*)
18875 # FIXME: insert proper C++ library support
18876 ld_shlibs_CXX=no
18877 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018878 sunos4*)
18879 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018880 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018881 # Sun C++ 4.x
18882 # FIXME: insert proper C++ library support
18883 ld_shlibs_CXX=no
18884 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018885 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018886 # Lucid
18887 # FIXME: insert proper C++ library support
18888 ld_shlibs_CXX=no
18889 ;;
18890 *)
18891 # FIXME: insert proper C++ library support
18892 ld_shlibs_CXX=no
18893 ;;
18894 esac
18895 ;;
18896 solaris*)
18897 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018898 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018899 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018900 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018901 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018902 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 +000018903 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 +000018904 $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 +000018905
18906 hardcode_libdir_flag_spec_CXX='-R$libdir'
18907 hardcode_shlibpath_var_CXX=no
18908 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018909 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018910 *)
18911 # The C++ compiler is used as linker so we must use $wl
18912 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018913 # linker. We must also pass each convience library through
18914 # to the system linker between allextract/defaultextract.
18915 # The C++ compiler will combine linker options so we
18916 # cannot just pass the convience library names through
18917 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018918 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018919 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 +000018920 ;;
18921 esac
18922 link_all_deplibs_CXX=yes
18923
Reid Spencera773bd52006-08-04 18:18:08 +000018924 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018925
18926 # Archives containing C++ object files must be created using
18927 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18928 # necessary to make sure instantiated templates are included
18929 # in the archive.
18930 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18931 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018932 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018933 # Green Hills C++ Compiler
18934 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18935
18936 # The C++ compiler must be used to create the archive.
18937 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18938 ;;
18939 *)
18940 # GNU C++ compiler with Solaris linker
18941 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18942 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18943 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018944 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 +000018945 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18946 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18947
John Criswell47fdd832003-07-14 16:52:07 +000018948 # Commands to make compiler produce verbose output that lists
18949 # what "hidden" libraries, object files and flags are used when
18950 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018951 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018952 else
18953 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18954 # platform.
18955 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 +000018956 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18957 $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 +000018958
18959 # Commands to make compiler produce verbose output that lists
18960 # what "hidden" libraries, object files and flags are used when
18961 # linking a shared library.
18962 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18963 fi
18964
18965 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18966 fi
18967 ;;
18968 esac
18969 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018970 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18971 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018972 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018973 hardcode_shlibpath_var_CXX=no
18974 runpath_var='LD_RUN_PATH'
18975
18976 case $cc_basename in
18977 CC*)
18978 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18979 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18980 ;;
18981 *)
18982 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18983 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18984 ;;
18985 esac
18986 ;;
18987 sysv5* | sco3.2v5* | sco5v6*)
18988 # Note: We can NOT use -z defs as we might desire, because we do not
18989 # link with -lc, and that would cause any symbols used from libc to
18990 # always be unresolved, which means just about no library would
18991 # ever link correctly. If we're not using GNU ld we use -z text
18992 # though, which does catch some bad symbols but isn't as heavy-handed
18993 # as -z defs.
18994 # For security reasons, it is highly recommended that you always
18995 # use absolute paths for naming shared libraries, and exclude the
18996 # DT_RUNPATH tag from executables and libraries. But doing so
18997 # requires that you compile everything twice, which is a pain.
18998 # So that behaviour is only enabled if SCOABSPATH is set to a
18999 # non-empty value in the environment. Most likely only useful for
19000 # creating official distributions of packages.
19001 # This is a hack until libtool officially supports absolute path
19002 # names for shared libraries.
19003 no_undefined_flag_CXX='${wl}-z,text'
19004 allow_undefined_flag_CXX='${wl}-z,nodefs'
19005 archive_cmds_need_lc_CXX=no
19006 hardcode_shlibpath_var_CXX=no
19007 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19008 hardcode_libdir_separator_CXX=':'
19009 link_all_deplibs_CXX=yes
19010 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19011 runpath_var='LD_RUN_PATH'
19012
19013 case $cc_basename in
19014 CC*)
19015 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19016 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19017 ;;
19018 *)
19019 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19020 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19021 ;;
19022 esac
John Criswell47fdd832003-07-14 16:52:07 +000019023 ;;
19024 tandem*)
19025 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019026 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019027 # NonStop-UX NCC 3.20
19028 # FIXME: insert proper C++ library support
19029 ld_shlibs_CXX=no
19030 ;;
19031 *)
19032 # FIXME: insert proper C++ library support
19033 ld_shlibs_CXX=no
19034 ;;
19035 esac
19036 ;;
19037 vxworks*)
19038 # FIXME: insert proper C++ library support
19039 ld_shlibs_CXX=no
19040 ;;
19041 *)
19042 # FIXME: insert proper C++ library support
19043 ld_shlibs_CXX=no
19044 ;;
19045esac
Reid Spencera773bd52006-08-04 18:18:08 +000019046{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19047echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019048test "$ld_shlibs_CXX" = no && can_build_shared=no
19049
19050GCC_CXX="$GXX"
19051LD_CXX="$LD"
19052
John Criswell47fdd832003-07-14 16:52:07 +000019053
19054cat > conftest.$ac_ext <<EOF
19055class Foo
19056{
19057public:
19058 Foo (void) { a = 0; }
19059private:
19060 int a;
19061};
19062EOF
19063
19064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19065 (eval $ac_compile) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; then
19069 # Parse the compiler output and extract the necessary
19070 # objects, libraries and library flags.
19071
19072 # Sentinel used to keep track of whether or not we are before
19073 # the conftest object file.
19074 pre_test_object_deps_done=no
19075
19076 # The `*' in the case matches for architectures that use `case' in
19077 # $output_verbose_cmd can trigger glob expansion during the loop
19078 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019079 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019080
19081 for p in `eval $output_verbose_link_cmd`; do
19082 case $p in
19083
19084 -L* | -R* | -l*)
19085 # Some compilers place space between "-{L,R}" and the path.
19086 # Remove the space.
19087 if test $p = "-L" \
19088 || test $p = "-R"; then
19089 prev=$p
19090 continue
19091 else
19092 prev=
19093 fi
19094
19095 if test "$pre_test_object_deps_done" = no; then
19096 case $p in
19097 -L* | -R*)
19098 # Internal compiler library paths should come after those
19099 # provided the user. The postdeps already come after the
19100 # user supplied libs so there is no need to process them.
19101 if test -z "$compiler_lib_search_path_CXX"; then
19102 compiler_lib_search_path_CXX="${prev}${p}"
19103 else
19104 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19105 fi
19106 ;;
19107 # The "-l" case would never come before the object being
19108 # linked, so don't bother handling this case.
19109 esac
19110 else
19111 if test -z "$postdeps_CXX"; then
19112 postdeps_CXX="${prev}${p}"
19113 else
19114 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19115 fi
19116 fi
19117 ;;
19118
19119 *.$objext)
19120 # This assumes that the test object file only shows up
19121 # once in the compiler output.
19122 if test "$p" = "conftest.$objext"; then
19123 pre_test_object_deps_done=yes
19124 continue
19125 fi
19126
19127 if test "$pre_test_object_deps_done" = no; then
19128 if test -z "$predep_objects_CXX"; then
19129 predep_objects_CXX="$p"
19130 else
19131 predep_objects_CXX="$predep_objects_CXX $p"
19132 fi
19133 else
19134 if test -z "$postdep_objects_CXX"; then
19135 postdep_objects_CXX="$p"
19136 else
19137 postdep_objects_CXX="$postdep_objects_CXX $p"
19138 fi
19139 fi
19140 ;;
19141
19142 *) ;; # Ignore the rest.
19143
19144 esac
19145 done
19146
19147 # Clean up.
19148 rm -f a.out a.exe
19149else
19150 echo "libtool.m4: error: problem compiling CXX test program"
19151fi
19152
19153$rm -f confest.$objext
19154
Reid Spencera773bd52006-08-04 18:18:08 +000019155# PORTME: override above test on systems where it is broken
19156case $host_os in
19157interix3*)
19158 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19159 # hack all around it, let's just trust "g++" to DTRT.
19160 predep_objects_CXX=
19161 postdep_objects_CXX=
19162 postdeps_CXX=
19163 ;;
19164
19165solaris*)
19166 case $cc_basename in
19167 CC*)
19168 # Adding this requires a known-good setup of shared libraries for
19169 # Sun compiler versions before 5.6, else PIC objects from an old
19170 # archive will be linked into the output, leading to subtle bugs.
19171 postdeps_CXX='-lCstd -lCrun'
19172 ;;
19173 esac
19174 ;;
19175esac
19176
19177
John Criswell47fdd832003-07-14 16:52:07 +000019178case " $postdeps_CXX " in
19179*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19180esac
19181
19182lt_prog_compiler_wl_CXX=
19183lt_prog_compiler_pic_CXX=
19184lt_prog_compiler_static_CXX=
19185
Reid Spencera773bd52006-08-04 18:18:08 +000019186{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019188
19189 # C++ specific cases for pic, static, wl, etc.
19190 if test "$GXX" = yes; then
19191 lt_prog_compiler_wl_CXX='-Wl,'
19192 lt_prog_compiler_static_CXX='-static'
19193
19194 case $host_os in
19195 aix*)
19196 # All AIX code is PIC.
19197 if test "$host_cpu" = ia64; then
19198 # AIX 5 now supports IA64 processor
19199 lt_prog_compiler_static_CXX='-Bstatic'
19200 fi
19201 ;;
19202 amigaos*)
19203 # FIXME: we need at least 68020 code to build shared libraries, but
19204 # adding the `-m68020' flag to GCC prevents building anything better,
19205 # like `-m68040'.
19206 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19207 ;;
19208 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19209 # PIC is the default for these OSes.
19210 ;;
19211 mingw* | os2* | pw32*)
19212 # This hack is so that the source file can tell whether it is being
19213 # built for inclusion in a dll (and should export symbols for example).
19214 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19215 ;;
19216 darwin* | rhapsody*)
19217 # PIC is the default on this platform
19218 # Common symbols not allowed in MH_DYLIB files
19219 lt_prog_compiler_pic_CXX='-fno-common'
19220 ;;
19221 *djgpp*)
19222 # DJGPP does not support shared libraries at all
19223 lt_prog_compiler_pic_CXX=
19224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019225 interix3*)
19226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19227 # Instead, we relocate shared libraries at runtime.
19228 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019229 sysv4*MP*)
19230 if test -d /usr/nec; then
19231 lt_prog_compiler_pic_CXX=-Kconform_pic
19232 fi
19233 ;;
19234 hpux*)
19235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19236 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019237 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019238 hppa*64*|ia64*)
19239 ;;
19240 *)
19241 lt_prog_compiler_pic_CXX='-fPIC'
19242 ;;
19243 esac
19244 ;;
19245 *)
19246 lt_prog_compiler_pic_CXX='-fPIC'
19247 ;;
19248 esac
19249 else
19250 case $host_os in
19251 aix4* | aix5*)
19252 # All AIX code is PIC.
19253 if test "$host_cpu" = ia64; then
19254 # AIX 5 now supports IA64 processor
19255 lt_prog_compiler_static_CXX='-Bstatic'
19256 else
19257 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19258 fi
19259 ;;
19260 chorus*)
19261 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019262 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019263 # Green Hills C++ Compiler
19264 # _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"
19265 ;;
19266 esac
19267 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019268 darwin*)
19269 # PIC is the default on this platform
19270 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019271 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019272 xlc*)
19273 lt_prog_compiler_pic_CXX='-qnocommon'
19274 lt_prog_compiler_wl_CXX='-Wl,'
19275 ;;
19276 esac
19277 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019278 dgux*)
19279 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019280 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019281 lt_prog_compiler_pic_CXX='-KPIC'
19282 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019283 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019284 # Green Hills C++ Compiler
19285 lt_prog_compiler_pic_CXX='-pic'
19286 ;;
19287 *)
19288 ;;
19289 esac
19290 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019291 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019292 # FreeBSD uses GNU C++
19293 ;;
19294 hpux9* | hpux10* | hpux11*)
19295 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019296 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019297 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019298 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019299 if test "$host_cpu" != ia64; then
19300 lt_prog_compiler_pic_CXX='+Z'
19301 fi
19302 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019303 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019304 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019305 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19306 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019307 hppa*64*|ia64*)
19308 # +Z the default
19309 ;;
19310 *)
19311 lt_prog_compiler_pic_CXX='+Z'
19312 ;;
19313 esac
19314 ;;
19315 *)
19316 ;;
19317 esac
19318 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019319 interix*)
19320 # This is c89, which is MS Visual C++ (no shared libs)
19321 # Anyone wants to do a port?
19322 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019323 irix5* | irix6* | nonstopux*)
19324 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019325 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019326 lt_prog_compiler_wl_CXX='-Wl,'
19327 lt_prog_compiler_static_CXX='-non_shared'
19328 # CC pic flag -KPIC is the default.
19329 ;;
19330 *)
19331 ;;
19332 esac
19333 ;;
19334 linux*)
19335 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019336 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019337 # KAI C++ Compiler
19338 lt_prog_compiler_wl_CXX='--backend -Wl,'
19339 lt_prog_compiler_pic_CXX='-fPIC'
19340 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019341 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019342 # Intel C++
19343 lt_prog_compiler_wl_CXX='-Wl,'
19344 lt_prog_compiler_pic_CXX='-KPIC'
19345 lt_prog_compiler_static_CXX='-static'
19346 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019347 pgCC*)
19348 # Portland Group C++ compiler.
19349 lt_prog_compiler_wl_CXX='-Wl,'
19350 lt_prog_compiler_pic_CXX='-fpic'
19351 lt_prog_compiler_static_CXX='-Bstatic'
19352 ;;
19353 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019354 # Compaq C++
19355 # Make sure the PIC flag is empty. It appears that all Alpha
19356 # Linux and Compaq Tru64 Unix objects are PIC.
19357 lt_prog_compiler_pic_CXX=
19358 lt_prog_compiler_static_CXX='-non_shared'
19359 ;;
19360 *)
19361 ;;
19362 esac
19363 ;;
19364 lynxos*)
19365 ;;
19366 m88k*)
19367 ;;
19368 mvs*)
19369 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019370 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019371 lt_prog_compiler_pic_CXX='-W c,exportall'
19372 ;;
19373 *)
19374 ;;
19375 esac
19376 ;;
19377 netbsd*)
19378 ;;
19379 osf3* | osf4* | osf5*)
19380 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019381 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019382 lt_prog_compiler_wl_CXX='--backend -Wl,'
19383 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019384 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019385 # Rational C++ 2.4.1
19386 lt_prog_compiler_pic_CXX='-pic'
19387 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019388 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019389 # Digital/Compaq C++
19390 lt_prog_compiler_wl_CXX='-Wl,'
19391 # Make sure the PIC flag is empty. It appears that all Alpha
19392 # Linux and Compaq Tru64 Unix objects are PIC.
19393 lt_prog_compiler_pic_CXX=
19394 lt_prog_compiler_static_CXX='-non_shared'
19395 ;;
19396 *)
19397 ;;
19398 esac
19399 ;;
19400 psos*)
19401 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019402 solaris*)
19403 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019404 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019405 # Sun C++ 4.2, 5.x and Centerline C++
19406 lt_prog_compiler_pic_CXX='-KPIC'
19407 lt_prog_compiler_static_CXX='-Bstatic'
19408 lt_prog_compiler_wl_CXX='-Qoption ld '
19409 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019410 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019411 # Green Hills C++ Compiler
19412 lt_prog_compiler_pic_CXX='-PIC'
19413 ;;
19414 *)
19415 ;;
19416 esac
19417 ;;
19418 sunos4*)
19419 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019420 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019421 # Sun C++ 4.x
19422 lt_prog_compiler_pic_CXX='-pic'
19423 lt_prog_compiler_static_CXX='-Bstatic'
19424 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019425 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019426 # Lucid
19427 lt_prog_compiler_pic_CXX='-pic'
19428 ;;
19429 *)
19430 ;;
19431 esac
19432 ;;
19433 tandem*)
19434 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019435 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019436 # NonStop-UX NCC 3.20
19437 lt_prog_compiler_pic_CXX='-KPIC'
19438 ;;
19439 *)
19440 ;;
19441 esac
19442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019443 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19444 case $cc_basename in
19445 CC*)
19446 lt_prog_compiler_wl_CXX='-Wl,'
19447 lt_prog_compiler_pic_CXX='-KPIC'
19448 lt_prog_compiler_static_CXX='-Bstatic'
19449 ;;
19450 esac
John Criswell47fdd832003-07-14 16:52:07 +000019451 ;;
19452 vxworks*)
19453 ;;
19454 *)
19455 lt_prog_compiler_can_build_shared_CXX=no
19456 ;;
19457 esac
19458 fi
19459
Reid Spencera773bd52006-08-04 18:18:08 +000019460{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19461echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019462
19463#
19464# Check to make sure the PIC flag actually works.
19465#
19466if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019467
Reid Spencera773bd52006-08-04 18:18:08 +000019468{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19469echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019470if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19471 echo $ECHO_N "(cached) $ECHO_C" >&6
19472else
19473 lt_prog_compiler_pic_works_CXX=no
19474 ac_outfile=conftest.$ac_objext
19475 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19476 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19477 # Insert the option either (1) after the last *FLAGS variable, or
19478 # (2) before a word containing "conftest.", or (3) at the end.
19479 # Note that $ac_compile itself does not contain backslashes and begins
19480 # with a dollar sign (not a hyphen), so the echo should work correctly.
19481 # The option is referenced via a variable to avoid confusing sed.
19482 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019483 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019484 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19485 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000019486 (eval echo "\"\$as_me:19486: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019487 (eval "$lt_compile" 2>conftest.err)
19488 ac_status=$?
19489 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000019490 echo "$as_me:19490: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019491 if (exit $ac_status) && test -s "$ac_outfile"; then
19492 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019493 # So say no if there are warnings other than the usual output.
19494 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19495 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19496 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019497 lt_prog_compiler_pic_works_CXX=yes
19498 fi
19499 fi
19500 $rm conftest*
19501
19502fi
Reid Spencera773bd52006-08-04 18:18:08 +000019503{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19504echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019505
19506if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19507 case $lt_prog_compiler_pic_CXX in
19508 "" | " "*) ;;
19509 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19510 esac
19511else
19512 lt_prog_compiler_pic_CXX=
19513 lt_prog_compiler_can_build_shared_CXX=no
19514fi
19515
19516fi
Reid Spencera773bd52006-08-04 18:18:08 +000019517case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019518 # For platforms which do not support PIC, -DPIC is meaningless:
19519 *djgpp*)
19520 lt_prog_compiler_pic_CXX=
19521 ;;
19522 *)
19523 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19524 ;;
19525esac
19526
Reid Spencera773bd52006-08-04 18:18:08 +000019527#
19528# Check to make sure the static flag actually works.
19529#
19530wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19531{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19532echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19533if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19534 echo $ECHO_N "(cached) $ECHO_C" >&6
19535else
19536 lt_prog_compiler_static_works_CXX=no
19537 save_LDFLAGS="$LDFLAGS"
19538 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19539 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19540 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19541 # The linker can only warn and ignore the option if not recognized
19542 # So say no if there are warnings
19543 if test -s conftest.err; then
19544 # Append any errors to the config.log.
19545 cat conftest.err 1>&5
19546 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19547 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19548 if diff conftest.exp conftest.er2 >/dev/null; then
19549 lt_prog_compiler_static_works_CXX=yes
19550 fi
19551 else
19552 lt_prog_compiler_static_works_CXX=yes
19553 fi
19554 fi
19555 $rm conftest*
19556 LDFLAGS="$save_LDFLAGS"
19557
19558fi
19559{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19560echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19561
19562if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19563 :
19564else
19565 lt_prog_compiler_static_CXX=
19566fi
19567
19568
19569{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19570echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019571if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574 lt_cv_prog_compiler_c_o_CXX=no
19575 $rm -r conftest 2>/dev/null
19576 mkdir conftest
19577 cd conftest
19578 mkdir out
19579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19580
John Criswell47fdd832003-07-14 16:52:07 +000019581 lt_compiler_flag="-o out/conftest2.$ac_objext"
19582 # Insert the option either (1) after the last *FLAGS variable, or
19583 # (2) before a word containing "conftest.", or (3) at the end.
19584 # Note that $ac_compile itself does not contain backslashes and begins
19585 # with a dollar sign (not a hyphen), so the echo should work correctly.
19586 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019587 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019588 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19589 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000019590 (eval echo "\"\$as_me:19590: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019591 (eval "$lt_compile" 2>out/conftest.err)
19592 ac_status=$?
19593 cat out/conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000019594 echo "$as_me:19594: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019595 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19596 then
19597 # The compiler can only warn and ignore the option if not recognized
19598 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019599 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19600 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19601 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019602 lt_cv_prog_compiler_c_o_CXX=yes
19603 fi
19604 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019605 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019606 $rm conftest*
19607 # SGI C++ compiler will create directory out/ii_files/ for
19608 # template instantiation
19609 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19610 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019611 cd ..
19612 rmdir conftest
19613 $rm conftest*
19614
19615fi
Reid Spencera773bd52006-08-04 18:18:08 +000019616{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19617echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019618
19619
19620hard_links="nottested"
19621if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19622 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019623 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19624echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019625 hard_links=yes
19626 $rm conftest*
19627 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19628 touch conftest.a
19629 ln conftest.a conftest.b 2>&5 || hard_links=no
19630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019631 { echo "$as_me:$LINENO: result: $hard_links" >&5
19632echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019633 if test "$hard_links" = no; then
19634 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19635echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19636 need_locks=warn
19637 fi
19638else
19639 need_locks=no
19640fi
19641
Reid Spencera773bd52006-08-04 18:18:08 +000019642{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19643echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019644
19645 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19646 case $host_os in
19647 aix4* | aix5*)
19648 # If we're using GNU nm, then we don't want the "-C" option.
19649 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19650 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19651 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'
19652 else
19653 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'
19654 fi
19655 ;;
19656 pw32*)
19657 export_symbols_cmds_CXX="$ltdll_cmds"
19658 ;;
19659 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019660 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 +000019661 ;;
19662 *)
19663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19664 ;;
19665 esac
19666
Reid Spencera773bd52006-08-04 18:18:08 +000019667{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19668echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019669test "$ld_shlibs_CXX" = no && can_build_shared=no
19670
John Criswell47fdd832003-07-14 16:52:07 +000019671#
19672# Do we need to explicitly link libc?
19673#
19674case "x$archive_cmds_need_lc_CXX" in
19675x|xyes)
19676 # Assume -lc should be added
19677 archive_cmds_need_lc_CXX=yes
19678
19679 if test "$enable_shared" = yes && test "$GCC" = yes; then
19680 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019681 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019682 # FIXME: we may have to deal with multi-command sequences.
19683 ;;
19684 '$CC '*)
19685 # Test whether the compiler implicitly links with -lc since on some
19686 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19687 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019688 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19689echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019690 $rm conftest*
19691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19692
19693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19694 (eval $ac_compile) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } 2>conftest.err; then
19698 soname=conftest
19699 lib=conftest
19700 libobjs=conftest.$ac_objext
19701 deplibs=
19702 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019703 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019704 compiler_flags=-v
19705 linker_flags=-v
19706 verstring=
19707 output_objdir=.
19708 libname=conftest
19709 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19710 allow_undefined_flag_CXX=
19711 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19712 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19713 ac_status=$?
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); }
19716 then
19717 archive_cmds_need_lc_CXX=no
19718 else
19719 archive_cmds_need_lc_CXX=yes
19720 fi
19721 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19722 else
19723 cat conftest.err 1>&5
19724 fi
19725 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019726 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19727echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019728 ;;
19729 esac
19730 fi
19731 ;;
19732esac
19733
Reid Spencera773bd52006-08-04 18:18:08 +000019734{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19735echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019736library_names_spec=
19737libname_spec='lib$name'
19738soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019739shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019740postinstall_cmds=
19741postuninstall_cmds=
19742finish_cmds=
19743finish_eval=
19744shlibpath_var=
19745shlibpath_overrides_runpath=unknown
19746version_type=none
19747dynamic_linker="$host_os ld.so"
19748sys_lib_dlsearch_path_spec="/lib /usr/lib"
19749if test "$GCC" = yes; then
19750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19751 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19752 # if the path contains ";" then we assume it to be the separator
19753 # otherwise default to the standard path separator (i.e. ":") - it is
19754 # assumed that no part of a normal pathname contains ";" but that should
19755 # okay in the real world where ";" in dirpaths is itself problematic.
19756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19757 else
19758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19759 fi
19760else
19761 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19762fi
19763need_lib_prefix=unknown
19764hardcode_into_libs=no
19765
19766# when you set need_version to no, make sure it does not cause -set_version
19767# flags to be left without arguments
19768need_version=unknown
19769
19770case $host_os in
19771aix3*)
19772 version_type=linux
19773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19774 shlibpath_var=LIBPATH
19775
19776 # AIX 3 has no versioning support, so we append a major version to the name.
19777 soname_spec='${libname}${release}${shared_ext}$major'
19778 ;;
19779
19780aix4* | aix5*)
19781 version_type=linux
19782 need_lib_prefix=no
19783 need_version=no
19784 hardcode_into_libs=yes
19785 if test "$host_cpu" = ia64; then
19786 # AIX 5 supports IA64
19787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19788 shlibpath_var=LD_LIBRARY_PATH
19789 else
19790 # With GCC up to 2.95.x, collect2 would create an import file
19791 # for dependence libraries. The import file would start with
19792 # the line `#! .'. This would cause the generated library to
19793 # depend on `.', always an invalid library. This was fixed in
19794 # development snapshots of GCC prior to 3.0.
19795 case $host_os in
19796 aix4 | aix4.[01] | aix4.[01].*)
19797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19798 echo ' yes '
19799 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19800 :
19801 else
19802 can_build_shared=no
19803 fi
19804 ;;
19805 esac
19806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19807 # soname into executable. Probably we can add versioning support to
19808 # collect2, so additional links can be useful in future.
19809 if test "$aix_use_runtimelinking" = yes; then
19810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19811 # instead of lib<name>.a to let people know that these are not
19812 # typical AIX shared libraries.
19813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19814 else
19815 # We preserve .a as extension for shared libraries through AIX4.2
19816 # and later when we are not doing run time linking.
19817 library_names_spec='${libname}${release}.a $libname.a'
19818 soname_spec='${libname}${release}${shared_ext}$major'
19819 fi
19820 shlibpath_var=LIBPATH
19821 fi
19822 ;;
19823
19824amigaos*)
19825 library_names_spec='$libname.ixlibrary $libname.a'
19826 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019827 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 +000019828 ;;
19829
19830beos*)
19831 library_names_spec='${libname}${shared_ext}'
19832 dynamic_linker="$host_os ld.so"
19833 shlibpath_var=LIBRARY_PATH
19834 ;;
19835
Reid Spencer2706f8c2004-09-19 23:53:36 +000019836bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019837 version_type=linux
19838 need_version=no
19839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19840 soname_spec='${libname}${release}${shared_ext}$major'
19841 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19844 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19845 # the default ld.so.conf also contains /usr/contrib/lib and
19846 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19847 # libtool to hard-code these into programs
19848 ;;
19849
19850cygwin* | mingw* | pw32*)
19851 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019852 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019853 need_version=no
19854 need_lib_prefix=no
19855
19856 case $GCC,$host_os in
19857 yes,cygwin* | yes,mingw* | yes,pw32*)
19858 library_names_spec='$libname.dll.a'
19859 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019860 postinstall_cmds='base_file=`basename \${file}`~
19861 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19862 dldir=$destdir/`dirname \$dlpath`~
19863 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019864 $install_prog $dir/$dlname \$dldir/$dlname~
19865 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019866 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19867 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019868 $rm \$dlpath'
19869 shlibpath_overrides_runpath=yes
19870
19871 case $host_os in
19872 cygwin*)
19873 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19874 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 +000019875 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019876 ;;
19877 mingw*)
19878 # MinGW DLLs use traditional 'lib' prefix
19879 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19880 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19881 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19882 # It is most probably a Windows format PATH printed by
19883 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19884 # path with ; separators, and with drive letters. We can handle the
19885 # drive letters (cygwin fileutils understands them), so leave them,
19886 # especially as we might pass files found there to a mingw objdump,
19887 # which wouldn't understand a cygwinified path. Ahh.
19888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19889 else
19890 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19891 fi
19892 ;;
19893 pw32*)
19894 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019895 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 +000019896 ;;
19897 esac
19898 ;;
19899
19900 *)
19901 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19902 ;;
19903 esac
19904 dynamic_linker='Win32 ld.exe'
19905 # FIXME: first we should search . and the directory the executable is in
19906 shlibpath_var=PATH
19907 ;;
19908
19909darwin* | rhapsody*)
19910 dynamic_linker="$host_os dyld"
19911 version_type=darwin
19912 need_lib_prefix=no
19913 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019914 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019915 soname_spec='${libname}${release}${major}$shared_ext'
19916 shlibpath_overrides_runpath=yes
19917 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019918 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019919 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019920 if test "$GCC" = yes; then
19921 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"`
19922 else
19923 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019924 fi
19925 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19926 ;;
19927
19928dgux*)
19929 version_type=linux
19930 need_lib_prefix=no
19931 need_version=no
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 shlibpath_var=LD_LIBRARY_PATH
19935 ;;
19936
19937freebsd1*)
19938 dynamic_linker=no
19939 ;;
19940
Reid Spencer2706f8c2004-09-19 23:53:36 +000019941kfreebsd*-gnu)
19942 version_type=linux
19943 need_lib_prefix=no
19944 need_version=no
19945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19946 soname_spec='${libname}${release}${shared_ext}$major'
19947 shlibpath_var=LD_LIBRARY_PATH
19948 shlibpath_overrides_runpath=no
19949 hardcode_into_libs=yes
19950 dynamic_linker='GNU ld.so'
19951 ;;
19952
Reid Spencera773bd52006-08-04 18:18:08 +000019953freebsd* | dragonfly*)
19954 # DragonFly does not have aout. When/if they implement a new
19955 # versioning mechanism, adjust this.
19956 if test -x /usr/bin/objformat; then
19957 objformat=`/usr/bin/objformat`
19958 else
19959 case $host_os in
19960 freebsd[123]*) objformat=aout ;;
19961 *) objformat=elf ;;
19962 esac
19963 fi
John Criswell47fdd832003-07-14 16:52:07 +000019964 version_type=freebsd-$objformat
19965 case $version_type in
19966 freebsd-elf*)
19967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19968 need_version=no
19969 need_lib_prefix=no
19970 ;;
19971 freebsd-*)
19972 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19973 need_version=yes
19974 ;;
19975 esac
19976 shlibpath_var=LD_LIBRARY_PATH
19977 case $host_os in
19978 freebsd2*)
19979 shlibpath_overrides_runpath=yes
19980 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019981 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019982 shlibpath_overrides_runpath=yes
19983 hardcode_into_libs=yes
19984 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019985 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19986 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019987 shlibpath_overrides_runpath=no
19988 hardcode_into_libs=yes
19989 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019990 freebsd*) # from 4.6 on
19991 shlibpath_overrides_runpath=yes
19992 hardcode_into_libs=yes
19993 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019994 esac
19995 ;;
19996
19997gnu*)
19998 version_type=linux
19999 need_lib_prefix=no
20000 need_version=no
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 hardcode_into_libs=yes
20005 ;;
20006
20007hpux9* | hpux10* | hpux11*)
20008 # Give a soname corresponding to the major version so that dld.sl refuses to
20009 # link against other versions.
20010 version_type=sunos
20011 need_lib_prefix=no
20012 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020013 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020014 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020015 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020016 hardcode_into_libs=yes
20017 dynamic_linker="$host_os dld.so"
20018 shlibpath_var=LD_LIBRARY_PATH
20019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20021 soname_spec='${libname}${release}${shared_ext}$major'
20022 if test "X$HPUX_IA64_MODE" = X32; then
20023 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20024 else
20025 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20026 fi
20027 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20028 ;;
20029 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020030 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020031 hardcode_into_libs=yes
20032 dynamic_linker="$host_os dld.sl"
20033 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20036 soname_spec='${libname}${release}${shared_ext}$major'
20037 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20039 ;;
20040 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020041 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020042 dynamic_linker="$host_os dld.sl"
20043 shlibpath_var=SHLIB_PATH
20044 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20046 soname_spec='${libname}${release}${shared_ext}$major'
20047 ;;
20048 esac
20049 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20050 postinstall_cmds='chmod 555 $lib'
20051 ;;
20052
Reid Spencera773bd52006-08-04 18:18:08 +000020053interix3*)
20054 version_type=linux
20055 need_lib_prefix=no
20056 need_version=no
20057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20058 soname_spec='${libname}${release}${shared_ext}$major'
20059 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20060 shlibpath_var=LD_LIBRARY_PATH
20061 shlibpath_overrides_runpath=no
20062 hardcode_into_libs=yes
20063 ;;
20064
John Criswell47fdd832003-07-14 16:52:07 +000020065irix5* | irix6* | nonstopux*)
20066 case $host_os in
20067 nonstopux*) version_type=nonstopux ;;
20068 *)
20069 if test "$lt_cv_prog_gnu_ld" = yes; then
20070 version_type=linux
20071 else
20072 version_type=irix
20073 fi ;;
20074 esac
20075 need_lib_prefix=no
20076 need_version=no
20077 soname_spec='${libname}${release}${shared_ext}$major'
20078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20079 case $host_os in
20080 irix5* | nonstopux*)
20081 libsuff= shlibsuff=
20082 ;;
20083 *)
20084 case $LD in # libtool.m4 will add one of these switches to LD
20085 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20086 libsuff= shlibsuff= libmagic=32-bit;;
20087 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20088 libsuff=32 shlibsuff=N32 libmagic=N32;;
20089 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20090 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20091 *) libsuff= shlibsuff= libmagic=never-match;;
20092 esac
20093 ;;
20094 esac
20095 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20096 shlibpath_overrides_runpath=no
20097 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20098 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20099 hardcode_into_libs=yes
20100 ;;
20101
20102# No shared lib support for Linux oldld, aout, or coff.
20103linux*oldld* | linux*aout* | linux*coff*)
20104 dynamic_linker=no
20105 ;;
20106
20107# This must be Linux ELF.
20108linux*)
20109 version_type=linux
20110 need_lib_prefix=no
20111 need_version=no
20112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20113 soname_spec='${libname}${release}${shared_ext}$major'
20114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20115 shlibpath_var=LD_LIBRARY_PATH
20116 shlibpath_overrides_runpath=no
20117 # This implies no fast_install, which is unacceptable.
20118 # Some rework will be needed to allow for fast_install
20119 # before this can be enabled.
20120 hardcode_into_libs=yes
20121
Reid Spencer2706f8c2004-09-19 23:53:36 +000020122 # Append ld.so.conf contents to the search path
20123 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020124 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 +000020125 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20126 fi
20127
John Criswell47fdd832003-07-14 16:52:07 +000020128 # We used to test for /lib/ld.so.1 and disable shared libraries on
20129 # powerpc, because MkLinux only supported shared libraries with the
20130 # GNU dynamic linker. Since this was broken with cross compilers,
20131 # most powerpc-linux boxes support dynamic linking these days and
20132 # people can always --disable-shared, the test was removed, and we
20133 # assume the GNU/Linux dynamic linker is in use.
20134 dynamic_linker='GNU/Linux ld.so'
20135 ;;
20136
Reid Spencer2706f8c2004-09-19 23:53:36 +000020137knetbsd*-gnu)
20138 version_type=linux
20139 need_lib_prefix=no
20140 need_version=no
20141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20142 soname_spec='${libname}${release}${shared_ext}$major'
20143 shlibpath_var=LD_LIBRARY_PATH
20144 shlibpath_overrides_runpath=no
20145 hardcode_into_libs=yes
20146 dynamic_linker='GNU ld.so'
20147 ;;
20148
John Criswell47fdd832003-07-14 16:52:07 +000020149netbsd*)
20150 version_type=sunos
20151 need_lib_prefix=no
20152 need_version=no
20153 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20155 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20156 dynamic_linker='NetBSD (a.out) ld.so'
20157 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020159 soname_spec='${libname}${release}${shared_ext}$major'
20160 dynamic_linker='NetBSD ld.elf_so'
20161 fi
20162 shlibpath_var=LD_LIBRARY_PATH
20163 shlibpath_overrides_runpath=yes
20164 hardcode_into_libs=yes
20165 ;;
20166
20167newsos6)
20168 version_type=linux
20169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=yes
20172 ;;
20173
Reid Spencer2706f8c2004-09-19 23:53:36 +000020174nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020175 version_type=linux
20176 need_lib_prefix=no
20177 need_version=no
20178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20179 soname_spec='${libname}${release}${shared_ext}$major'
20180 shlibpath_var=LD_LIBRARY_PATH
20181 shlibpath_overrides_runpath=yes
20182 ;;
20183
20184openbsd*)
20185 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020186 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020187 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020188 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20189 case $host_os in
20190 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20191 *) need_version=no ;;
20192 esac
John Criswell47fdd832003-07-14 16:52:07 +000020193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20194 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20197 case $host_os in
20198 openbsd2.[89] | openbsd2.[89].*)
20199 shlibpath_overrides_runpath=no
20200 ;;
20201 *)
20202 shlibpath_overrides_runpath=yes
20203 ;;
20204 esac
20205 else
20206 shlibpath_overrides_runpath=yes
20207 fi
20208 ;;
20209
20210os2*)
20211 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020212 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020213 need_lib_prefix=no
20214 library_names_spec='$libname${shared_ext} $libname.a'
20215 dynamic_linker='OS/2 ld.exe'
20216 shlibpath_var=LIBPATH
20217 ;;
20218
20219osf3* | osf4* | osf5*)
20220 version_type=osf
20221 need_lib_prefix=no
20222 need_version=no
20223 soname_spec='${libname}${release}${shared_ext}$major'
20224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20225 shlibpath_var=LD_LIBRARY_PATH
20226 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20227 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20228 ;;
20229
John Criswell47fdd832003-07-14 16:52:07 +000020230solaris*)
20231 version_type=linux
20232 need_lib_prefix=no
20233 need_version=no
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 shlibpath_var=LD_LIBRARY_PATH
20237 shlibpath_overrides_runpath=yes
20238 hardcode_into_libs=yes
20239 # ldd complains unless libraries are executable
20240 postinstall_cmds='chmod +x $lib'
20241 ;;
20242
20243sunos4*)
20244 version_type=sunos
20245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20246 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=yes
20249 if test "$with_gnu_ld" = yes; then
20250 need_lib_prefix=no
20251 fi
20252 need_version=yes
20253 ;;
20254
Reid Spencera773bd52006-08-04 18:18:08 +000020255sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020256 version_type=linux
20257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20258 soname_spec='${libname}${release}${shared_ext}$major'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 case $host_vendor in
20261 sni)
20262 shlibpath_overrides_runpath=no
20263 need_lib_prefix=no
20264 export_dynamic_flag_spec='${wl}-Blargedynsym'
20265 runpath_var=LD_RUN_PATH
20266 ;;
20267 siemens)
20268 need_lib_prefix=no
20269 ;;
20270 motorola)
20271 need_lib_prefix=no
20272 need_version=no
20273 shlibpath_overrides_runpath=no
20274 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20275 ;;
20276 esac
20277 ;;
20278
20279sysv4*MP*)
20280 if test -d /usr/nec ;then
20281 version_type=linux
20282 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20283 soname_spec='$libname${shared_ext}.$major'
20284 shlibpath_var=LD_LIBRARY_PATH
20285 fi
20286 ;;
20287
Reid Spencera773bd52006-08-04 18:18:08 +000020288sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20289 version_type=freebsd-elf
20290 need_lib_prefix=no
20291 need_version=no
20292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 shlibpath_var=LD_LIBRARY_PATH
20295 hardcode_into_libs=yes
20296 if test "$with_gnu_ld" = yes; then
20297 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20298 shlibpath_overrides_runpath=no
20299 else
20300 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20301 shlibpath_overrides_runpath=yes
20302 case $host_os in
20303 sco3.2v5*)
20304 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20305 ;;
20306 esac
20307 fi
20308 sys_lib_dlsearch_path_spec='/usr/lib'
20309 ;;
20310
John Criswell47fdd832003-07-14 16:52:07 +000020311uts4*)
20312 version_type=linux
20313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20314 soname_spec='${libname}${release}${shared_ext}$major'
20315 shlibpath_var=LD_LIBRARY_PATH
20316 ;;
20317
20318*)
20319 dynamic_linker=no
20320 ;;
20321esac
Reid Spencera773bd52006-08-04 18:18:08 +000020322{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20323echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020324test "$dynamic_linker" = no && can_build_shared=no
20325
Reid Spencera773bd52006-08-04 18:18:08 +000020326variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20327if test "$GCC" = yes; then
20328 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20329fi
20330
20331{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20332echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333hardcode_action_CXX=
20334if test -n "$hardcode_libdir_flag_spec_CXX" || \
20335 test -n "$runpath_var_CXX" || \
20336 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20337
20338 # We can hardcode non-existant directories.
20339 if test "$hardcode_direct_CXX" != no &&
20340 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20341 # have to relink, otherwise we might link with an installed library
20342 # when we should be linking with a yet-to-be-installed one
20343 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20344 test "$hardcode_minus_L_CXX" != no; then
20345 # Linking always hardcodes the temporary library directory.
20346 hardcode_action_CXX=relink
20347 else
20348 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20349 hardcode_action_CXX=immediate
20350 fi
20351else
20352 # We cannot hardcode anything, or else we can only hardcode existing
20353 # directories.
20354 hardcode_action_CXX=unsupported
20355fi
Reid Spencera773bd52006-08-04 18:18:08 +000020356{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20357echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020358
20359if test "$hardcode_action_CXX" = relink; then
20360 # Fast installation is not supported
20361 enable_fast_install=no
20362elif test "$shlibpath_overrides_runpath" = yes ||
20363 test "$enable_shared" = no; then
20364 # Fast installation is not necessary
20365 enable_fast_install=needless
20366fi
20367
John Criswell47fdd832003-07-14 16:52:07 +000020368
20369# The else clause should only fire when bootstrapping the
20370# libtool distribution, otherwise you forgot to ship ltmain.sh
20371# with your package, and you will get complaints that there are
20372# no rules to generate ltmain.sh.
20373if test -f "$ltmain"; then
20374 # See if we are running on zsh, and set the options which allow our commands through
20375 # without removal of \ escapes.
20376 if test -n "${ZSH_VERSION+set}" ; then
20377 setopt NO_GLOB_SUBST
20378 fi
20379 # Now quote all the things that may contain metacharacters while being
20380 # careful not to overquote the AC_SUBSTed values. We take copies of the
20381 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020382 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 +000020383 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020384 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20385 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20386 deplibs_check_method reload_flag reload_cmds need_locks \
20387 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20388 lt_cv_sys_global_symbol_to_c_name_address \
20389 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20390 old_postinstall_cmds old_postuninstall_cmds \
20391 compiler_CXX \
20392 CC_CXX \
20393 LD_CXX \
20394 lt_prog_compiler_wl_CXX \
20395 lt_prog_compiler_pic_CXX \
20396 lt_prog_compiler_static_CXX \
20397 lt_prog_compiler_no_builtin_flag_CXX \
20398 export_dynamic_flag_spec_CXX \
20399 thread_safe_flag_spec_CXX \
20400 whole_archive_flag_spec_CXX \
20401 enable_shared_with_static_runtimes_CXX \
20402 old_archive_cmds_CXX \
20403 old_archive_from_new_cmds_CXX \
20404 predep_objects_CXX \
20405 postdep_objects_CXX \
20406 predeps_CXX \
20407 postdeps_CXX \
20408 compiler_lib_search_path_CXX \
20409 archive_cmds_CXX \
20410 archive_expsym_cmds_CXX \
20411 postinstall_cmds_CXX \
20412 postuninstall_cmds_CXX \
20413 old_archive_from_expsyms_cmds_CXX \
20414 allow_undefined_flag_CXX \
20415 no_undefined_flag_CXX \
20416 export_symbols_cmds_CXX \
20417 hardcode_libdir_flag_spec_CXX \
20418 hardcode_libdir_flag_spec_ld_CXX \
20419 hardcode_libdir_separator_CXX \
20420 hardcode_automatic_CXX \
20421 module_cmds_CXX \
20422 module_expsym_cmds_CXX \
20423 lt_cv_prog_compiler_c_o_CXX \
20424 exclude_expsyms_CXX \
20425 include_expsyms_CXX; do
20426
20427 case $var in
20428 old_archive_cmds_CXX | \
20429 old_archive_from_new_cmds_CXX | \
20430 archive_cmds_CXX | \
20431 archive_expsym_cmds_CXX | \
20432 module_cmds_CXX | \
20433 module_expsym_cmds_CXX | \
20434 old_archive_from_expsyms_cmds_CXX | \
20435 export_symbols_cmds_CXX | \
20436 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20437 postinstall_cmds | postuninstall_cmds | \
20438 old_postinstall_cmds | old_postuninstall_cmds | \
20439 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20440 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020441 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 +000020442 ;;
20443 *)
20444 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20445 ;;
20446 esac
20447 done
20448
20449 case $lt_echo in
20450 *'\$0 --fallback-echo"')
20451 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20452 ;;
20453 esac
20454
20455cfgfile="$ofile"
20456
20457 cat <<__EOF__ >> "$cfgfile"
20458# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20459
20460# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20461
20462# Shell to use when invoking shell scripts.
20463SHELL=$lt_SHELL
20464
20465# Whether or not to build shared libraries.
20466build_libtool_libs=$enable_shared
20467
20468# Whether or not to build static libraries.
20469build_old_libs=$enable_static
20470
20471# Whether or not to add -lc for building shared libraries.
20472build_libtool_need_lc=$archive_cmds_need_lc_CXX
20473
20474# Whether or not to disallow shared libs when runtime libs are static
20475allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20476
20477# Whether or not to optimize for fast installation.
20478fast_install=$enable_fast_install
20479
20480# The host system.
20481host_alias=$host_alias
20482host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020483host_os=$host_os
20484
20485# The build system.
20486build_alias=$build_alias
20487build=$build
20488build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020489
20490# An echo program that does not interpret backslashes.
20491echo=$lt_echo
20492
20493# The archiver.
20494AR=$lt_AR
20495AR_FLAGS=$lt_AR_FLAGS
20496
20497# A C compiler.
20498LTCC=$lt_LTCC
20499
Reid Spencera773bd52006-08-04 18:18:08 +000020500# LTCC compiler flags.
20501LTCFLAGS=$lt_LTCFLAGS
20502
John Criswell47fdd832003-07-14 16:52:07 +000020503# A language-specific compiler.
20504CC=$lt_compiler_CXX
20505
20506# Is the compiler the GNU C compiler?
20507with_gcc=$GCC_CXX
20508
20509# An ERE matcher.
20510EGREP=$lt_EGREP
20511
20512# The linker used to build libraries.
20513LD=$lt_LD_CXX
20514
20515# Whether we need hard or soft links.
20516LN_S=$lt_LN_S
20517
20518# A BSD-compatible nm program.
20519NM=$lt_NM
20520
20521# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020522STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020523
20524# Used to examine libraries when file_magic_cmd begins "file"
20525MAGIC_CMD=$MAGIC_CMD
20526
20527# Used on cygwin: DLL creation program.
20528DLLTOOL="$DLLTOOL"
20529
20530# Used on cygwin: object dumper.
20531OBJDUMP="$OBJDUMP"
20532
20533# Used on cygwin: assembler.
20534AS="$AS"
20535
20536# The name of the directory that contains temporary libtool files.
20537objdir=$objdir
20538
20539# How to create reloadable object files.
20540reload_flag=$lt_reload_flag
20541reload_cmds=$lt_reload_cmds
20542
20543# How to pass a linker flag through the compiler.
20544wl=$lt_lt_prog_compiler_wl_CXX
20545
20546# Object file suffix (normally "o").
20547objext="$ac_objext"
20548
20549# Old archive suffix (normally "a").
20550libext="$libext"
20551
20552# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020553shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020554
20555# Executable file suffix (normally "").
20556exeext="$exeext"
20557
20558# Additional compiler flags for building library objects.
20559pic_flag=$lt_lt_prog_compiler_pic_CXX
20560pic_mode=$pic_mode
20561
20562# What is the maximum length of a command?
20563max_cmd_len=$lt_cv_sys_max_cmd_len
20564
20565# Does compiler simultaneously support -c and -o options?
20566compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20567
Reid Spencera773bd52006-08-04 18:18:08 +000020568# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020569need_locks=$lt_need_locks
20570
20571# Do we need the lib prefix for modules?
20572need_lib_prefix=$need_lib_prefix
20573
20574# Do we need a version for libraries?
20575need_version=$need_version
20576
20577# Whether dlopen is supported.
20578dlopen_support=$enable_dlopen
20579
20580# Whether dlopen of programs is supported.
20581dlopen_self=$enable_dlopen_self
20582
20583# Whether dlopen of statically linked programs is supported.
20584dlopen_self_static=$enable_dlopen_self_static
20585
20586# Compiler flag to prevent dynamic linking.
20587link_static_flag=$lt_lt_prog_compiler_static_CXX
20588
20589# Compiler flag to turn off builtin functions.
20590no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20591
20592# Compiler flag to allow reflexive dlopens.
20593export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20594
20595# Compiler flag to generate shared objects directly from archives.
20596whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20597
20598# Compiler flag to generate thread-safe objects.
20599thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20600
20601# Library versioning type.
20602version_type=$version_type
20603
20604# Format of library name prefix.
20605libname_spec=$lt_libname_spec
20606
20607# List of archive names. First name is the real one, the rest are links.
20608# The last name is the one that the linker finds with -lNAME.
20609library_names_spec=$lt_library_names_spec
20610
20611# The coded name of the library, if different from the real name.
20612soname_spec=$lt_soname_spec
20613
20614# Commands used to build and install an old-style archive.
20615RANLIB=$lt_RANLIB
20616old_archive_cmds=$lt_old_archive_cmds_CXX
20617old_postinstall_cmds=$lt_old_postinstall_cmds
20618old_postuninstall_cmds=$lt_old_postuninstall_cmds
20619
20620# Create an old-style archive from a shared archive.
20621old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20622
20623# Create a temporary old-style archive to link instead of a shared archive.
20624old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20625
20626# Commands used to build and install a shared archive.
20627archive_cmds=$lt_archive_cmds_CXX
20628archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20629postinstall_cmds=$lt_postinstall_cmds
20630postuninstall_cmds=$lt_postuninstall_cmds
20631
20632# Commands used to build a loadable module (assumed same as above if empty)
20633module_cmds=$lt_module_cmds_CXX
20634module_expsym_cmds=$lt_module_expsym_cmds_CXX
20635
20636# Commands to strip libraries.
20637old_striplib=$lt_old_striplib
20638striplib=$lt_striplib
20639
20640# Dependencies to place before the objects being linked to create a
20641# shared library.
20642predep_objects=$lt_predep_objects_CXX
20643
20644# Dependencies to place after the objects being linked to create a
20645# shared library.
20646postdep_objects=$lt_postdep_objects_CXX
20647
20648# Dependencies to place before the objects being linked to create a
20649# shared library.
20650predeps=$lt_predeps_CXX
20651
20652# Dependencies to place after the objects being linked to create a
20653# shared library.
20654postdeps=$lt_postdeps_CXX
20655
20656# The library search path used internally by the compiler when linking
20657# a shared library.
20658compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20659
20660# Method to check whether dependent libraries are shared objects.
20661deplibs_check_method=$lt_deplibs_check_method
20662
20663# Command to use when deplibs_check_method == file_magic.
20664file_magic_cmd=$lt_file_magic_cmd
20665
20666# Flag that allows shared libraries with undefined symbols to be built.
20667allow_undefined_flag=$lt_allow_undefined_flag_CXX
20668
20669# Flag that forces no undefined symbols.
20670no_undefined_flag=$lt_no_undefined_flag_CXX
20671
20672# Commands used to finish a libtool library installation in a directory.
20673finish_cmds=$lt_finish_cmds
20674
20675# Same as above, but a single script fragment to be evaled but not shown.
20676finish_eval=$lt_finish_eval
20677
20678# Take the output of nm and produce a listing of raw symbols and C names.
20679global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20680
20681# Transform the output of nm in a proper C declaration
20682global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20683
20684# Transform the output of nm in a C name address pair
20685global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20686
20687# This is the shared library runtime path variable.
20688runpath_var=$runpath_var
20689
20690# This is the shared library path variable.
20691shlibpath_var=$shlibpath_var
20692
20693# Is shlibpath searched before the hard-coded library search path?
20694shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20695
20696# How to hardcode a shared library path into an executable.
20697hardcode_action=$hardcode_action_CXX
20698
20699# Whether we should hardcode library paths into libraries.
20700hardcode_into_libs=$hardcode_into_libs
20701
20702# Flag to hardcode \$libdir into a binary during linking.
20703# This must work even if \$libdir does not exist.
20704hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20705
20706# If ld is used when linking, flag to hardcode \$libdir into
20707# a binary during linking. This must work even if \$libdir does
20708# not exist.
20709hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20710
20711# Whether we need a single -rpath flag with a separated argument.
20712hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20713
20714# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20715# resulting binary.
20716hardcode_direct=$hardcode_direct_CXX
20717
20718# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20719# resulting binary.
20720hardcode_minus_L=$hardcode_minus_L_CXX
20721
20722# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20723# the resulting binary.
20724hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20725
20726# Set to yes if building a shared library automatically hardcodes DIR into the library
20727# and all subsequent libraries and executables linked against it.
20728hardcode_automatic=$hardcode_automatic_CXX
20729
20730# Variables whose values should be saved in libtool wrapper scripts and
20731# restored at relink time.
20732variables_saved_for_relink="$variables_saved_for_relink"
20733
20734# Whether libtool must link a program against all its dependency libraries.
20735link_all_deplibs=$link_all_deplibs_CXX
20736
20737# Compile-time system search path for libraries
20738sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20739
20740# Run-time system search path for libraries
20741sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20742
20743# Fix the shell variable \$srcfile for the compiler.
20744fix_srcfile_path="$fix_srcfile_path_CXX"
20745
20746# Set to yes if exported symbols are required.
20747always_export_symbols=$always_export_symbols_CXX
20748
20749# The commands to list exported symbols.
20750export_symbols_cmds=$lt_export_symbols_cmds_CXX
20751
20752# The commands to extract the exported symbol list from a shared archive.
20753extract_expsyms_cmds=$lt_extract_expsyms_cmds
20754
20755# Symbols that should not be listed in the preloaded symbols.
20756exclude_expsyms=$lt_exclude_expsyms_CXX
20757
20758# Symbols that must always be exported.
20759include_expsyms=$lt_include_expsyms_CXX
20760
20761# ### END LIBTOOL TAG CONFIG: $tagname
20762
20763__EOF__
20764
20765
20766else
20767 # If there is no Makefile yet, we rely on a make rule to execute
20768 # `config.status --recheck' to rerun these tests and create the
20769 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020770 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20771 if test -f "$ltmain_in"; then
20772 test -f Makefile && make "$ltmain"
20773 fi
John Criswell47fdd832003-07-14 16:52:07 +000020774fi
20775
20776
20777ac_ext=c
20778ac_cpp='$CPP $CPPFLAGS'
20779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20781ac_compiler_gnu=$ac_cv_c_compiler_gnu
20782
20783CC=$lt_save_CC
20784LDCXX=$LD
20785LD=$lt_save_LD
20786GCC=$lt_save_GCC
20787with_gnu_ldcxx=$with_gnu_ld
20788with_gnu_ld=$lt_save_with_gnu_ld
20789lt_cv_path_LDCXX=$lt_cv_path_LD
20790lt_cv_path_LD=$lt_save_path_LD
20791lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20792lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20793
20794 else
20795 tagname=""
20796 fi
20797 ;;
20798
20799 F77)
20800 if test -n "$F77" && test "X$F77" != "Xno"; then
20801
20802ac_ext=f
20803ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20804ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20805ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20806
20807
20808archive_cmds_need_lc_F77=no
20809allow_undefined_flag_F77=
20810always_export_symbols_F77=no
20811archive_expsym_cmds_F77=
20812export_dynamic_flag_spec_F77=
20813hardcode_direct_F77=no
20814hardcode_libdir_flag_spec_F77=
20815hardcode_libdir_flag_spec_ld_F77=
20816hardcode_libdir_separator_F77=
20817hardcode_minus_L_F77=no
20818hardcode_automatic_F77=no
20819module_cmds_F77=
20820module_expsym_cmds_F77=
20821link_all_deplibs_F77=unknown
20822old_archive_cmds_F77=$old_archive_cmds
20823no_undefined_flag_F77=
20824whole_archive_flag_spec_F77=
20825enable_shared_with_static_runtimes_F77=no
20826
20827# Source file extension for f77 test sources.
20828ac_ext=f
20829
20830# Object file extension for compiled f77 test sources.
20831objext=o
20832objext_F77=$objext
20833
20834# Code to be used in simple compile tests
20835lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20836
20837# Code to be used in simple link tests
20838lt_simple_link_test_code=" program t\n end\n"
20839
20840# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20841
20842# If no C compiler was specified, use CC.
20843LTCC=${LTCC-"$CC"}
20844
Reid Spencera773bd52006-08-04 18:18:08 +000020845# If no C compiler flags were specified, use CFLAGS.
20846LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20847
John Criswell47fdd832003-07-14 16:52:07 +000020848# Allow CC to be a program name with arguments.
20849compiler=$CC
20850
20851
Reid Spencera773bd52006-08-04 18:18:08 +000020852# save warnings/boilerplate of simple test code
20853ac_outfile=conftest.$ac_objext
20854printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20855eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20856_lt_compiler_boilerplate=`cat conftest.err`
20857$rm conftest*
20858
20859ac_outfile=conftest.$ac_objext
20860printf "$lt_simple_link_test_code" >conftest.$ac_ext
20861eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20862_lt_linker_boilerplate=`cat conftest.err`
20863$rm conftest*
20864
20865
John Criswell47fdd832003-07-14 16:52:07 +000020866# Allow CC to be a program name with arguments.
20867lt_save_CC="$CC"
20868CC=${F77-"f77"}
20869compiler=$CC
20870compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020871for cc_temp in $compiler""; do
20872 case $cc_temp in
20873 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20874 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20875 \-*) ;;
20876 *) break;;
20877 esac
20878done
20879cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020880
John Criswell47fdd832003-07-14 16:52:07 +000020881
Reid Spencera773bd52006-08-04 18:18:08 +000020882{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20883echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20884{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20885echo "${ECHO_T}$can_build_shared" >&6; }
20886
20887{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20888echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020889test "$can_build_shared" = "no" && enable_shared=no
20890
20891# On AIX, shared libraries and static libraries use the same namespace, and
20892# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020893case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020894aix3*)
20895 test "$enable_shared" = yes && enable_static=no
20896 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020897 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020898 postinstall_cmds='$RANLIB $lib'
20899 fi
20900 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020901aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020902 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20903 test "$enable_shared" = yes && enable_static=no
20904 fi
John Criswell47fdd832003-07-14 16:52:07 +000020905 ;;
20906esac
Reid Spencera773bd52006-08-04 18:18:08 +000020907{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20908echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020909
Reid Spencera773bd52006-08-04 18:18:08 +000020910{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20911echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020912# Make sure either enable_shared or enable_static is yes.
20913test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020914{ echo "$as_me:$LINENO: result: $enable_static" >&5
20915echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020916
20917GCC_F77="$G77"
20918LD_F77="$LD"
20919
20920lt_prog_compiler_wl_F77=
20921lt_prog_compiler_pic_F77=
20922lt_prog_compiler_static_F77=
20923
Reid Spencera773bd52006-08-04 18:18:08 +000020924{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20925echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020926
20927 if test "$GCC" = yes; then
20928 lt_prog_compiler_wl_F77='-Wl,'
20929 lt_prog_compiler_static_F77='-static'
20930
20931 case $host_os in
20932 aix*)
20933 # All AIX code is PIC.
20934 if test "$host_cpu" = ia64; then
20935 # AIX 5 now supports IA64 processor
20936 lt_prog_compiler_static_F77='-Bstatic'
20937 fi
20938 ;;
20939
20940 amigaos*)
20941 # FIXME: we need at least 68020 code to build shared libraries, but
20942 # adding the `-m68020' flag to GCC prevents building anything better,
20943 # like `-m68040'.
20944 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20945 ;;
20946
20947 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20948 # PIC is the default for these OSes.
20949 ;;
20950
20951 mingw* | pw32* | os2*)
20952 # This hack is so that the source file can tell whether it is being
20953 # built for inclusion in a dll (and should export symbols for example).
20954 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20955 ;;
20956
20957 darwin* | rhapsody*)
20958 # PIC is the default on this platform
20959 # Common symbols not allowed in MH_DYLIB files
20960 lt_prog_compiler_pic_F77='-fno-common'
20961 ;;
20962
Reid Spencera773bd52006-08-04 18:18:08 +000020963 interix3*)
20964 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20965 # Instead, we relocate shared libraries at runtime.
20966 ;;
20967
John Criswell47fdd832003-07-14 16:52:07 +000020968 msdosdjgpp*)
20969 # Just because we use GCC doesn't mean we suddenly get shared libraries
20970 # on systems that don't support them.
20971 lt_prog_compiler_can_build_shared_F77=no
20972 enable_shared=no
20973 ;;
20974
20975 sysv4*MP*)
20976 if test -d /usr/nec; then
20977 lt_prog_compiler_pic_F77=-Kconform_pic
20978 fi
20979 ;;
20980
20981 hpux*)
20982 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20983 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020984 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020985 hppa*64*|ia64*)
20986 # +Z the default
20987 ;;
20988 *)
20989 lt_prog_compiler_pic_F77='-fPIC'
20990 ;;
20991 esac
20992 ;;
20993
20994 *)
20995 lt_prog_compiler_pic_F77='-fPIC'
20996 ;;
20997 esac
20998 else
20999 # PORTME Check for flag to pass linker flags through the system compiler.
21000 case $host_os in
21001 aix*)
21002 lt_prog_compiler_wl_F77='-Wl,'
21003 if test "$host_cpu" = ia64; then
21004 # AIX 5 now supports IA64 processor
21005 lt_prog_compiler_static_F77='-Bstatic'
21006 else
21007 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21008 fi
21009 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021010 darwin*)
21011 # PIC is the default on this platform
21012 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021013 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021014 xlc*)
21015 lt_prog_compiler_pic_F77='-qnocommon'
21016 lt_prog_compiler_wl_F77='-Wl,'
21017 ;;
21018 esac
21019 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021020
21021 mingw* | pw32* | os2*)
21022 # This hack is so that the source file can tell whether it is being
21023 # built for inclusion in a dll (and should export symbols for example).
21024 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21025 ;;
21026
21027 hpux9* | hpux10* | hpux11*)
21028 lt_prog_compiler_wl_F77='-Wl,'
21029 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21030 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021031 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021032 hppa*64*|ia64*)
21033 # +Z the default
21034 ;;
21035 *)
21036 lt_prog_compiler_pic_F77='+Z'
21037 ;;
21038 esac
21039 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21040 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21041 ;;
21042
21043 irix5* | irix6* | nonstopux*)
21044 lt_prog_compiler_wl_F77='-Wl,'
21045 # PIC (with -KPIC) is the default.
21046 lt_prog_compiler_static_F77='-non_shared'
21047 ;;
21048
21049 newsos6)
21050 lt_prog_compiler_pic_F77='-KPIC'
21051 lt_prog_compiler_static_F77='-Bstatic'
21052 ;;
21053
21054 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021055 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021056 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021057 lt_prog_compiler_wl_F77='-Wl,'
21058 lt_prog_compiler_pic_F77='-KPIC'
21059 lt_prog_compiler_static_F77='-static'
21060 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021061 pgcc* | pgf77* | pgf90* | pgf95*)
21062 # Portland Group compilers (*not* the Pentium gcc compiler,
21063 # which looks to be a dead project)
21064 lt_prog_compiler_wl_F77='-Wl,'
21065 lt_prog_compiler_pic_F77='-fpic'
21066 lt_prog_compiler_static_F77='-Bstatic'
21067 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021068 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021069 lt_prog_compiler_wl_F77='-Wl,'
21070 # All Alpha code is PIC.
21071 lt_prog_compiler_static_F77='-non_shared'
21072 ;;
21073 esac
21074 ;;
21075
21076 osf3* | osf4* | osf5*)
21077 lt_prog_compiler_wl_F77='-Wl,'
21078 # All OSF/1 code is PIC.
21079 lt_prog_compiler_static_F77='-non_shared'
21080 ;;
21081
John Criswell47fdd832003-07-14 16:52:07 +000021082 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021083 lt_prog_compiler_pic_F77='-KPIC'
21084 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021085 case $cc_basename in
21086 f77* | f90* | f95*)
21087 lt_prog_compiler_wl_F77='-Qoption ld ';;
21088 *)
21089 lt_prog_compiler_wl_F77='-Wl,';;
21090 esac
John Criswell47fdd832003-07-14 16:52:07 +000021091 ;;
21092
21093 sunos4*)
21094 lt_prog_compiler_wl_F77='-Qoption ld '
21095 lt_prog_compiler_pic_F77='-PIC'
21096 lt_prog_compiler_static_F77='-Bstatic'
21097 ;;
21098
Reid Spencera773bd52006-08-04 18:18:08 +000021099 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021100 lt_prog_compiler_wl_F77='-Wl,'
21101 lt_prog_compiler_pic_F77='-KPIC'
21102 lt_prog_compiler_static_F77='-Bstatic'
21103 ;;
21104
21105 sysv4*MP*)
21106 if test -d /usr/nec ;then
21107 lt_prog_compiler_pic_F77='-Kconform_pic'
21108 lt_prog_compiler_static_F77='-Bstatic'
21109 fi
21110 ;;
21111
Reid Spencera773bd52006-08-04 18:18:08 +000021112 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21113 lt_prog_compiler_wl_F77='-Wl,'
21114 lt_prog_compiler_pic_F77='-KPIC'
21115 lt_prog_compiler_static_F77='-Bstatic'
21116 ;;
21117
21118 unicos*)
21119 lt_prog_compiler_wl_F77='-Wl,'
21120 lt_prog_compiler_can_build_shared_F77=no
21121 ;;
21122
John Criswell47fdd832003-07-14 16:52:07 +000021123 uts4*)
21124 lt_prog_compiler_pic_F77='-pic'
21125 lt_prog_compiler_static_F77='-Bstatic'
21126 ;;
21127
21128 *)
21129 lt_prog_compiler_can_build_shared_F77=no
21130 ;;
21131 esac
21132 fi
21133
Reid Spencera773bd52006-08-04 18:18:08 +000021134{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21135echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021136
21137#
21138# Check to make sure the PIC flag actually works.
21139#
21140if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021141
Reid Spencera773bd52006-08-04 18:18:08 +000021142{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21143echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021144if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21145 echo $ECHO_N "(cached) $ECHO_C" >&6
21146else
21147 lt_prog_compiler_pic_works_F77=no
21148 ac_outfile=conftest.$ac_objext
21149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21150 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21151 # Insert the option either (1) after the last *FLAGS variable, or
21152 # (2) before a word containing "conftest.", or (3) at the end.
21153 # Note that $ac_compile itself does not contain backslashes and begins
21154 # with a dollar sign (not a hyphen), so the echo should work correctly.
21155 # The option is referenced via a variable to avoid confusing sed.
21156 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21159 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000021160 (eval echo "\"\$as_me:21160: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021161 (eval "$lt_compile" 2>conftest.err)
21162 ac_status=$?
21163 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000021164 echo "$as_me:21164: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021165 if (exit $ac_status) && test -s "$ac_outfile"; then
21166 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021167 # So say no if there are warnings other than the usual output.
21168 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021171 lt_prog_compiler_pic_works_F77=yes
21172 fi
21173 fi
21174 $rm conftest*
21175
21176fi
Reid Spencera773bd52006-08-04 18:18:08 +000021177{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21178echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021179
21180if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21181 case $lt_prog_compiler_pic_F77 in
21182 "" | " "*) ;;
21183 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21184 esac
21185else
21186 lt_prog_compiler_pic_F77=
21187 lt_prog_compiler_can_build_shared_F77=no
21188fi
21189
21190fi
Reid Spencera773bd52006-08-04 18:18:08 +000021191case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021192 # For platforms which do not support PIC, -DPIC is meaningless:
21193 *djgpp*)
21194 lt_prog_compiler_pic_F77=
21195 ;;
21196 *)
21197 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21198 ;;
21199esac
21200
Reid Spencera773bd52006-08-04 18:18:08 +000021201#
21202# Check to make sure the static flag actually works.
21203#
21204wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21205{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21206echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21207if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21208 echo $ECHO_N "(cached) $ECHO_C" >&6
21209else
21210 lt_prog_compiler_static_works_F77=no
21211 save_LDFLAGS="$LDFLAGS"
21212 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21213 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21215 # The linker can only warn and ignore the option if not recognized
21216 # So say no if there are warnings
21217 if test -s conftest.err; then
21218 # Append any errors to the config.log.
21219 cat conftest.err 1>&5
21220 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21222 if diff conftest.exp conftest.er2 >/dev/null; then
21223 lt_prog_compiler_static_works_F77=yes
21224 fi
21225 else
21226 lt_prog_compiler_static_works_F77=yes
21227 fi
21228 fi
21229 $rm conftest*
21230 LDFLAGS="$save_LDFLAGS"
21231
21232fi
21233{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21234echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21235
21236if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21237 :
21238else
21239 lt_prog_compiler_static_F77=
21240fi
21241
21242
21243{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21244echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021245if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248 lt_cv_prog_compiler_c_o_F77=no
21249 $rm -r conftest 2>/dev/null
21250 mkdir conftest
21251 cd conftest
21252 mkdir out
21253 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21254
John Criswell47fdd832003-07-14 16:52:07 +000021255 lt_compiler_flag="-o out/conftest2.$ac_objext"
21256 # Insert the option either (1) after the last *FLAGS variable, or
21257 # (2) before a word containing "conftest.", or (3) at the end.
21258 # Note that $ac_compile itself does not contain backslashes and begins
21259 # with a dollar sign (not a hyphen), so the echo should work correctly.
21260 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021261 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021262 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21263 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000021264 (eval echo "\"\$as_me:21264: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021265 (eval "$lt_compile" 2>out/conftest.err)
21266 ac_status=$?
21267 cat out/conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000021268 echo "$as_me:21268: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021269 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21270 then
21271 # The compiler can only warn and ignore the option if not recognized
21272 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21274 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21275 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021276 lt_cv_prog_compiler_c_o_F77=yes
21277 fi
21278 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021279 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021280 $rm conftest*
21281 # SGI C++ compiler will create directory out/ii_files/ for
21282 # template instantiation
21283 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21284 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021285 cd ..
21286 rmdir conftest
21287 $rm conftest*
21288
21289fi
Reid Spencera773bd52006-08-04 18:18:08 +000021290{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21291echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021292
21293
21294hard_links="nottested"
21295if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21296 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021297 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21298echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021299 hard_links=yes
21300 $rm conftest*
21301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21302 touch conftest.a
21303 ln conftest.a conftest.b 2>&5 || hard_links=no
21304 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021305 { echo "$as_me:$LINENO: result: $hard_links" >&5
21306echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021307 if test "$hard_links" = no; then
21308 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21309echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21310 need_locks=warn
21311 fi
21312else
21313 need_locks=no
21314fi
21315
Reid Spencera773bd52006-08-04 18:18:08 +000021316{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21317echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021318
21319 runpath_var=
21320 allow_undefined_flag_F77=
21321 enable_shared_with_static_runtimes_F77=no
21322 archive_cmds_F77=
21323 archive_expsym_cmds_F77=
21324 old_archive_From_new_cmds_F77=
21325 old_archive_from_expsyms_cmds_F77=
21326 export_dynamic_flag_spec_F77=
21327 whole_archive_flag_spec_F77=
21328 thread_safe_flag_spec_F77=
21329 hardcode_libdir_flag_spec_F77=
21330 hardcode_libdir_flag_spec_ld_F77=
21331 hardcode_libdir_separator_F77=
21332 hardcode_direct_F77=no
21333 hardcode_minus_L_F77=no
21334 hardcode_shlibpath_var_F77=unsupported
21335 link_all_deplibs_F77=unknown
21336 hardcode_automatic_F77=no
21337 module_cmds_F77=
21338 module_expsym_cmds_F77=
21339 always_export_symbols_F77=no
21340 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21341 # include_expsyms should be a list of space-separated symbols to be *always*
21342 # included in the symbol list
21343 include_expsyms_F77=
21344 # exclude_expsyms can be an extended regexp of symbols to exclude
21345 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21347 # as well as any symbol that contains `d'.
21348 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21350 # platforms (ab)use it in PIC code, but their linkers get confused if
21351 # the symbol is explicitly referenced. Since portable code cannot
21352 # rely on this symbol name, it's probably fine to never include it in
21353 # preloaded symbol tables.
21354 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021355 # Just being paranoid about ensuring that cc_basename is set.
21356 for cc_temp in $compiler""; do
21357 case $cc_temp in
21358 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21359 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21360 \-*) ;;
21361 *) break;;
21362 esac
21363done
21364cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021365
21366 case $host_os in
21367 cygwin* | mingw* | pw32*)
21368 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21369 # When not using gcc, we currently assume that we are using
21370 # Microsoft Visual C++.
21371 if test "$GCC" != yes; then
21372 with_gnu_ld=no
21373 fi
21374 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021375 interix*)
21376 # we just hope/assume this is gcc and not c89 (= MSVC++)
21377 with_gnu_ld=yes
21378 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021379 openbsd*)
21380 with_gnu_ld=no
21381 ;;
21382 esac
21383
21384 ld_shlibs_F77=yes
21385 if test "$with_gnu_ld" = yes; then
21386 # If archive_cmds runs LD, not CC, wlarc should be empty
21387 wlarc='${wl}'
21388
Reid Spencera773bd52006-08-04 18:18:08 +000021389 # Set some defaults for GNU ld with shared library support. These
21390 # are reset later if shared libraries are not supported. Putting them
21391 # here allows them to be overridden if necessary.
21392 runpath_var=LD_RUN_PATH
21393 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21394 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21395 # ancient GNU ld didn't support --whole-archive et. al.
21396 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21397 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21398 else
21399 whole_archive_flag_spec_F77=
21400 fi
21401 supports_anon_versioning=no
21402 case `$LD -v 2>/dev/null` in
21403 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21404 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21405 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21406 *\ 2.11.*) ;; # other 2.11 versions
21407 *) supports_anon_versioning=yes ;;
21408 esac
21409
John Criswell47fdd832003-07-14 16:52:07 +000021410 # See if GNU ld supports shared libraries.
21411 case $host_os in
21412 aix3* | aix4* | aix5*)
21413 # On AIX/PPC, the GNU linker is very broken
21414 if test "$host_cpu" != ia64; then
21415 ld_shlibs_F77=no
21416 cat <<EOF 1>&2
21417
21418*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21419*** to be unable to reliably create shared libraries on AIX.
21420*** Therefore, libtool is disabling shared libraries support. If you
21421*** really care for shared libraries, you may want to modify your PATH
21422*** so that a non-GNU linker is found, and then restart.
21423
21424EOF
21425 fi
21426 ;;
21427
21428 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021429 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 +000021430 hardcode_libdir_flag_spec_F77='-L$libdir'
21431 hardcode_minus_L_F77=yes
21432
21433 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21434 # that the semantics of dynamic libraries on AmigaOS, at least up
21435 # to version 4, is to share data among multiple programs linked
21436 # with the same dynamic library. Since this doesn't match the
21437 # behavior of shared libraries on other platforms, we can't use
21438 # them.
21439 ld_shlibs_F77=no
21440 ;;
21441
21442 beos*)
21443 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21444 allow_undefined_flag_F77=unsupported
21445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21446 # support --undefined. This deserves some investigation. FIXME
21447 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21448 else
21449 ld_shlibs_F77=no
21450 fi
21451 ;;
21452
21453 cygwin* | mingw* | pw32*)
21454 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21455 # as there is no search path for DLLs.
21456 hardcode_libdir_flag_spec_F77='-L$libdir'
21457 allow_undefined_flag_F77=unsupported
21458 always_export_symbols_F77=no
21459 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021460 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 +000021461
21462 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021463 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 +000021464 # If the export-symbols file already is a .def file (1st line
21465 # is EXPORTS), use it as is; otherwise, prepend...
21466 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21467 cp $export_symbols $output_objdir/$soname.def;
21468 else
21469 echo EXPORTS > $output_objdir/$soname.def;
21470 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021471 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021472 $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 +000021473 else
Reid Spencera773bd52006-08-04 18:18:08 +000021474 ld_shlibs_F77=no
21475 fi
21476 ;;
21477
21478 interix3*)
21479 hardcode_direct_F77=no
21480 hardcode_shlibpath_var_F77=no
21481 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21482 export_dynamic_flag_spec_F77='${wl}-E'
21483 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21484 # Instead, shared libraries are loaded at an image base (0x10000000 by
21485 # default) and relocated if they conflict, which is a slow very memory
21486 # consuming and fragmenting process. To avoid this, we pick a random,
21487 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21488 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21489 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'
21490 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'
21491 ;;
21492
21493 linux*)
21494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21495 tmp_addflag=
21496 case $cc_basename,$host_cpu in
21497 pgcc*) # Portland Group C compiler
21498 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'
21499 tmp_addflag=' $pic_flag'
21500 ;;
21501 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21502 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'
21503 tmp_addflag=' $pic_flag -Mnomain' ;;
21504 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21505 tmp_addflag=' -i_dynamic' ;;
21506 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21507 tmp_addflag=' -i_dynamic -nofor_main' ;;
21508 ifc* | ifort*) # Intel Fortran compiler
21509 tmp_addflag=' -nofor_main' ;;
21510 esac
21511 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21512
21513 if test $supports_anon_versioning = yes; then
21514 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21516 $echo "local: *; };" >> $output_objdir/$libname.ver~
21517 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21518 fi
21519 else
21520 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021521 fi
21522 ;;
21523
21524 netbsd*)
21525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21526 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21527 wlarc=
21528 else
21529 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21530 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21531 fi
21532 ;;
21533
Reid Spencera773bd52006-08-04 18:18:08 +000021534 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021535 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21536 ld_shlibs_F77=no
21537 cat <<EOF 1>&2
21538
21539*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21540*** create shared libraries on Solaris systems. Therefore, libtool
21541*** is disabling shared libraries support. We urge you to upgrade GNU
21542*** binutils to release 2.9.1 or newer. Another option is to modify
21543*** your PATH or compiler configuration so that the native linker is
21544*** used, and then restart.
21545
21546EOF
21547 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21548 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21549 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21550 else
21551 ld_shlibs_F77=no
21552 fi
21553 ;;
21554
Reid Spencera773bd52006-08-04 18:18:08 +000021555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21556 case `$LD -v 2>&1` in
21557 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21558 ld_shlibs_F77=no
21559 cat <<_LT_EOF 1>&2
21560
21561*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21562*** reliably create shared libraries on SCO systems. Therefore, libtool
21563*** is disabling shared libraries support. We urge you to upgrade GNU
21564*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21565*** your PATH or compiler configuration so that the native linker is
21566*** used, and then restart.
21567
21568_LT_EOF
21569 ;;
21570 *)
21571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21573 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21574 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21575 else
21576 ld_shlibs_F77=no
21577 fi
21578 ;;
21579 esac
21580 ;;
21581
John Criswell47fdd832003-07-14 16:52:07 +000021582 sunos4*)
21583 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21584 wlarc=
21585 hardcode_direct_F77=yes
21586 hardcode_shlibpath_var_F77=no
21587 ;;
21588
21589 *)
21590 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21591 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21592 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21593 else
21594 ld_shlibs_F77=no
21595 fi
21596 ;;
21597 esac
21598
Reid Spencera773bd52006-08-04 18:18:08 +000021599 if test "$ld_shlibs_F77" = no; then
21600 runpath_var=
21601 hardcode_libdir_flag_spec_F77=
21602 export_dynamic_flag_spec_F77=
21603 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021604 fi
21605 else
21606 # PORTME fill in a description of your system's linker (not GNU ld)
21607 case $host_os in
21608 aix3*)
21609 allow_undefined_flag_F77=unsupported
21610 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021611 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 +000021612 # Note: this linker hardcodes the directories in LIBPATH if there
21613 # are no directories specified by -L.
21614 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021615 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021616 # Neither direct hardcoding nor static linking is supported with a
21617 # broken collect2.
21618 hardcode_direct_F77=unsupported
21619 fi
21620 ;;
21621
21622 aix4* | aix5*)
21623 if test "$host_cpu" = ia64; then
21624 # On IA64, the linker does run time linking by default, so we don't
21625 # have to do anything special.
21626 aix_use_runtimelinking=no
21627 exp_sym_flag='-Bexport'
21628 no_entry_flag=""
21629 else
21630 # If we're using GNU nm, then we don't want the "-C" option.
21631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21632 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21633 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'
21634 else
21635 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'
21636 fi
21637 aix_use_runtimelinking=no
21638
21639 # Test if we are trying to use run time linking or normal
21640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21641 # need to do runtime linking.
21642 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21643 for ld_flag in $LDFLAGS; do
21644 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21645 aix_use_runtimelinking=yes
21646 break
21647 fi
21648 done
Reid Spencera773bd52006-08-04 18:18:08 +000021649 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021650 esac
21651
21652 exp_sym_flag='-bexport'
21653 no_entry_flag='-bnoentry'
21654 fi
21655
21656 # When large executables or shared objects are built, AIX ld can
21657 # have problems creating the table of contents. If linking a library
21658 # or program results in "error TOC overflow" add -mminimal-toc to
21659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21661
21662 archive_cmds_F77=''
21663 hardcode_direct_F77=yes
21664 hardcode_libdir_separator_F77=':'
21665 link_all_deplibs_F77=yes
21666
21667 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021668 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021669 # We only want to do this on AIX 4.2 and lower, the check
21670 # below for broken collect2 doesn't work under 4.3+
21671 collect2name=`${CC} -print-prog-name=collect2`
21672 if test -f "$collect2name" && \
21673 strings "$collect2name" | grep resolve_lib_name >/dev/null
21674 then
21675 # We have reworked collect2
21676 hardcode_direct_F77=yes
21677 else
21678 # We have old collect2
21679 hardcode_direct_F77=unsupported
21680 # It fails to find uninstalled libraries when the uninstalled
21681 # path is not listed in the libpath. Setting hardcode_minus_L
21682 # to unsupported forces relinking
21683 hardcode_minus_L_F77=yes
21684 hardcode_libdir_flag_spec_F77='-L$libdir'
21685 hardcode_libdir_separator_F77=
21686 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021687 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021688 esac
21689 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021690 if test "$aix_use_runtimelinking" = yes; then
21691 shared_flag="$shared_flag "'${wl}-G'
21692 fi
John Criswell47fdd832003-07-14 16:52:07 +000021693 else
21694 # not using gcc
21695 if test "$host_cpu" = ia64; then
21696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21697 # chokes on -Wl,-G. The following line is correct:
21698 shared_flag='-G'
21699 else
Reid Spencera773bd52006-08-04 18:18:08 +000021700 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021701 shared_flag='${wl}-G'
21702 else
21703 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021704 fi
John Criswell47fdd832003-07-14 16:52:07 +000021705 fi
21706 fi
21707
21708 # It seems that -bexpall does not export symbols beginning with
21709 # underscore (_), so it is better to generate a list of symbols to export.
21710 always_export_symbols_F77=yes
21711 if test "$aix_use_runtimelinking" = yes; then
21712 # Warning - without using the other runtime loading flags (-brtl),
21713 # -berok will link without error, but may produce a broken library.
21714 allow_undefined_flag_F77='-berok'
21715 # Determine the default libpath from the value encoded in an empty executable.
21716 cat >conftest.$ac_ext <<_ACEOF
21717 program main
21718
21719 end
21720_ACEOF
21721rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021722if { (ac_try="$ac_link"
21723case "(($ac_try" in
21724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725 *) ac_try_echo=$ac_try;;
21726esac
21727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021730 grep -v '^ *+' conftest.er1 >conftest.err
21731 rm -f conftest.er1
21732 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021735 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21736 { (case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21739esac
21740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021746 { (case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021752 ac_status=$?
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; }; then
21755
21756aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21757}'`
21758# Check for a 64-bit object if we didn't find anything.
21759if 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; }
21760}'`; fi
21761else
21762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021763sed 's/^/| /' conftest.$ac_ext >&5
21764
Reid Spencera773bd52006-08-04 18:18:08 +000021765
John Criswell47fdd832003-07-14 16:52:07 +000021766fi
Reid Spencera773bd52006-08-04 18:18:08 +000021767
21768rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021769 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21771
21772 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021773 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 +000021774 else
21775 if test "$host_cpu" = ia64; then
21776 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21777 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021778 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 +000021779 else
21780 # Determine the default libpath from the value encoded in an empty executable.
21781 cat >conftest.$ac_ext <<_ACEOF
21782 program main
21783
21784 end
21785_ACEOF
21786rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021787if { (ac_try="$ac_link"
21788case "(($ac_try" in
21789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21790 *) ac_try_echo=$ac_try;;
21791esac
21792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21793 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021794 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021795 grep -v '^ *+' conftest.er1 >conftest.err
21796 rm -f conftest.er1
21797 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021800 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21801 { (case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21804esac
21805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021807 ac_status=$?
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); }; } &&
21810 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021811 { (case "(($ac_try" in
21812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21813 *) ac_try_echo=$ac_try;;
21814esac
21815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21816 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820
21821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21822}'`
21823# Check for a 64-bit object if we didn't find anything.
21824if 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; }
21825}'`; fi
21826else
21827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021828sed 's/^/| /' conftest.$ac_ext >&5
21829
Reid Spencera773bd52006-08-04 18:18:08 +000021830
John Criswell47fdd832003-07-14 16:52:07 +000021831fi
Reid Spencera773bd52006-08-04 18:18:08 +000021832
21833rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021834 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021835if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21836
21837 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21838 # Warning - without using the other run time loading flags,
21839 # -berok will link without error, but may produce a broken library.
21840 no_undefined_flag_F77=' ${wl}-bernotok'
21841 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021842 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021843 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021844 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021845 # This is similar to how AIX traditionally builds its shared libraries.
21846 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 +000021847 fi
21848 fi
21849 ;;
21850
21851 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021852 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 +000021853 hardcode_libdir_flag_spec_F77='-L$libdir'
21854 hardcode_minus_L_F77=yes
21855 # see comment about different semantics on the GNU ld section
21856 ld_shlibs_F77=no
21857 ;;
21858
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021860 export_dynamic_flag_spec_F77=-rdynamic
21861 ;;
21862
21863 cygwin* | mingw* | pw32*)
21864 # When not using gcc, we currently assume that we are using
21865 # Microsoft Visual C++.
21866 # hardcode_libdir_flag_spec is actually meaningless, as there is
21867 # no search path for DLLs.
21868 hardcode_libdir_flag_spec_F77=' '
21869 allow_undefined_flag_F77=unsupported
21870 # Tell ltmain to make .lib files, not .a files.
21871 libext=lib
21872 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021873 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021874 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021875 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 +000021876 # The linker will automatically build a .lib file if we build a DLL.
21877 old_archive_From_new_cmds_F77='true'
21878 # FIXME: Should let the user specify the lib program.
21879 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021880 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021881 enable_shared_with_static_runtimes_F77=yes
21882 ;;
21883
21884 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021885 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 rhapsody* | darwin1.[012])
21887 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21888 ;;
21889 *) # Darwin 1.3 on
21890 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21891 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21892 else
21893 case ${MACOSX_DEPLOYMENT_TARGET} in
21894 10.[012])
21895 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21896 ;;
21897 10.*)
21898 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21899 ;;
21900 esac
21901 fi
21902 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021903 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021904 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021905 hardcode_direct_F77=no
21906 hardcode_automatic_F77=yes
21907 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021908 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021909 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910 if test "$GCC" = yes ; then
21911 output_verbose_link_cmd='echo'
21912 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21913 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021914 # 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 +000021915 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}'
21916 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 +000021917 else
Reid Spencera773bd52006-08-04 18:18:08 +000021918 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021919 xlc*)
21920 output_verbose_link_cmd='echo'
21921 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21922 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021923 # 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 +000021924 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}'
21925 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 +000021926 ;;
21927 *)
21928 ld_shlibs_F77=no
21929 ;;
21930 esac
John Criswell47fdd832003-07-14 16:52:07 +000021931 fi
21932 ;;
21933
21934 dgux*)
21935 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21936 hardcode_libdir_flag_spec_F77='-L$libdir'
21937 hardcode_shlibpath_var_F77=no
21938 ;;
21939
21940 freebsd1*)
21941 ld_shlibs_F77=no
21942 ;;
21943
21944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21945 # support. Future versions do this automatically, but an explicit c++rt0.o
21946 # does not break anything, and helps significantly (at the cost of a little
21947 # extra space).
21948 freebsd2.2*)
21949 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21950 hardcode_libdir_flag_spec_F77='-R$libdir'
21951 hardcode_direct_F77=yes
21952 hardcode_shlibpath_var_F77=no
21953 ;;
21954
21955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21956 freebsd2*)
21957 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_direct_F77=yes
21959 hardcode_minus_L_F77=yes
21960 hardcode_shlibpath_var_F77=no
21961 ;;
21962
21963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021964 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021965 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21966 hardcode_libdir_flag_spec_F77='-R$libdir'
21967 hardcode_direct_F77=yes
21968 hardcode_shlibpath_var_F77=no
21969 ;;
21970
21971 hpux9*)
21972 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021973 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 +000021974 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021975 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 +000021976 fi
21977 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21978 hardcode_libdir_separator_F77=:
21979 hardcode_direct_F77=yes
21980
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_F77=yes
21984 export_dynamic_flag_spec_F77='${wl}-E'
21985 ;;
21986
Reid Spencera773bd52006-08-04 18:18:08 +000021987 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021989 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21990 else
21991 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21992 fi
21993 if test "$with_gnu_ld" = no; then
21994 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21995 hardcode_libdir_separator_F77=:
21996
21997 hardcode_direct_F77=yes
21998 export_dynamic_flag_spec_F77='${wl}-E'
21999
22000 # hardcode_minus_L: Not really in the search PATH,
22001 # but as the default location of the library.
22002 hardcode_minus_L_F77=yes
22003 fi
22004 ;;
22005
22006 hpux11*)
22007 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22008 case $host_cpu in
22009 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022010 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22011 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022012 ia64*)
22013 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22014 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022015 *)
22016 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22017 ;;
22018 esac
22019 else
Reid Spencera773bd52006-08-04 18:18:08 +000022020 case $host_cpu in
22021 hppa*64*)
22022 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22023 ;;
22024 ia64*)
22025 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022026 ;;
22027 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022028 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 +000022029 ;;
22030 esac
22031 fi
22032 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022033 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22034 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022035
Reid Spencera773bd52006-08-04 18:18:08 +000022036 case $host_cpu in
22037 hppa*64*|ia64*)
22038 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22039 hardcode_direct_F77=no
22040 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022041 ;;
22042 *)
John Criswell47fdd832003-07-14 16:52:07 +000022043 hardcode_direct_F77=yes
22044 export_dynamic_flag_spec_F77='${wl}-E'
22045
22046 # hardcode_minus_L: Not really in the search PATH,
22047 # but as the default location of the library.
22048 hardcode_minus_L_F77=yes
22049 ;;
22050 esac
22051 fi
22052 ;;
22053
22054 irix5* | irix6* | nonstopux*)
22055 if test "$GCC" = yes; then
22056 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'
22057 else
22058 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'
22059 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22060 fi
22061 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22062 hardcode_libdir_separator_F77=:
22063 link_all_deplibs_F77=yes
22064 ;;
22065
22066 netbsd*)
22067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22068 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22069 else
22070 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22071 fi
22072 hardcode_libdir_flag_spec_F77='-R$libdir'
22073 hardcode_direct_F77=yes
22074 hardcode_shlibpath_var_F77=no
22075 ;;
22076
22077 newsos6)
22078 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22079 hardcode_direct_F77=yes
22080 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22081 hardcode_libdir_separator_F77=:
22082 hardcode_shlibpath_var_F77=no
22083 ;;
22084
22085 openbsd*)
22086 hardcode_direct_F77=yes
22087 hardcode_shlibpath_var_F77=no
22088 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22089 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022090 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 +000022091 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22092 export_dynamic_flag_spec_F77='${wl}-E'
22093 else
22094 case $host_os in
22095 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22097 hardcode_libdir_flag_spec_F77='-R$libdir'
22098 ;;
22099 *)
22100 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22102 ;;
22103 esac
22104 fi
22105 ;;
22106
22107 os2*)
22108 hardcode_libdir_flag_spec_F77='-L$libdir'
22109 hardcode_minus_L_F77=yes
22110 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022111 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 +000022112 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22113 ;;
22114
22115 osf3*)
22116 if test "$GCC" = yes; then
22117 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22118 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'
22119 else
22120 allow_undefined_flag_F77=' -expect_unresolved \*'
22121 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'
22122 fi
22123 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22124 hardcode_libdir_separator_F77=:
22125 ;;
22126
22127 osf4* | osf5*) # as osf3* with the addition of -msym flag
22128 if test "$GCC" = yes; then
22129 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22130 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'
22131 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22132 else
22133 allow_undefined_flag_F77=' -expect_unresolved \*'
22134 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 +000022135 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 +000022136 $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 +000022137
John Criswell47fdd832003-07-14 16:52:07 +000022138 # Both c and cxx compiler support -rpath directly
22139 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22140 fi
22141 hardcode_libdir_separator_F77=:
22142 ;;
22143
John Criswell47fdd832003-07-14 16:52:07 +000022144 solaris*)
22145 no_undefined_flag_F77=' -z text'
22146 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022147 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022148 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022149 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22150 $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 +000022151 else
Reid Spencera773bd52006-08-04 18:18:08 +000022152 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022153 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022154 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22155 $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 +000022156 fi
22157 hardcode_libdir_flag_spec_F77='-R$libdir'
22158 hardcode_shlibpath_var_F77=no
22159 case $host_os in
22160 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022161 *)
22162 # The compiler driver will combine linker options so we
22163 # cannot just pass the convience library names through
22164 # without $wl, iff we do not link with $LD.
22165 # Luckily, gcc supports the same syntax we need for Sun Studio.
22166 # Supported since Solaris 2.6 (maybe 2.5.1?)
22167 case $wlarc in
22168 '')
22169 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22170 *)
22171 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' ;;
22172 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022173 esac
22174 link_all_deplibs_F77=yes
22175 ;;
22176
22177 sunos4*)
22178 if test "x$host_vendor" = xsequent; then
22179 # Use $CC to link under sequent, because it throws in some extra .o
22180 # files that make .init and .fini sections work.
22181 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22182 else
22183 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22184 fi
22185 hardcode_libdir_flag_spec_F77='-L$libdir'
22186 hardcode_direct_F77=yes
22187 hardcode_minus_L_F77=yes
22188 hardcode_shlibpath_var_F77=no
22189 ;;
22190
22191 sysv4)
22192 case $host_vendor in
22193 sni)
22194 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22195 hardcode_direct_F77=yes # is this really true???
22196 ;;
22197 siemens)
22198 ## LD is ld it makes a PLAMLIB
22199 ## CC just makes a GrossModule.
22200 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22201 reload_cmds_F77='$CC -r -o $output$reload_objs'
22202 hardcode_direct_F77=no
22203 ;;
22204 motorola)
22205 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22206 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22207 ;;
22208 esac
22209 runpath_var='LD_RUN_PATH'
22210 hardcode_shlibpath_var_F77=no
22211 ;;
22212
22213 sysv4.3*)
22214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22215 hardcode_shlibpath_var_F77=no
22216 export_dynamic_flag_spec_F77='-Bexport'
22217 ;;
22218
22219 sysv4*MP*)
22220 if test -d /usr/nec; then
22221 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22222 hardcode_shlibpath_var_F77=no
22223 runpath_var=LD_RUN_PATH
22224 hardcode_runpath_var=yes
22225 ld_shlibs_F77=yes
22226 fi
22227 ;;
22228
Reid Spencera773bd52006-08-04 18:18:08 +000022229 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22230 no_undefined_flag_F77='${wl}-z,text'
22231 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022232 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022233 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022234
John Criswell47fdd832003-07-14 16:52:07 +000022235 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022236 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 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 +000022238 else
Reid Spencera773bd52006-08-04 18:18:08 +000022239 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22240 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 +000022241 fi
John Criswell47fdd832003-07-14 16:52:07 +000022242 ;;
22243
Reid Spencera773bd52006-08-04 18:18:08 +000022244 sysv5* | sco3.2v5* | sco5v6*)
22245 # Note: We can NOT use -z defs as we might desire, because we do not
22246 # link with -lc, and that would cause any symbols used from libc to
22247 # always be unresolved, which means just about no library would
22248 # ever link correctly. If we're not using GNU ld we use -z text
22249 # though, which does catch some bad symbols but isn't as heavy-handed
22250 # as -z defs.
22251 no_undefined_flag_F77='${wl}-z,text'
22252 allow_undefined_flag_F77='${wl}-z,nodefs'
22253 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022254 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022255 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22256 hardcode_libdir_separator_F77=':'
22257 link_all_deplibs_F77=yes
22258 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022259 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022260
22261 if test "$GCC" = yes; then
22262 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22263 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 else
22265 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22266 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22267 fi
John Criswell47fdd832003-07-14 16:52:07 +000022268 ;;
22269
22270 uts4*)
22271 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22272 hardcode_libdir_flag_spec_F77='-L$libdir'
22273 hardcode_shlibpath_var_F77=no
22274 ;;
22275
22276 *)
22277 ld_shlibs_F77=no
22278 ;;
22279 esac
22280 fi
22281
Reid Spencera773bd52006-08-04 18:18:08 +000022282{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22283echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022284test "$ld_shlibs_F77" = no && can_build_shared=no
22285
John Criswell47fdd832003-07-14 16:52:07 +000022286#
22287# Do we need to explicitly link libc?
22288#
22289case "x$archive_cmds_need_lc_F77" in
22290x|xyes)
22291 # Assume -lc should be added
22292 archive_cmds_need_lc_F77=yes
22293
22294 if test "$enable_shared" = yes && test "$GCC" = yes; then
22295 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022296 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022297 # FIXME: we may have to deal with multi-command sequences.
22298 ;;
22299 '$CC '*)
22300 # Test whether the compiler implicitly links with -lc since on some
22301 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22302 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022303 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22304echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022305 $rm conftest*
22306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22307
22308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22309 (eval $ac_compile) 2>&5
22310 ac_status=$?
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } 2>conftest.err; then
22313 soname=conftest
22314 lib=conftest
22315 libobjs=conftest.$ac_objext
22316 deplibs=
22317 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022318 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022319 compiler_flags=-v
22320 linker_flags=-v
22321 verstring=
22322 output_objdir=.
22323 libname=conftest
22324 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22325 allow_undefined_flag_F77=
22326 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22327 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22328 ac_status=$?
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); }
22331 then
22332 archive_cmds_need_lc_F77=no
22333 else
22334 archive_cmds_need_lc_F77=yes
22335 fi
22336 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22337 else
22338 cat conftest.err 1>&5
22339 fi
22340 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022341 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22342echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022343 ;;
22344 esac
22345 fi
22346 ;;
22347esac
22348
Reid Spencera773bd52006-08-04 18:18:08 +000022349{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22350echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022351library_names_spec=
22352libname_spec='lib$name'
22353soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022354shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022355postinstall_cmds=
22356postuninstall_cmds=
22357finish_cmds=
22358finish_eval=
22359shlibpath_var=
22360shlibpath_overrides_runpath=unknown
22361version_type=none
22362dynamic_linker="$host_os ld.so"
22363sys_lib_dlsearch_path_spec="/lib /usr/lib"
22364if test "$GCC" = yes; then
22365 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22366 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22367 # if the path contains ";" then we assume it to be the separator
22368 # otherwise default to the standard path separator (i.e. ":") - it is
22369 # assumed that no part of a normal pathname contains ";" but that should
22370 # okay in the real world where ";" in dirpaths is itself problematic.
22371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22372 else
22373 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22374 fi
22375else
22376 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22377fi
22378need_lib_prefix=unknown
22379hardcode_into_libs=no
22380
22381# when you set need_version to no, make sure it does not cause -set_version
22382# flags to be left without arguments
22383need_version=unknown
22384
22385case $host_os in
22386aix3*)
22387 version_type=linux
22388 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22389 shlibpath_var=LIBPATH
22390
22391 # AIX 3 has no versioning support, so we append a major version to the name.
22392 soname_spec='${libname}${release}${shared_ext}$major'
22393 ;;
22394
22395aix4* | aix5*)
22396 version_type=linux
22397 need_lib_prefix=no
22398 need_version=no
22399 hardcode_into_libs=yes
22400 if test "$host_cpu" = ia64; then
22401 # AIX 5 supports IA64
22402 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22403 shlibpath_var=LD_LIBRARY_PATH
22404 else
22405 # With GCC up to 2.95.x, collect2 would create an import file
22406 # for dependence libraries. The import file would start with
22407 # the line `#! .'. This would cause the generated library to
22408 # depend on `.', always an invalid library. This was fixed in
22409 # development snapshots of GCC prior to 3.0.
22410 case $host_os in
22411 aix4 | aix4.[01] | aix4.[01].*)
22412 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22413 echo ' yes '
22414 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22415 :
22416 else
22417 can_build_shared=no
22418 fi
22419 ;;
22420 esac
22421 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22422 # soname into executable. Probably we can add versioning support to
22423 # collect2, so additional links can be useful in future.
22424 if test "$aix_use_runtimelinking" = yes; then
22425 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22426 # instead of lib<name>.a to let people know that these are not
22427 # typical AIX shared libraries.
22428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22429 else
22430 # We preserve .a as extension for shared libraries through AIX4.2
22431 # and later when we are not doing run time linking.
22432 library_names_spec='${libname}${release}.a $libname.a'
22433 soname_spec='${libname}${release}${shared_ext}$major'
22434 fi
22435 shlibpath_var=LIBPATH
22436 fi
22437 ;;
22438
22439amigaos*)
22440 library_names_spec='$libname.ixlibrary $libname.a'
22441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 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 +000022443 ;;
22444
22445beos*)
22446 library_names_spec='${libname}${shared_ext}'
22447 dynamic_linker="$host_os ld.so"
22448 shlibpath_var=LIBRARY_PATH
22449 ;;
22450
Reid Spencer2706f8c2004-09-19 23:53:36 +000022451bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022452 version_type=linux
22453 need_version=no
22454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22455 soname_spec='${libname}${release}${shared_ext}$major'
22456 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22457 shlibpath_var=LD_LIBRARY_PATH
22458 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22459 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22460 # the default ld.so.conf also contains /usr/contrib/lib and
22461 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22462 # libtool to hard-code these into programs
22463 ;;
22464
22465cygwin* | mingw* | pw32*)
22466 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022467 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022468 need_version=no
22469 need_lib_prefix=no
22470
22471 case $GCC,$host_os in
22472 yes,cygwin* | yes,mingw* | yes,pw32*)
22473 library_names_spec='$libname.dll.a'
22474 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022475 postinstall_cmds='base_file=`basename \${file}`~
22476 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22477 dldir=$destdir/`dirname \$dlpath`~
22478 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022479 $install_prog $dir/$dlname \$dldir/$dlname~
22480 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22482 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022483 $rm \$dlpath'
22484 shlibpath_overrides_runpath=yes
22485
22486 case $host_os in
22487 cygwin*)
22488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22489 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 +000022490 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022491 ;;
22492 mingw*)
22493 # MinGW DLLs use traditional 'lib' prefix
22494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22496 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22497 # It is most probably a Windows format PATH printed by
22498 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22499 # path with ; separators, and with drive letters. We can handle the
22500 # drive letters (cygwin fileutils understands them), so leave them,
22501 # especially as we might pass files found there to a mingw objdump,
22502 # which wouldn't understand a cygwinified path. Ahh.
22503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22504 else
22505 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22506 fi
22507 ;;
22508 pw32*)
22509 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022510 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 +000022511 ;;
22512 esac
22513 ;;
22514
22515 *)
22516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22517 ;;
22518 esac
22519 dynamic_linker='Win32 ld.exe'
22520 # FIXME: first we should search . and the directory the executable is in
22521 shlibpath_var=PATH
22522 ;;
22523
22524darwin* | rhapsody*)
22525 dynamic_linker="$host_os dyld"
22526 version_type=darwin
22527 need_lib_prefix=no
22528 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022530 soname_spec='${libname}${release}${major}$shared_ext'
22531 shlibpath_overrides_runpath=yes
22532 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022534 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022535 if test "$GCC" = yes; then
22536 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"`
22537 else
22538 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022539 fi
22540 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22541 ;;
22542
22543dgux*)
22544 version_type=linux
22545 need_lib_prefix=no
22546 need_version=no
22547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22548 soname_spec='${libname}${release}${shared_ext}$major'
22549 shlibpath_var=LD_LIBRARY_PATH
22550 ;;
22551
22552freebsd1*)
22553 dynamic_linker=no
22554 ;;
22555
Reid Spencer2706f8c2004-09-19 23:53:36 +000022556kfreebsd*-gnu)
22557 version_type=linux
22558 need_lib_prefix=no
22559 need_version=no
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22561 soname_spec='${libname}${release}${shared_ext}$major'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=no
22564 hardcode_into_libs=yes
22565 dynamic_linker='GNU ld.so'
22566 ;;
22567
Reid Spencera773bd52006-08-04 18:18:08 +000022568freebsd* | dragonfly*)
22569 # DragonFly does not have aout. When/if they implement a new
22570 # versioning mechanism, adjust this.
22571 if test -x /usr/bin/objformat; then
22572 objformat=`/usr/bin/objformat`
22573 else
22574 case $host_os in
22575 freebsd[123]*) objformat=aout ;;
22576 *) objformat=elf ;;
22577 esac
22578 fi
John Criswell47fdd832003-07-14 16:52:07 +000022579 version_type=freebsd-$objformat
22580 case $version_type in
22581 freebsd-elf*)
22582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22583 need_version=no
22584 need_lib_prefix=no
22585 ;;
22586 freebsd-*)
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22588 need_version=yes
22589 ;;
22590 esac
22591 shlibpath_var=LD_LIBRARY_PATH
22592 case $host_os in
22593 freebsd2*)
22594 shlibpath_overrides_runpath=yes
22595 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022596 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022597 shlibpath_overrides_runpath=yes
22598 hardcode_into_libs=yes
22599 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022600 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22601 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022602 shlibpath_overrides_runpath=no
22603 hardcode_into_libs=yes
22604 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022605 freebsd*) # from 4.6 on
22606 shlibpath_overrides_runpath=yes
22607 hardcode_into_libs=yes
22608 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022609 esac
22610 ;;
22611
22612gnu*)
22613 version_type=linux
22614 need_lib_prefix=no
22615 need_version=no
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22617 soname_spec='${libname}${release}${shared_ext}$major'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 hardcode_into_libs=yes
22620 ;;
22621
22622hpux9* | hpux10* | hpux11*)
22623 # Give a soname corresponding to the major version so that dld.sl refuses to
22624 # link against other versions.
22625 version_type=sunos
22626 need_lib_prefix=no
22627 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022628 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022629 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022630 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022631 hardcode_into_libs=yes
22632 dynamic_linker="$host_os dld.so"
22633 shlibpath_var=LD_LIBRARY_PATH
22634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22636 soname_spec='${libname}${release}${shared_ext}$major'
22637 if test "X$HPUX_IA64_MODE" = X32; then
22638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22639 else
22640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22641 fi
22642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22643 ;;
22644 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022645 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022646 hardcode_into_libs=yes
22647 dynamic_linker="$host_os dld.sl"
22648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 soname_spec='${libname}${release}${shared_ext}$major'
22652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22654 ;;
22655 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022656 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022657 dynamic_linker="$host_os dld.sl"
22658 shlibpath_var=SHLIB_PATH
22659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22661 soname_spec='${libname}${release}${shared_ext}$major'
22662 ;;
22663 esac
22664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22665 postinstall_cmds='chmod 555 $lib'
22666 ;;
22667
Reid Spencera773bd52006-08-04 18:18:08 +000022668interix3*)
22669 version_type=linux
22670 need_lib_prefix=no
22671 need_version=no
22672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22673 soname_spec='${libname}${release}${shared_ext}$major'
22674 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22675 shlibpath_var=LD_LIBRARY_PATH
22676 shlibpath_overrides_runpath=no
22677 hardcode_into_libs=yes
22678 ;;
22679
John Criswell47fdd832003-07-14 16:52:07 +000022680irix5* | irix6* | nonstopux*)
22681 case $host_os in
22682 nonstopux*) version_type=nonstopux ;;
22683 *)
22684 if test "$lt_cv_prog_gnu_ld" = yes; then
22685 version_type=linux
22686 else
22687 version_type=irix
22688 fi ;;
22689 esac
22690 need_lib_prefix=no
22691 need_version=no
22692 soname_spec='${libname}${release}${shared_ext}$major'
22693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22694 case $host_os in
22695 irix5* | nonstopux*)
22696 libsuff= shlibsuff=
22697 ;;
22698 *)
22699 case $LD in # libtool.m4 will add one of these switches to LD
22700 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22701 libsuff= shlibsuff= libmagic=32-bit;;
22702 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22703 libsuff=32 shlibsuff=N32 libmagic=N32;;
22704 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22705 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22706 *) libsuff= shlibsuff= libmagic=never-match;;
22707 esac
22708 ;;
22709 esac
22710 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22711 shlibpath_overrides_runpath=no
22712 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22713 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22714 hardcode_into_libs=yes
22715 ;;
22716
22717# No shared lib support for Linux oldld, aout, or coff.
22718linux*oldld* | linux*aout* | linux*coff*)
22719 dynamic_linker=no
22720 ;;
22721
22722# This must be Linux ELF.
22723linux*)
22724 version_type=linux
22725 need_lib_prefix=no
22726 need_version=no
22727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22728 soname_spec='${libname}${release}${shared_ext}$major'
22729 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22730 shlibpath_var=LD_LIBRARY_PATH
22731 shlibpath_overrides_runpath=no
22732 # This implies no fast_install, which is unacceptable.
22733 # Some rework will be needed to allow for fast_install
22734 # before this can be enabled.
22735 hardcode_into_libs=yes
22736
Reid Spencer2706f8c2004-09-19 23:53:36 +000022737 # Append ld.so.conf contents to the search path
22738 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022739 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 +000022740 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22741 fi
22742
John Criswell47fdd832003-07-14 16:52:07 +000022743 # We used to test for /lib/ld.so.1 and disable shared libraries on
22744 # powerpc, because MkLinux only supported shared libraries with the
22745 # GNU dynamic linker. Since this was broken with cross compilers,
22746 # most powerpc-linux boxes support dynamic linking these days and
22747 # people can always --disable-shared, the test was removed, and we
22748 # assume the GNU/Linux dynamic linker is in use.
22749 dynamic_linker='GNU/Linux ld.so'
22750 ;;
22751
Reid Spencer2706f8c2004-09-19 23:53:36 +000022752knetbsd*-gnu)
22753 version_type=linux
22754 need_lib_prefix=no
22755 need_version=no
22756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22757 soname_spec='${libname}${release}${shared_ext}$major'
22758 shlibpath_var=LD_LIBRARY_PATH
22759 shlibpath_overrides_runpath=no
22760 hardcode_into_libs=yes
22761 dynamic_linker='GNU ld.so'
22762 ;;
22763
John Criswell47fdd832003-07-14 16:52:07 +000022764netbsd*)
22765 version_type=sunos
22766 need_lib_prefix=no
22767 need_version=no
22768 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22771 dynamic_linker='NetBSD (a.out) ld.so'
22772 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022774 soname_spec='${libname}${release}${shared_ext}$major'
22775 dynamic_linker='NetBSD ld.elf_so'
22776 fi
22777 shlibpath_var=LD_LIBRARY_PATH
22778 shlibpath_overrides_runpath=yes
22779 hardcode_into_libs=yes
22780 ;;
22781
22782newsos6)
22783 version_type=linux
22784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22785 shlibpath_var=LD_LIBRARY_PATH
22786 shlibpath_overrides_runpath=yes
22787 ;;
22788
Reid Spencer2706f8c2004-09-19 23:53:36 +000022789nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022790 version_type=linux
22791 need_lib_prefix=no
22792 need_version=no
22793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22794 soname_spec='${libname}${release}${shared_ext}$major'
22795 shlibpath_var=LD_LIBRARY_PATH
22796 shlibpath_overrides_runpath=yes
22797 ;;
22798
22799openbsd*)
22800 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022801 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022802 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022803 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22804 case $host_os in
22805 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22806 *) need_version=no ;;
22807 esac
John Criswell47fdd832003-07-14 16:52:07 +000022808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22809 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22812 case $host_os in
22813 openbsd2.[89] | openbsd2.[89].*)
22814 shlibpath_overrides_runpath=no
22815 ;;
22816 *)
22817 shlibpath_overrides_runpath=yes
22818 ;;
22819 esac
22820 else
22821 shlibpath_overrides_runpath=yes
22822 fi
22823 ;;
22824
22825os2*)
22826 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022827 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022828 need_lib_prefix=no
22829 library_names_spec='$libname${shared_ext} $libname.a'
22830 dynamic_linker='OS/2 ld.exe'
22831 shlibpath_var=LIBPATH
22832 ;;
22833
22834osf3* | osf4* | osf5*)
22835 version_type=osf
22836 need_lib_prefix=no
22837 need_version=no
22838 soname_spec='${libname}${release}${shared_ext}$major'
22839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22840 shlibpath_var=LD_LIBRARY_PATH
22841 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22842 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22843 ;;
22844
John Criswell47fdd832003-07-14 16:52:07 +000022845solaris*)
22846 version_type=linux
22847 need_lib_prefix=no
22848 need_version=no
22849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22850 soname_spec='${libname}${release}${shared_ext}$major'
22851 shlibpath_var=LD_LIBRARY_PATH
22852 shlibpath_overrides_runpath=yes
22853 hardcode_into_libs=yes
22854 # ldd complains unless libraries are executable
22855 postinstall_cmds='chmod +x $lib'
22856 ;;
22857
22858sunos4*)
22859 version_type=sunos
22860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22861 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22862 shlibpath_var=LD_LIBRARY_PATH
22863 shlibpath_overrides_runpath=yes
22864 if test "$with_gnu_ld" = yes; then
22865 need_lib_prefix=no
22866 fi
22867 need_version=yes
22868 ;;
22869
Reid Spencera773bd52006-08-04 18:18:08 +000022870sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022871 version_type=linux
22872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22873 soname_spec='${libname}${release}${shared_ext}$major'
22874 shlibpath_var=LD_LIBRARY_PATH
22875 case $host_vendor in
22876 sni)
22877 shlibpath_overrides_runpath=no
22878 need_lib_prefix=no
22879 export_dynamic_flag_spec='${wl}-Blargedynsym'
22880 runpath_var=LD_RUN_PATH
22881 ;;
22882 siemens)
22883 need_lib_prefix=no
22884 ;;
22885 motorola)
22886 need_lib_prefix=no
22887 need_version=no
22888 shlibpath_overrides_runpath=no
22889 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22890 ;;
22891 esac
22892 ;;
22893
22894sysv4*MP*)
22895 if test -d /usr/nec ;then
22896 version_type=linux
22897 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22898 soname_spec='$libname${shared_ext}.$major'
22899 shlibpath_var=LD_LIBRARY_PATH
22900 fi
22901 ;;
22902
Reid Spencera773bd52006-08-04 18:18:08 +000022903sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22904 version_type=freebsd-elf
22905 need_lib_prefix=no
22906 need_version=no
22907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22908 soname_spec='${libname}${release}${shared_ext}$major'
22909 shlibpath_var=LD_LIBRARY_PATH
22910 hardcode_into_libs=yes
22911 if test "$with_gnu_ld" = yes; then
22912 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22913 shlibpath_overrides_runpath=no
22914 else
22915 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22916 shlibpath_overrides_runpath=yes
22917 case $host_os in
22918 sco3.2v5*)
22919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22920 ;;
22921 esac
22922 fi
22923 sys_lib_dlsearch_path_spec='/usr/lib'
22924 ;;
22925
John Criswell47fdd832003-07-14 16:52:07 +000022926uts4*)
22927 version_type=linux
22928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22929 soname_spec='${libname}${release}${shared_ext}$major'
22930 shlibpath_var=LD_LIBRARY_PATH
22931 ;;
22932
22933*)
22934 dynamic_linker=no
22935 ;;
22936esac
Reid Spencera773bd52006-08-04 18:18:08 +000022937{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22938echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022939test "$dynamic_linker" = no && can_build_shared=no
22940
Reid Spencera773bd52006-08-04 18:18:08 +000022941variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22942if test "$GCC" = yes; then
22943 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22944fi
22945
22946{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22947echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022948hardcode_action_F77=
22949if test -n "$hardcode_libdir_flag_spec_F77" || \
22950 test -n "$runpath_var_F77" || \
22951 test "X$hardcode_automatic_F77" = "Xyes" ; then
22952
22953 # We can hardcode non-existant directories.
22954 if test "$hardcode_direct_F77" != no &&
22955 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22956 # have to relink, otherwise we might link with an installed library
22957 # when we should be linking with a yet-to-be-installed one
22958 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22959 test "$hardcode_minus_L_F77" != no; then
22960 # Linking always hardcodes the temporary library directory.
22961 hardcode_action_F77=relink
22962 else
22963 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22964 hardcode_action_F77=immediate
22965 fi
22966else
22967 # We cannot hardcode anything, or else we can only hardcode existing
22968 # directories.
22969 hardcode_action_F77=unsupported
22970fi
Reid Spencera773bd52006-08-04 18:18:08 +000022971{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22972echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022973
22974if test "$hardcode_action_F77" = relink; then
22975 # Fast installation is not supported
22976 enable_fast_install=no
22977elif test "$shlibpath_overrides_runpath" = yes ||
22978 test "$enable_shared" = no; then
22979 # Fast installation is not necessary
22980 enable_fast_install=needless
22981fi
22982
John Criswell47fdd832003-07-14 16:52:07 +000022983
22984# The else clause should only fire when bootstrapping the
22985# libtool distribution, otherwise you forgot to ship ltmain.sh
22986# with your package, and you will get complaints that there are
22987# no rules to generate ltmain.sh.
22988if test -f "$ltmain"; then
22989 # See if we are running on zsh, and set the options which allow our commands through
22990 # without removal of \ escapes.
22991 if test -n "${ZSH_VERSION+set}" ; then
22992 setopt NO_GLOB_SUBST
22993 fi
22994 # Now quote all the things that may contain metacharacters while being
22995 # careful not to overquote the AC_SUBSTed values. We take copies of the
22996 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022997 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 +000022998 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022999 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23000 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23001 deplibs_check_method reload_flag reload_cmds need_locks \
23002 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23003 lt_cv_sys_global_symbol_to_c_name_address \
23004 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23005 old_postinstall_cmds old_postuninstall_cmds \
23006 compiler_F77 \
23007 CC_F77 \
23008 LD_F77 \
23009 lt_prog_compiler_wl_F77 \
23010 lt_prog_compiler_pic_F77 \
23011 lt_prog_compiler_static_F77 \
23012 lt_prog_compiler_no_builtin_flag_F77 \
23013 export_dynamic_flag_spec_F77 \
23014 thread_safe_flag_spec_F77 \
23015 whole_archive_flag_spec_F77 \
23016 enable_shared_with_static_runtimes_F77 \
23017 old_archive_cmds_F77 \
23018 old_archive_from_new_cmds_F77 \
23019 predep_objects_F77 \
23020 postdep_objects_F77 \
23021 predeps_F77 \
23022 postdeps_F77 \
23023 compiler_lib_search_path_F77 \
23024 archive_cmds_F77 \
23025 archive_expsym_cmds_F77 \
23026 postinstall_cmds_F77 \
23027 postuninstall_cmds_F77 \
23028 old_archive_from_expsyms_cmds_F77 \
23029 allow_undefined_flag_F77 \
23030 no_undefined_flag_F77 \
23031 export_symbols_cmds_F77 \
23032 hardcode_libdir_flag_spec_F77 \
23033 hardcode_libdir_flag_spec_ld_F77 \
23034 hardcode_libdir_separator_F77 \
23035 hardcode_automatic_F77 \
23036 module_cmds_F77 \
23037 module_expsym_cmds_F77 \
23038 lt_cv_prog_compiler_c_o_F77 \
23039 exclude_expsyms_F77 \
23040 include_expsyms_F77; do
23041
23042 case $var in
23043 old_archive_cmds_F77 | \
23044 old_archive_from_new_cmds_F77 | \
23045 archive_cmds_F77 | \
23046 archive_expsym_cmds_F77 | \
23047 module_cmds_F77 | \
23048 module_expsym_cmds_F77 | \
23049 old_archive_from_expsyms_cmds_F77 | \
23050 export_symbols_cmds_F77 | \
23051 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23052 postinstall_cmds | postuninstall_cmds | \
23053 old_postinstall_cmds | old_postuninstall_cmds | \
23054 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23055 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023056 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 +000023057 ;;
23058 *)
23059 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23060 ;;
23061 esac
23062 done
23063
23064 case $lt_echo in
23065 *'\$0 --fallback-echo"')
23066 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23067 ;;
23068 esac
23069
23070cfgfile="$ofile"
23071
23072 cat <<__EOF__ >> "$cfgfile"
23073# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23074
23075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23076
23077# Shell to use when invoking shell scripts.
23078SHELL=$lt_SHELL
23079
23080# Whether or not to build shared libraries.
23081build_libtool_libs=$enable_shared
23082
23083# Whether or not to build static libraries.
23084build_old_libs=$enable_static
23085
23086# Whether or not to add -lc for building shared libraries.
23087build_libtool_need_lc=$archive_cmds_need_lc_F77
23088
23089# Whether or not to disallow shared libs when runtime libs are static
23090allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23091
23092# Whether or not to optimize for fast installation.
23093fast_install=$enable_fast_install
23094
23095# The host system.
23096host_alias=$host_alias
23097host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023098host_os=$host_os
23099
23100# The build system.
23101build_alias=$build_alias
23102build=$build
23103build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023104
23105# An echo program that does not interpret backslashes.
23106echo=$lt_echo
23107
23108# The archiver.
23109AR=$lt_AR
23110AR_FLAGS=$lt_AR_FLAGS
23111
23112# A C compiler.
23113LTCC=$lt_LTCC
23114
Reid Spencera773bd52006-08-04 18:18:08 +000023115# LTCC compiler flags.
23116LTCFLAGS=$lt_LTCFLAGS
23117
John Criswell47fdd832003-07-14 16:52:07 +000023118# A language-specific compiler.
23119CC=$lt_compiler_F77
23120
23121# Is the compiler the GNU C compiler?
23122with_gcc=$GCC_F77
23123
23124# An ERE matcher.
23125EGREP=$lt_EGREP
23126
23127# The linker used to build libraries.
23128LD=$lt_LD_F77
23129
23130# Whether we need hard or soft links.
23131LN_S=$lt_LN_S
23132
23133# A BSD-compatible nm program.
23134NM=$lt_NM
23135
23136# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023137STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023138
23139# Used to examine libraries when file_magic_cmd begins "file"
23140MAGIC_CMD=$MAGIC_CMD
23141
23142# Used on cygwin: DLL creation program.
23143DLLTOOL="$DLLTOOL"
23144
23145# Used on cygwin: object dumper.
23146OBJDUMP="$OBJDUMP"
23147
23148# Used on cygwin: assembler.
23149AS="$AS"
23150
23151# The name of the directory that contains temporary libtool files.
23152objdir=$objdir
23153
23154# How to create reloadable object files.
23155reload_flag=$lt_reload_flag
23156reload_cmds=$lt_reload_cmds
23157
23158# How to pass a linker flag through the compiler.
23159wl=$lt_lt_prog_compiler_wl_F77
23160
23161# Object file suffix (normally "o").
23162objext="$ac_objext"
23163
23164# Old archive suffix (normally "a").
23165libext="$libext"
23166
23167# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023168shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023169
23170# Executable file suffix (normally "").
23171exeext="$exeext"
23172
23173# Additional compiler flags for building library objects.
23174pic_flag=$lt_lt_prog_compiler_pic_F77
23175pic_mode=$pic_mode
23176
23177# What is the maximum length of a command?
23178max_cmd_len=$lt_cv_sys_max_cmd_len
23179
23180# Does compiler simultaneously support -c and -o options?
23181compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23182
Reid Spencera773bd52006-08-04 18:18:08 +000023183# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023184need_locks=$lt_need_locks
23185
23186# Do we need the lib prefix for modules?
23187need_lib_prefix=$need_lib_prefix
23188
23189# Do we need a version for libraries?
23190need_version=$need_version
23191
23192# Whether dlopen is supported.
23193dlopen_support=$enable_dlopen
23194
23195# Whether dlopen of programs is supported.
23196dlopen_self=$enable_dlopen_self
23197
23198# Whether dlopen of statically linked programs is supported.
23199dlopen_self_static=$enable_dlopen_self_static
23200
23201# Compiler flag to prevent dynamic linking.
23202link_static_flag=$lt_lt_prog_compiler_static_F77
23203
23204# Compiler flag to turn off builtin functions.
23205no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23206
23207# Compiler flag to allow reflexive dlopens.
23208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23209
23210# Compiler flag to generate shared objects directly from archives.
23211whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23212
23213# Compiler flag to generate thread-safe objects.
23214thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23215
23216# Library versioning type.
23217version_type=$version_type
23218
23219# Format of library name prefix.
23220libname_spec=$lt_libname_spec
23221
23222# List of archive names. First name is the real one, the rest are links.
23223# The last name is the one that the linker finds with -lNAME.
23224library_names_spec=$lt_library_names_spec
23225
23226# The coded name of the library, if different from the real name.
23227soname_spec=$lt_soname_spec
23228
23229# Commands used to build and install an old-style archive.
23230RANLIB=$lt_RANLIB
23231old_archive_cmds=$lt_old_archive_cmds_F77
23232old_postinstall_cmds=$lt_old_postinstall_cmds
23233old_postuninstall_cmds=$lt_old_postuninstall_cmds
23234
23235# Create an old-style archive from a shared archive.
23236old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23237
23238# Create a temporary old-style archive to link instead of a shared archive.
23239old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23240
23241# Commands used to build and install a shared archive.
23242archive_cmds=$lt_archive_cmds_F77
23243archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23244postinstall_cmds=$lt_postinstall_cmds
23245postuninstall_cmds=$lt_postuninstall_cmds
23246
23247# Commands used to build a loadable module (assumed same as above if empty)
23248module_cmds=$lt_module_cmds_F77
23249module_expsym_cmds=$lt_module_expsym_cmds_F77
23250
23251# Commands to strip libraries.
23252old_striplib=$lt_old_striplib
23253striplib=$lt_striplib
23254
23255# Dependencies to place before the objects being linked to create a
23256# shared library.
23257predep_objects=$lt_predep_objects_F77
23258
23259# Dependencies to place after the objects being linked to create a
23260# shared library.
23261postdep_objects=$lt_postdep_objects_F77
23262
23263# Dependencies to place before the objects being linked to create a
23264# shared library.
23265predeps=$lt_predeps_F77
23266
23267# Dependencies to place after the objects being linked to create a
23268# shared library.
23269postdeps=$lt_postdeps_F77
23270
23271# The library search path used internally by the compiler when linking
23272# a shared library.
23273compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23274
23275# Method to check whether dependent libraries are shared objects.
23276deplibs_check_method=$lt_deplibs_check_method
23277
23278# Command to use when deplibs_check_method == file_magic.
23279file_magic_cmd=$lt_file_magic_cmd
23280
23281# Flag that allows shared libraries with undefined symbols to be built.
23282allow_undefined_flag=$lt_allow_undefined_flag_F77
23283
23284# Flag that forces no undefined symbols.
23285no_undefined_flag=$lt_no_undefined_flag_F77
23286
23287# Commands used to finish a libtool library installation in a directory.
23288finish_cmds=$lt_finish_cmds
23289
23290# Same as above, but a single script fragment to be evaled but not shown.
23291finish_eval=$lt_finish_eval
23292
23293# Take the output of nm and produce a listing of raw symbols and C names.
23294global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23295
23296# Transform the output of nm in a proper C declaration
23297global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23298
23299# Transform the output of nm in a C name address pair
23300global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23301
23302# This is the shared library runtime path variable.
23303runpath_var=$runpath_var
23304
23305# This is the shared library path variable.
23306shlibpath_var=$shlibpath_var
23307
23308# Is shlibpath searched before the hard-coded library search path?
23309shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23310
23311# How to hardcode a shared library path into an executable.
23312hardcode_action=$hardcode_action_F77
23313
23314# Whether we should hardcode library paths into libraries.
23315hardcode_into_libs=$hardcode_into_libs
23316
23317# Flag to hardcode \$libdir into a binary during linking.
23318# This must work even if \$libdir does not exist.
23319hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23320
23321# If ld is used when linking, flag to hardcode \$libdir into
23322# a binary during linking. This must work even if \$libdir does
23323# not exist.
23324hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23325
23326# Whether we need a single -rpath flag with a separated argument.
23327hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23328
23329# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23330# resulting binary.
23331hardcode_direct=$hardcode_direct_F77
23332
23333# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23334# resulting binary.
23335hardcode_minus_L=$hardcode_minus_L_F77
23336
23337# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23338# the resulting binary.
23339hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23340
23341# Set to yes if building a shared library automatically hardcodes DIR into the library
23342# and all subsequent libraries and executables linked against it.
23343hardcode_automatic=$hardcode_automatic_F77
23344
23345# Variables whose values should be saved in libtool wrapper scripts and
23346# restored at relink time.
23347variables_saved_for_relink="$variables_saved_for_relink"
23348
23349# Whether libtool must link a program against all its dependency libraries.
23350link_all_deplibs=$link_all_deplibs_F77
23351
23352# Compile-time system search path for libraries
23353sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23354
23355# Run-time system search path for libraries
23356sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23357
23358# Fix the shell variable \$srcfile for the compiler.
23359fix_srcfile_path="$fix_srcfile_path_F77"
23360
23361# Set to yes if exported symbols are required.
23362always_export_symbols=$always_export_symbols_F77
23363
23364# The commands to list exported symbols.
23365export_symbols_cmds=$lt_export_symbols_cmds_F77
23366
23367# The commands to extract the exported symbol list from a shared archive.
23368extract_expsyms_cmds=$lt_extract_expsyms_cmds
23369
23370# Symbols that should not be listed in the preloaded symbols.
23371exclude_expsyms=$lt_exclude_expsyms_F77
23372
23373# Symbols that must always be exported.
23374include_expsyms=$lt_include_expsyms_F77
23375
23376# ### END LIBTOOL TAG CONFIG: $tagname
23377
23378__EOF__
23379
23380
23381else
23382 # If there is no Makefile yet, we rely on a make rule to execute
23383 # `config.status --recheck' to rerun these tests and create the
23384 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023385 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23386 if test -f "$ltmain_in"; then
23387 test -f Makefile && make "$ltmain"
23388 fi
John Criswell47fdd832003-07-14 16:52:07 +000023389fi
23390
23391
23392ac_ext=c
23393ac_cpp='$CPP $CPPFLAGS'
23394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23396ac_compiler_gnu=$ac_cv_c_compiler_gnu
23397
23398CC="$lt_save_CC"
23399
23400 else
23401 tagname=""
23402 fi
23403 ;;
23404
23405 GCJ)
23406 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023407 ac_ext=c
23408ac_cpp='$CPP $CPPFLAGS'
23409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23411ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023412
23413
23414# Source file extension for Java test sources.
23415ac_ext=java
23416
23417# Object file extension for compiled Java test sources.
23418objext=o
23419objext_GCJ=$objext
23420
23421# Code to be used in simple compile tests
23422lt_simple_compile_test_code="class foo {}\n"
23423
23424# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023425lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023426
23427# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23428
23429# If no C compiler was specified, use CC.
23430LTCC=${LTCC-"$CC"}
23431
Reid Spencera773bd52006-08-04 18:18:08 +000023432# If no C compiler flags were specified, use CFLAGS.
23433LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23434
John Criswell47fdd832003-07-14 16:52:07 +000023435# Allow CC to be a program name with arguments.
23436compiler=$CC
23437
23438
Reid Spencera773bd52006-08-04 18:18:08 +000023439# save warnings/boilerplate of simple test code
23440ac_outfile=conftest.$ac_objext
23441printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23442eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23443_lt_compiler_boilerplate=`cat conftest.err`
23444$rm conftest*
23445
23446ac_outfile=conftest.$ac_objext
23447printf "$lt_simple_link_test_code" >conftest.$ac_ext
23448eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23449_lt_linker_boilerplate=`cat conftest.err`
23450$rm conftest*
23451
23452
John Criswell47fdd832003-07-14 16:52:07 +000023453# Allow CC to be a program name with arguments.
23454lt_save_CC="$CC"
23455CC=${GCJ-"gcj"}
23456compiler=$CC
23457compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023458for cc_temp in $compiler""; do
23459 case $cc_temp in
23460 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23461 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23462 \-*) ;;
23463 *) break;;
23464 esac
23465done
23466cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23467
John Criswell47fdd832003-07-14 16:52:07 +000023468
23469# GCJ did not exist at the time GCC didn't implicitly link libc in.
23470archive_cmds_need_lc_GCJ=no
23471
Reid Spencera773bd52006-08-04 18:18:08 +000023472old_archive_cmds_GCJ=$old_archive_cmds
23473
John Criswell47fdd832003-07-14 16:52:07 +000023474
23475lt_prog_compiler_no_builtin_flag_GCJ=
23476
23477if test "$GCC" = yes; then
23478 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23479
Reid Spencer2706f8c2004-09-19 23:53:36 +000023480
Reid Spencera773bd52006-08-04 18:18:08 +000023481{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23482echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023483if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23484 echo $ECHO_N "(cached) $ECHO_C" >&6
23485else
23486 lt_cv_prog_compiler_rtti_exceptions=no
23487 ac_outfile=conftest.$ac_objext
23488 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23489 lt_compiler_flag="-fno-rtti -fno-exceptions"
23490 # Insert the option either (1) after the last *FLAGS variable, or
23491 # (2) before a word containing "conftest.", or (3) at the end.
23492 # Note that $ac_compile itself does not contain backslashes and begins
23493 # with a dollar sign (not a hyphen), so the echo should work correctly.
23494 # The option is referenced via a variable to avoid confusing sed.
23495 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23498 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023499 (eval echo "\"\$as_me:23499: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023500 (eval "$lt_compile" 2>conftest.err)
23501 ac_status=$?
23502 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023503 echo "$as_me:23503: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023504 if (exit $ac_status) && test -s "$ac_outfile"; then
23505 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023506 # So say no if there are warnings other than the usual output.
23507 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023510 lt_cv_prog_compiler_rtti_exceptions=yes
23511 fi
23512 fi
23513 $rm conftest*
23514
23515fi
Reid Spencera773bd52006-08-04 18:18:08 +000023516{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23517echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023518
23519if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23520 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23521else
23522 :
23523fi
23524
23525fi
23526
23527lt_prog_compiler_wl_GCJ=
23528lt_prog_compiler_pic_GCJ=
23529lt_prog_compiler_static_GCJ=
23530
Reid Spencera773bd52006-08-04 18:18:08 +000023531{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23532echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023533
23534 if test "$GCC" = yes; then
23535 lt_prog_compiler_wl_GCJ='-Wl,'
23536 lt_prog_compiler_static_GCJ='-static'
23537
23538 case $host_os in
23539 aix*)
23540 # All AIX code is PIC.
23541 if test "$host_cpu" = ia64; then
23542 # AIX 5 now supports IA64 processor
23543 lt_prog_compiler_static_GCJ='-Bstatic'
23544 fi
23545 ;;
23546
23547 amigaos*)
23548 # FIXME: we need at least 68020 code to build shared libraries, but
23549 # adding the `-m68020' flag to GCC prevents building anything better,
23550 # like `-m68040'.
23551 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23552 ;;
23553
23554 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23555 # PIC is the default for these OSes.
23556 ;;
23557
23558 mingw* | pw32* | os2*)
23559 # This hack is so that the source file can tell whether it is being
23560 # built for inclusion in a dll (and should export symbols for example).
23561 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23562 ;;
23563
23564 darwin* | rhapsody*)
23565 # PIC is the default on this platform
23566 # Common symbols not allowed in MH_DYLIB files
23567 lt_prog_compiler_pic_GCJ='-fno-common'
23568 ;;
23569
Reid Spencera773bd52006-08-04 18:18:08 +000023570 interix3*)
23571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23572 # Instead, we relocate shared libraries at runtime.
23573 ;;
23574
John Criswell47fdd832003-07-14 16:52:07 +000023575 msdosdjgpp*)
23576 # Just because we use GCC doesn't mean we suddenly get shared libraries
23577 # on systems that don't support them.
23578 lt_prog_compiler_can_build_shared_GCJ=no
23579 enable_shared=no
23580 ;;
23581
23582 sysv4*MP*)
23583 if test -d /usr/nec; then
23584 lt_prog_compiler_pic_GCJ=-Kconform_pic
23585 fi
23586 ;;
23587
23588 hpux*)
23589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23590 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023591 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023592 hppa*64*|ia64*)
23593 # +Z the default
23594 ;;
23595 *)
23596 lt_prog_compiler_pic_GCJ='-fPIC'
23597 ;;
23598 esac
23599 ;;
23600
23601 *)
23602 lt_prog_compiler_pic_GCJ='-fPIC'
23603 ;;
23604 esac
23605 else
23606 # PORTME Check for flag to pass linker flags through the system compiler.
23607 case $host_os in
23608 aix*)
23609 lt_prog_compiler_wl_GCJ='-Wl,'
23610 if test "$host_cpu" = ia64; then
23611 # AIX 5 now supports IA64 processor
23612 lt_prog_compiler_static_GCJ='-Bstatic'
23613 else
23614 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23615 fi
23616 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023617 darwin*)
23618 # PIC is the default on this platform
23619 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023620 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023621 xlc*)
23622 lt_prog_compiler_pic_GCJ='-qnocommon'
23623 lt_prog_compiler_wl_GCJ='-Wl,'
23624 ;;
23625 esac
23626 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023627
23628 mingw* | pw32* | os2*)
23629 # This hack is so that the source file can tell whether it is being
23630 # built for inclusion in a dll (and should export symbols for example).
23631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23632 ;;
23633
23634 hpux9* | hpux10* | hpux11*)
23635 lt_prog_compiler_wl_GCJ='-Wl,'
23636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23637 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023638 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023639 hppa*64*|ia64*)
23640 # +Z the default
23641 ;;
23642 *)
23643 lt_prog_compiler_pic_GCJ='+Z'
23644 ;;
23645 esac
23646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23647 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23648 ;;
23649
23650 irix5* | irix6* | nonstopux*)
23651 lt_prog_compiler_wl_GCJ='-Wl,'
23652 # PIC (with -KPIC) is the default.
23653 lt_prog_compiler_static_GCJ='-non_shared'
23654 ;;
23655
23656 newsos6)
23657 lt_prog_compiler_pic_GCJ='-KPIC'
23658 lt_prog_compiler_static_GCJ='-Bstatic'
23659 ;;
23660
23661 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023662 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023663 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023664 lt_prog_compiler_wl_GCJ='-Wl,'
23665 lt_prog_compiler_pic_GCJ='-KPIC'
23666 lt_prog_compiler_static_GCJ='-static'
23667 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023668 pgcc* | pgf77* | pgf90* | pgf95*)
23669 # Portland Group compilers (*not* the Pentium gcc compiler,
23670 # which looks to be a dead project)
23671 lt_prog_compiler_wl_GCJ='-Wl,'
23672 lt_prog_compiler_pic_GCJ='-fpic'
23673 lt_prog_compiler_static_GCJ='-Bstatic'
23674 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023675 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023676 lt_prog_compiler_wl_GCJ='-Wl,'
23677 # All Alpha code is PIC.
23678 lt_prog_compiler_static_GCJ='-non_shared'
23679 ;;
23680 esac
23681 ;;
23682
23683 osf3* | osf4* | osf5*)
23684 lt_prog_compiler_wl_GCJ='-Wl,'
23685 # All OSF/1 code is PIC.
23686 lt_prog_compiler_static_GCJ='-non_shared'
23687 ;;
23688
John Criswell47fdd832003-07-14 16:52:07 +000023689 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023690 lt_prog_compiler_pic_GCJ='-KPIC'
23691 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023692 case $cc_basename in
23693 f77* | f90* | f95*)
23694 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23695 *)
23696 lt_prog_compiler_wl_GCJ='-Wl,';;
23697 esac
John Criswell47fdd832003-07-14 16:52:07 +000023698 ;;
23699
23700 sunos4*)
23701 lt_prog_compiler_wl_GCJ='-Qoption ld '
23702 lt_prog_compiler_pic_GCJ='-PIC'
23703 lt_prog_compiler_static_GCJ='-Bstatic'
23704 ;;
23705
Reid Spencera773bd52006-08-04 18:18:08 +000023706 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023707 lt_prog_compiler_wl_GCJ='-Wl,'
23708 lt_prog_compiler_pic_GCJ='-KPIC'
23709 lt_prog_compiler_static_GCJ='-Bstatic'
23710 ;;
23711
23712 sysv4*MP*)
23713 if test -d /usr/nec ;then
23714 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23715 lt_prog_compiler_static_GCJ='-Bstatic'
23716 fi
23717 ;;
23718
Reid Spencera773bd52006-08-04 18:18:08 +000023719 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23720 lt_prog_compiler_wl_GCJ='-Wl,'
23721 lt_prog_compiler_pic_GCJ='-KPIC'
23722 lt_prog_compiler_static_GCJ='-Bstatic'
23723 ;;
23724
23725 unicos*)
23726 lt_prog_compiler_wl_GCJ='-Wl,'
23727 lt_prog_compiler_can_build_shared_GCJ=no
23728 ;;
23729
John Criswell47fdd832003-07-14 16:52:07 +000023730 uts4*)
23731 lt_prog_compiler_pic_GCJ='-pic'
23732 lt_prog_compiler_static_GCJ='-Bstatic'
23733 ;;
23734
23735 *)
23736 lt_prog_compiler_can_build_shared_GCJ=no
23737 ;;
23738 esac
23739 fi
23740
Reid Spencera773bd52006-08-04 18:18:08 +000023741{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23742echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023743
23744#
23745# Check to make sure the PIC flag actually works.
23746#
23747if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023748
Reid Spencera773bd52006-08-04 18:18:08 +000023749{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23750echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023751if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753else
23754 lt_prog_compiler_pic_works_GCJ=no
23755 ac_outfile=conftest.$ac_objext
23756 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23757 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23758 # Insert the option either (1) after the last *FLAGS variable, or
23759 # (2) before a word containing "conftest.", or (3) at the end.
23760 # Note that $ac_compile itself does not contain backslashes and begins
23761 # with a dollar sign (not a hyphen), so the echo should work correctly.
23762 # The option is referenced via a variable to avoid confusing sed.
23763 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23766 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023767 (eval echo "\"\$as_me:23767: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023768 (eval "$lt_compile" 2>conftest.err)
23769 ac_status=$?
23770 cat conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023771 echo "$as_me:23771: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023772 if (exit $ac_status) && test -s "$ac_outfile"; then
23773 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023774 # So say no if there are warnings other than the usual output.
23775 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23776 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23777 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023778 lt_prog_compiler_pic_works_GCJ=yes
23779 fi
23780 fi
23781 $rm conftest*
23782
23783fi
Reid Spencera773bd52006-08-04 18:18:08 +000023784{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23785echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023786
23787if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23788 case $lt_prog_compiler_pic_GCJ in
23789 "" | " "*) ;;
23790 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23791 esac
23792else
23793 lt_prog_compiler_pic_GCJ=
23794 lt_prog_compiler_can_build_shared_GCJ=no
23795fi
23796
23797fi
Reid Spencera773bd52006-08-04 18:18:08 +000023798case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023799 # For platforms which do not support PIC, -DPIC is meaningless:
23800 *djgpp*)
23801 lt_prog_compiler_pic_GCJ=
23802 ;;
23803 *)
23804 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23805 ;;
23806esac
23807
Reid Spencera773bd52006-08-04 18:18:08 +000023808#
23809# Check to make sure the static flag actually works.
23810#
23811wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23812{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23813echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23814if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23815 echo $ECHO_N "(cached) $ECHO_C" >&6
23816else
23817 lt_prog_compiler_static_works_GCJ=no
23818 save_LDFLAGS="$LDFLAGS"
23819 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23820 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23821 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23822 # The linker can only warn and ignore the option if not recognized
23823 # So say no if there are warnings
23824 if test -s conftest.err; then
23825 # Append any errors to the config.log.
23826 cat conftest.err 1>&5
23827 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23828 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23829 if diff conftest.exp conftest.er2 >/dev/null; then
23830 lt_prog_compiler_static_works_GCJ=yes
23831 fi
23832 else
23833 lt_prog_compiler_static_works_GCJ=yes
23834 fi
23835 fi
23836 $rm conftest*
23837 LDFLAGS="$save_LDFLAGS"
23838
23839fi
23840{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23841echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23842
23843if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23844 :
23845else
23846 lt_prog_compiler_static_GCJ=
23847fi
23848
23849
23850{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23851echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023852if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23854else
23855 lt_cv_prog_compiler_c_o_GCJ=no
23856 $rm -r conftest 2>/dev/null
23857 mkdir conftest
23858 cd conftest
23859 mkdir out
23860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23861
John Criswell47fdd832003-07-14 16:52:07 +000023862 lt_compiler_flag="-o out/conftest2.$ac_objext"
23863 # Insert the option either (1) after the last *FLAGS variable, or
23864 # (2) before a word containing "conftest.", or (3) at the end.
23865 # Note that $ac_compile itself does not contain backslashes and begins
23866 # with a dollar sign (not a hyphen), so the echo should work correctly.
23867 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23870 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023871 (eval echo "\"\$as_me:23871: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023872 (eval "$lt_compile" 2>out/conftest.err)
23873 ac_status=$?
23874 cat out/conftest.err >&5
Reid Spencerb6a7aa72007-01-19 17:41:47 +000023875 echo "$as_me:23875: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23877 then
23878 # The compiler can only warn and ignore the option if not recognized
23879 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023880 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023883 lt_cv_prog_compiler_c_o_GCJ=yes
23884 fi
23885 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023886 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023887 $rm conftest*
23888 # SGI C++ compiler will create directory out/ii_files/ for
23889 # template instantiation
23890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23891 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023892 cd ..
23893 rmdir conftest
23894 $rm conftest*
23895
23896fi
Reid Spencera773bd52006-08-04 18:18:08 +000023897{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23898echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023899
23900
23901hard_links="nottested"
23902if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23903 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023904 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23905echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023906 hard_links=yes
23907 $rm conftest*
23908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23909 touch conftest.a
23910 ln conftest.a conftest.b 2>&5 || hard_links=no
23911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023912 { echo "$as_me:$LINENO: result: $hard_links" >&5
23913echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023914 if test "$hard_links" = no; then
23915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23916echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23917 need_locks=warn
23918 fi
23919else
23920 need_locks=no
23921fi
23922
Reid Spencera773bd52006-08-04 18:18:08 +000023923{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23924echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023925
23926 runpath_var=
23927 allow_undefined_flag_GCJ=
23928 enable_shared_with_static_runtimes_GCJ=no
23929 archive_cmds_GCJ=
23930 archive_expsym_cmds_GCJ=
23931 old_archive_From_new_cmds_GCJ=
23932 old_archive_from_expsyms_cmds_GCJ=
23933 export_dynamic_flag_spec_GCJ=
23934 whole_archive_flag_spec_GCJ=
23935 thread_safe_flag_spec_GCJ=
23936 hardcode_libdir_flag_spec_GCJ=
23937 hardcode_libdir_flag_spec_ld_GCJ=
23938 hardcode_libdir_separator_GCJ=
23939 hardcode_direct_GCJ=no
23940 hardcode_minus_L_GCJ=no
23941 hardcode_shlibpath_var_GCJ=unsupported
23942 link_all_deplibs_GCJ=unknown
23943 hardcode_automatic_GCJ=no
23944 module_cmds_GCJ=
23945 module_expsym_cmds_GCJ=
23946 always_export_symbols_GCJ=no
23947 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23948 # include_expsyms should be a list of space-separated symbols to be *always*
23949 # included in the symbol list
23950 include_expsyms_GCJ=
23951 # exclude_expsyms can be an extended regexp of symbols to exclude
23952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23954 # as well as any symbol that contains `d'.
23955 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23957 # platforms (ab)use it in PIC code, but their linkers get confused if
23958 # the symbol is explicitly referenced. Since portable code cannot
23959 # rely on this symbol name, it's probably fine to never include it in
23960 # preloaded symbol tables.
23961 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023962 # Just being paranoid about ensuring that cc_basename is set.
23963 for cc_temp in $compiler""; do
23964 case $cc_temp in
23965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23967 \-*) ;;
23968 *) break;;
23969 esac
23970done
23971cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023972
23973 case $host_os in
23974 cygwin* | mingw* | pw32*)
23975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23976 # When not using gcc, we currently assume that we are using
23977 # Microsoft Visual C++.
23978 if test "$GCC" != yes; then
23979 with_gnu_ld=no
23980 fi
23981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023982 interix*)
23983 # we just hope/assume this is gcc and not c89 (= MSVC++)
23984 with_gnu_ld=yes
23985 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023986 openbsd*)
23987 with_gnu_ld=no
23988 ;;
23989 esac
23990
23991 ld_shlibs_GCJ=yes
23992 if test "$with_gnu_ld" = yes; then
23993 # If archive_cmds runs LD, not CC, wlarc should be empty
23994 wlarc='${wl}'
23995
Reid Spencera773bd52006-08-04 18:18:08 +000023996 # Set some defaults for GNU ld with shared library support. These
23997 # are reset later if shared libraries are not supported. Putting them
23998 # here allows them to be overridden if necessary.
23999 runpath_var=LD_RUN_PATH
24000 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
24001 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24002 # ancient GNU ld didn't support --whole-archive et. al.
24003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24004 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24005 else
24006 whole_archive_flag_spec_GCJ=
24007 fi
24008 supports_anon_versioning=no
24009 case `$LD -v 2>/dev/null` in
24010 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24011 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24012 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24013 *\ 2.11.*) ;; # other 2.11 versions
24014 *) supports_anon_versioning=yes ;;
24015 esac
24016
John Criswell47fdd832003-07-14 16:52:07 +000024017 # See if GNU ld supports shared libraries.
24018 case $host_os in
24019 aix3* | aix4* | aix5*)
24020 # On AIX/PPC, the GNU linker is very broken
24021 if test "$host_cpu" != ia64; then
24022 ld_shlibs_GCJ=no
24023 cat <<EOF 1>&2
24024
24025*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24026*** to be unable to reliably create shared libraries on AIX.
24027*** Therefore, libtool is disabling shared libraries support. If you
24028*** really care for shared libraries, you may want to modify your PATH
24029*** so that a non-GNU linker is found, and then restart.
24030
24031EOF
24032 fi
24033 ;;
24034
24035 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024036 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 +000024037 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24038 hardcode_minus_L_GCJ=yes
24039
24040 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24041 # that the semantics of dynamic libraries on AmigaOS, at least up
24042 # to version 4, is to share data among multiple programs linked
24043 # with the same dynamic library. Since this doesn't match the
24044 # behavior of shared libraries on other platforms, we can't use
24045 # them.
24046 ld_shlibs_GCJ=no
24047 ;;
24048
24049 beos*)
24050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24051 allow_undefined_flag_GCJ=unsupported
24052 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24053 # support --undefined. This deserves some investigation. FIXME
24054 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24055 else
24056 ld_shlibs_GCJ=no
24057 fi
24058 ;;
24059
24060 cygwin* | mingw* | pw32*)
24061 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24062 # as there is no search path for DLLs.
24063 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24064 allow_undefined_flag_GCJ=unsupported
24065 always_export_symbols_GCJ=no
24066 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024067 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 +000024068
24069 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024070 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 +000024071 # If the export-symbols file already is a .def file (1st line
24072 # is EXPORTS), use it as is; otherwise, prepend...
24073 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24074 cp $export_symbols $output_objdir/$soname.def;
24075 else
24076 echo EXPORTS > $output_objdir/$soname.def;
24077 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024078 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024079 $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 +000024080 else
Reid Spencera773bd52006-08-04 18:18:08 +000024081 ld_shlibs_GCJ=no
24082 fi
24083 ;;
24084
24085 interix3*)
24086 hardcode_direct_GCJ=no
24087 hardcode_shlibpath_var_GCJ=no
24088 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24089 export_dynamic_flag_spec_GCJ='${wl}-E'
24090 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24091 # Instead, shared libraries are loaded at an image base (0x10000000 by
24092 # default) and relocated if they conflict, which is a slow very memory
24093 # consuming and fragmenting process. To avoid this, we pick a random,
24094 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24095 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24096 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'
24097 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'
24098 ;;
24099
24100 linux*)
24101 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24102 tmp_addflag=
24103 case $cc_basename,$host_cpu in
24104 pgcc*) # Portland Group C compiler
24105 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'
24106 tmp_addflag=' $pic_flag'
24107 ;;
24108 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24109 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'
24110 tmp_addflag=' $pic_flag -Mnomain' ;;
24111 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24112 tmp_addflag=' -i_dynamic' ;;
24113 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24114 tmp_addflag=' -i_dynamic -nofor_main' ;;
24115 ifc* | ifort*) # Intel Fortran compiler
24116 tmp_addflag=' -nofor_main' ;;
24117 esac
24118 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24119
24120 if test $supports_anon_versioning = yes; then
24121 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24122 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24123 $echo "local: *; };" >> $output_objdir/$libname.ver~
24124 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24125 fi
24126 else
24127 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024128 fi
24129 ;;
24130
24131 netbsd*)
24132 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24133 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24134 wlarc=
24135 else
24136 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24137 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24138 fi
24139 ;;
24140
Reid Spencera773bd52006-08-04 18:18:08 +000024141 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024142 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24143 ld_shlibs_GCJ=no
24144 cat <<EOF 1>&2
24145
24146*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24147*** create shared libraries on Solaris systems. Therefore, libtool
24148*** is disabling shared libraries support. We urge you to upgrade GNU
24149*** binutils to release 2.9.1 or newer. Another option is to modify
24150*** your PATH or compiler configuration so that the native linker is
24151*** used, and then restart.
24152
24153EOF
24154 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24155 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24156 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24157 else
24158 ld_shlibs_GCJ=no
24159 fi
24160 ;;
24161
Reid Spencera773bd52006-08-04 18:18:08 +000024162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24163 case `$LD -v 2>&1` in
24164 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24165 ld_shlibs_GCJ=no
24166 cat <<_LT_EOF 1>&2
24167
24168*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24169*** reliably create shared libraries on SCO systems. Therefore, libtool
24170*** is disabling shared libraries support. We urge you to upgrade GNU
24171*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24172*** your PATH or compiler configuration so that the native linker is
24173*** used, and then restart.
24174
24175_LT_EOF
24176 ;;
24177 *)
24178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24179 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24180 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24181 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24182 else
24183 ld_shlibs_GCJ=no
24184 fi
24185 ;;
24186 esac
24187 ;;
24188
John Criswell47fdd832003-07-14 16:52:07 +000024189 sunos4*)
24190 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24191 wlarc=
24192 hardcode_direct_GCJ=yes
24193 hardcode_shlibpath_var_GCJ=no
24194 ;;
24195
24196 *)
24197 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24198 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24199 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24200 else
24201 ld_shlibs_GCJ=no
24202 fi
24203 ;;
24204 esac
24205
Reid Spencera773bd52006-08-04 18:18:08 +000024206 if test "$ld_shlibs_GCJ" = no; then
24207 runpath_var=
24208 hardcode_libdir_flag_spec_GCJ=
24209 export_dynamic_flag_spec_GCJ=
24210 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024211 fi
24212 else
24213 # PORTME fill in a description of your system's linker (not GNU ld)
24214 case $host_os in
24215 aix3*)
24216 allow_undefined_flag_GCJ=unsupported
24217 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024218 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 +000024219 # Note: this linker hardcodes the directories in LIBPATH if there
24220 # are no directories specified by -L.
24221 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024223 # Neither direct hardcoding nor static linking is supported with a
24224 # broken collect2.
24225 hardcode_direct_GCJ=unsupported
24226 fi
24227 ;;
24228
24229 aix4* | aix5*)
24230 if test "$host_cpu" = ia64; then
24231 # On IA64, the linker does run time linking by default, so we don't
24232 # have to do anything special.
24233 aix_use_runtimelinking=no
24234 exp_sym_flag='-Bexport'
24235 no_entry_flag=""
24236 else
24237 # If we're using GNU nm, then we don't want the "-C" option.
24238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24240 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'
24241 else
24242 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'
24243 fi
24244 aix_use_runtimelinking=no
24245
24246 # Test if we are trying to use run time linking or normal
24247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24248 # need to do runtime linking.
24249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24250 for ld_flag in $LDFLAGS; do
24251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24252 aix_use_runtimelinking=yes
24253 break
24254 fi
24255 done
Reid Spencera773bd52006-08-04 18:18:08 +000024256 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024257 esac
24258
24259 exp_sym_flag='-bexport'
24260 no_entry_flag='-bnoentry'
24261 fi
24262
24263 # When large executables or shared objects are built, AIX ld can
24264 # have problems creating the table of contents. If linking a library
24265 # or program results in "error TOC overflow" add -mminimal-toc to
24266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24268
24269 archive_cmds_GCJ=''
24270 hardcode_direct_GCJ=yes
24271 hardcode_libdir_separator_GCJ=':'
24272 link_all_deplibs_GCJ=yes
24273
24274 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024275 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024276 # We only want to do this on AIX 4.2 and lower, the check
24277 # below for broken collect2 doesn't work under 4.3+
24278 collect2name=`${CC} -print-prog-name=collect2`
24279 if test -f "$collect2name" && \
24280 strings "$collect2name" | grep resolve_lib_name >/dev/null
24281 then
24282 # We have reworked collect2
24283 hardcode_direct_GCJ=yes
24284 else
24285 # We have old collect2
24286 hardcode_direct_GCJ=unsupported
24287 # It fails to find uninstalled libraries when the uninstalled
24288 # path is not listed in the libpath. Setting hardcode_minus_L
24289 # to unsupported forces relinking
24290 hardcode_minus_L_GCJ=yes
24291 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24292 hardcode_libdir_separator_GCJ=
24293 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024294 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024295 esac
24296 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024297 if test "$aix_use_runtimelinking" = yes; then
24298 shared_flag="$shared_flag "'${wl}-G'
24299 fi
John Criswell47fdd832003-07-14 16:52:07 +000024300 else
24301 # not using gcc
24302 if test "$host_cpu" = ia64; then
24303 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24304 # chokes on -Wl,-G. The following line is correct:
24305 shared_flag='-G'
24306 else
Reid Spencera773bd52006-08-04 18:18:08 +000024307 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024308 shared_flag='${wl}-G'
24309 else
24310 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024311 fi
John Criswell47fdd832003-07-14 16:52:07 +000024312 fi
24313 fi
24314
24315 # It seems that -bexpall does not export symbols beginning with
24316 # underscore (_), so it is better to generate a list of symbols to export.
24317 always_export_symbols_GCJ=yes
24318 if test "$aix_use_runtimelinking" = yes; then
24319 # Warning - without using the other runtime loading flags (-brtl),
24320 # -berok will link without error, but may produce a broken library.
24321 allow_undefined_flag_GCJ='-berok'
24322 # Determine the default libpath from the value encoded in an empty executable.
24323 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024324/* confdefs.h. */
24325_ACEOF
24326cat confdefs.h >>conftest.$ac_ext
24327cat >>conftest.$ac_ext <<_ACEOF
24328/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024329
John Criswell47fdd832003-07-14 16:52:07 +000024330int
24331main ()
24332{
24333
24334 ;
24335 return 0;
24336}
24337_ACEOF
24338rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024339if { (ac_try="$ac_link"
24340case "(($ac_try" in
24341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24342 *) ac_try_echo=$ac_try;;
24343esac
24344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24345 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24353 { (case "(($ac_try" in
24354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355 *) ac_try_echo=$ac_try;;
24356esac
24357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; } &&
24362 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024363 { (case "(($ac_try" in
24364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365 *) ac_try_echo=$ac_try;;
24366esac
24367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024369 ac_status=$?
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; }; then
24372
24373aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24374}'`
24375# Check for a 64-bit object if we didn't find anything.
24376if 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; }
24377}'`; fi
24378else
24379 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024380sed 's/^/| /' conftest.$ac_ext >&5
24381
Reid Spencera773bd52006-08-04 18:18:08 +000024382
John Criswell47fdd832003-07-14 16:52:07 +000024383fi
Reid Spencera773bd52006-08-04 18:18:08 +000024384
24385rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024386 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024387if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24388
24389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024390 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 +000024391 else
24392 if test "$host_cpu" = ia64; then
24393 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24394 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024395 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 +000024396 else
24397 # Determine the default libpath from the value encoded in an empty executable.
24398 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024399/* confdefs.h. */
24400_ACEOF
24401cat confdefs.h >>conftest.$ac_ext
24402cat >>conftest.$ac_ext <<_ACEOF
24403/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024404
John Criswell47fdd832003-07-14 16:52:07 +000024405int
24406main ()
24407{
24408
24409 ;
24410 return 0;
24411}
24412_ACEOF
24413rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024414if { (ac_try="$ac_link"
24415case "(($ac_try" in
24416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24417 *) ac_try_echo=$ac_try;;
24418esac
24419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24420 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024422 grep -v '^ *+' conftest.er1 >conftest.err
24423 rm -f conftest.er1
24424 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24428 { (case "(($ac_try" in
24429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430 *) ac_try_echo=$ac_try;;
24431esac
24432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24433 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024434 ac_status=$?
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; } &&
24437 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024438 { (case "(($ac_try" in
24439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440 *) ac_try_echo=$ac_try;;
24441esac
24442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024444 ac_status=$?
24445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24446 (exit $ac_status); }; }; then
24447
24448aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24449}'`
24450# Check for a 64-bit object if we didn't find anything.
24451if 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; }
24452}'`; fi
24453else
24454 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024455sed 's/^/| /' conftest.$ac_ext >&5
24456
Reid Spencera773bd52006-08-04 18:18:08 +000024457
John Criswell47fdd832003-07-14 16:52:07 +000024458fi
Reid Spencera773bd52006-08-04 18:18:08 +000024459
24460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024461 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024462if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24463
24464 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24465 # Warning - without using the other run time loading flags,
24466 # -berok will link without error, but may produce a broken library.
24467 no_undefined_flag_GCJ=' ${wl}-bernotok'
24468 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024469 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024470 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024471 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024472 # This is similar to how AIX traditionally builds its shared libraries.
24473 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 +000024474 fi
24475 fi
24476 ;;
24477
24478 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024479 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 +000024480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24481 hardcode_minus_L_GCJ=yes
24482 # see comment about different semantics on the GNU ld section
24483 ld_shlibs_GCJ=no
24484 ;;
24485
Reid Spencer2706f8c2004-09-19 23:53:36 +000024486 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024487 export_dynamic_flag_spec_GCJ=-rdynamic
24488 ;;
24489
24490 cygwin* | mingw* | pw32*)
24491 # When not using gcc, we currently assume that we are using
24492 # Microsoft Visual C++.
24493 # hardcode_libdir_flag_spec is actually meaningless, as there is
24494 # no search path for DLLs.
24495 hardcode_libdir_flag_spec_GCJ=' '
24496 allow_undefined_flag_GCJ=unsupported
24497 # Tell ltmain to make .lib files, not .a files.
24498 libext=lib
24499 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024500 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024501 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024502 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 +000024503 # The linker will automatically build a .lib file if we build a DLL.
24504 old_archive_From_new_cmds_GCJ='true'
24505 # FIXME: Should let the user specify the lib program.
24506 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024507 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024508 enable_shared_with_static_runtimes_GCJ=yes
24509 ;;
24510
24511 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024512 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024513 rhapsody* | darwin1.[012])
24514 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24515 ;;
24516 *) # Darwin 1.3 on
24517 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24518 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24519 else
24520 case ${MACOSX_DEPLOYMENT_TARGET} in
24521 10.[012])
24522 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24523 ;;
24524 10.*)
24525 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24526 ;;
24527 esac
24528 fi
24529 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024530 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024531 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024532 hardcode_direct_GCJ=no
24533 hardcode_automatic_GCJ=yes
24534 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024535 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024536 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024537 if test "$GCC" = yes ; then
24538 output_verbose_link_cmd='echo'
24539 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24540 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024541 # 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 +000024542 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}'
24543 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 +000024544 else
Reid Spencera773bd52006-08-04 18:18:08 +000024545 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024546 xlc*)
24547 output_verbose_link_cmd='echo'
24548 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24549 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024550 # 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 +000024551 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}'
24552 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 +000024553 ;;
24554 *)
24555 ld_shlibs_GCJ=no
24556 ;;
24557 esac
John Criswell47fdd832003-07-14 16:52:07 +000024558 fi
24559 ;;
24560
24561 dgux*)
24562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24564 hardcode_shlibpath_var_GCJ=no
24565 ;;
24566
24567 freebsd1*)
24568 ld_shlibs_GCJ=no
24569 ;;
24570
24571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24572 # support. Future versions do this automatically, but an explicit c++rt0.o
24573 # does not break anything, and helps significantly (at the cost of a little
24574 # extra space).
24575 freebsd2.2*)
24576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24578 hardcode_direct_GCJ=yes
24579 hardcode_shlibpath_var_GCJ=no
24580 ;;
24581
24582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24583 freebsd2*)
24584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24585 hardcode_direct_GCJ=yes
24586 hardcode_minus_L_GCJ=yes
24587 hardcode_shlibpath_var_GCJ=no
24588 ;;
24589
24590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024591 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024592 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24594 hardcode_direct_GCJ=yes
24595 hardcode_shlibpath_var_GCJ=no
24596 ;;
24597
24598 hpux9*)
24599 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024600 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 +000024601 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024602 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 +000024603 fi
24604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24605 hardcode_libdir_separator_GCJ=:
24606 hardcode_direct_GCJ=yes
24607
24608 # hardcode_minus_L: Not really in the search PATH,
24609 # but as the default location of the library.
24610 hardcode_minus_L_GCJ=yes
24611 export_dynamic_flag_spec_GCJ='${wl}-E'
24612 ;;
24613
Reid Spencera773bd52006-08-04 18:18:08 +000024614 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024615 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024616 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24617 else
24618 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24619 fi
24620 if test "$with_gnu_ld" = no; then
24621 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24622 hardcode_libdir_separator_GCJ=:
24623
24624 hardcode_direct_GCJ=yes
24625 export_dynamic_flag_spec_GCJ='${wl}-E'
24626
24627 # hardcode_minus_L: Not really in the search PATH,
24628 # but as the default location of the library.
24629 hardcode_minus_L_GCJ=yes
24630 fi
24631 ;;
24632
24633 hpux11*)
24634 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24635 case $host_cpu in
24636 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024637 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24638 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024639 ia64*)
24640 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24641 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024642 *)
24643 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24644 ;;
24645 esac
24646 else
Reid Spencera773bd52006-08-04 18:18:08 +000024647 case $host_cpu in
24648 hppa*64*)
24649 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24650 ;;
24651 ia64*)
24652 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024653 ;;
24654 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024655 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 +000024656 ;;
24657 esac
24658 fi
24659 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024660 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24661 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024662
Reid Spencera773bd52006-08-04 18:18:08 +000024663 case $host_cpu in
24664 hppa*64*|ia64*)
24665 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24666 hardcode_direct_GCJ=no
24667 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024668 ;;
24669 *)
John Criswell47fdd832003-07-14 16:52:07 +000024670 hardcode_direct_GCJ=yes
24671 export_dynamic_flag_spec_GCJ='${wl}-E'
24672
24673 # hardcode_minus_L: Not really in the search PATH,
24674 # but as the default location of the library.
24675 hardcode_minus_L_GCJ=yes
24676 ;;
24677 esac
24678 fi
24679 ;;
24680
24681 irix5* | irix6* | nonstopux*)
24682 if test "$GCC" = yes; then
24683 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'
24684 else
24685 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'
24686 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24687 fi
24688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24689 hardcode_libdir_separator_GCJ=:
24690 link_all_deplibs_GCJ=yes
24691 ;;
24692
24693 netbsd*)
24694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24695 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24696 else
24697 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24698 fi
24699 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24700 hardcode_direct_GCJ=yes
24701 hardcode_shlibpath_var_GCJ=no
24702 ;;
24703
24704 newsos6)
24705 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24706 hardcode_direct_GCJ=yes
24707 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24708 hardcode_libdir_separator_GCJ=:
24709 hardcode_shlibpath_var_GCJ=no
24710 ;;
24711
24712 openbsd*)
24713 hardcode_direct_GCJ=yes
24714 hardcode_shlibpath_var_GCJ=no
24715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24716 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024717 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 +000024718 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24719 export_dynamic_flag_spec_GCJ='${wl}-E'
24720 else
24721 case $host_os in
24722 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24723 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24724 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24725 ;;
24726 *)
24727 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24729 ;;
24730 esac
24731 fi
24732 ;;
24733
24734 os2*)
24735 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24736 hardcode_minus_L_GCJ=yes
24737 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024738 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 +000024739 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24740 ;;
24741
24742 osf3*)
24743 if test "$GCC" = yes; then
24744 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24745 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'
24746 else
24747 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24748 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'
24749 fi
24750 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24751 hardcode_libdir_separator_GCJ=:
24752 ;;
24753
24754 osf4* | osf5*) # as osf3* with the addition of -msym flag
24755 if test "$GCC" = yes; then
24756 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24757 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'
24758 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24759 else
24760 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24761 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 +000024762 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 +000024763 $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 +000024764
John Criswell47fdd832003-07-14 16:52:07 +000024765 # Both c and cxx compiler support -rpath directly
24766 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24767 fi
24768 hardcode_libdir_separator_GCJ=:
24769 ;;
24770
John Criswell47fdd832003-07-14 16:52:07 +000024771 solaris*)
24772 no_undefined_flag_GCJ=' -z text'
24773 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024774 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024775 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024776 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24777 $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 +000024778 else
Reid Spencera773bd52006-08-04 18:18:08 +000024779 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024780 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024781 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24782 $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 +000024783 fi
24784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24785 hardcode_shlibpath_var_GCJ=no
24786 case $host_os in
24787 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024788 *)
24789 # The compiler driver will combine linker options so we
24790 # cannot just pass the convience library names through
24791 # without $wl, iff we do not link with $LD.
24792 # Luckily, gcc supports the same syntax we need for Sun Studio.
24793 # Supported since Solaris 2.6 (maybe 2.5.1?)
24794 case $wlarc in
24795 '')
24796 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24797 *)
24798 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' ;;
24799 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024800 esac
24801 link_all_deplibs_GCJ=yes
24802 ;;
24803
24804 sunos4*)
24805 if test "x$host_vendor" = xsequent; then
24806 # Use $CC to link under sequent, because it throws in some extra .o
24807 # files that make .init and .fini sections work.
24808 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24809 else
24810 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24811 fi
24812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24813 hardcode_direct_GCJ=yes
24814 hardcode_minus_L_GCJ=yes
24815 hardcode_shlibpath_var_GCJ=no
24816 ;;
24817
24818 sysv4)
24819 case $host_vendor in
24820 sni)
24821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24822 hardcode_direct_GCJ=yes # is this really true???
24823 ;;
24824 siemens)
24825 ## LD is ld it makes a PLAMLIB
24826 ## CC just makes a GrossModule.
24827 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24828 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24829 hardcode_direct_GCJ=no
24830 ;;
24831 motorola)
24832 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24833 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24834 ;;
24835 esac
24836 runpath_var='LD_RUN_PATH'
24837 hardcode_shlibpath_var_GCJ=no
24838 ;;
24839
24840 sysv4.3*)
24841 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24842 hardcode_shlibpath_var_GCJ=no
24843 export_dynamic_flag_spec_GCJ='-Bexport'
24844 ;;
24845
24846 sysv4*MP*)
24847 if test -d /usr/nec; then
24848 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24849 hardcode_shlibpath_var_GCJ=no
24850 runpath_var=LD_RUN_PATH
24851 hardcode_runpath_var=yes
24852 ld_shlibs_GCJ=yes
24853 fi
24854 ;;
24855
Reid Spencera773bd52006-08-04 18:18:08 +000024856 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24857 no_undefined_flag_GCJ='${wl}-z,text'
24858 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024859 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024860 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024861
John Criswell47fdd832003-07-14 16:52:07 +000024862 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024863 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 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 +000024865 else
Reid Spencera773bd52006-08-04 18:18:08 +000024866 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24867 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 +000024868 fi
John Criswell47fdd832003-07-14 16:52:07 +000024869 ;;
24870
Reid Spencera773bd52006-08-04 18:18:08 +000024871 sysv5* | sco3.2v5* | sco5v6*)
24872 # Note: We can NOT use -z defs as we might desire, because we do not
24873 # link with -lc, and that would cause any symbols used from libc to
24874 # always be unresolved, which means just about no library would
24875 # ever link correctly. If we're not using GNU ld we use -z text
24876 # though, which does catch some bad symbols but isn't as heavy-handed
24877 # as -z defs.
24878 no_undefined_flag_GCJ='${wl}-z,text'
24879 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24880 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024881 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024882 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24883 hardcode_libdir_separator_GCJ=':'
24884 link_all_deplibs_GCJ=yes
24885 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024886 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024887
24888 if test "$GCC" = yes; then
24889 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24890 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 else
24892 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24893 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24894 fi
John Criswell47fdd832003-07-14 16:52:07 +000024895 ;;
24896
24897 uts4*)
24898 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24899 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24900 hardcode_shlibpath_var_GCJ=no
24901 ;;
24902
24903 *)
24904 ld_shlibs_GCJ=no
24905 ;;
24906 esac
24907 fi
24908
Reid Spencera773bd52006-08-04 18:18:08 +000024909{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24910echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024911test "$ld_shlibs_GCJ" = no && can_build_shared=no
24912
John Criswell47fdd832003-07-14 16:52:07 +000024913#
24914# Do we need to explicitly link libc?
24915#
24916case "x$archive_cmds_need_lc_GCJ" in
24917x|xyes)
24918 # Assume -lc should be added
24919 archive_cmds_need_lc_GCJ=yes
24920
24921 if test "$enable_shared" = yes && test "$GCC" = yes; then
24922 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024923 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024924 # FIXME: we may have to deal with multi-command sequences.
24925 ;;
24926 '$CC '*)
24927 # Test whether the compiler implicitly links with -lc since on some
24928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24929 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024930 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24931echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024932 $rm conftest*
24933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24934
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936 (eval $ac_compile) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } 2>conftest.err; then
24940 soname=conftest
24941 lib=conftest
24942 libobjs=conftest.$ac_objext
24943 deplibs=
24944 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024945 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024946 compiler_flags=-v
24947 linker_flags=-v
24948 verstring=
24949 output_objdir=.
24950 libname=conftest
24951 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24952 allow_undefined_flag_GCJ=
24953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24954 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24955 ac_status=$?
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); }
24958 then
24959 archive_cmds_need_lc_GCJ=no
24960 else
24961 archive_cmds_need_lc_GCJ=yes
24962 fi
24963 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24964 else
24965 cat conftest.err 1>&5
24966 fi
24967 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024968 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24969echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024970 ;;
24971 esac
24972 fi
24973 ;;
24974esac
24975
Reid Spencera773bd52006-08-04 18:18:08 +000024976{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24977echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024978library_names_spec=
24979libname_spec='lib$name'
24980soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024981shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024982postinstall_cmds=
24983postuninstall_cmds=
24984finish_cmds=
24985finish_eval=
24986shlibpath_var=
24987shlibpath_overrides_runpath=unknown
24988version_type=none
24989dynamic_linker="$host_os ld.so"
24990sys_lib_dlsearch_path_spec="/lib /usr/lib"
24991if test "$GCC" = yes; then
24992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24993 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24994 # if the path contains ";" then we assume it to be the separator
24995 # otherwise default to the standard path separator (i.e. ":") - it is
24996 # assumed that no part of a normal pathname contains ";" but that should
24997 # okay in the real world where ";" in dirpaths is itself problematic.
24998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24999 else
25000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25001 fi
25002else
25003 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25004fi
25005need_lib_prefix=unknown
25006hardcode_into_libs=no
25007
25008# when you set need_version to no, make sure it does not cause -set_version
25009# flags to be left without arguments
25010need_version=unknown
25011
25012case $host_os in
25013aix3*)
25014 version_type=linux
25015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25016 shlibpath_var=LIBPATH
25017
25018 # AIX 3 has no versioning support, so we append a major version to the name.
25019 soname_spec='${libname}${release}${shared_ext}$major'
25020 ;;
25021
25022aix4* | aix5*)
25023 version_type=linux
25024 need_lib_prefix=no
25025 need_version=no
25026 hardcode_into_libs=yes
25027 if test "$host_cpu" = ia64; then
25028 # AIX 5 supports IA64
25029 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25030 shlibpath_var=LD_LIBRARY_PATH
25031 else
25032 # With GCC up to 2.95.x, collect2 would create an import file
25033 # for dependence libraries. The import file would start with
25034 # the line `#! .'. This would cause the generated library to
25035 # depend on `.', always an invalid library. This was fixed in
25036 # development snapshots of GCC prior to 3.0.
25037 case $host_os in
25038 aix4 | aix4.[01] | aix4.[01].*)
25039 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25040 echo ' yes '
25041 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25042 :
25043 else
25044 can_build_shared=no
25045 fi
25046 ;;
25047 esac
25048 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25049 # soname into executable. Probably we can add versioning support to
25050 # collect2, so additional links can be useful in future.
25051 if test "$aix_use_runtimelinking" = yes; then
25052 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25053 # instead of lib<name>.a to let people know that these are not
25054 # typical AIX shared libraries.
25055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25056 else
25057 # We preserve .a as extension for shared libraries through AIX4.2
25058 # and later when we are not doing run time linking.
25059 library_names_spec='${libname}${release}.a $libname.a'
25060 soname_spec='${libname}${release}${shared_ext}$major'
25061 fi
25062 shlibpath_var=LIBPATH
25063 fi
25064 ;;
25065
25066amigaos*)
25067 library_names_spec='$libname.ixlibrary $libname.a'
25068 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025069 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 +000025070 ;;
25071
25072beos*)
25073 library_names_spec='${libname}${shared_ext}'
25074 dynamic_linker="$host_os ld.so"
25075 shlibpath_var=LIBRARY_PATH
25076 ;;
25077
Reid Spencer2706f8c2004-09-19 23:53:36 +000025078bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025079 version_type=linux
25080 need_version=no
25081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25082 soname_spec='${libname}${release}${shared_ext}$major'
25083 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25084 shlibpath_var=LD_LIBRARY_PATH
25085 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25086 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25087 # the default ld.so.conf also contains /usr/contrib/lib and
25088 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25089 # libtool to hard-code these into programs
25090 ;;
25091
25092cygwin* | mingw* | pw32*)
25093 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025094 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025095 need_version=no
25096 need_lib_prefix=no
25097
25098 case $GCC,$host_os in
25099 yes,cygwin* | yes,mingw* | yes,pw32*)
25100 library_names_spec='$libname.dll.a'
25101 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025102 postinstall_cmds='base_file=`basename \${file}`~
25103 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25104 dldir=$destdir/`dirname \$dlpath`~
25105 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025106 $install_prog $dir/$dlname \$dldir/$dlname~
25107 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25109 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025110 $rm \$dlpath'
25111 shlibpath_overrides_runpath=yes
25112
25113 case $host_os in
25114 cygwin*)
25115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25116 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 +000025117 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025118 ;;
25119 mingw*)
25120 # MinGW DLLs use traditional 'lib' prefix
25121 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25124 # It is most probably a Windows format PATH printed by
25125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25126 # path with ; separators, and with drive letters. We can handle the
25127 # drive letters (cygwin fileutils understands them), so leave them,
25128 # especially as we might pass files found there to a mingw objdump,
25129 # which wouldn't understand a cygwinified path. Ahh.
25130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25131 else
25132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25133 fi
25134 ;;
25135 pw32*)
25136 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025137 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 +000025138 ;;
25139 esac
25140 ;;
25141
25142 *)
25143 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25144 ;;
25145 esac
25146 dynamic_linker='Win32 ld.exe'
25147 # FIXME: first we should search . and the directory the executable is in
25148 shlibpath_var=PATH
25149 ;;
25150
25151darwin* | rhapsody*)
25152 dynamic_linker="$host_os dyld"
25153 version_type=darwin
25154 need_lib_prefix=no
25155 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025156 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025157 soname_spec='${libname}${release}${major}$shared_ext'
25158 shlibpath_overrides_runpath=yes
25159 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025160 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025161 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025162 if test "$GCC" = yes; then
25163 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"`
25164 else
25165 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025166 fi
25167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25168 ;;
25169
25170dgux*)
25171 version_type=linux
25172 need_lib_prefix=no
25173 need_version=no
25174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25175 soname_spec='${libname}${release}${shared_ext}$major'
25176 shlibpath_var=LD_LIBRARY_PATH
25177 ;;
25178
25179freebsd1*)
25180 dynamic_linker=no
25181 ;;
25182
Reid Spencer2706f8c2004-09-19 23:53:36 +000025183kfreebsd*-gnu)
25184 version_type=linux
25185 need_lib_prefix=no
25186 need_version=no
25187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25188 soname_spec='${libname}${release}${shared_ext}$major'
25189 shlibpath_var=LD_LIBRARY_PATH
25190 shlibpath_overrides_runpath=no
25191 hardcode_into_libs=yes
25192 dynamic_linker='GNU ld.so'
25193 ;;
25194
Reid Spencera773bd52006-08-04 18:18:08 +000025195freebsd* | dragonfly*)
25196 # DragonFly does not have aout. When/if they implement a new
25197 # versioning mechanism, adjust this.
25198 if test -x /usr/bin/objformat; then
25199 objformat=`/usr/bin/objformat`
25200 else
25201 case $host_os in
25202 freebsd[123]*) objformat=aout ;;
25203 *) objformat=elf ;;
25204 esac
25205 fi
John Criswell47fdd832003-07-14 16:52:07 +000025206 version_type=freebsd-$objformat
25207 case $version_type in
25208 freebsd-elf*)
25209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25210 need_version=no
25211 need_lib_prefix=no
25212 ;;
25213 freebsd-*)
25214 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25215 need_version=yes
25216 ;;
25217 esac
25218 shlibpath_var=LD_LIBRARY_PATH
25219 case $host_os in
25220 freebsd2*)
25221 shlibpath_overrides_runpath=yes
25222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025223 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025224 shlibpath_overrides_runpath=yes
25225 hardcode_into_libs=yes
25226 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025227 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25228 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025229 shlibpath_overrides_runpath=no
25230 hardcode_into_libs=yes
25231 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025232 freebsd*) # from 4.6 on
25233 shlibpath_overrides_runpath=yes
25234 hardcode_into_libs=yes
25235 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025236 esac
25237 ;;
25238
25239gnu*)
25240 version_type=linux
25241 need_lib_prefix=no
25242 need_version=no
25243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25244 soname_spec='${libname}${release}${shared_ext}$major'
25245 shlibpath_var=LD_LIBRARY_PATH
25246 hardcode_into_libs=yes
25247 ;;
25248
25249hpux9* | hpux10* | hpux11*)
25250 # Give a soname corresponding to the major version so that dld.sl refuses to
25251 # link against other versions.
25252 version_type=sunos
25253 need_lib_prefix=no
25254 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025255 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025256 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025257 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025258 hardcode_into_libs=yes
25259 dynamic_linker="$host_os dld.so"
25260 shlibpath_var=LD_LIBRARY_PATH
25261 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25263 soname_spec='${libname}${release}${shared_ext}$major'
25264 if test "X$HPUX_IA64_MODE" = X32; then
25265 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25266 else
25267 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25268 fi
25269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25270 ;;
25271 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025272 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025273 hardcode_into_libs=yes
25274 dynamic_linker="$host_os dld.sl"
25275 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25278 soname_spec='${libname}${release}${shared_ext}$major'
25279 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25280 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25281 ;;
25282 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025283 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025284 dynamic_linker="$host_os dld.sl"
25285 shlibpath_var=SHLIB_PATH
25286 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25288 soname_spec='${libname}${release}${shared_ext}$major'
25289 ;;
25290 esac
25291 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25292 postinstall_cmds='chmod 555 $lib'
25293 ;;
25294
Reid Spencera773bd52006-08-04 18:18:08 +000025295interix3*)
25296 version_type=linux
25297 need_lib_prefix=no
25298 need_version=no
25299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25300 soname_spec='${libname}${release}${shared_ext}$major'
25301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25302 shlibpath_var=LD_LIBRARY_PATH
25303 shlibpath_overrides_runpath=no
25304 hardcode_into_libs=yes
25305 ;;
25306
John Criswell47fdd832003-07-14 16:52:07 +000025307irix5* | irix6* | nonstopux*)
25308 case $host_os in
25309 nonstopux*) version_type=nonstopux ;;
25310 *)
25311 if test "$lt_cv_prog_gnu_ld" = yes; then
25312 version_type=linux
25313 else
25314 version_type=irix
25315 fi ;;
25316 esac
25317 need_lib_prefix=no
25318 need_version=no
25319 soname_spec='${libname}${release}${shared_ext}$major'
25320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25321 case $host_os in
25322 irix5* | nonstopux*)
25323 libsuff= shlibsuff=
25324 ;;
25325 *)
25326 case $LD in # libtool.m4 will add one of these switches to LD
25327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25328 libsuff= shlibsuff= libmagic=32-bit;;
25329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25330 libsuff=32 shlibsuff=N32 libmagic=N32;;
25331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25333 *) libsuff= shlibsuff= libmagic=never-match;;
25334 esac
25335 ;;
25336 esac
25337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25338 shlibpath_overrides_runpath=no
25339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25341 hardcode_into_libs=yes
25342 ;;
25343
25344# No shared lib support for Linux oldld, aout, or coff.
25345linux*oldld* | linux*aout* | linux*coff*)
25346 dynamic_linker=no
25347 ;;
25348
25349# This must be Linux ELF.
25350linux*)
25351 version_type=linux
25352 need_lib_prefix=no
25353 need_version=no
25354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25355 soname_spec='${libname}${release}${shared_ext}$major'
25356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25357 shlibpath_var=LD_LIBRARY_PATH
25358 shlibpath_overrides_runpath=no
25359 # This implies no fast_install, which is unacceptable.
25360 # Some rework will be needed to allow for fast_install
25361 # before this can be enabled.
25362 hardcode_into_libs=yes
25363
Reid Spencer2706f8c2004-09-19 23:53:36 +000025364 # Append ld.so.conf contents to the search path
25365 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025366 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 +000025367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25368 fi
25369
John Criswell47fdd832003-07-14 16:52:07 +000025370 # We used to test for /lib/ld.so.1 and disable shared libraries on
25371 # powerpc, because MkLinux only supported shared libraries with the
25372 # GNU dynamic linker. Since this was broken with cross compilers,
25373 # most powerpc-linux boxes support dynamic linking these days and
25374 # people can always --disable-shared, the test was removed, and we
25375 # assume the GNU/Linux dynamic linker is in use.
25376 dynamic_linker='GNU/Linux ld.so'
25377 ;;
25378
Reid Spencer2706f8c2004-09-19 23:53:36 +000025379knetbsd*-gnu)
25380 version_type=linux
25381 need_lib_prefix=no
25382 need_version=no
25383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25384 soname_spec='${libname}${release}${shared_ext}$major'
25385 shlibpath_var=LD_LIBRARY_PATH
25386 shlibpath_overrides_runpath=no
25387 hardcode_into_libs=yes
25388 dynamic_linker='GNU ld.so'
25389 ;;
25390
John Criswell47fdd832003-07-14 16:52:07 +000025391netbsd*)
25392 version_type=sunos
25393 need_lib_prefix=no
25394 need_version=no
25395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25398 dynamic_linker='NetBSD (a.out) ld.so'
25399 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025401 soname_spec='${libname}${release}${shared_ext}$major'
25402 dynamic_linker='NetBSD ld.elf_so'
25403 fi
25404 shlibpath_var=LD_LIBRARY_PATH
25405 shlibpath_overrides_runpath=yes
25406 hardcode_into_libs=yes
25407 ;;
25408
25409newsos6)
25410 version_type=linux
25411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25412 shlibpath_var=LD_LIBRARY_PATH
25413 shlibpath_overrides_runpath=yes
25414 ;;
25415
Reid Spencer2706f8c2004-09-19 23:53:36 +000025416nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025417 version_type=linux
25418 need_lib_prefix=no
25419 need_version=no
25420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25421 soname_spec='${libname}${release}${shared_ext}$major'
25422 shlibpath_var=LD_LIBRARY_PATH
25423 shlibpath_overrides_runpath=yes
25424 ;;
25425
25426openbsd*)
25427 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025428 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025429 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025430 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25431 case $host_os in
25432 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25433 *) need_version=no ;;
25434 esac
John Criswell47fdd832003-07-14 16:52:07 +000025435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25439 case $host_os in
25440 openbsd2.[89] | openbsd2.[89].*)
25441 shlibpath_overrides_runpath=no
25442 ;;
25443 *)
25444 shlibpath_overrides_runpath=yes
25445 ;;
25446 esac
25447 else
25448 shlibpath_overrides_runpath=yes
25449 fi
25450 ;;
25451
25452os2*)
25453 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025454 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025455 need_lib_prefix=no
25456 library_names_spec='$libname${shared_ext} $libname.a'
25457 dynamic_linker='OS/2 ld.exe'
25458 shlibpath_var=LIBPATH
25459 ;;
25460
25461osf3* | osf4* | osf5*)
25462 version_type=osf
25463 need_lib_prefix=no
25464 need_version=no
25465 soname_spec='${libname}${release}${shared_ext}$major'
25466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25467 shlibpath_var=LD_LIBRARY_PATH
25468 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25469 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25470 ;;
25471
John Criswell47fdd832003-07-14 16:52:07 +000025472solaris*)
25473 version_type=linux
25474 need_lib_prefix=no
25475 need_version=no
25476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25477 soname_spec='${libname}${release}${shared_ext}$major'
25478 shlibpath_var=LD_LIBRARY_PATH
25479 shlibpath_overrides_runpath=yes
25480 hardcode_into_libs=yes
25481 # ldd complains unless libraries are executable
25482 postinstall_cmds='chmod +x $lib'
25483 ;;
25484
25485sunos4*)
25486 version_type=sunos
25487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25488 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25489 shlibpath_var=LD_LIBRARY_PATH
25490 shlibpath_overrides_runpath=yes
25491 if test "$with_gnu_ld" = yes; then
25492 need_lib_prefix=no
25493 fi
25494 need_version=yes
25495 ;;
25496
Reid Spencera773bd52006-08-04 18:18:08 +000025497sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025498 version_type=linux
25499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25500 soname_spec='${libname}${release}${shared_ext}$major'
25501 shlibpath_var=LD_LIBRARY_PATH
25502 case $host_vendor in
25503 sni)
25504 shlibpath_overrides_runpath=no
25505 need_lib_prefix=no
25506 export_dynamic_flag_spec='${wl}-Blargedynsym'
25507 runpath_var=LD_RUN_PATH
25508 ;;
25509 siemens)
25510 need_lib_prefix=no
25511 ;;
25512 motorola)
25513 need_lib_prefix=no
25514 need_version=no
25515 shlibpath_overrides_runpath=no
25516 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25517 ;;
25518 esac
25519 ;;
25520
25521sysv4*MP*)
25522 if test -d /usr/nec ;then
25523 version_type=linux
25524 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25525 soname_spec='$libname${shared_ext}.$major'
25526 shlibpath_var=LD_LIBRARY_PATH
25527 fi
25528 ;;
25529
Reid Spencera773bd52006-08-04 18:18:08 +000025530sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25531 version_type=freebsd-elf
25532 need_lib_prefix=no
25533 need_version=no
25534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25535 soname_spec='${libname}${release}${shared_ext}$major'
25536 shlibpath_var=LD_LIBRARY_PATH
25537 hardcode_into_libs=yes
25538 if test "$with_gnu_ld" = yes; then
25539 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25540 shlibpath_overrides_runpath=no
25541 else
25542 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25543 shlibpath_overrides_runpath=yes
25544 case $host_os in
25545 sco3.2v5*)
25546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25547 ;;
25548 esac
25549 fi
25550 sys_lib_dlsearch_path_spec='/usr/lib'
25551 ;;
25552
John Criswell47fdd832003-07-14 16:52:07 +000025553uts4*)
25554 version_type=linux
25555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25556 soname_spec='${libname}${release}${shared_ext}$major'
25557 shlibpath_var=LD_LIBRARY_PATH
25558 ;;
25559
25560*)
25561 dynamic_linker=no
25562 ;;
25563esac
Reid Spencera773bd52006-08-04 18:18:08 +000025564{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25565echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025566test "$dynamic_linker" = no && can_build_shared=no
25567
Reid Spencera773bd52006-08-04 18:18:08 +000025568variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25569if test "$GCC" = yes; then
25570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25571fi
25572
25573{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25574echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025575hardcode_action_GCJ=
25576if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25577 test -n "$runpath_var_GCJ" || \
25578 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25579
25580 # We can hardcode non-existant directories.
25581 if test "$hardcode_direct_GCJ" != no &&
25582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25583 # have to relink, otherwise we might link with an installed library
25584 # when we should be linking with a yet-to-be-installed one
25585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25586 test "$hardcode_minus_L_GCJ" != no; then
25587 # Linking always hardcodes the temporary library directory.
25588 hardcode_action_GCJ=relink
25589 else
25590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25591 hardcode_action_GCJ=immediate
25592 fi
25593else
25594 # We cannot hardcode anything, or else we can only hardcode existing
25595 # directories.
25596 hardcode_action_GCJ=unsupported
25597fi
Reid Spencera773bd52006-08-04 18:18:08 +000025598{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25599echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025600
25601if test "$hardcode_action_GCJ" = relink; then
25602 # Fast installation is not supported
25603 enable_fast_install=no
25604elif test "$shlibpath_overrides_runpath" = yes ||
25605 test "$enable_shared" = no; then
25606 # Fast installation is not necessary
25607 enable_fast_install=needless
25608fi
25609
John Criswell47fdd832003-07-14 16:52:07 +000025610
25611# The else clause should only fire when bootstrapping the
25612# libtool distribution, otherwise you forgot to ship ltmain.sh
25613# with your package, and you will get complaints that there are
25614# no rules to generate ltmain.sh.
25615if test -f "$ltmain"; then
25616 # See if we are running on zsh, and set the options which allow our commands through
25617 # without removal of \ escapes.
25618 if test -n "${ZSH_VERSION+set}" ; then
25619 setopt NO_GLOB_SUBST
25620 fi
25621 # Now quote all the things that may contain metacharacters while being
25622 # careful not to overquote the AC_SUBSTed values. We take copies of the
25623 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025624 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 +000025625 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025626 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25627 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25628 deplibs_check_method reload_flag reload_cmds need_locks \
25629 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25630 lt_cv_sys_global_symbol_to_c_name_address \
25631 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25632 old_postinstall_cmds old_postuninstall_cmds \
25633 compiler_GCJ \
25634 CC_GCJ \
25635 LD_GCJ \
25636 lt_prog_compiler_wl_GCJ \
25637 lt_prog_compiler_pic_GCJ \
25638 lt_prog_compiler_static_GCJ \
25639 lt_prog_compiler_no_builtin_flag_GCJ \
25640 export_dynamic_flag_spec_GCJ \
25641 thread_safe_flag_spec_GCJ \
25642 whole_archive_flag_spec_GCJ \
25643 enable_shared_with_static_runtimes_GCJ \
25644 old_archive_cmds_GCJ \
25645 old_archive_from_new_cmds_GCJ \
25646 predep_objects_GCJ \
25647 postdep_objects_GCJ \
25648 predeps_GCJ \
25649 postdeps_GCJ \
25650 compiler_lib_search_path_GCJ \
25651 archive_cmds_GCJ \
25652 archive_expsym_cmds_GCJ \
25653 postinstall_cmds_GCJ \
25654 postuninstall_cmds_GCJ \
25655 old_archive_from_expsyms_cmds_GCJ \
25656 allow_undefined_flag_GCJ \
25657 no_undefined_flag_GCJ \
25658 export_symbols_cmds_GCJ \
25659 hardcode_libdir_flag_spec_GCJ \
25660 hardcode_libdir_flag_spec_ld_GCJ \
25661 hardcode_libdir_separator_GCJ \
25662 hardcode_automatic_GCJ \
25663 module_cmds_GCJ \
25664 module_expsym_cmds_GCJ \
25665 lt_cv_prog_compiler_c_o_GCJ \
25666 exclude_expsyms_GCJ \
25667 include_expsyms_GCJ; do
25668
25669 case $var in
25670 old_archive_cmds_GCJ | \
25671 old_archive_from_new_cmds_GCJ | \
25672 archive_cmds_GCJ | \
25673 archive_expsym_cmds_GCJ | \
25674 module_cmds_GCJ | \
25675 module_expsym_cmds_GCJ | \
25676 old_archive_from_expsyms_cmds_GCJ | \
25677 export_symbols_cmds_GCJ | \
25678 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25679 postinstall_cmds | postuninstall_cmds | \
25680 old_postinstall_cmds | old_postuninstall_cmds | \
25681 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25682 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025683 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 +000025684 ;;
25685 *)
25686 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25687 ;;
25688 esac
25689 done
25690
25691 case $lt_echo in
25692 *'\$0 --fallback-echo"')
25693 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25694 ;;
25695 esac
25696
25697cfgfile="$ofile"
25698
25699 cat <<__EOF__ >> "$cfgfile"
25700# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25701
25702# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25703
25704# Shell to use when invoking shell scripts.
25705SHELL=$lt_SHELL
25706
25707# Whether or not to build shared libraries.
25708build_libtool_libs=$enable_shared
25709
25710# Whether or not to build static libraries.
25711build_old_libs=$enable_static
25712
25713# Whether or not to add -lc for building shared libraries.
25714build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25715
25716# Whether or not to disallow shared libs when runtime libs are static
25717allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25718
25719# Whether or not to optimize for fast installation.
25720fast_install=$enable_fast_install
25721
25722# The host system.
25723host_alias=$host_alias
25724host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025725host_os=$host_os
25726
25727# The build system.
25728build_alias=$build_alias
25729build=$build
25730build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025731
25732# An echo program that does not interpret backslashes.
25733echo=$lt_echo
25734
25735# The archiver.
25736AR=$lt_AR
25737AR_FLAGS=$lt_AR_FLAGS
25738
25739# A C compiler.
25740LTCC=$lt_LTCC
25741
Reid Spencera773bd52006-08-04 18:18:08 +000025742# LTCC compiler flags.
25743LTCFLAGS=$lt_LTCFLAGS
25744
John Criswell47fdd832003-07-14 16:52:07 +000025745# A language-specific compiler.
25746CC=$lt_compiler_GCJ
25747
25748# Is the compiler the GNU C compiler?
25749with_gcc=$GCC_GCJ
25750
25751# An ERE matcher.
25752EGREP=$lt_EGREP
25753
25754# The linker used to build libraries.
25755LD=$lt_LD_GCJ
25756
25757# Whether we need hard or soft links.
25758LN_S=$lt_LN_S
25759
25760# A BSD-compatible nm program.
25761NM=$lt_NM
25762
25763# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025764STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025765
25766# Used to examine libraries when file_magic_cmd begins "file"
25767MAGIC_CMD=$MAGIC_CMD
25768
25769# Used on cygwin: DLL creation program.
25770DLLTOOL="$DLLTOOL"
25771
25772# Used on cygwin: object dumper.
25773OBJDUMP="$OBJDUMP"
25774
25775# Used on cygwin: assembler.
25776AS="$AS"
25777
25778# The name of the directory that contains temporary libtool files.
25779objdir=$objdir
25780
25781# How to create reloadable object files.
25782reload_flag=$lt_reload_flag
25783reload_cmds=$lt_reload_cmds
25784
25785# How to pass a linker flag through the compiler.
25786wl=$lt_lt_prog_compiler_wl_GCJ
25787
25788# Object file suffix (normally "o").
25789objext="$ac_objext"
25790
25791# Old archive suffix (normally "a").
25792libext="$libext"
25793
25794# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025795shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025796
25797# Executable file suffix (normally "").
25798exeext="$exeext"
25799
25800# Additional compiler flags for building library objects.
25801pic_flag=$lt_lt_prog_compiler_pic_GCJ
25802pic_mode=$pic_mode
25803
25804# What is the maximum length of a command?
25805max_cmd_len=$lt_cv_sys_max_cmd_len
25806
25807# Does compiler simultaneously support -c and -o options?
25808compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25809
Reid Spencera773bd52006-08-04 18:18:08 +000025810# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025811need_locks=$lt_need_locks
25812
25813# Do we need the lib prefix for modules?
25814need_lib_prefix=$need_lib_prefix
25815
25816# Do we need a version for libraries?
25817need_version=$need_version
25818
25819# Whether dlopen is supported.
25820dlopen_support=$enable_dlopen
25821
25822# Whether dlopen of programs is supported.
25823dlopen_self=$enable_dlopen_self
25824
25825# Whether dlopen of statically linked programs is supported.
25826dlopen_self_static=$enable_dlopen_self_static
25827
25828# Compiler flag to prevent dynamic linking.
25829link_static_flag=$lt_lt_prog_compiler_static_GCJ
25830
25831# Compiler flag to turn off builtin functions.
25832no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25833
25834# Compiler flag to allow reflexive dlopens.
25835export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25836
25837# Compiler flag to generate shared objects directly from archives.
25838whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25839
25840# Compiler flag to generate thread-safe objects.
25841thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25842
25843# Library versioning type.
25844version_type=$version_type
25845
25846# Format of library name prefix.
25847libname_spec=$lt_libname_spec
25848
25849# List of archive names. First name is the real one, the rest are links.
25850# The last name is the one that the linker finds with -lNAME.
25851library_names_spec=$lt_library_names_spec
25852
25853# The coded name of the library, if different from the real name.
25854soname_spec=$lt_soname_spec
25855
25856# Commands used to build and install an old-style archive.
25857RANLIB=$lt_RANLIB
25858old_archive_cmds=$lt_old_archive_cmds_GCJ
25859old_postinstall_cmds=$lt_old_postinstall_cmds
25860old_postuninstall_cmds=$lt_old_postuninstall_cmds
25861
25862# Create an old-style archive from a shared archive.
25863old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25864
25865# Create a temporary old-style archive to link instead of a shared archive.
25866old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25867
25868# Commands used to build and install a shared archive.
25869archive_cmds=$lt_archive_cmds_GCJ
25870archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25871postinstall_cmds=$lt_postinstall_cmds
25872postuninstall_cmds=$lt_postuninstall_cmds
25873
25874# Commands used to build a loadable module (assumed same as above if empty)
25875module_cmds=$lt_module_cmds_GCJ
25876module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25877
25878# Commands to strip libraries.
25879old_striplib=$lt_old_striplib
25880striplib=$lt_striplib
25881
25882# Dependencies to place before the objects being linked to create a
25883# shared library.
25884predep_objects=$lt_predep_objects_GCJ
25885
25886# Dependencies to place after the objects being linked to create a
25887# shared library.
25888postdep_objects=$lt_postdep_objects_GCJ
25889
25890# Dependencies to place before the objects being linked to create a
25891# shared library.
25892predeps=$lt_predeps_GCJ
25893
25894# Dependencies to place after the objects being linked to create a
25895# shared library.
25896postdeps=$lt_postdeps_GCJ
25897
25898# The library search path used internally by the compiler when linking
25899# a shared library.
25900compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25901
25902# Method to check whether dependent libraries are shared objects.
25903deplibs_check_method=$lt_deplibs_check_method
25904
25905# Command to use when deplibs_check_method == file_magic.
25906file_magic_cmd=$lt_file_magic_cmd
25907
25908# Flag that allows shared libraries with undefined symbols to be built.
25909allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25910
25911# Flag that forces no undefined symbols.
25912no_undefined_flag=$lt_no_undefined_flag_GCJ
25913
25914# Commands used to finish a libtool library installation in a directory.
25915finish_cmds=$lt_finish_cmds
25916
25917# Same as above, but a single script fragment to be evaled but not shown.
25918finish_eval=$lt_finish_eval
25919
25920# Take the output of nm and produce a listing of raw symbols and C names.
25921global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25922
25923# Transform the output of nm in a proper C declaration
25924global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25925
25926# Transform the output of nm in a C name address pair
25927global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25928
25929# This is the shared library runtime path variable.
25930runpath_var=$runpath_var
25931
25932# This is the shared library path variable.
25933shlibpath_var=$shlibpath_var
25934
25935# Is shlibpath searched before the hard-coded library search path?
25936shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25937
25938# How to hardcode a shared library path into an executable.
25939hardcode_action=$hardcode_action_GCJ
25940
25941# Whether we should hardcode library paths into libraries.
25942hardcode_into_libs=$hardcode_into_libs
25943
25944# Flag to hardcode \$libdir into a binary during linking.
25945# This must work even if \$libdir does not exist.
25946hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25947
25948# If ld is used when linking, flag to hardcode \$libdir into
25949# a binary during linking. This must work even if \$libdir does
25950# not exist.
25951hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25952
25953# Whether we need a single -rpath flag with a separated argument.
25954hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25955
25956# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25957# resulting binary.
25958hardcode_direct=$hardcode_direct_GCJ
25959
25960# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25961# resulting binary.
25962hardcode_minus_L=$hardcode_minus_L_GCJ
25963
25964# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25965# the resulting binary.
25966hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25967
25968# Set to yes if building a shared library automatically hardcodes DIR into the library
25969# and all subsequent libraries and executables linked against it.
25970hardcode_automatic=$hardcode_automatic_GCJ
25971
25972# Variables whose values should be saved in libtool wrapper scripts and
25973# restored at relink time.
25974variables_saved_for_relink="$variables_saved_for_relink"
25975
25976# Whether libtool must link a program against all its dependency libraries.
25977link_all_deplibs=$link_all_deplibs_GCJ
25978
25979# Compile-time system search path for libraries
25980sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25981
25982# Run-time system search path for libraries
25983sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25984
25985# Fix the shell variable \$srcfile for the compiler.
25986fix_srcfile_path="$fix_srcfile_path_GCJ"
25987
25988# Set to yes if exported symbols are required.
25989always_export_symbols=$always_export_symbols_GCJ
25990
25991# The commands to list exported symbols.
25992export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25993
25994# The commands to extract the exported symbol list from a shared archive.
25995extract_expsyms_cmds=$lt_extract_expsyms_cmds
25996
25997# Symbols that should not be listed in the preloaded symbols.
25998exclude_expsyms=$lt_exclude_expsyms_GCJ
25999
26000# Symbols that must always be exported.
26001include_expsyms=$lt_include_expsyms_GCJ
26002
26003# ### END LIBTOOL TAG CONFIG: $tagname
26004
26005__EOF__
26006
26007
26008else
26009 # If there is no Makefile yet, we rely on a make rule to execute
26010 # `config.status --recheck' to rerun these tests and create the
26011 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026012 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26013 if test -f "$ltmain_in"; then
26014 test -f Makefile && make "$ltmain"
26015 fi
John Criswell47fdd832003-07-14 16:52:07 +000026016fi
26017
26018
26019ac_ext=c
26020ac_cpp='$CPP $CPPFLAGS'
26021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26023ac_compiler_gnu=$ac_cv_c_compiler_gnu
26024
26025CC="$lt_save_CC"
26026
26027 else
26028 tagname=""
26029 fi
26030 ;;
26031
26032 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026033 ac_ext=c
26034ac_cpp='$CPP $CPPFLAGS'
26035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26037ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026038
26039
26040# Source file extension for RC test sources.
26041ac_ext=rc
26042
26043# Object file extension for compiled RC test sources.
26044objext=o
26045objext_RC=$objext
26046
26047# Code to be used in simple compile tests
26048lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26049
26050# Code to be used in simple link tests
26051lt_simple_link_test_code="$lt_simple_compile_test_code"
26052
26053# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26054
26055# If no C compiler was specified, use CC.
26056LTCC=${LTCC-"$CC"}
26057
Reid Spencera773bd52006-08-04 18:18:08 +000026058# If no C compiler flags were specified, use CFLAGS.
26059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26060
John Criswell47fdd832003-07-14 16:52:07 +000026061# Allow CC to be a program name with arguments.
26062compiler=$CC
26063
26064
Reid Spencera773bd52006-08-04 18:18:08 +000026065# save warnings/boilerplate of simple test code
26066ac_outfile=conftest.$ac_objext
26067printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26069_lt_compiler_boilerplate=`cat conftest.err`
26070$rm conftest*
26071
26072ac_outfile=conftest.$ac_objext
26073printf "$lt_simple_link_test_code" >conftest.$ac_ext
26074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26075_lt_linker_boilerplate=`cat conftest.err`
26076$rm conftest*
26077
26078
John Criswell47fdd832003-07-14 16:52:07 +000026079# Allow CC to be a program name with arguments.
26080lt_save_CC="$CC"
26081CC=${RC-"windres"}
26082compiler=$CC
26083compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026084for cc_temp in $compiler""; do
26085 case $cc_temp in
26086 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26087 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26088 \-*) ;;
26089 *) break;;
26090 esac
26091done
26092cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26093
John Criswell47fdd832003-07-14 16:52:07 +000026094lt_cv_prog_compiler_c_o_RC=yes
26095
26096# The else clause should only fire when bootstrapping the
26097# libtool distribution, otherwise you forgot to ship ltmain.sh
26098# with your package, and you will get complaints that there are
26099# no rules to generate ltmain.sh.
26100if test -f "$ltmain"; then
26101 # See if we are running on zsh, and set the options which allow our commands through
26102 # without removal of \ escapes.
26103 if test -n "${ZSH_VERSION+set}" ; then
26104 setopt NO_GLOB_SUBST
26105 fi
26106 # Now quote all the things that may contain metacharacters while being
26107 # careful not to overquote the AC_SUBSTed values. We take copies of the
26108 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026109 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 +000026110 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026111 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26112 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26113 deplibs_check_method reload_flag reload_cmds need_locks \
26114 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26115 lt_cv_sys_global_symbol_to_c_name_address \
26116 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26117 old_postinstall_cmds old_postuninstall_cmds \
26118 compiler_RC \
26119 CC_RC \
26120 LD_RC \
26121 lt_prog_compiler_wl_RC \
26122 lt_prog_compiler_pic_RC \
26123 lt_prog_compiler_static_RC \
26124 lt_prog_compiler_no_builtin_flag_RC \
26125 export_dynamic_flag_spec_RC \
26126 thread_safe_flag_spec_RC \
26127 whole_archive_flag_spec_RC \
26128 enable_shared_with_static_runtimes_RC \
26129 old_archive_cmds_RC \
26130 old_archive_from_new_cmds_RC \
26131 predep_objects_RC \
26132 postdep_objects_RC \
26133 predeps_RC \
26134 postdeps_RC \
26135 compiler_lib_search_path_RC \
26136 archive_cmds_RC \
26137 archive_expsym_cmds_RC \
26138 postinstall_cmds_RC \
26139 postuninstall_cmds_RC \
26140 old_archive_from_expsyms_cmds_RC \
26141 allow_undefined_flag_RC \
26142 no_undefined_flag_RC \
26143 export_symbols_cmds_RC \
26144 hardcode_libdir_flag_spec_RC \
26145 hardcode_libdir_flag_spec_ld_RC \
26146 hardcode_libdir_separator_RC \
26147 hardcode_automatic_RC \
26148 module_cmds_RC \
26149 module_expsym_cmds_RC \
26150 lt_cv_prog_compiler_c_o_RC \
26151 exclude_expsyms_RC \
26152 include_expsyms_RC; do
26153
26154 case $var in
26155 old_archive_cmds_RC | \
26156 old_archive_from_new_cmds_RC | \
26157 archive_cmds_RC | \
26158 archive_expsym_cmds_RC | \
26159 module_cmds_RC | \
26160 module_expsym_cmds_RC | \
26161 old_archive_from_expsyms_cmds_RC | \
26162 export_symbols_cmds_RC | \
26163 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26164 postinstall_cmds | postuninstall_cmds | \
26165 old_postinstall_cmds | old_postuninstall_cmds | \
26166 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26167 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026168 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 +000026169 ;;
26170 *)
26171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26172 ;;
26173 esac
26174 done
26175
26176 case $lt_echo in
26177 *'\$0 --fallback-echo"')
26178 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26179 ;;
26180 esac
26181
26182cfgfile="$ofile"
26183
26184 cat <<__EOF__ >> "$cfgfile"
26185# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26186
26187# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26188
26189# Shell to use when invoking shell scripts.
26190SHELL=$lt_SHELL
26191
26192# Whether or not to build shared libraries.
26193build_libtool_libs=$enable_shared
26194
26195# Whether or not to build static libraries.
26196build_old_libs=$enable_static
26197
26198# Whether or not to add -lc for building shared libraries.
26199build_libtool_need_lc=$archive_cmds_need_lc_RC
26200
26201# Whether or not to disallow shared libs when runtime libs are static
26202allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26203
26204# Whether or not to optimize for fast installation.
26205fast_install=$enable_fast_install
26206
26207# The host system.
26208host_alias=$host_alias
26209host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026210host_os=$host_os
26211
26212# The build system.
26213build_alias=$build_alias
26214build=$build
26215build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026216
26217# An echo program that does not interpret backslashes.
26218echo=$lt_echo
26219
26220# The archiver.
26221AR=$lt_AR
26222AR_FLAGS=$lt_AR_FLAGS
26223
26224# A C compiler.
26225LTCC=$lt_LTCC
26226
Reid Spencera773bd52006-08-04 18:18:08 +000026227# LTCC compiler flags.
26228LTCFLAGS=$lt_LTCFLAGS
26229
John Criswell47fdd832003-07-14 16:52:07 +000026230# A language-specific compiler.
26231CC=$lt_compiler_RC
26232
26233# Is the compiler the GNU C compiler?
26234with_gcc=$GCC_RC
26235
26236# An ERE matcher.
26237EGREP=$lt_EGREP
26238
26239# The linker used to build libraries.
26240LD=$lt_LD_RC
26241
26242# Whether we need hard or soft links.
26243LN_S=$lt_LN_S
26244
26245# A BSD-compatible nm program.
26246NM=$lt_NM
26247
26248# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026249STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026250
26251# Used to examine libraries when file_magic_cmd begins "file"
26252MAGIC_CMD=$MAGIC_CMD
26253
26254# Used on cygwin: DLL creation program.
26255DLLTOOL="$DLLTOOL"
26256
26257# Used on cygwin: object dumper.
26258OBJDUMP="$OBJDUMP"
26259
26260# Used on cygwin: assembler.
26261AS="$AS"
26262
26263# The name of the directory that contains temporary libtool files.
26264objdir=$objdir
26265
26266# How to create reloadable object files.
26267reload_flag=$lt_reload_flag
26268reload_cmds=$lt_reload_cmds
26269
26270# How to pass a linker flag through the compiler.
26271wl=$lt_lt_prog_compiler_wl_RC
26272
26273# Object file suffix (normally "o").
26274objext="$ac_objext"
26275
26276# Old archive suffix (normally "a").
26277libext="$libext"
26278
26279# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026280shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026281
26282# Executable file suffix (normally "").
26283exeext="$exeext"
26284
26285# Additional compiler flags for building library objects.
26286pic_flag=$lt_lt_prog_compiler_pic_RC
26287pic_mode=$pic_mode
26288
26289# What is the maximum length of a command?
26290max_cmd_len=$lt_cv_sys_max_cmd_len
26291
26292# Does compiler simultaneously support -c and -o options?
26293compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26294
Reid Spencera773bd52006-08-04 18:18:08 +000026295# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026296need_locks=$lt_need_locks
26297
26298# Do we need the lib prefix for modules?
26299need_lib_prefix=$need_lib_prefix
26300
26301# Do we need a version for libraries?
26302need_version=$need_version
26303
26304# Whether dlopen is supported.
26305dlopen_support=$enable_dlopen
26306
26307# Whether dlopen of programs is supported.
26308dlopen_self=$enable_dlopen_self
26309
26310# Whether dlopen of statically linked programs is supported.
26311dlopen_self_static=$enable_dlopen_self_static
26312
26313# Compiler flag to prevent dynamic linking.
26314link_static_flag=$lt_lt_prog_compiler_static_RC
26315
26316# Compiler flag to turn off builtin functions.
26317no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26318
26319# Compiler flag to allow reflexive dlopens.
26320export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26321
26322# Compiler flag to generate shared objects directly from archives.
26323whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26324
26325# Compiler flag to generate thread-safe objects.
26326thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26327
26328# Library versioning type.
26329version_type=$version_type
26330
26331# Format of library name prefix.
26332libname_spec=$lt_libname_spec
26333
26334# List of archive names. First name is the real one, the rest are links.
26335# The last name is the one that the linker finds with -lNAME.
26336library_names_spec=$lt_library_names_spec
26337
26338# The coded name of the library, if different from the real name.
26339soname_spec=$lt_soname_spec
26340
26341# Commands used to build and install an old-style archive.
26342RANLIB=$lt_RANLIB
26343old_archive_cmds=$lt_old_archive_cmds_RC
26344old_postinstall_cmds=$lt_old_postinstall_cmds
26345old_postuninstall_cmds=$lt_old_postuninstall_cmds
26346
26347# Create an old-style archive from a shared archive.
26348old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26349
26350# Create a temporary old-style archive to link instead of a shared archive.
26351old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26352
26353# Commands used to build and install a shared archive.
26354archive_cmds=$lt_archive_cmds_RC
26355archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26356postinstall_cmds=$lt_postinstall_cmds
26357postuninstall_cmds=$lt_postuninstall_cmds
26358
26359# Commands used to build a loadable module (assumed same as above if empty)
26360module_cmds=$lt_module_cmds_RC
26361module_expsym_cmds=$lt_module_expsym_cmds_RC
26362
26363# Commands to strip libraries.
26364old_striplib=$lt_old_striplib
26365striplib=$lt_striplib
26366
26367# Dependencies to place before the objects being linked to create a
26368# shared library.
26369predep_objects=$lt_predep_objects_RC
26370
26371# Dependencies to place after the objects being linked to create a
26372# shared library.
26373postdep_objects=$lt_postdep_objects_RC
26374
26375# Dependencies to place before the objects being linked to create a
26376# shared library.
26377predeps=$lt_predeps_RC
26378
26379# Dependencies to place after the objects being linked to create a
26380# shared library.
26381postdeps=$lt_postdeps_RC
26382
26383# The library search path used internally by the compiler when linking
26384# a shared library.
26385compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26386
26387# Method to check whether dependent libraries are shared objects.
26388deplibs_check_method=$lt_deplibs_check_method
26389
26390# Command to use when deplibs_check_method == file_magic.
26391file_magic_cmd=$lt_file_magic_cmd
26392
26393# Flag that allows shared libraries with undefined symbols to be built.
26394allow_undefined_flag=$lt_allow_undefined_flag_RC
26395
26396# Flag that forces no undefined symbols.
26397no_undefined_flag=$lt_no_undefined_flag_RC
26398
26399# Commands used to finish a libtool library installation in a directory.
26400finish_cmds=$lt_finish_cmds
26401
26402# Same as above, but a single script fragment to be evaled but not shown.
26403finish_eval=$lt_finish_eval
26404
26405# Take the output of nm and produce a listing of raw symbols and C names.
26406global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26407
26408# Transform the output of nm in a proper C declaration
26409global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26410
26411# Transform the output of nm in a C name address pair
26412global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26413
26414# This is the shared library runtime path variable.
26415runpath_var=$runpath_var
26416
26417# This is the shared library path variable.
26418shlibpath_var=$shlibpath_var
26419
26420# Is shlibpath searched before the hard-coded library search path?
26421shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26422
26423# How to hardcode a shared library path into an executable.
26424hardcode_action=$hardcode_action_RC
26425
26426# Whether we should hardcode library paths into libraries.
26427hardcode_into_libs=$hardcode_into_libs
26428
26429# Flag to hardcode \$libdir into a binary during linking.
26430# This must work even if \$libdir does not exist.
26431hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26432
26433# If ld is used when linking, flag to hardcode \$libdir into
26434# a binary during linking. This must work even if \$libdir does
26435# not exist.
26436hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26437
26438# Whether we need a single -rpath flag with a separated argument.
26439hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26440
26441# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26442# resulting binary.
26443hardcode_direct=$hardcode_direct_RC
26444
26445# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26446# resulting binary.
26447hardcode_minus_L=$hardcode_minus_L_RC
26448
26449# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26450# the resulting binary.
26451hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26452
26453# Set to yes if building a shared library automatically hardcodes DIR into the library
26454# and all subsequent libraries and executables linked against it.
26455hardcode_automatic=$hardcode_automatic_RC
26456
26457# Variables whose values should be saved in libtool wrapper scripts and
26458# restored at relink time.
26459variables_saved_for_relink="$variables_saved_for_relink"
26460
26461# Whether libtool must link a program against all its dependency libraries.
26462link_all_deplibs=$link_all_deplibs_RC
26463
26464# Compile-time system search path for libraries
26465sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26466
26467# Run-time system search path for libraries
26468sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26469
26470# Fix the shell variable \$srcfile for the compiler.
26471fix_srcfile_path="$fix_srcfile_path_RC"
26472
26473# Set to yes if exported symbols are required.
26474always_export_symbols=$always_export_symbols_RC
26475
26476# The commands to list exported symbols.
26477export_symbols_cmds=$lt_export_symbols_cmds_RC
26478
26479# The commands to extract the exported symbol list from a shared archive.
26480extract_expsyms_cmds=$lt_extract_expsyms_cmds
26481
26482# Symbols that should not be listed in the preloaded symbols.
26483exclude_expsyms=$lt_exclude_expsyms_RC
26484
26485# Symbols that must always be exported.
26486include_expsyms=$lt_include_expsyms_RC
26487
26488# ### END LIBTOOL TAG CONFIG: $tagname
26489
26490__EOF__
26491
26492
26493else
26494 # If there is no Makefile yet, we rely on a make rule to execute
26495 # `config.status --recheck' to rerun these tests and create the
26496 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026497 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26498 if test -f "$ltmain_in"; then
26499 test -f Makefile && make "$ltmain"
26500 fi
John Criswell47fdd832003-07-14 16:52:07 +000026501fi
26502
26503
26504ac_ext=c
26505ac_cpp='$CPP $CPPFLAGS'
26506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26508ac_compiler_gnu=$ac_cv_c_compiler_gnu
26509
26510CC="$lt_save_CC"
26511
26512 ;;
26513
26514 *)
26515 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26516echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26517 { (exit 1); exit 1; }; }
26518 ;;
26519 esac
26520
26521 # Append the new tag name to the list of available tags.
26522 if test -n "$tagname" ; then
26523 available_tags="$available_tags $tagname"
26524 fi
26525 fi
26526 done
26527 IFS="$lt_save_ifs"
26528
26529 # Now substitute the updated list of available tags.
26530 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26531 mv "${ofile}T" "$ofile"
26532 chmod +x "$ofile"
26533 else
26534 rm -f "${ofile}T"
26535 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26536echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26537 { (exit 1); exit 1; }; }
26538 fi
26539fi
John Criswell7a73b802003-06-30 21:59:07 +000026540
26541
26542
26543# This can be used to rebuild libtool when needed
26544LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26545
26546# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026547LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026548
26549# Prevent multiple expansion
26550
26551
26552
John Criswell47fdd832003-07-14 16:52:07 +000026553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
26568
26569
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026570
Reid Spencer582a23c2004-12-29 07:07:57 +000026571if test "$lt_cv_dlopen_self" = "yes" ; then
26572
26573cat >>confdefs.h <<\_ACEOF
26574#define CAN_DLOPEN_SELF 1
26575_ACEOF
26576
26577fi
26578
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026579etags_version=`$ETAGS --version 2>&1`
26580case "$etags_version" in
26581 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26582 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26583 *) ETAGSFLAGS="" ;;
26584esac
26585ETAGSFLAGS=$ETAGSFLAGS
26586
26587
Reid Spencer7931a782004-12-27 06:15:02 +000026588if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026589 LLVMGCC="llvm-gcc${EXEEXT}"
26590 LLVMGXX="llvm-g++${EXEEXT}"
26591 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26592set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026593{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026595if test "${ac_cv_path_LLVMGCC+set}" = set; then
26596 echo $ECHO_N "(cached) $ECHO_C" >&6
26597else
26598 case $LLVMGCC in
26599 [\\/]* | ?:[\\/]*)
26600 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26601 ;;
26602 *)
26603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26604for as_dir in $PATH
26605do
26606 IFS=$as_save_IFS
26607 test -z "$as_dir" && as_dir=.
26608 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026609 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 +000026610 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26612 break 2
26613 fi
26614done
26615done
Reid Spencera773bd52006-08-04 18:18:08 +000026616IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026617
Reid Spencer59473af2004-12-25 07:31:29 +000026618 ;;
26619esac
26620fi
26621LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026622if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026623 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26624echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026625else
Reid Spencera773bd52006-08-04 18:18:08 +000026626 { echo "$as_me:$LINENO: result: no" >&5
26627echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026628fi
26629
Reid Spencera773bd52006-08-04 18:18:08 +000026630
Reid Spencerc84492c2005-06-02 22:34:49 +000026631 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26632set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026633{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026635if test "${ac_cv_path_LLVMGXX+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26637else
26638 case $LLVMGXX in
26639 [\\/]* | ?:[\\/]*)
26640 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26641 ;;
26642 *)
26643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26644for as_dir in $PATH
26645do
26646 IFS=$as_save_IFS
26647 test -z "$as_dir" && as_dir=.
26648 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026649 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 +000026650 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26652 break 2
26653 fi
26654done
26655done
Reid Spencera773bd52006-08-04 18:18:08 +000026656IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026657
Reid Spencer59473af2004-12-25 07:31:29 +000026658 ;;
26659esac
26660fi
26661LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026662if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026663 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26664echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026665else
Reid Spencera773bd52006-08-04 18:18:08 +000026666 { echo "$as_me:$LINENO: result: no" >&5
26667echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026668fi
26669
Reid Spencera773bd52006-08-04 18:18:08 +000026670
Reid Spencer59473af2004-12-25 07:31:29 +000026671else
Reid Spencerc84492c2005-06-02 22:34:49 +000026672 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26673 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026674 LLVMGCC=$LLVMGCC
26675
26676 LLVMGXX=$LLVMGXX
26677
26678fi
26679
Reid Spencera773bd52006-08-04 18:18:08 +000026680{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26681echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026682
Reid Spencer86901802004-12-08 23:07:27 +000026683ICC=no
26684IXX=no
26685case $CC in
26686 icc*|icpc*)
26687 ICC=yes
26688 IXX=yes
26689 ;;
26690 *)
26691 ;;
26692esac
26693
Duraid Madina937c60a2006-02-15 07:57:42 +000026694if test "$GCC" != "yes" && test "$ICC" != "yes"
26695then
26696 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26697echo "$as_me: error: gcc|icc required but not found" >&2;}
26698 { (exit 1); exit 1; }; }
26699fi
26700
26701if test "$GXX" != "yes" && test "$IXX" != "yes"
26702then
26703 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26704echo "$as_me: error: g++|icc required but not found" >&2;}
26705 { (exit 1); exit 1; }; }
26706fi
26707
Reid Spencer86901802004-12-08 23:07:27 +000026708if test "$GCC" = "yes"
26709then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026710 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026711 if test "$gccmajor" -lt "3"
26712 then
26713 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026714echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26715 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026716 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026717fi
26718
26719if test -z "$llvm_cv_gnu_make_command"
26720then
26721 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26722echo "$as_me: error: GNU Make required but not found" >&2;}
26723 { (exit 1); exit 1; }; }
26724fi
26725
Reid Spencera773bd52006-08-04 18:18:08 +000026726{ echo "$as_me:$LINENO: result: ok" >&5
26727echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026728
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026729
John Criswell7a73b802003-06-30 21:59:07 +000026730
Reid Spencera773bd52006-08-04 18:18:08 +000026731{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26732echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026733if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26734 echo $ECHO_N "(cached) $ECHO_C" >&6
26735else
26736 ac_check_lib_save_LIBS=$LIBS
26737LIBS="-lelf $LIBS"
26738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026744
Reid Spencera773bd52006-08-04 18:18:08 +000026745/* Override any GCC internal prototype to avoid an error.
26746 Use char because int might match the return type of a GCC
26747 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026748#ifdef __cplusplus
26749extern "C"
26750#endif
John Criswell7a73b802003-06-30 21:59:07 +000026751char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026752int
26753main ()
26754{
Reid Spencera773bd52006-08-04 18:18:08 +000026755return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026756 ;
26757 return 0;
26758}
26759_ACEOF
26760rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026761if { (ac_try="$ac_link"
26762case "(($ac_try" in
26763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764 *) ac_try_echo=$ac_try;;
26765esac
26766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026768 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026769 grep -v '^ *+' conftest.er1 >conftest.err
26770 rm -f conftest.er1
26771 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26773 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26775 { (case "(($ac_try" in
26776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26777 *) ac_try_echo=$ac_try;;
26778esac
26779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26780 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781 ac_status=$?
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); }; } &&
26784 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026785 { (case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26788esac
26789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026791 ac_status=$?
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794 ac_cv_lib_elf_elf_begin=yes
26795else
26796 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026797sed 's/^/| /' conftest.$ac_ext >&5
26798
Reid Spencera773bd52006-08-04 18:18:08 +000026799 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026800fi
Reid Spencera773bd52006-08-04 18:18:08 +000026801
26802rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026803 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026804LIBS=$ac_check_lib_save_LIBS
26805fi
Reid Spencera773bd52006-08-04 18:18:08 +000026806{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26807echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026808if test $ac_cv_lib_elf_elf_begin = yes; then
26809 cat >>confdefs.h <<_ACEOF
26810#define HAVE_LIBELF 1
26811_ACEOF
26812
26813 LIBS="-lelf $LIBS"
26814
26815fi
26816
26817
Reid Spencera773bd52006-08-04 18:18:08 +000026818{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26819echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026820if test "${ac_cv_lib_m_sin+set}" = set; then
26821 echo $ECHO_N "(cached) $ECHO_C" >&6
26822else
26823 ac_check_lib_save_LIBS=$LIBS
26824LIBS="-lm $LIBS"
26825cat >conftest.$ac_ext <<_ACEOF
26826/* confdefs.h. */
26827_ACEOF
26828cat confdefs.h >>conftest.$ac_ext
26829cat >>conftest.$ac_ext <<_ACEOF
26830/* end confdefs.h. */
26831
Reid Spencera773bd52006-08-04 18:18:08 +000026832/* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026835#ifdef __cplusplus
26836extern "C"
26837#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026838char sin ();
26839int
26840main ()
26841{
Reid Spencera773bd52006-08-04 18:18:08 +000026842return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026843 ;
26844 return 0;
26845}
26846_ACEOF
26847rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026848if { (ac_try="$ac_link"
26849case "(($ac_try" in
26850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26851 *) ac_try_echo=$ac_try;;
26852esac
26853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26854 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026855 ac_status=$?
26856 grep -v '^ *+' conftest.er1 >conftest.err
26857 rm -f conftest.er1
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26862 { (case "(($ac_try" in
26863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864 *) ac_try_echo=$ac_try;;
26865esac
26866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26867 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026868 ac_status=$?
26869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870 (exit $ac_status); }; } &&
26871 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026872 { (case "(($ac_try" in
26873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26874 *) ac_try_echo=$ac_try;;
26875esac
26876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26877 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
26881 ac_cv_lib_m_sin=yes
26882else
26883 echo "$as_me: failed program was:" >&5
26884sed 's/^/| /' conftest.$ac_ext >&5
26885
Reid Spencera773bd52006-08-04 18:18:08 +000026886 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026887fi
Reid Spencera773bd52006-08-04 18:18:08 +000026888
26889rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026890 conftest$ac_exeext conftest.$ac_ext
26891LIBS=$ac_check_lib_save_LIBS
26892fi
Reid Spencera773bd52006-08-04 18:18:08 +000026893{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26894echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026895if test $ac_cv_lib_m_sin = yes; then
26896 cat >>confdefs.h <<_ACEOF
26897#define HAVE_LIBM 1
26898_ACEOF
26899
26900 LIBS="-lm $LIBS"
26901
26902fi
26903
Jeff Cohen28783c32007-01-12 18:22:38 +000026904if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026905
Reid Spencera773bd52006-08-04 18:18:08 +000026906{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26907echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026908if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026909 echo $ECHO_N "(cached) $ECHO_C" >&6
26910else
26911 ac_check_lib_save_LIBS=$LIBS
26912LIBS="-limagehlp $LIBS"
26913cat >conftest.$ac_ext <<_ACEOF
26914/* confdefs.h. */
26915_ACEOF
26916cat confdefs.h >>conftest.$ac_ext
26917cat >>conftest.$ac_ext <<_ACEOF
26918/* end confdefs.h. */
26919
Reid Spencer48fdf912006-06-01 19:03:21 +000026920
Reid Spencer484fc8e2006-06-01 16:55:59 +000026921int
26922main ()
26923{
Reid Spencera773bd52006-08-04 18:18:08 +000026924return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026925 ;
26926 return 0;
26927}
26928_ACEOF
26929rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026930if { (ac_try="$ac_link"
26931case "(($ac_try" in
26932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26933 *) ac_try_echo=$ac_try;;
26934esac
26935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26936 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026937 ac_status=$?
26938 grep -v '^ *+' conftest.er1 >conftest.err
26939 rm -f conftest.er1
26940 cat conftest.err >&5
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26944 { (case "(($ac_try" in
26945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26946 *) ac_try_echo=$ac_try;;
26947esac
26948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26949 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; } &&
26953 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026954 { (case "(($ac_try" in
26955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956 *) ac_try_echo=$ac_try;;
26957esac
26958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026963 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026964else
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
Reid Spencera773bd52006-08-04 18:18:08 +000026968 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026969fi
Reid Spencera773bd52006-08-04 18:18:08 +000026970
26971rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026972 conftest$ac_exeext conftest.$ac_ext
26973LIBS=$ac_check_lib_save_LIBS
26974fi
Reid Spencera773bd52006-08-04 18:18:08 +000026975{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26976echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026977if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026978 cat >>confdefs.h <<_ACEOF
26979#define HAVE_LIBIMAGEHLP 1
26980_ACEOF
26981
26982 LIBS="-limagehlp $LIBS"
26983
26984fi
26985
26986
Reid Spencera773bd52006-08-04 18:18:08 +000026987{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26988echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026989if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026990 echo $ECHO_N "(cached) $ECHO_C" >&6
26991else
26992 ac_check_lib_save_LIBS=$LIBS
26993LIBS="-lpsapi $LIBS"
26994cat >conftest.$ac_ext <<_ACEOF
26995/* confdefs.h. */
26996_ACEOF
26997cat confdefs.h >>conftest.$ac_ext
26998cat >>conftest.$ac_ext <<_ACEOF
26999/* end confdefs.h. */
27000
Reid Spencer48fdf912006-06-01 19:03:21 +000027001
Reid Spencer484fc8e2006-06-01 16:55:59 +000027002int
27003main ()
27004{
Reid Spencera773bd52006-08-04 18:18:08 +000027005return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027006 ;
27007 return 0;
27008}
27009_ACEOF
27010rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027011if { (ac_try="$ac_link"
27012case "(($ac_try" in
27013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014 *) ac_try_echo=$ac_try;;
27015esac
27016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027018 ac_status=$?
27019 grep -v '^ *+' conftest.er1 >conftest.err
27020 rm -f conftest.er1
27021 cat conftest.err >&5
27022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27025 { (case "(($ac_try" in
27026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27027 *) ac_try_echo=$ac_try;;
27028esac
27029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27030 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027035 { (case "(($ac_try" in
27036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037 *) ac_try_echo=$ac_try;;
27038esac
27039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027041 ac_status=$?
27042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027044 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027045else
27046 echo "$as_me: failed program was:" >&5
27047sed 's/^/| /' conftest.$ac_ext >&5
27048
Reid Spencera773bd52006-08-04 18:18:08 +000027049 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027050fi
Reid Spencera773bd52006-08-04 18:18:08 +000027051
27052rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027053 conftest$ac_exeext conftest.$ac_ext
27054LIBS=$ac_check_lib_save_LIBS
27055fi
Reid Spencera773bd52006-08-04 18:18:08 +000027056{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27057echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027058if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027059 cat >>confdefs.h <<_ACEOF
27060#define HAVE_LIBPSAPI 1
27061_ACEOF
27062
27063 LIBS="-lpsapi $LIBS"
27064
27065fi
27066
27067fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027068
Reid Spencera773bd52006-08-04 18:18:08 +000027069{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27070echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027071if test "${ac_cv_search_lt_dlopen+set}" = set; then
27072 echo $ECHO_N "(cached) $ECHO_C" >&6
27073else
27074 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027075cat >conftest.$ac_ext <<_ACEOF
27076/* confdefs.h. */
27077_ACEOF
27078cat confdefs.h >>conftest.$ac_ext
27079cat >>conftest.$ac_ext <<_ACEOF
27080/* end confdefs.h. */
27081
Reid Spencera773bd52006-08-04 18:18:08 +000027082/* Override any GCC internal prototype to avoid an error.
27083 Use char because int might match the return type of a GCC
27084 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027085#ifdef __cplusplus
27086extern "C"
27087#endif
Reid Spencer17795972004-11-18 09:47:37 +000027088char lt_dlopen ();
27089int
27090main ()
27091{
Reid Spencera773bd52006-08-04 18:18:08 +000027092return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027093 ;
27094 return 0;
27095}
27096_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027097for ac_lib in '' ltdl; do
27098 if test -z "$ac_lib"; then
27099 ac_res="none required"
27100 else
27101 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027102 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027103 fi
27104 rm -f conftest.$ac_objext conftest$ac_exeext
27105if { (ac_try="$ac_link"
27106case "(($ac_try" in
27107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27108 *) ac_try_echo=$ac_try;;
27109esac
27110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27111 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027112 ac_status=$?
27113 grep -v '^ *+' conftest.er1 >conftest.err
27114 rm -f conftest.er1
27115 cat conftest.err >&5
27116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27119 { (case "(($ac_try" in
27120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27121 *) ac_try_echo=$ac_try;;
27122esac
27123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27124 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027125 ac_status=$?
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027129 { (case "(($ac_try" in
27130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27131 *) ac_try_echo=$ac_try;;
27132esac
27133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27134 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027138 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027139else
27140 echo "$as_me: failed program was:" >&5
27141sed 's/^/| /' conftest.$ac_ext >&5
27142
Reid Spencera773bd52006-08-04 18:18:08 +000027143
Reid Spencer17795972004-11-18 09:47:37 +000027144fi
Reid Spencera773bd52006-08-04 18:18:08 +000027145
27146rm -f core conftest.err conftest.$ac_objext \
27147 conftest$ac_exeext
27148 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27149 break
Reid Spencer17795972004-11-18 09:47:37 +000027150fi
Reid Spencera773bd52006-08-04 18:18:08 +000027151done
27152if test "${ac_cv_search_lt_dlopen+set}" = set; then
27153 :
27154else
27155 ac_cv_search_lt_dlopen=no
27156fi
27157rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027158LIBS=$ac_func_search_save_LIBS
27159fi
Reid Spencera773bd52006-08-04 18:18:08 +000027160{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27161echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27162ac_res=$ac_cv_search_lt_dlopen
27163if test "$ac_res" != no; then
27164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027165
27166cat >>confdefs.h <<\_ACEOF
27167#define HAVE_LT_DLOPEN 1
27168_ACEOF
27169
27170else
27171 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27172 not be available" >&5
27173echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27174 not be available" >&2;}
27175fi
27176
27177
Reid Spencera773bd52006-08-04 18:18:08 +000027178{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27179echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027180if test "${ac_cv_search_dlopen+set}" = set; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027184cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027185/* confdefs.h. */
27186_ACEOF
27187cat confdefs.h >>conftest.$ac_ext
27188cat >>conftest.$ac_ext <<_ACEOF
27189/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027190
Reid Spencera773bd52006-08-04 18:18:08 +000027191/* Override any GCC internal prototype to avoid an error.
27192 Use char because int might match the return type of a GCC
27193 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027194#ifdef __cplusplus
27195extern "C"
27196#endif
John Criswell7a73b802003-06-30 21:59:07 +000027197char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027198int
27199main ()
27200{
Reid Spencera773bd52006-08-04 18:18:08 +000027201return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027202 ;
27203 return 0;
27204}
27205_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027206for ac_lib in '' dl; do
27207 if test -z "$ac_lib"; then
27208 ac_res="none required"
27209 else
27210 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027212 fi
27213 rm -f conftest.$ac_objext conftest$ac_exeext
27214if { (ac_try="$ac_link"
27215case "(($ac_try" in
27216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27217 *) ac_try_echo=$ac_try;;
27218esac
27219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27220 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027222 grep -v '^ *+' conftest.er1 >conftest.err
27223 rm -f conftest.er1
27224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27228 { (case "(($ac_try" in
27229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27230 *) ac_try_echo=$ac_try;;
27231esac
27232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27233 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; } &&
27237 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027238 { (case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27241esac
27242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027244 ac_status=$?
27245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027247 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027248else
27249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027250sed 's/^/| /' conftest.$ac_ext >&5
27251
Reid Spencera773bd52006-08-04 18:18:08 +000027252
John Criswell7a73b802003-06-30 21:59:07 +000027253fi
Reid Spencera773bd52006-08-04 18:18:08 +000027254
27255rm -f core conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext
27257 if test "${ac_cv_search_dlopen+set}" = set; then
27258 break
John Criswell7a73b802003-06-30 21:59:07 +000027259fi
Reid Spencera773bd52006-08-04 18:18:08 +000027260done
27261if test "${ac_cv_search_dlopen+set}" = set; then
27262 :
27263else
27264 ac_cv_search_dlopen=no
27265fi
27266rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027267LIBS=$ac_func_search_save_LIBS
27268fi
Reid Spencera773bd52006-08-04 18:18:08 +000027269{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27270echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27271ac_res=$ac_cv_search_dlopen
27272if test "$ac_res" != no; then
27273 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027274
27275cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027276#define HAVE_DLOPEN 1
27277_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027278
27279else
Brian Gaekec45be042003-10-07 06:01:34 +000027280 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27281echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027282fi
27283
27284
Reid Spencera773bd52006-08-04 18:18:08 +000027285{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27286echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027287if test "${ac_cv_search_mallinfo+set}" = set; then
27288 echo $ECHO_N "(cached) $ECHO_C" >&6
27289else
27290 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027291cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027297
Reid Spencera773bd52006-08-04 18:18:08 +000027298/* Override any GCC internal prototype to avoid an error.
27299 Use char because int might match the return type of a GCC
27300 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027301#ifdef __cplusplus
27302extern "C"
27303#endif
John Criswell7a73b802003-06-30 21:59:07 +000027304char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027305int
27306main ()
27307{
Reid Spencera773bd52006-08-04 18:18:08 +000027308return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027309 ;
27310 return 0;
27311}
27312_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027313for ac_lib in '' malloc; do
27314 if test -z "$ac_lib"; then
27315 ac_res="none required"
27316 else
27317 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027318 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027319 fi
27320 rm -f conftest.$ac_objext conftest$ac_exeext
27321if { (ac_try="$ac_link"
27322case "(($ac_try" in
27323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27324 *) ac_try_echo=$ac_try;;
27325esac
27326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27327 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027328 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027329 grep -v '^ *+' conftest.er1 >conftest.err
27330 rm -f conftest.er1
27331 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27333 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27335 { (case "(($ac_try" in
27336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27337 *) ac_try_echo=$ac_try;;
27338esac
27339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27340 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; } &&
27344 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027345 { (case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27348esac
27349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027351 ac_status=$?
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027354 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027355else
27356 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027357sed 's/^/| /' conftest.$ac_ext >&5
27358
Reid Spencera773bd52006-08-04 18:18:08 +000027359
John Criswell7a73b802003-06-30 21:59:07 +000027360fi
Reid Spencera773bd52006-08-04 18:18:08 +000027361
27362rm -f core conftest.err conftest.$ac_objext \
27363 conftest$ac_exeext
27364 if test "${ac_cv_search_mallinfo+set}" = set; then
27365 break
John Criswell7a73b802003-06-30 21:59:07 +000027366fi
Reid Spencera773bd52006-08-04 18:18:08 +000027367done
27368if test "${ac_cv_search_mallinfo+set}" = set; then
27369 :
27370else
27371 ac_cv_search_mallinfo=no
27372fi
27373rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027374LIBS=$ac_func_search_save_LIBS
27375fi
Reid Spencera773bd52006-08-04 18:18:08 +000027376{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27377echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27378ac_res=$ac_cv_search_mallinfo
27379if test "$ac_res" != no; then
27380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027381
27382cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027383#define HAVE_MALLINFO 1
27384_ACEOF
27385
27386fi
27387
27388
Reid Spencer0a262ba2005-08-24 10:07:20 +000027389if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027390
Reid Spencera773bd52006-08-04 18:18:08 +000027391{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27392echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027393if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27394 echo $ECHO_N "(cached) $ECHO_C" >&6
27395else
27396 ac_check_lib_save_LIBS=$LIBS
27397LIBS="-lpthread $LIBS"
27398cat >conftest.$ac_ext <<_ACEOF
27399/* confdefs.h. */
27400_ACEOF
27401cat confdefs.h >>conftest.$ac_ext
27402cat >>conftest.$ac_ext <<_ACEOF
27403/* end confdefs.h. */
27404
Reid Spencera773bd52006-08-04 18:18:08 +000027405/* Override any GCC internal prototype to avoid an error.
27406 Use char because int might match the return type of a GCC
27407 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027408#ifdef __cplusplus
27409extern "C"
27410#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027411char pthread_mutex_init ();
27412int
27413main ()
27414{
Reid Spencera773bd52006-08-04 18:18:08 +000027415return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027416 ;
27417 return 0;
27418}
27419_ACEOF
27420rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027421if { (ac_try="$ac_link"
27422case "(($ac_try" in
27423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424 *) ac_try_echo=$ac_try;;
27425esac
27426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027428 ac_status=$?
27429 grep -v '^ *+' conftest.er1 >conftest.err
27430 rm -f conftest.er1
27431 cat conftest.err >&5
27432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435 { (case "(($ac_try" in
27436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437 *) ac_try_echo=$ac_try;;
27438esac
27439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027441 ac_status=$?
27442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443 (exit $ac_status); }; } &&
27444 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027445 { (case "(($ac_try" in
27446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447 *) ac_try_echo=$ac_try;;
27448esac
27449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027451 ac_status=$?
27452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453 (exit $ac_status); }; }; then
27454 ac_cv_lib_pthread_pthread_mutex_init=yes
27455else
27456 echo "$as_me: failed program was:" >&5
27457sed 's/^/| /' conftest.$ac_ext >&5
27458
Reid Spencera773bd52006-08-04 18:18:08 +000027459 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027460fi
Reid Spencera773bd52006-08-04 18:18:08 +000027461
27462rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027463 conftest$ac_exeext conftest.$ac_ext
27464LIBS=$ac_check_lib_save_LIBS
27465fi
Reid Spencera773bd52006-08-04 18:18:08 +000027466{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27467echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027468if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27469 cat >>confdefs.h <<_ACEOF
27470#define HAVE_LIBPTHREAD 1
27471_ACEOF
27472
27473 LIBS="-lpthread $LIBS"
27474
27475fi
27476
Reid Spencera773bd52006-08-04 18:18:08 +000027477 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27478echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027479if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27480 echo $ECHO_N "(cached) $ECHO_C" >&6
27481else
27482 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027483cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027484/* confdefs.h. */
27485_ACEOF
27486cat confdefs.h >>conftest.$ac_ext
27487cat >>conftest.$ac_ext <<_ACEOF
27488/* end confdefs.h. */
27489
Reid Spencera773bd52006-08-04 18:18:08 +000027490/* Override any GCC internal prototype to avoid an error.
27491 Use char because int might match the return type of a GCC
27492 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027493#ifdef __cplusplus
27494extern "C"
27495#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027496char pthread_mutex_lock ();
27497int
27498main ()
27499{
Reid Spencera773bd52006-08-04 18:18:08 +000027500return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027501 ;
27502 return 0;
27503}
27504_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027505for ac_lib in '' pthread; do
27506 if test -z "$ac_lib"; then
27507 ac_res="none required"
27508 else
27509 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027511 fi
27512 rm -f conftest.$ac_objext conftest$ac_exeext
27513if { (ac_try="$ac_link"
27514case "(($ac_try" in
27515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27516 *) ac_try_echo=$ac_try;;
27517esac
27518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27519 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027520 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027521 grep -v '^ *+' conftest.er1 >conftest.err
27522 rm -f conftest.er1
27523 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027526 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27527 { (case "(($ac_try" in
27528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27529 *) ac_try_echo=$ac_try;;
27530esac
27531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27532 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027533 ac_status=$?
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); }; } &&
27536 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027537 { (case "(($ac_try" in
27538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27539 *) ac_try_echo=$ac_try;;
27540esac
27541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27542 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027546 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027547else
27548 echo "$as_me: failed program was:" >&5
27549sed 's/^/| /' conftest.$ac_ext >&5
27550
Reid Spencera773bd52006-08-04 18:18:08 +000027551
Brian Gaeke5f268f72003-12-05 19:29:01 +000027552fi
Reid Spencera773bd52006-08-04 18:18:08 +000027553
27554rm -f core conftest.err conftest.$ac_objext \
27555 conftest$ac_exeext
27556 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27557 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027558fi
Reid Spencera773bd52006-08-04 18:18:08 +000027559done
27560if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27561 :
27562else
27563 ac_cv_search_pthread_mutex_lock=no
27564fi
27565rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027566LIBS=$ac_func_search_save_LIBS
27567fi
Reid Spencera773bd52006-08-04 18:18:08 +000027568{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27569echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27570ac_res=$ac_cv_search_pthread_mutex_lock
27571if test "$ac_res" != no; then
27572 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027573
John Criswell40468462004-09-24 21:19:06 +000027574cat >>confdefs.h <<\_ACEOF
27575#define HAVE_PTHREAD_MUTEX_LOCK 1
27576_ACEOF
27577
27578fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027579
Reid Spencer0a262ba2005-08-24 10:07:20 +000027580fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027581
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027582
Reid Spencerb6a7aa72007-01-19 17:41:47 +000027583# Check whether --with-udis86 was given.
27584if test "${with_udis86+set}" = set; then
27585 withval=$with_udis86;
27586 USE_UDIS86=1
27587
27588 case "$withval" in
27589 /usr/lib) ;;
27590 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
27591 esac
27592
27593{ echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
27594echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
27595if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
27596 echo $ECHO_N "(cached) $ECHO_C" >&6
27597else
27598 ac_check_lib_save_LIBS=$LIBS
27599LIBS="-ludis86 $LIBS"
27600cat >conftest.$ac_ext <<_ACEOF
27601/* confdefs.h. */
27602_ACEOF
27603cat confdefs.h >>conftest.$ac_ext
27604cat >>conftest.$ac_ext <<_ACEOF
27605/* end confdefs.h. */
27606
27607/* Override any GCC internal prototype to avoid an error.
27608 Use char because int might match the return type of a GCC
27609 builtin and then its argument prototype would still apply. */
27610#ifdef __cplusplus
27611extern "C"
27612#endif
27613char ud_init ();
27614int
27615main ()
27616{
27617return ud_init ();
27618 ;
27619 return 0;
27620}
27621_ACEOF
27622rm -f conftest.$ac_objext conftest$ac_exeext
27623if { (ac_try="$ac_link"
27624case "(($ac_try" in
27625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626 *) ac_try_echo=$ac_try;;
27627esac
27628eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629 (eval "$ac_link") 2>conftest.er1
27630 ac_status=$?
27631 grep -v '^ *+' conftest.er1 >conftest.err
27632 rm -f conftest.er1
27633 cat conftest.err >&5
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); } &&
27636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27637 { (case "(($ac_try" in
27638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639 *) ac_try_echo=$ac_try;;
27640esac
27641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642 (eval "$ac_try") 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; } &&
27646 { ac_try='test -s conftest$ac_exeext'
27647 { (case "(($ac_try" in
27648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649 *) ac_try_echo=$ac_try;;
27650esac
27651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652 (eval "$ac_try") 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 ac_cv_lib_udis86_ud_init=yes
27657else
27658 echo "$as_me: failed program was:" >&5
27659sed 's/^/| /' conftest.$ac_ext >&5
27660
27661 ac_cv_lib_udis86_ud_init=no
27662fi
27663
27664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
27666LIBS=$ac_check_lib_save_LIBS
27667fi
27668{ echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
27669echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
27670if test $ac_cv_lib_udis86_ud_init = yes; then
27671 cat >>confdefs.h <<_ACEOF
27672#define HAVE_LIBUDIS86 1
27673_ACEOF
27674
27675 LIBS="-ludis86 $LIBS"
27676
27677else
27678
27679 echo "Error! You need to have libudis86 around."
27680 exit -1
27681
27682fi
27683
27684
27685else
27686 USE_UDIS86=0
27687
27688fi
27689
27690
27691cat >>confdefs.h <<_ACEOF
27692#define USE_UDIS86 $USE_UDIS86
27693_ACEOF
27694
27695
27696
Reid Spencer59473af2004-12-25 07:31:29 +000027697
27698
27699
27700
27701
27702ac_header_dirent=no
27703for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27704 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027705{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27706echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27707if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027708 echo $ECHO_N "(cached) $ECHO_C" >&6
27709else
27710 cat >conftest.$ac_ext <<_ACEOF
27711/* confdefs.h. */
27712_ACEOF
27713cat confdefs.h >>conftest.$ac_ext
27714cat >>conftest.$ac_ext <<_ACEOF
27715/* end confdefs.h. */
27716#include <sys/types.h>
27717#include <$ac_hdr>
27718
27719int
27720main ()
27721{
27722if ((DIR *) 0)
27723return 0;
27724 ;
27725 return 0;
27726}
27727_ACEOF
27728rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027729if { (ac_try="$ac_compile"
27730case "(($ac_try" in
27731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27732 *) ac_try_echo=$ac_try;;
27733esac
27734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27735 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027736 ac_status=$?
27737 grep -v '^ *+' conftest.er1 >conftest.err
27738 rm -f conftest.er1
27739 cat conftest.err >&5
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746esac
27747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27748 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027749 ac_status=$?
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; } &&
27752 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027753 { (case "(($ac_try" in
27754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27755 *) ac_try_echo=$ac_try;;
27756esac
27757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27758 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027759 ac_status=$?
27760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27761 (exit $ac_status); }; }; then
27762 eval "$as_ac_Header=yes"
27763else
27764 echo "$as_me: failed program was:" >&5
27765sed 's/^/| /' conftest.$ac_ext >&5
27766
Reid Spencera773bd52006-08-04 18:18:08 +000027767 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027768fi
Reid Spencera773bd52006-08-04 18:18:08 +000027769
27770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027771fi
Reid Spencera773bd52006-08-04 18:18:08 +000027772ac_res=`eval echo '${'$as_ac_Header'}'`
27773 { echo "$as_me:$LINENO: result: $ac_res" >&5
27774echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027775if test `eval echo '${'$as_ac_Header'}'` = yes; then
27776 cat >>confdefs.h <<_ACEOF
27777#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27778_ACEOF
27779
27780ac_header_dirent=$ac_hdr; break
27781fi
27782
27783done
27784# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27785if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027786 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27787echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027788if test "${ac_cv_search_opendir+set}" = set; then
27789 echo $ECHO_N "(cached) $ECHO_C" >&6
27790else
27791 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027792cat >conftest.$ac_ext <<_ACEOF
27793/* confdefs.h. */
27794_ACEOF
27795cat confdefs.h >>conftest.$ac_ext
27796cat >>conftest.$ac_ext <<_ACEOF
27797/* end confdefs.h. */
27798
Reid Spencera773bd52006-08-04 18:18:08 +000027799/* Override any GCC internal prototype to avoid an error.
27800 Use char because int might match the return type of a GCC
27801 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027802#ifdef __cplusplus
27803extern "C"
27804#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027805char opendir ();
27806int
27807main ()
27808{
Reid Spencera773bd52006-08-04 18:18:08 +000027809return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027810 ;
27811 return 0;
27812}
27813_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027814for ac_lib in '' dir; do
27815 if test -z "$ac_lib"; then
27816 ac_res="none required"
27817 else
27818 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027819 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027820 fi
27821 rm -f conftest.$ac_objext conftest$ac_exeext
27822if { (ac_try="$ac_link"
27823case "(($ac_try" in
27824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825 *) ac_try_echo=$ac_try;;
27826esac
27827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027829 ac_status=$?
27830 grep -v '^ *+' conftest.er1 >conftest.err
27831 rm -f conftest.er1
27832 cat conftest.err >&5
27833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27836 { (case "(($ac_try" in
27837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838 *) ac_try_echo=$ac_try;;
27839esac
27840eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027842 ac_status=$?
27843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27844 (exit $ac_status); }; } &&
27845 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027846 { (case "(($ac_try" in
27847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848 *) ac_try_echo=$ac_try;;
27849esac
27850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027852 ac_status=$?
27853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027855 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027856else
27857 echo "$as_me: failed program was:" >&5
27858sed 's/^/| /' conftest.$ac_ext >&5
27859
Reid Spencera773bd52006-08-04 18:18:08 +000027860
Reid Spencer59473af2004-12-25 07:31:29 +000027861fi
Reid Spencera773bd52006-08-04 18:18:08 +000027862
27863rm -f core conftest.err conftest.$ac_objext \
27864 conftest$ac_exeext
27865 if test "${ac_cv_search_opendir+set}" = set; then
27866 break
Reid Spencer59473af2004-12-25 07:31:29 +000027867fi
Reid Spencera773bd52006-08-04 18:18:08 +000027868done
27869if test "${ac_cv_search_opendir+set}" = set; then
27870 :
27871else
27872 ac_cv_search_opendir=no
27873fi
27874rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027875LIBS=$ac_func_search_save_LIBS
27876fi
Reid Spencera773bd52006-08-04 18:18:08 +000027877{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27878echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27879ac_res=$ac_cv_search_opendir
27880if test "$ac_res" != no; then
27881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027882
27883fi
27884
27885else
Reid Spencera773bd52006-08-04 18:18:08 +000027886 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27887echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027888if test "${ac_cv_search_opendir+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027892cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
27898
Reid Spencera773bd52006-08-04 18:18:08 +000027899/* Override any GCC internal prototype to avoid an error.
27900 Use char because int might match the return type of a GCC
27901 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027902#ifdef __cplusplus
27903extern "C"
27904#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027905char opendir ();
27906int
27907main ()
27908{
Reid Spencera773bd52006-08-04 18:18:08 +000027909return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027910 ;
27911 return 0;
27912}
27913_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027914for ac_lib in '' x; do
27915 if test -z "$ac_lib"; then
27916 ac_res="none required"
27917 else
27918 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027919 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027920 fi
27921 rm -f conftest.$ac_objext conftest$ac_exeext
27922if { (ac_try="$ac_link"
27923case "(($ac_try" in
27924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925 *) ac_try_echo=$ac_try;;
27926esac
27927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027929 ac_status=$?
27930 grep -v '^ *+' conftest.er1 >conftest.err
27931 rm -f conftest.er1
27932 cat conftest.err >&5
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27936 { (case "(($ac_try" in
27937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27938 *) ac_try_echo=$ac_try;;
27939esac
27940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27941 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027942 ac_status=$?
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); }; } &&
27945 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027946 { (case "(($ac_try" in
27947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27948 *) ac_try_echo=$ac_try;;
27949esac
27950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27951 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027952 ac_status=$?
27953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027955 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027956else
27957 echo "$as_me: failed program was:" >&5
27958sed 's/^/| /' conftest.$ac_ext >&5
27959
Reid Spencera773bd52006-08-04 18:18:08 +000027960
Reid Spencer59473af2004-12-25 07:31:29 +000027961fi
Reid Spencera773bd52006-08-04 18:18:08 +000027962
27963rm -f core conftest.err conftest.$ac_objext \
27964 conftest$ac_exeext
27965 if test "${ac_cv_search_opendir+set}" = set; then
27966 break
Reid Spencer59473af2004-12-25 07:31:29 +000027967fi
Reid Spencera773bd52006-08-04 18:18:08 +000027968done
27969if test "${ac_cv_search_opendir+set}" = set; then
27970 :
27971else
27972 ac_cv_search_opendir=no
27973fi
27974rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027975LIBS=$ac_func_search_save_LIBS
27976fi
Reid Spencera773bd52006-08-04 18:18:08 +000027977{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27978echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27979ac_res=$ac_cv_search_opendir
27980if test "$ac_res" != no; then
27981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027982
27983fi
27984
27985fi
27986
Reid Spencera773bd52006-08-04 18:18:08 +000027987{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27988echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027989if test "${ac_cv_header_mmap_anon+set}" = set; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
27991else
27992 ac_ext=c
27993ac_cpp='$CPP $CPPFLAGS'
27994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27996ac_compiler_gnu=$ac_cv_c_compiler_gnu
27997
27998 cat >conftest.$ac_ext <<_ACEOF
27999/* confdefs.h. */
28000_ACEOF
28001cat confdefs.h >>conftest.$ac_ext
28002cat >>conftest.$ac_ext <<_ACEOF
28003/* end confdefs.h. */
28004#include <sys/mman.h>
28005#include <unistd.h>
28006#include <fcntl.h>
28007int
28008main ()
28009{
28010mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
28011 ;
28012 return 0;
28013}
28014_ACEOF
28015rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028016if { (ac_try="$ac_compile"
28017case "(($ac_try" in
28018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28019 *) ac_try_echo=$ac_try;;
28020esac
28021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28022 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028023 ac_status=$?
28024 grep -v '^ *+' conftest.er1 >conftest.err
28025 rm -f conftest.er1
28026 cat conftest.err >&5
28027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28028 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28030 { (case "(($ac_try" in
28031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28032 *) ac_try_echo=$ac_try;;
28033esac
28034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28035 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028040 { (case "(($ac_try" in
28041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28042 *) ac_try_echo=$ac_try;;
28043esac
28044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28045 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; }; then
28049 ac_cv_header_mmap_anon=yes
28050else
28051 echo "$as_me: failed program was:" >&5
28052sed 's/^/| /' conftest.$ac_ext >&5
28053
Reid Spencera773bd52006-08-04 18:18:08 +000028054 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000028055fi
Reid Spencera773bd52006-08-04 18:18:08 +000028056
28057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000028058 ac_ext=c
28059ac_cpp='$CPP $CPPFLAGS'
28060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28062ac_compiler_gnu=$ac_cv_c_compiler_gnu
28063
28064
28065fi
Reid Spencera773bd52006-08-04 18:18:08 +000028066{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
28067echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028068if test "$ac_cv_header_mmap_anon" = yes; then
28069
28070cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000028071#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000028072_ACEOF
28073
28074fi
28075
Reid Spencera773bd52006-08-04 18:18:08 +000028076{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
28077echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028078if test "${ac_cv_header_stat_broken+set}" = set; then
28079 echo $ECHO_N "(cached) $ECHO_C" >&6
28080else
28081 cat >conftest.$ac_ext <<_ACEOF
28082/* confdefs.h. */
28083_ACEOF
28084cat confdefs.h >>conftest.$ac_ext
28085cat >>conftest.$ac_ext <<_ACEOF
28086/* end confdefs.h. */
28087#include <sys/types.h>
28088#include <sys/stat.h>
28089
Reid Spencera773bd52006-08-04 18:18:08 +000028090#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000028091# if S_ISBLK (S_IFDIR)
28092You lose.
28093# endif
28094#endif
28095
Reid Spencera773bd52006-08-04 18:18:08 +000028096#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000028097# if S_ISBLK (S_IFCHR)
28098You lose.
28099# endif
28100#endif
28101
Reid Spencera773bd52006-08-04 18:18:08 +000028102#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028103# if S_ISLNK (S_IFREG)
28104You lose.
28105# endif
28106#endif
28107
Reid Spencera773bd52006-08-04 18:18:08 +000028108#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000028109# if S_ISSOCK (S_IFREG)
28110You lose.
28111# endif
28112#endif
28113
28114_ACEOF
28115if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28116 $EGREP "You lose" >/dev/null 2>&1; then
28117 ac_cv_header_stat_broken=yes
28118else
28119 ac_cv_header_stat_broken=no
28120fi
28121rm -f conftest*
28122
28123fi
Reid Spencera773bd52006-08-04 18:18:08 +000028124{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28125echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028126if test $ac_cv_header_stat_broken = yes; then
28127
28128cat >>confdefs.h <<\_ACEOF
28129#define STAT_MACROS_BROKEN 1
28130_ACEOF
28131
28132fi
28133
Reid Spencera773bd52006-08-04 18:18:08 +000028134{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28135echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028136if test "${ac_cv_header_stdc+set}" = set; then
28137 echo $ECHO_N "(cached) $ECHO_C" >&6
28138else
28139 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028140/* confdefs.h. */
28141_ACEOF
28142cat confdefs.h >>conftest.$ac_ext
28143cat >>conftest.$ac_ext <<_ACEOF
28144/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028145#include <stdlib.h>
28146#include <stdarg.h>
28147#include <string.h>
28148#include <float.h>
28149
John Criswell0c38eaf2003-09-10 15:17:25 +000028150int
28151main ()
28152{
28153
28154 ;
28155 return 0;
28156}
John Criswell7a73b802003-06-30 21:59:07 +000028157_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028158rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028159if { (ac_try="$ac_compile"
28160case "(($ac_try" in
28161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162 *) ac_try_echo=$ac_try;;
28163esac
28164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028166 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028171 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173 { (case "(($ac_try" in
28174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175 *) ac_try_echo=$ac_try;;
28176esac
28177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; } &&
28182 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028183 { (case "(($ac_try" in
28184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185 *) ac_try_echo=$ac_try;;
28186esac
28187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028192 ac_cv_header_stdc=yes
28193else
28194 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028195sed 's/^/| /' conftest.$ac_ext >&5
28196
Reid Spencera773bd52006-08-04 18:18:08 +000028197 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028198fi
Reid Spencera773bd52006-08-04 18:18:08 +000028199
28200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028201
28202if test $ac_cv_header_stdc = yes; then
28203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28204 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028205/* confdefs.h. */
28206_ACEOF
28207cat confdefs.h >>conftest.$ac_ext
28208cat >>conftest.$ac_ext <<_ACEOF
28209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028210#include <string.h>
28211
28212_ACEOF
28213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028214 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028215 :
28216else
28217 ac_cv_header_stdc=no
28218fi
28219rm -f conftest*
28220
28221fi
28222
28223if test $ac_cv_header_stdc = yes; then
28224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28225 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028226/* confdefs.h. */
28227_ACEOF
28228cat confdefs.h >>conftest.$ac_ext
28229cat >>conftest.$ac_ext <<_ACEOF
28230/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028231#include <stdlib.h>
28232
28233_ACEOF
28234if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028235 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028236 :
28237else
28238 ac_cv_header_stdc=no
28239fi
28240rm -f conftest*
28241
28242fi
28243
28244if test $ac_cv_header_stdc = yes; then
28245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28246 if test "$cross_compiling" = yes; then
28247 :
28248else
28249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028250/* confdefs.h. */
28251_ACEOF
28252cat confdefs.h >>conftest.$ac_ext
28253cat >>conftest.$ac_ext <<_ACEOF
28254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028255#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028256#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028257#if ((' ' & 0x0FF) == 0x020)
28258# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28259# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28260#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028261# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028262 (('a' <= (c) && (c) <= 'i') \
28263 || ('j' <= (c) && (c) <= 'r') \
28264 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028265# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28266#endif
28267
28268#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28269int
28270main ()
28271{
28272 int i;
28273 for (i = 0; i < 256; i++)
28274 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028275 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028276 return 2;
28277 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028278}
28279_ACEOF
28280rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028281if { (ac_try="$ac_link"
28282case "(($ac_try" in
28283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284 *) ac_try_echo=$ac_try;;
28285esac
28286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028291 { (case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 :
28301else
28302 echo "$as_me: program exited with status $ac_status" >&5
28303echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028304sed 's/^/| /' conftest.$ac_ext >&5
28305
John Criswell7a73b802003-06-30 21:59:07 +000028306( exit $ac_status )
28307ac_cv_header_stdc=no
28308fi
Reid Spencera773bd52006-08-04 18:18:08 +000028309rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28310fi
28311
28312
John Criswell7a73b802003-06-30 21:59:07 +000028313fi
28314fi
Reid Spencera773bd52006-08-04 18:18:08 +000028315{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28316echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028317if test $ac_cv_header_stdc = yes; then
28318
28319cat >>confdefs.h <<\_ACEOF
28320#define STDC_HEADERS 1
28321_ACEOF
28322
28323fi
28324
Reid Spencera773bd52006-08-04 18:18:08 +000028325{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28326echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028327if test "${ac_cv_header_sys_wait_h+set}" = set; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28329else
28330 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028331/* confdefs.h. */
28332_ACEOF
28333cat confdefs.h >>conftest.$ac_ext
28334cat >>conftest.$ac_ext <<_ACEOF
28335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028336#include <sys/types.h>
28337#include <sys/wait.h>
28338#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028339# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028340#endif
28341#ifndef WIFEXITED
28342# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28343#endif
28344
John Criswell7a73b802003-06-30 21:59:07 +000028345int
28346main ()
28347{
28348 int s;
28349 wait (&s);
28350 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28351 ;
28352 return 0;
28353}
28354_ACEOF
28355rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028356if { (ac_try="$ac_compile"
28357case "(($ac_try" in
28358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28359 *) ac_try_echo=$ac_try;;
28360esac
28361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28362 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28370 { (case "(($ac_try" in
28371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28372 *) ac_try_echo=$ac_try;;
28373esac
28374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28375 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028376 ac_status=$?
28377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28378 (exit $ac_status); }; } &&
28379 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028380 { (case "(($ac_try" in
28381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28382 *) ac_try_echo=$ac_try;;
28383esac
28384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28385 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028386 ac_status=$?
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); }; }; then
28389 ac_cv_header_sys_wait_h=yes
28390else
28391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028392sed 's/^/| /' conftest.$ac_ext >&5
28393
Reid Spencera773bd52006-08-04 18:18:08 +000028394 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028395fi
Reid Spencera773bd52006-08-04 18:18:08 +000028396
28397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028398fi
Reid Spencera773bd52006-08-04 18:18:08 +000028399{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28400echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028401if test $ac_cv_header_sys_wait_h = yes; then
28402
28403cat >>confdefs.h <<\_ACEOF
28404#define HAVE_SYS_WAIT_H 1
28405_ACEOF
28406
28407fi
28408
Reid Spencera773bd52006-08-04 18:18:08 +000028409{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28410echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028411if test "${ac_cv_header_time+set}" = set; then
28412 echo $ECHO_N "(cached) $ECHO_C" >&6
28413else
28414 cat >conftest.$ac_ext <<_ACEOF
28415/* confdefs.h. */
28416_ACEOF
28417cat confdefs.h >>conftest.$ac_ext
28418cat >>conftest.$ac_ext <<_ACEOF
28419/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028420#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028421#include <sys/time.h>
28422#include <time.h>
28423
28424int
28425main ()
28426{
28427if ((struct tm *) 0)
28428return 0;
28429 ;
28430 return 0;
28431}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028432_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028433rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028434if { (ac_try="$ac_compile"
28435case "(($ac_try" in
28436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437 *) ac_try_echo=$ac_try;;
28438esac
28439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028441 ac_status=$?
28442 grep -v '^ *+' conftest.er1 >conftest.err
28443 rm -f conftest.er1
28444 cat conftest.err >&5
28445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028446 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28448 { (case "(($ac_try" in
28449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450 *) ac_try_echo=$ac_try;;
28451esac
28452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028454 ac_status=$?
28455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456 (exit $ac_status); }; } &&
28457 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028458 { (case "(($ac_try" in
28459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460 *) ac_try_echo=$ac_try;;
28461esac
28462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028464 ac_status=$?
28465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466 (exit $ac_status); }; }; then
28467 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028468else
28469 echo "$as_me: failed program was:" >&5
28470sed 's/^/| /' conftest.$ac_ext >&5
28471
Reid Spencera773bd52006-08-04 18:18:08 +000028472 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028473fi
Reid Spencera773bd52006-08-04 18:18:08 +000028474
28475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028476fi
Reid Spencera773bd52006-08-04 18:18:08 +000028477{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28478echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028479if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028480
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028481cat >>confdefs.h <<\_ACEOF
28482#define TIME_WITH_SYS_TIME 1
28483_ACEOF
28484
28485fi
28486
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028487
Reid Spencer59473af2004-12-25 07:31:29 +000028488
28489
28490
28491
28492
28493
28494for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28495do
28496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28500if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028501 echo $ECHO_N "(cached) $ECHO_C" >&6
28502fi
Reid Spencera773bd52006-08-04 18:18:08 +000028503ac_res=`eval echo '${'$as_ac_Header'}'`
28504 { echo "$as_me:$LINENO: result: $ac_res" >&5
28505echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028506else
28507 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028508{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028510cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028516$ac_includes_default
28517#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028518_ACEOF
28519rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028520if { (ac_try="$ac_compile"
28521case "(($ac_try" in
28522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523 *) ac_try_echo=$ac_try;;
28524esac
28525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028527 ac_status=$?
28528 grep -v '^ *+' conftest.er1 >conftest.err
28529 rm -f conftest.er1
28530 cat conftest.err >&5
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28534 { (case "(($ac_try" in
28535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536 *) ac_try_echo=$ac_try;;
28537esac
28538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028540 ac_status=$?
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); }; } &&
28543 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028544 { (case "(($ac_try" in
28545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546 *) ac_try_echo=$ac_try;;
28547esac
28548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028553 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028554else
28555 echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
Reid Spencera773bd52006-08-04 18:18:08 +000028558 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028559fi
Reid Spencera773bd52006-08-04 18:18:08 +000028560
28561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28562{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28563echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028564
Reid Spencer59473af2004-12-25 07:31:29 +000028565# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028566{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28567echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028568cat >conftest.$ac_ext <<_ACEOF
28569/* confdefs.h. */
28570_ACEOF
28571cat confdefs.h >>conftest.$ac_ext
28572cat >>conftest.$ac_ext <<_ACEOF
28573/* end confdefs.h. */
28574#include <$ac_header>
28575_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028576if { (ac_try="$ac_cpp conftest.$ac_ext"
28577case "(($ac_try" in
28578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28579 *) ac_try_echo=$ac_try;;
28580esac
28581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028583 ac_status=$?
28584 grep -v '^ *+' conftest.er1 >conftest.err
28585 rm -f conftest.er1
28586 cat conftest.err >&5
28587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28588 (exit $ac_status); } >/dev/null; then
28589 if test -s conftest.err; then
28590 ac_cpp_err=$ac_c_preproc_warn_flag
28591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28592 else
28593 ac_cpp_err=
28594 fi
28595else
28596 ac_cpp_err=yes
28597fi
28598if test -z "$ac_cpp_err"; then
28599 ac_header_preproc=yes
28600else
28601 echo "$as_me: failed program was:" >&5
28602sed 's/^/| /' conftest.$ac_ext >&5
28603
28604 ac_header_preproc=no
28605fi
Reid Spencera773bd52006-08-04 18:18:08 +000028606
Reid Spencer59473af2004-12-25 07:31:29 +000028607rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028608{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28609echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028610
28611# So? What about this header?
28612case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28613 yes:no: )
28614 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28615echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28616 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28617echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28618 ac_header_preproc=yes
28619 ;;
28620 no:yes:* )
28621 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28622echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28623 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28624echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28625 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28626echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28627 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28628echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28630echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28631 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28632echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028633 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028634## ----------------------------------- ##
28635## Report this to llvmbugs@cs.uiuc.edu ##
28636## ----------------------------------- ##
28637_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028638 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028639 ;;
28640esac
Reid Spencera773bd52006-08-04 18:18:08 +000028641{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 eval "$as_ac_Header=\$ac_header_preproc"
28647fi
Reid Spencera773bd52006-08-04 18:18:08 +000028648ac_res=`eval echo '${'$as_ac_Header'}'`
28649 { echo "$as_me:$LINENO: result: $ac_res" >&5
28650echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028651
28652fi
Reid Spencer59473af2004-12-25 07:31:29 +000028653if test `eval echo '${'$as_ac_Header'}'` = yes; then
28654 cat >>confdefs.h <<_ACEOF
28655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028656_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028657
28658fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028659
Reid Spencer59473af2004-12-25 07:31:29 +000028660done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028661
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028662
28663
Reid Spencer59473af2004-12-25 07:31:29 +000028664
28665
28666
28667
Reid Spencercdb08a32006-06-05 16:11:07 +000028668for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028669do
28670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028671if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28674if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028675 echo $ECHO_N "(cached) $ECHO_C" >&6
28676fi
Reid Spencera773bd52006-08-04 18:18:08 +000028677ac_res=`eval echo '${'$as_ac_Header'}'`
28678 { echo "$as_me:$LINENO: result: $ac_res" >&5
28679echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028680else
28681 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028682{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028684cat >conftest.$ac_ext <<_ACEOF
28685/* confdefs.h. */
28686_ACEOF
28687cat confdefs.h >>conftest.$ac_ext
28688cat >>conftest.$ac_ext <<_ACEOF
28689/* end confdefs.h. */
28690$ac_includes_default
28691#include <$ac_header>
28692_ACEOF
28693rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028694if { (ac_try="$ac_compile"
28695case "(($ac_try" in
28696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697 *) ac_try_echo=$ac_try;;
28698esac
28699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028701 ac_status=$?
28702 grep -v '^ *+' conftest.er1 >conftest.err
28703 rm -f conftest.er1
28704 cat conftest.err >&5
28705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28706 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28708 { (case "(($ac_try" in
28709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28710 *) ac_try_echo=$ac_try;;
28711esac
28712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28713 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028718 { (case "(($ac_try" in
28719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28720 *) ac_try_echo=$ac_try;;
28721esac
28722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28723 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_header_compiler=yes
28728else
28729 echo "$as_me: failed program was:" >&5
28730sed 's/^/| /' conftest.$ac_ext >&5
28731
Reid Spencera773bd52006-08-04 18:18:08 +000028732 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028733fi
Reid Spencera773bd52006-08-04 18:18:08 +000028734
28735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28737echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028738
28739# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028740{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28741echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028742cat >conftest.$ac_ext <<_ACEOF
28743/* confdefs.h. */
28744_ACEOF
28745cat confdefs.h >>conftest.$ac_ext
28746cat >>conftest.$ac_ext <<_ACEOF
28747/* end confdefs.h. */
28748#include <$ac_header>
28749_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028750if { (ac_try="$ac_cpp conftest.$ac_ext"
28751case "(($ac_try" in
28752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753 *) ac_try_echo=$ac_try;;
28754esac
28755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028757 ac_status=$?
28758 grep -v '^ *+' conftest.er1 >conftest.err
28759 rm -f conftest.er1
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } >/dev/null; then
28763 if test -s conftest.err; then
28764 ac_cpp_err=$ac_c_preproc_warn_flag
28765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28766 else
28767 ac_cpp_err=
28768 fi
28769else
28770 ac_cpp_err=yes
28771fi
28772if test -z "$ac_cpp_err"; then
28773 ac_header_preproc=yes
28774else
28775 echo "$as_me: failed program was:" >&5
28776sed 's/^/| /' conftest.$ac_ext >&5
28777
28778 ac_header_preproc=no
28779fi
Reid Spencera773bd52006-08-04 18:18:08 +000028780
Reid Spencer59473af2004-12-25 07:31:29 +000028781rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028782{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28783echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028784
28785# So? What about this header?
28786case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28787 yes:no: )
28788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28789echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28791echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28792 ac_header_preproc=yes
28793 ;;
28794 no:yes:* )
28795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28796echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28798echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28800echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28802echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28806echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028807 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028808## ----------------------------------- ##
28809## Report this to llvmbugs@cs.uiuc.edu ##
28810## ----------------------------------- ##
28811_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028812 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028813 ;;
28814esac
Reid Spencera773bd52006-08-04 18:18:08 +000028815{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028818 echo $ECHO_N "(cached) $ECHO_C" >&6
28819else
28820 eval "$as_ac_Header=\$ac_header_preproc"
28821fi
Reid Spencera773bd52006-08-04 18:18:08 +000028822ac_res=`eval echo '${'$as_ac_Header'}'`
28823 { echo "$as_me:$LINENO: result: $ac_res" >&5
28824echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028825
28826fi
28827if test `eval echo '${'$as_ac_Header'}'` = yes; then
28828 cat >>confdefs.h <<_ACEOF
28829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28830_ACEOF
28831
28832fi
28833
28834done
28835
28836
28837
28838
28839
28840
Reid Spencercdb08a32006-06-05 16:11:07 +000028841for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028842do
28843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028844if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849fi
Reid Spencera773bd52006-08-04 18:18:08 +000028850ac_res=`eval echo '${'$as_ac_Header'}'`
28851 { echo "$as_me:$LINENO: result: $ac_res" >&5
28852echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028853else
28854 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028855{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028857cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028858/* confdefs.h. */
28859_ACEOF
28860cat confdefs.h >>conftest.$ac_ext
28861cat >>conftest.$ac_ext <<_ACEOF
28862/* end confdefs.h. */
28863$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028864#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028865_ACEOF
28866rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028867if { (ac_try="$ac_compile"
28868case "(($ac_try" in
28869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28870 *) ac_try_echo=$ac_try;;
28871esac
28872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28873 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028875 grep -v '^ *+' conftest.er1 >conftest.err
28876 rm -f conftest.er1
28877 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28879 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28881 { (case "(($ac_try" in
28882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28883 *) ac_try_echo=$ac_try;;
28884esac
28885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28886 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; } &&
28890 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028891 { (case "(($ac_try" in
28892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893 *) ac_try_echo=$ac_try;;
28894esac
28895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ac_header_compiler=yes
28901else
28902 echo "$as_me: failed program was:" >&5
28903sed 's/^/| /' conftest.$ac_ext >&5
28904
Reid Spencera773bd52006-08-04 18:18:08 +000028905 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028906fi
Reid Spencera773bd52006-08-04 18:18:08 +000028907
28908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28909{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28910echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028911
28912# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028913{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028915cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028916/* confdefs.h. */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028921#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028922_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028923if { (ac_try="$ac_cpp conftest.$ac_ext"
28924case "(($ac_try" in
28925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926 *) ac_try_echo=$ac_try;;
28927esac
28928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028930 ac_status=$?
28931 grep -v '^ *+' conftest.er1 >conftest.err
28932 rm -f conftest.er1
28933 cat conftest.err >&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); } >/dev/null; then
28936 if test -s conftest.err; then
28937 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028938 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028939 else
28940 ac_cpp_err=
28941 fi
28942else
28943 ac_cpp_err=yes
28944fi
28945if test -z "$ac_cpp_err"; then
28946 ac_header_preproc=yes
28947else
28948 echo "$as_me: failed program was:" >&5
28949sed 's/^/| /' conftest.$ac_ext >&5
28950
28951 ac_header_preproc=no
28952fi
Reid Spencera773bd52006-08-04 18:18:08 +000028953
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028954rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028955{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28956echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028957
28958# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028959case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28960 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28962echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28964echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028965 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028966 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028967 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28969echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28971echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28973echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28975echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28977echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28979echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028980 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028981## ----------------------------------- ##
28982## Report this to llvmbugs@cs.uiuc.edu ##
28983## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028984_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028985 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028986 ;;
28987esac
Reid Spencera773bd52006-08-04 18:18:08 +000028988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028991 echo $ECHO_N "(cached) $ECHO_C" >&6
28992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028993 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028994fi
Reid Spencera773bd52006-08-04 18:18:08 +000028995ac_res=`eval echo '${'$as_ac_Header'}'`
28996 { echo "$as_me:$LINENO: result: $ac_res" >&5
28997echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028998
28999fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029000if test `eval echo '${'$as_ac_Header'}'` = yes; then
29001 cat >>confdefs.h <<_ACEOF
29002#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000029003_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000029004
29005fi
John Criswell7ed43ad2004-07-19 16:12:29 +000029006
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029007done
29008
John Criswell7ed43ad2004-07-19 16:12:29 +000029009
Reid Spencercdb08a32006-06-05 16:11:07 +000029010
Reid Spencera6d990a2006-09-14 06:17:21 +000029011
29012for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000029013do
29014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29018if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029019 echo $ECHO_N "(cached) $ECHO_C" >&6
29020fi
Reid Spencera773bd52006-08-04 18:18:08 +000029021ac_res=`eval echo '${'$as_ac_Header'}'`
29022 { echo "$as_me:$LINENO: result: $ac_res" >&5
29023echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029024else
29025 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000029026{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
29027echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029028cat >conftest.$ac_ext <<_ACEOF
29029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
29034$ac_includes_default
29035#include <$ac_header>
29036_ACEOF
29037rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029038if { (ac_try="$ac_compile"
29039case "(($ac_try" in
29040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29041 *) ac_try_echo=$ac_try;;
29042esac
29043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29044 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029045 ac_status=$?
29046 grep -v '^ *+' conftest.er1 >conftest.err
29047 rm -f conftest.er1
29048 cat conftest.err >&5
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29052 { (case "(($ac_try" in
29053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054 *) ac_try_echo=$ac_try;;
29055esac
29056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029058 ac_status=$?
29059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29060 (exit $ac_status); }; } &&
29061 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029062 { (case "(($ac_try" in
29063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29064 *) ac_try_echo=$ac_try;;
29065esac
29066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29067 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000029068 ac_status=$?
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); }; }; then
29071 ac_header_compiler=yes
29072else
29073 echo "$as_me: failed program was:" >&5
29074sed 's/^/| /' conftest.$ac_ext >&5
29075
Reid Spencera773bd52006-08-04 18:18:08 +000029076 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000029077fi
Reid Spencera773bd52006-08-04 18:18:08 +000029078
29079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29080{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29081echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029082
29083# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000029084{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
29085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029086cat >conftest.$ac_ext <<_ACEOF
29087/* confdefs.h. */
29088_ACEOF
29089cat confdefs.h >>conftest.$ac_ext
29090cat >>conftest.$ac_ext <<_ACEOF
29091/* end confdefs.h. */
29092#include <$ac_header>
29093_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029094if { (ac_try="$ac_cpp conftest.$ac_ext"
29095case "(($ac_try" in
29096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29097 *) ac_try_echo=$ac_try;;
29098esac
29099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000029101 ac_status=$?
29102 grep -v '^ *+' conftest.er1 >conftest.err
29103 rm -f conftest.er1
29104 cat conftest.err >&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); } >/dev/null; then
29107 if test -s conftest.err; then
29108 ac_cpp_err=$ac_c_preproc_warn_flag
29109 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29110 else
29111 ac_cpp_err=
29112 fi
29113else
29114 ac_cpp_err=yes
29115fi
29116if test -z "$ac_cpp_err"; then
29117 ac_header_preproc=yes
29118else
29119 echo "$as_me: failed program was:" >&5
29120sed 's/^/| /' conftest.$ac_ext >&5
29121
29122 ac_header_preproc=no
29123fi
Reid Spencera773bd52006-08-04 18:18:08 +000029124
Chris Lattner0b142592005-11-14 06:57:34 +000029125rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029126{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29127echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029128
29129# So? What about this header?
29130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29131 yes:no: )
29132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29136 ac_header_preproc=yes
29137 ;;
29138 no:yes:* )
29139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029151 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029152## ----------------------------------- ##
29153## Report this to llvmbugs@cs.uiuc.edu ##
29154## ----------------------------------- ##
29155_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029156 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029157 ;;
29158esac
Reid Spencera773bd52006-08-04 18:18:08 +000029159{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29161if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029162 echo $ECHO_N "(cached) $ECHO_C" >&6
29163else
29164 eval "$as_ac_Header=\$ac_header_preproc"
29165fi
Reid Spencera773bd52006-08-04 18:18:08 +000029166ac_res=`eval echo '${'$as_ac_Header'}'`
29167 { echo "$as_me:$LINENO: result: $ac_res" >&5
29168echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029169
29170fi
29171if test `eval echo '${'$as_ac_Header'}'` = yes; then
29172 cat >>confdefs.h <<_ACEOF
29173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29174_ACEOF
29175
29176fi
29177
29178done
29179
Reid Spencer0a262ba2005-08-24 10:07:20 +000029180if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029181 if test "${ac_cv_header_pthread_h+set}" = set; then
29182 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29183echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29184if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029185 echo $ECHO_N "(cached) $ECHO_C" >&6
29186fi
Reid Spencer1000b732006-12-01 00:37:14 +000029187{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29188echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029189else
29190 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029191{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29192echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029193cat >conftest.$ac_ext <<_ACEOF
29194/* confdefs.h. */
29195_ACEOF
29196cat confdefs.h >>conftest.$ac_ext
29197cat >>conftest.$ac_ext <<_ACEOF
29198/* end confdefs.h. */
29199$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029200#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029201_ACEOF
29202rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029203if { (ac_try="$ac_compile"
29204case "(($ac_try" in
29205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29206 *) ac_try_echo=$ac_try;;
29207esac
29208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29209 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029210 ac_status=$?
29211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29217 { (case "(($ac_try" in
29218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29219 *) ac_try_echo=$ac_try;;
29220esac
29221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29222 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029223 ac_status=$?
29224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29225 (exit $ac_status); }; } &&
29226 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029227 { (case "(($ac_try" in
29228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29229 *) ac_try_echo=$ac_try;;
29230esac
29231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29232 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029233 ac_status=$?
29234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29235 (exit $ac_status); }; }; then
29236 ac_header_compiler=yes
29237else
29238 echo "$as_me: failed program was:" >&5
29239sed 's/^/| /' conftest.$ac_ext >&5
29240
Reid Spencera773bd52006-08-04 18:18:08 +000029241 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029242fi
Reid Spencera773bd52006-08-04 18:18:08 +000029243
29244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29245{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29246echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029247
29248# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029249{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29250echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029251cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029257#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029258_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029259if { (ac_try="$ac_cpp conftest.$ac_ext"
29260case "(($ac_try" in
29261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29262 *) ac_try_echo=$ac_try;;
29263esac
29264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029266 ac_status=$?
29267 grep -v '^ *+' conftest.er1 >conftest.err
29268 rm -f conftest.er1
29269 cat conftest.err >&5
29270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271 (exit $ac_status); } >/dev/null; then
29272 if test -s conftest.err; then
29273 ac_cpp_err=$ac_c_preproc_warn_flag
29274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29275 else
29276 ac_cpp_err=
29277 fi
29278else
29279 ac_cpp_err=yes
29280fi
29281if test -z "$ac_cpp_err"; then
29282 ac_header_preproc=yes
29283else
29284 echo "$as_me: failed program was:" >&5
29285sed 's/^/| /' conftest.$ac_ext >&5
29286
29287 ac_header_preproc=no
29288fi
Reid Spencera773bd52006-08-04 18:18:08 +000029289
Reid Spencer0a262ba2005-08-24 10:07:20 +000029290rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029291{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29292echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029293
29294# So? What about this header?
29295case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29296 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029297 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29298echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29299 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29300echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029301 ac_header_preproc=yes
29302 ;;
29303 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029304 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29305echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29307echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29308 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29309echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29310 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29311echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29312 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29313echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29314 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29315echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029316 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029317## ----------------------------------- ##
29318## Report this to llvmbugs@cs.uiuc.edu ##
29319## ----------------------------------- ##
29320_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029321 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029322 ;;
29323esac
Reid Spencer1000b732006-12-01 00:37:14 +000029324{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29325echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29326if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029327 echo $ECHO_N "(cached) $ECHO_C" >&6
29328else
Reid Spencer1000b732006-12-01 00:37:14 +000029329 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029330fi
Reid Spencer1000b732006-12-01 00:37:14 +000029331{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29332echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029333
29334fi
Reid Spencer1000b732006-12-01 00:37:14 +000029335if test $ac_cv_header_pthread_h = yes; then
29336 HAVE_PTHREAD=1
29337
29338else
29339 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029340
29341fi
29342
Reid Spencer1000b732006-12-01 00:37:14 +000029343
29344else
29345 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029346
29347fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029348
29349
Reid Spencerb2ed05262006-11-03 18:04:08 +000029350
29351 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29352echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29353if test "${ac_cv_huge_val_sanity+set}" = set; then
29354 echo $ECHO_N "(cached) $ECHO_C" >&6
29355else
29356
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029357 ac_ext=cpp
29358ac_cpp='$CXXCPP $CPPFLAGS'
29359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029362
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029363 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029364 if test "$cross_compiling" = yes; then
29365 ac_cv_huge_val_sanity=yes
29366else
29367 cat >conftest.$ac_ext <<_ACEOF
29368/* confdefs.h. */
29369_ACEOF
29370cat confdefs.h >>conftest.$ac_ext
29371cat >>conftest.$ac_ext <<_ACEOF
29372/* end confdefs.h. */
29373#include <math.h>
29374int
29375main ()
29376{
29377double x = HUGE_VAL; return x != x;
29378 ;
29379 return 0;
29380}
29381_ACEOF
29382rm -f conftest$ac_exeext
29383if { (ac_try="$ac_link"
29384case "(($ac_try" in
29385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29386 *) ac_try_echo=$ac_try;;
29387esac
29388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29389 (eval "$ac_link") 2>&5
29390 ac_status=$?
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29393 { (case "(($ac_try" in
29394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29395 *) ac_try_echo=$ac_try;;
29396esac
29397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29398 (eval "$ac_try") 2>&5
29399 ac_status=$?
29400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); }; }; then
29402 ac_cv_huge_val_sanity=yes
29403else
29404 echo "$as_me: program exited with status $ac_status" >&5
29405echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408( exit $ac_status )
29409ac_cv_huge_val_sanity=no
29410fi
29411rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29412fi
29413
29414
29415 ac_ext=c
29416ac_cpp='$CPP $CPPFLAGS'
29417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29419ac_compiler_gnu=$ac_cv_c_compiler_gnu
29420
29421
29422fi
29423{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29424echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29425 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29426
29427
Reid Spencera773bd52006-08-04 18:18:08 +000029428{ echo "$as_me:$LINENO: checking for pid_t" >&5
29429echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029430if test "${ac_cv_type_pid_t+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29432else
29433 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029434/* confdefs.h. */
29435_ACEOF
29436cat confdefs.h >>conftest.$ac_ext
29437cat >>conftest.$ac_ext <<_ACEOF
29438/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029439$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029440typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029441int
29442main ()
29443{
Reid Spencera773bd52006-08-04 18:18:08 +000029444if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029445 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029446if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029447 return 0;
29448 ;
29449 return 0;
29450}
29451_ACEOF
29452rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029453if { (ac_try="$ac_compile"
29454case "(($ac_try" in
29455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29456 *) ac_try_echo=$ac_try;;
29457esac
29458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29459 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029461 grep -v '^ *+' conftest.er1 >conftest.err
29462 rm -f conftest.er1
29463 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29465 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29467 { (case "(($ac_try" in
29468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29469 *) ac_try_echo=$ac_try;;
29470esac
29471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29472 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029477 { (case "(($ac_try" in
29478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29479 *) ac_try_echo=$ac_try;;
29480esac
29481eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29482 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029483 ac_status=$?
29484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485 (exit $ac_status); }; }; then
29486 ac_cv_type_pid_t=yes
29487else
29488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029489sed 's/^/| /' conftest.$ac_ext >&5
29490
Reid Spencera773bd52006-08-04 18:18:08 +000029491 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029492fi
Reid Spencera773bd52006-08-04 18:18:08 +000029493
29494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029495fi
Reid Spencera773bd52006-08-04 18:18:08 +000029496{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29497echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029498if test $ac_cv_type_pid_t = yes; then
29499 :
29500else
29501
29502cat >>confdefs.h <<_ACEOF
29503#define pid_t int
29504_ACEOF
29505
29506fi
29507
Reid Spencera773bd52006-08-04 18:18:08 +000029508{ echo "$as_me:$LINENO: checking for size_t" >&5
29509echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029510if test "${ac_cv_type_size_t+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29512else
29513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029514/* confdefs.h. */
29515_ACEOF
29516cat confdefs.h >>conftest.$ac_ext
29517cat >>conftest.$ac_ext <<_ACEOF
29518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029519$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029520typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029521int
29522main ()
29523{
Reid Spencera773bd52006-08-04 18:18:08 +000029524if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029525 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029526if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029527 return 0;
29528 ;
29529 return 0;
29530}
29531_ACEOF
29532rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029533if { (ac_try="$ac_compile"
29534case "(($ac_try" in
29535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536 *) ac_try_echo=$ac_try;;
29537esac
29538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029541 grep -v '^ *+' conftest.er1 >conftest.err
29542 rm -f conftest.er1
29543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29547 { (case "(($ac_try" in
29548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29549 *) ac_try_echo=$ac_try;;
29550esac
29551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29552 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; } &&
29556 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029557 { (case "(($ac_try" in
29558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29559 *) ac_try_echo=$ac_try;;
29560esac
29561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29562 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029563 ac_status=$?
29564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; }; then
29566 ac_cv_type_size_t=yes
29567else
29568 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029569sed 's/^/| /' conftest.$ac_ext >&5
29570
Reid Spencera773bd52006-08-04 18:18:08 +000029571 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029572fi
Reid Spencera773bd52006-08-04 18:18:08 +000029573
29574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029575fi
Reid Spencera773bd52006-08-04 18:18:08 +000029576{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29577echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029578if test $ac_cv_type_size_t = yes; then
29579 :
29580else
29581
29582cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029583#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029584_ACEOF
29585
29586fi
29587
Reid Spencera773bd52006-08-04 18:18:08 +000029588{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29589echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029590if test "${ac_cv_type_signal+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29592else
29593 cat >conftest.$ac_ext <<_ACEOF
29594/* confdefs.h. */
29595_ACEOF
29596cat confdefs.h >>conftest.$ac_ext
29597cat >>conftest.$ac_ext <<_ACEOF
29598/* end confdefs.h. */
29599#include <sys/types.h>
29600#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029601
29602int
29603main ()
29604{
Reid Spencera773bd52006-08-04 18:18:08 +000029605return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029606 ;
29607 return 0;
29608}
29609_ACEOF
29610rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029611if { (ac_try="$ac_compile"
29612case "(($ac_try" in
29613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614 *) ac_try_echo=$ac_try;;
29615esac
29616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29617 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029618 ac_status=$?
29619 grep -v '^ *+' conftest.er1 >conftest.err
29620 rm -f conftest.er1
29621 cat conftest.err >&5
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29625 { (case "(($ac_try" in
29626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627 *) ac_try_echo=$ac_try;;
29628esac
29629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029631 ac_status=$?
29632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633 (exit $ac_status); }; } &&
29634 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029635 { (case "(($ac_try" in
29636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637 *) ac_try_echo=$ac_try;;
29638esac
29639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029644 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029645else
29646 echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
Reid Spencera773bd52006-08-04 18:18:08 +000029649 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029650fi
Reid Spencera773bd52006-08-04 18:18:08 +000029651
29652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029653fi
Reid Spencera773bd52006-08-04 18:18:08 +000029654{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29655echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029656
29657cat >>confdefs.h <<_ACEOF
29658#define RETSIGTYPE $ac_cv_type_signal
29659_ACEOF
29660
29661
Reid Spencera773bd52006-08-04 18:18:08 +000029662{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29663echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029664if test "${ac_cv_struct_tm+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
29666else
29667 cat >conftest.$ac_ext <<_ACEOF
29668/* confdefs.h. */
29669_ACEOF
29670cat confdefs.h >>conftest.$ac_ext
29671cat >>conftest.$ac_ext <<_ACEOF
29672/* end confdefs.h. */
29673#include <sys/types.h>
29674#include <time.h>
29675
29676int
29677main ()
29678{
29679struct tm *tp; tp->tm_sec;
29680 ;
29681 return 0;
29682}
29683_ACEOF
29684rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029685if { (ac_try="$ac_compile"
29686case "(($ac_try" in
29687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29688 *) ac_try_echo=$ac_try;;
29689esac
29690eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29691 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029692 ac_status=$?
29693 grep -v '^ *+' conftest.er1 >conftest.err
29694 rm -f conftest.er1
29695 cat conftest.err >&5
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29699 { (case "(($ac_try" in
29700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29701 *) ac_try_echo=$ac_try;;
29702esac
29703eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29704 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029705 ac_status=$?
29706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29707 (exit $ac_status); }; } &&
29708 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029709 { (case "(($ac_try" in
29710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29711 *) ac_try_echo=$ac_try;;
29712esac
29713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29714 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029715 ac_status=$?
29716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29717 (exit $ac_status); }; }; then
29718 ac_cv_struct_tm=time.h
29719else
29720 echo "$as_me: failed program was:" >&5
29721sed 's/^/| /' conftest.$ac_ext >&5
29722
Reid Spencera773bd52006-08-04 18:18:08 +000029723 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029724fi
Reid Spencera773bd52006-08-04 18:18:08 +000029725
29726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029727fi
Reid Spencera773bd52006-08-04 18:18:08 +000029728{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29729echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029730if test $ac_cv_struct_tm = sys/time.h; then
29731
29732cat >>confdefs.h <<\_ACEOF
29733#define TM_IN_SYS_TIME 1
29734_ACEOF
29735
29736fi
29737
Reid Spencera773bd52006-08-04 18:18:08 +000029738{ echo "$as_me:$LINENO: checking for int64_t" >&5
29739echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029740if test "${ac_cv_type_int64_t+set}" = set; then
29741 echo $ECHO_N "(cached) $ECHO_C" >&6
29742else
29743 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029744/* confdefs.h. */
29745_ACEOF
29746cat confdefs.h >>conftest.$ac_ext
29747cat >>conftest.$ac_ext <<_ACEOF
29748/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029749$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029750typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029751int
29752main ()
29753{
Reid Spencera773bd52006-08-04 18:18:08 +000029754if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029755 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029756if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029757 return 0;
29758 ;
29759 return 0;
29760}
29761_ACEOF
29762rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029763if { (ac_try="$ac_compile"
29764case "(($ac_try" in
29765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29766 *) ac_try_echo=$ac_try;;
29767esac
29768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29769 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029770 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029771 grep -v '^ *+' conftest.er1 >conftest.err
29772 rm -f conftest.er1
29773 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29777 { (case "(($ac_try" in
29778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29779 *) ac_try_echo=$ac_try;;
29780esac
29781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29782 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; } &&
29786 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029787 { (case "(($ac_try" in
29788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789 *) ac_try_echo=$ac_try;;
29790esac
29791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029793 ac_status=$?
29794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795 (exit $ac_status); }; }; then
29796 ac_cv_type_int64_t=yes
29797else
29798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029799sed 's/^/| /' conftest.$ac_ext >&5
29800
Reid Spencera773bd52006-08-04 18:18:08 +000029801 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029802fi
Reid Spencera773bd52006-08-04 18:18:08 +000029803
29804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029805fi
Reid Spencera773bd52006-08-04 18:18:08 +000029806{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29807echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029808if test $ac_cv_type_int64_t = yes; then
29809
29810cat >>confdefs.h <<_ACEOF
29811#define HAVE_INT64_T 1
29812_ACEOF
29813
29814
29815else
29816 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29817echo "$as_me: error: Type int64_t required but not found" >&2;}
29818 { (exit 1); exit 1; }; }
29819fi
29820
Reid Spencera773bd52006-08-04 18:18:08 +000029821{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29822echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029823if test "${ac_cv_type_uint64_t+set}" = set; then
29824 echo $ECHO_N "(cached) $ECHO_C" >&6
29825else
29826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029827/* confdefs.h. */
29828_ACEOF
29829cat confdefs.h >>conftest.$ac_ext
29830cat >>conftest.$ac_ext <<_ACEOF
29831/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029832$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029833typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029834int
29835main ()
29836{
Reid Spencera773bd52006-08-04 18:18:08 +000029837if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029838 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029839if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029840 return 0;
29841 ;
29842 return 0;
29843}
29844_ACEOF
29845rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029846if { (ac_try="$ac_compile"
29847case "(($ac_try" in
29848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29849 *) ac_try_echo=$ac_try;;
29850esac
29851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29852 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029853 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029854 grep -v '^ *+' conftest.er1 >conftest.err
29855 rm -f conftest.er1
29856 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29860 { (case "(($ac_try" in
29861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29862 *) ac_try_echo=$ac_try;;
29863esac
29864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29865 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029866 ac_status=$?
29867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868 (exit $ac_status); }; } &&
29869 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029870 { (case "(($ac_try" in
29871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872 *) ac_try_echo=$ac_try;;
29873esac
29874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029876 ac_status=$?
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); }; }; then
29879 ac_cv_type_uint64_t=yes
29880else
29881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029882sed 's/^/| /' conftest.$ac_ext >&5
29883
Reid Spencera773bd52006-08-04 18:18:08 +000029884 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029885fi
Reid Spencera773bd52006-08-04 18:18:08 +000029886
29887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029888fi
Reid Spencera773bd52006-08-04 18:18:08 +000029889{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29890echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029891if test $ac_cv_type_uint64_t = yes; then
29892
29893cat >>confdefs.h <<_ACEOF
29894#define HAVE_UINT64_T 1
29895_ACEOF
29896
29897
29898else
Reid Spencera773bd52006-08-04 18:18:08 +000029899 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29900echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029901if test "${ac_cv_type_u_int64_t+set}" = set; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029905/* confdefs.h. */
29906_ACEOF
29907cat confdefs.h >>conftest.$ac_ext
29908cat >>conftest.$ac_ext <<_ACEOF
29909/* end confdefs.h. */
29910$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029911typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029912int
29913main ()
29914{
Reid Spencera773bd52006-08-04 18:18:08 +000029915if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029916 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029917if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029918 return 0;
29919 ;
29920 return 0;
29921}
29922_ACEOF
29923rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029924if { (ac_try="$ac_compile"
29925case "(($ac_try" in
29926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927 *) ac_try_echo=$ac_try;;
29928esac
29929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029931 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029932 grep -v '^ *+' conftest.er1 >conftest.err
29933 rm -f conftest.er1
29934 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938 { (case "(($ac_try" in
29939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940 *) ac_try_echo=$ac_try;;
29941esac
29942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029944 ac_status=$?
29945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946 (exit $ac_status); }; } &&
29947 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029948 { (case "(($ac_try" in
29949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950 *) ac_try_echo=$ac_try;;
29951esac
29952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029954 ac_status=$?
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; }; then
29957 ac_cv_type_u_int64_t=yes
29958else
29959 echo "$as_me: failed program was:" >&5
29960sed 's/^/| /' conftest.$ac_ext >&5
29961
Reid Spencera773bd52006-08-04 18:18:08 +000029962 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029963fi
Reid Spencera773bd52006-08-04 18:18:08 +000029964
29965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029966fi
Reid Spencera773bd52006-08-04 18:18:08 +000029967{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29968echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029969if test $ac_cv_type_u_int64_t = yes; then
29970
29971cat >>confdefs.h <<_ACEOF
29972#define HAVE_U_INT64_T 1
29973_ACEOF
29974
29975
Misha Brukmanceca9042004-09-02 23:02:30 +000029976else
29977 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29978echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29979 { (exit 1); exit 1; }; }
29980fi
29981
John Criswell679ff312004-09-02 18:44:44 +000029982fi
29983
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029984
29985
29986
29987
29988
29989
29990
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029991
29992
Reid Spencerdf3be822006-01-23 08:15:53 +000029993for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029994do
29995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029996{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29998if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029999 echo $ECHO_N "(cached) $ECHO_C" >&6
30000else
30001 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030002/* confdefs.h. */
30003_ACEOF
30004cat confdefs.h >>conftest.$ac_ext
30005cat >>conftest.$ac_ext <<_ACEOF
30006/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030007/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30009#define $ac_func innocuous_$ac_func
30010
30011/* System header to define __stub macros and hopefully few prototypes,
30012 which can conflict with char $ac_func (); below.
30013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30014 <limits.h> exists even on freestanding compilers. */
30015
30016#ifdef __STDC__
30017# include <limits.h>
30018#else
30019# include <assert.h>
30020#endif
30021
30022#undef $ac_func
30023
Reid Spencera773bd52006-08-04 18:18:08 +000030024/* Override any GCC internal prototype to avoid an error.
30025 Use char because int might match the return type of a GCC
30026 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030027#ifdef __cplusplus
30028extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030029#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030030char $ac_func ();
30031/* The GNU C library defines this for functions which it implements
30032 to always fail with ENOSYS. Some functions are actually named
30033 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030034#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030035choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030036#endif
John Criswell7a73b802003-06-30 21:59:07 +000030037
John Criswell7a73b802003-06-30 21:59:07 +000030038int
30039main ()
30040{
Reid Spencera773bd52006-08-04 18:18:08 +000030041return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030042 ;
30043 return 0;
30044}
30045_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030046rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030047if { (ac_try="$ac_link"
30048case "(($ac_try" in
30049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30050 *) ac_try_echo=$ac_try;;
30051esac
30052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30053 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030054 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030055 grep -v '^ *+' conftest.er1 >conftest.err
30056 rm -f conftest.er1
30057 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30064esac
30065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30066 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030070 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030071 { (case "(($ac_try" in
30072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073 *) ac_try_echo=$ac_try;;
30074esac
30075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030077 ac_status=$?
30078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30079 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030080 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030081else
30082 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030083sed 's/^/| /' conftest.$ac_ext >&5
30084
Reid Spencera773bd52006-08-04 18:18:08 +000030085 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030086fi
Reid Spencera773bd52006-08-04 18:18:08 +000030087
30088rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030089 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030090fi
Reid Spencera773bd52006-08-04 18:18:08 +000030091ac_res=`eval echo '${'$as_ac_var'}'`
30092 { echo "$as_me:$LINENO: result: $ac_res" >&5
30093echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030094if test `eval echo '${'$as_ac_var'}'` = yes; then
30095 cat >>confdefs.h <<_ACEOF
30096#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030097_ACEOF
30098
30099fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030100done
John Criswell7a73b802003-06-30 21:59:07 +000030101
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030102
30103
30104
Reid Spencer6af3d262004-12-15 04:01:48 +000030105
30106
Reid Spencer59473af2004-12-25 07:31:29 +000030107
Reid Spencerdf3be822006-01-23 08:15:53 +000030108for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
30109do
30110as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030111{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30112echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30113if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000030114 echo $ECHO_N "(cached) $ECHO_C" >&6
30115else
30116 cat >conftest.$ac_ext <<_ACEOF
30117/* confdefs.h. */
30118_ACEOF
30119cat confdefs.h >>conftest.$ac_ext
30120cat >>conftest.$ac_ext <<_ACEOF
30121/* end confdefs.h. */
30122/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30124#define $ac_func innocuous_$ac_func
30125
30126/* System header to define __stub macros and hopefully few prototypes,
30127 which can conflict with char $ac_func (); below.
30128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30129 <limits.h> exists even on freestanding compilers. */
30130
30131#ifdef __STDC__
30132# include <limits.h>
30133#else
30134# include <assert.h>
30135#endif
30136
30137#undef $ac_func
30138
Reid Spencera773bd52006-08-04 18:18:08 +000030139/* Override any GCC internal prototype to avoid an error.
30140 Use char because int might match the return type of a GCC
30141 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030142#ifdef __cplusplus
30143extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030144#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030145char $ac_func ();
30146/* The GNU C library defines this for functions which it implements
30147 to always fail with ENOSYS. Some functions are actually named
30148 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030149#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030150choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030151#endif
30152
30153int
30154main ()
30155{
Reid Spencera773bd52006-08-04 18:18:08 +000030156return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030157 ;
30158 return 0;
30159}
30160_ACEOF
30161rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030162if { (ac_try="$ac_link"
30163case "(($ac_try" in
30164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165 *) ac_try_echo=$ac_try;;
30166esac
30167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030169 ac_status=$?
30170 grep -v '^ *+' conftest.er1 >conftest.err
30171 rm -f conftest.er1
30172 cat conftest.err >&5
30173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30176 { (case "(($ac_try" in
30177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30178 *) ac_try_echo=$ac_try;;
30179esac
30180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30181 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030182 ac_status=$?
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); }; } &&
30185 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030186 { (case "(($ac_try" in
30187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30188 *) ac_try_echo=$ac_try;;
30189esac
30190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30191 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; }; then
30195 eval "$as_ac_var=yes"
30196else
30197 echo "$as_me: failed program was:" >&5
30198sed 's/^/| /' conftest.$ac_ext >&5
30199
Reid Spencera773bd52006-08-04 18:18:08 +000030200 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030201fi
Reid Spencera773bd52006-08-04 18:18:08 +000030202
30203rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030204 conftest$ac_exeext conftest.$ac_ext
30205fi
Reid Spencera773bd52006-08-04 18:18:08 +000030206ac_res=`eval echo '${'$as_ac_var'}'`
30207 { echo "$as_me:$LINENO: result: $ac_res" >&5
30208echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030209if test `eval echo '${'$as_ac_var'}'` = yes; then
30210 cat >>confdefs.h <<_ACEOF
30211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30212_ACEOF
30213
30214fi
30215done
30216
30217
30218
30219
30220
30221
30222
30223
30224for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030225do
30226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030227{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30229if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030230 echo $ECHO_N "(cached) $ECHO_C" >&6
30231else
30232 cat >conftest.$ac_ext <<_ACEOF
30233/* confdefs.h. */
30234_ACEOF
30235cat confdefs.h >>conftest.$ac_ext
30236cat >>conftest.$ac_ext <<_ACEOF
30237/* end confdefs.h. */
30238/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30240#define $ac_func innocuous_$ac_func
30241
30242/* System header to define __stub macros and hopefully few prototypes,
30243 which can conflict with char $ac_func (); below.
30244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30245 <limits.h> exists even on freestanding compilers. */
30246
30247#ifdef __STDC__
30248# include <limits.h>
30249#else
30250# include <assert.h>
30251#endif
30252
30253#undef $ac_func
30254
Reid Spencera773bd52006-08-04 18:18:08 +000030255/* Override any GCC internal prototype to avoid an error.
30256 Use char because int might match the return type of a GCC
30257 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030258#ifdef __cplusplus
30259extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030260#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030261char $ac_func ();
30262/* The GNU C library defines this for functions which it implements
30263 to always fail with ENOSYS. Some functions are actually named
30264 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030265#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030266choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030267#endif
30268
30269int
30270main ()
30271{
Reid Spencera773bd52006-08-04 18:18:08 +000030272return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030273 ;
30274 return 0;
30275}
30276_ACEOF
30277rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030278if { (ac_try="$ac_link"
30279case "(($ac_try" in
30280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281 *) ac_try_echo=$ac_try;;
30282esac
30283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030285 ac_status=$?
30286 grep -v '^ *+' conftest.er1 >conftest.err
30287 rm -f conftest.er1
30288 cat conftest.err >&5
30289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30290 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30292 { (case "(($ac_try" in
30293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294 *) ac_try_echo=$ac_try;;
30295esac
30296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30297 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030298 ac_status=$?
30299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30300 (exit $ac_status); }; } &&
30301 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030302 { (case "(($ac_try" in
30303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30304 *) ac_try_echo=$ac_try;;
30305esac
30306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30307 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030308 ac_status=$?
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; }; then
30311 eval "$as_ac_var=yes"
30312else
30313 echo "$as_me: failed program was:" >&5
30314sed 's/^/| /' conftest.$ac_ext >&5
30315
Reid Spencera773bd52006-08-04 18:18:08 +000030316 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030317fi
Reid Spencera773bd52006-08-04 18:18:08 +000030318
30319rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030320 conftest$ac_exeext conftest.$ac_ext
30321fi
Reid Spencera773bd52006-08-04 18:18:08 +000030322ac_res=`eval echo '${'$as_ac_var'}'`
30323 { echo "$as_me:$LINENO: result: $ac_res" >&5
30324echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030325if test `eval echo '${'$as_ac_var'}'` = yes; then
30326 cat >>confdefs.h <<_ACEOF
30327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30328_ACEOF
30329
30330fi
30331done
30332
30333
Reid Spencerba46ca32004-12-31 05:49:15 +000030334
30335
Chris Lattner0b142592005-11-14 06:57:34 +000030336
Chris Lattner511f11d2005-11-14 07:25:50 +000030337for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030338do
30339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030340{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30342if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030343 echo $ECHO_N "(cached) $ECHO_C" >&6
30344else
30345 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030346/* confdefs.h. */
30347_ACEOF
30348cat confdefs.h >>conftest.$ac_ext
30349cat >>conftest.$ac_ext <<_ACEOF
30350/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030351/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30353#define $ac_func innocuous_$ac_func
30354
30355/* System header to define __stub macros and hopefully few prototypes,
30356 which can conflict with char $ac_func (); below.
30357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30358 <limits.h> exists even on freestanding compilers. */
30359
30360#ifdef __STDC__
30361# include <limits.h>
30362#else
30363# include <assert.h>
30364#endif
30365
30366#undef $ac_func
30367
Reid Spencera773bd52006-08-04 18:18:08 +000030368/* Override any GCC internal prototype to avoid an error.
30369 Use char because int might match the return type of a GCC
30370 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030371#ifdef __cplusplus
30372extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030373#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030374char $ac_func ();
30375/* The GNU C library defines this for functions which it implements
30376 to always fail with ENOSYS. Some functions are actually named
30377 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030378#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030379choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030380#endif
John Criswell7a73b802003-06-30 21:59:07 +000030381
John Criswell7a73b802003-06-30 21:59:07 +000030382int
30383main ()
30384{
Reid Spencera773bd52006-08-04 18:18:08 +000030385return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030386 ;
30387 return 0;
30388}
30389_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030391if { (ac_try="$ac_link"
30392case "(($ac_try" in
30393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30394 *) ac_try_echo=$ac_try;;
30395esac
30396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30397 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399 grep -v '^ *+' conftest.er1 >conftest.err
30400 rm -f conftest.er1
30401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30403 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30405 { (case "(($ac_try" in
30406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30407 *) ac_try_echo=$ac_try;;
30408esac
30409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30410 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030411 ac_status=$?
30412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30413 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030414 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030415 { (case "(($ac_try" in
30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30417 *) ac_try_echo=$ac_try;;
30418esac
30419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30420 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030424 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030425else
30426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030427sed 's/^/| /' conftest.$ac_ext >&5
30428
Reid Spencera773bd52006-08-04 18:18:08 +000030429 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030430fi
Reid Spencera773bd52006-08-04 18:18:08 +000030431
30432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030433 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030434fi
Reid Spencera773bd52006-08-04 18:18:08 +000030435ac_res=`eval echo '${'$as_ac_var'}'`
30436 { echo "$as_me:$LINENO: result: $ac_res" >&5
30437echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030438if test `eval echo '${'$as_ac_var'}'` = yes; then
30439 cat >>confdefs.h <<_ACEOF
30440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030441_ACEOF
30442
30443fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030444done
John Criswell7a73b802003-06-30 21:59:07 +000030445
Reid Spencercdb08a32006-06-05 16:11:07 +000030446
30447
30448
30449
Reid Spencerafa22e22006-12-10 23:29:19 +000030450for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030451do
30452as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030453{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30454echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30455if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030456 echo $ECHO_N "(cached) $ECHO_C" >&6
30457else
30458 cat >conftest.$ac_ext <<_ACEOF
30459/* confdefs.h. */
30460_ACEOF
30461cat confdefs.h >>conftest.$ac_ext
30462cat >>conftest.$ac_ext <<_ACEOF
30463/* end confdefs.h. */
30464/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30466#define $ac_func innocuous_$ac_func
30467
30468/* System header to define __stub macros and hopefully few prototypes,
30469 which can conflict with char $ac_func (); below.
30470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30471 <limits.h> exists even on freestanding compilers. */
30472
30473#ifdef __STDC__
30474# include <limits.h>
30475#else
30476# include <assert.h>
30477#endif
30478
30479#undef $ac_func
30480
Reid Spencera773bd52006-08-04 18:18:08 +000030481/* Override any GCC internal prototype to avoid an error.
30482 Use char because int might match the return type of a GCC
30483 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030484#ifdef __cplusplus
30485extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030486#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030487char $ac_func ();
30488/* The GNU C library defines this for functions which it implements
30489 to always fail with ENOSYS. Some functions are actually named
30490 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030491#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030492choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030493#endif
30494
30495int
30496main ()
30497{
Reid Spencera773bd52006-08-04 18:18:08 +000030498return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030499 ;
30500 return 0;
30501}
30502_ACEOF
30503rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030504if { (ac_try="$ac_link"
30505case "(($ac_try" in
30506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30507 *) ac_try_echo=$ac_try;;
30508esac
30509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30510 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030511 ac_status=$?
30512 grep -v '^ *+' conftest.er1 >conftest.err
30513 rm -f conftest.er1
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30518 { (case "(($ac_try" in
30519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520 *) ac_try_echo=$ac_try;;
30521esac
30522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030524 ac_status=$?
30525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30526 (exit $ac_status); }; } &&
30527 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030528 { (case "(($ac_try" in
30529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30530 *) ac_try_echo=$ac_try;;
30531esac
30532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30533 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030534 ac_status=$?
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 eval "$as_ac_var=yes"
30538else
30539 echo "$as_me: failed program was:" >&5
30540sed 's/^/| /' conftest.$ac_ext >&5
30541
Reid Spencera773bd52006-08-04 18:18:08 +000030542 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030543fi
Reid Spencera773bd52006-08-04 18:18:08 +000030544
30545rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030546 conftest$ac_exeext conftest.$ac_ext
30547fi
Reid Spencera773bd52006-08-04 18:18:08 +000030548ac_res=`eval echo '${'$as_ac_var'}'`
30549 { echo "$as_me:$LINENO: result: $ac_res" >&5
30550echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030551if test `eval echo '${'$as_ac_var'}'` = yes; then
30552 cat >>confdefs.h <<_ACEOF
30553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30554_ACEOF
30555
30556fi
30557done
30558
Reid Spencera773bd52006-08-04 18:18:08 +000030559{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30560echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030561if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030562 echo $ECHO_N "(cached) $ECHO_C" >&6
30563else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030564 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030565ac_cpp='$CPP $CPPFLAGS'
30566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30568ac_compiler_gnu=$ac_cv_c_compiler_gnu
30569
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030570 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030571 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030572else
30573 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030574
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030575 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030580
John Criswella0137d32003-10-13 16:22:01 +000030581#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030582#include <stdlib.h>
30583
John Criswella0137d32003-10-13 16:22:01 +000030584int
30585main ()
30586{
30587
Reid Spencer2706f8c2004-09-19 23:53:36 +000030588volatile double A, B;
30589char Buffer[100];
30590A = 1;
30591A /= 10.0;
30592sprintf(Buffer, "%a", A);
30593B = atof(Buffer);
30594if (A != B)
30595 return (1);
30596if (A != 0x1.999999999999ap-4)
30597 return (1);
30598return (0);
John Criswella0137d32003-10-13 16:22:01 +000030599 ;
30600 return 0;
30601}
30602_ACEOF
30603rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030604if { (ac_try="$ac_link"
30605case "(($ac_try" in
30606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30607 *) ac_try_echo=$ac_try;;
30608esac
30609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30610 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030614 { (case "(($ac_try" in
30615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30616 *) ac_try_echo=$ac_try;;
30617esac
30618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30619 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030620 ac_status=$?
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030623 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030624else
30625 echo "$as_me: program exited with status $ac_status" >&5
30626echo "$as_me: failed program was:" >&5
30627sed 's/^/| /' conftest.$ac_ext >&5
30628
30629( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030630llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030631fi
Reid Spencera773bd52006-08-04 18:18:08 +000030632rm -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 +000030633fi
Reid Spencera773bd52006-08-04 18:18:08 +000030634
30635
Reid Spencer2706f8c2004-09-19 23:53:36 +000030636 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030637ac_cpp='$CPP $CPPFLAGS'
30638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30640ac_compiler_gnu=$ac_cv_c_compiler_gnu
30641
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030642fi
Reid Spencera773bd52006-08-04 18:18:08 +000030643{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30644echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030645 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030646
30647cat >>confdefs.h <<\_ACEOF
30648#define HAVE_PRINTF_A 1
30649_ACEOF
30650
Reid Spencer2706f8c2004-09-19 23:53:36 +000030651 fi
John Criswella0137d32003-10-13 16:22:01 +000030652
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030653# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30654# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030655{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30656echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030657if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030658 echo $ECHO_N "(cached) $ECHO_C" >&6
30659else
John Criswell0021c312004-02-13 21:57:29 +000030660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030666#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030667int
30668main ()
30669{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030670char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030671 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030672 ;
30673 return 0;
30674}
30675_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030676rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030677if { (ac_try="$ac_link"
30678case "(($ac_try" in
30679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30680 *) ac_try_echo=$ac_try;;
30681esac
30682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30683 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030685 grep -v '^ *+' conftest.er1 >conftest.err
30686 rm -f conftest.er1
30687 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30691 { (case "(($ac_try" in
30692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693 *) ac_try_echo=$ac_try;;
30694esac
30695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030700 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030701 { (case "(($ac_try" in
30702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30703 *) ac_try_echo=$ac_try;;
30704esac
30705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30706 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030707 ac_status=$?
30708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030710 ac_cv_working_alloca_h=yes
30711else
30712 echo "$as_me: failed program was:" >&5
30713sed 's/^/| /' conftest.$ac_ext >&5
30714
Reid Spencera773bd52006-08-04 18:18:08 +000030715 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030716fi
Reid Spencera773bd52006-08-04 18:18:08 +000030717
30718rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030719 conftest$ac_exeext conftest.$ac_ext
30720fi
Reid Spencera773bd52006-08-04 18:18:08 +000030721{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30722echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030723if test $ac_cv_working_alloca_h = yes; then
30724
30725cat >>confdefs.h <<\_ACEOF
30726#define HAVE_ALLOCA_H 1
30727_ACEOF
30728
30729fi
30730
Reid Spencera773bd52006-08-04 18:18:08 +000030731{ echo "$as_me:$LINENO: checking for alloca" >&5
30732echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030733if test "${ac_cv_func_alloca_works+set}" = set; then
30734 echo $ECHO_N "(cached) $ECHO_C" >&6
30735else
30736 cat >conftest.$ac_ext <<_ACEOF
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742#ifdef __GNUC__
30743# define alloca __builtin_alloca
30744#else
30745# ifdef _MSC_VER
30746# include <malloc.h>
30747# define alloca _alloca
30748# else
30749# if HAVE_ALLOCA_H
30750# include <alloca.h>
30751# else
30752# ifdef _AIX
30753 #pragma alloca
30754# else
30755# ifndef alloca /* predefined by HP cc +Olibcalls */
30756char *alloca ();
30757# endif
30758# endif
30759# endif
30760# endif
30761#endif
30762
30763int
30764main ()
30765{
30766char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030767 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030768 ;
30769 return 0;
30770}
30771_ACEOF
30772rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030773if { (ac_try="$ac_link"
30774case "(($ac_try" in
30775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30776 *) ac_try_echo=$ac_try;;
30777esac
30778eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30779 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030780 ac_status=$?
30781 grep -v '^ *+' conftest.er1 >conftest.err
30782 rm -f conftest.er1
30783 cat conftest.err >&5
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30787 { (case "(($ac_try" in
30788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30789 *) ac_try_echo=$ac_try;;
30790esac
30791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30792 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030793 ac_status=$?
30794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30795 (exit $ac_status); }; } &&
30796 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030797 { (case "(($ac_try" in
30798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30799 *) ac_try_echo=$ac_try;;
30800esac
30801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30802 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030803 ac_status=$?
30804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805 (exit $ac_status); }; }; then
30806 ac_cv_func_alloca_works=yes
30807else
30808 echo "$as_me: failed program was:" >&5
30809sed 's/^/| /' conftest.$ac_ext >&5
30810
Reid Spencera773bd52006-08-04 18:18:08 +000030811 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030812fi
Reid Spencera773bd52006-08-04 18:18:08 +000030813
30814rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030815 conftest$ac_exeext conftest.$ac_ext
30816fi
Reid Spencera773bd52006-08-04 18:18:08 +000030817{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30818echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030819
30820if test $ac_cv_func_alloca_works = yes; then
30821
30822cat >>confdefs.h <<\_ACEOF
30823#define HAVE_ALLOCA 1
30824_ACEOF
30825
30826else
30827 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30828# that cause trouble. Some versions do not even contain alloca or
30829# contain a buggy version. If you still want to use their alloca,
30830# use ar to extract alloca.o from them instead of compiling alloca.c.
30831
Reid Spencera773bd52006-08-04 18:18:08 +000030832ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030833
30834cat >>confdefs.h <<\_ACEOF
30835#define C_ALLOCA 1
30836_ACEOF
30837
30838
Reid Spencera773bd52006-08-04 18:18:08 +000030839{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30840echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030841if test "${ac_cv_os_cray+set}" = set; then
30842 echo $ECHO_N "(cached) $ECHO_C" >&6
30843else
30844 cat >conftest.$ac_ext <<_ACEOF
30845/* confdefs.h. */
30846_ACEOF
30847cat confdefs.h >>conftest.$ac_ext
30848cat >>conftest.$ac_ext <<_ACEOF
30849/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030850#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030851webecray
30852#else
30853wenotbecray
30854#endif
30855
30856_ACEOF
30857if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30858 $EGREP "webecray" >/dev/null 2>&1; then
30859 ac_cv_os_cray=yes
30860else
30861 ac_cv_os_cray=no
30862fi
30863rm -f conftest*
30864
30865fi
Reid Spencera773bd52006-08-04 18:18:08 +000030866{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30867echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030868if test $ac_cv_os_cray = yes; then
30869 for ac_func in _getb67 GETB67 getb67; do
30870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030871{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30872echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30873if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030874 echo $ECHO_N "(cached) $ECHO_C" >&6
30875else
30876 cat >conftest.$ac_ext <<_ACEOF
30877/* confdefs.h. */
30878_ACEOF
30879cat confdefs.h >>conftest.$ac_ext
30880cat >>conftest.$ac_ext <<_ACEOF
30881/* end confdefs.h. */
30882/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30884#define $ac_func innocuous_$ac_func
30885
30886/* System header to define __stub macros and hopefully few prototypes,
30887 which can conflict with char $ac_func (); below.
30888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30889 <limits.h> exists even on freestanding compilers. */
30890
30891#ifdef __STDC__
30892# include <limits.h>
30893#else
30894# include <assert.h>
30895#endif
30896
30897#undef $ac_func
30898
Reid Spencera773bd52006-08-04 18:18:08 +000030899/* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030902#ifdef __cplusplus
30903extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030904#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030905char $ac_func ();
30906/* The GNU C library defines this for functions which it implements
30907 to always fail with ENOSYS. Some functions are actually named
30908 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030909#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030910choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030911#endif
30912
30913int
30914main ()
30915{
Reid Spencera773bd52006-08-04 18:18:08 +000030916return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030917 ;
30918 return 0;
30919}
30920_ACEOF
30921rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030922if { (ac_try="$ac_link"
30923case "(($ac_try" in
30924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30925 *) ac_try_echo=$ac_try;;
30926esac
30927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30928 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030929 ac_status=$?
30930 grep -v '^ *+' conftest.er1 >conftest.err
30931 rm -f conftest.er1
30932 cat conftest.err >&5
30933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30936 { (case "(($ac_try" in
30937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938 *) ac_try_echo=$ac_try;;
30939esac
30940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30941 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030942 ac_status=$?
30943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30944 (exit $ac_status); }; } &&
30945 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030946 { (case "(($ac_try" in
30947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30948 *) ac_try_echo=$ac_try;;
30949esac
30950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30951 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030952 ac_status=$?
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; }; then
30955 eval "$as_ac_var=yes"
30956else
30957 echo "$as_me: failed program was:" >&5
30958sed 's/^/| /' conftest.$ac_ext >&5
30959
Reid Spencera773bd52006-08-04 18:18:08 +000030960 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030961fi
Reid Spencera773bd52006-08-04 18:18:08 +000030962
30963rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030964 conftest$ac_exeext conftest.$ac_ext
30965fi
Reid Spencera773bd52006-08-04 18:18:08 +000030966ac_res=`eval echo '${'$as_ac_var'}'`
30967 { echo "$as_me:$LINENO: result: $ac_res" >&5
30968echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030969if test `eval echo '${'$as_ac_var'}'` = yes; then
30970
30971cat >>confdefs.h <<_ACEOF
30972#define CRAY_STACKSEG_END $ac_func
30973_ACEOF
30974
30975 break
30976fi
30977
30978 done
30979fi
30980
Reid Spencera773bd52006-08-04 18:18:08 +000030981{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30982echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030983if test "${ac_cv_c_stack_direction+set}" = set; then
30984 echo $ECHO_N "(cached) $ECHO_C" >&6
30985else
30986 if test "$cross_compiling" = yes; then
30987 ac_cv_c_stack_direction=0
30988else
30989 cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030995$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030996int
30997find_stack_direction ()
30998{
30999 static char *addr = 0;
31000 auto char dummy;
31001 if (addr == 0)
31002 {
31003 addr = &dummy;
31004 return find_stack_direction ();
31005 }
John Criswell0021c312004-02-13 21:57:29 +000031006 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031007 return (&dummy > addr) ? 1 : -1;
31008}
John Criswell0021c312004-02-13 21:57:29 +000031009
John Criswell0021c312004-02-13 21:57:29 +000031010int
31011main ()
31012{
Reid Spencera773bd52006-08-04 18:18:08 +000031013 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000031014}
31015_ACEOF
31016rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000031017if { (ac_try="$ac_link"
31018case "(($ac_try" in
31019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31020 *) ac_try_echo=$ac_try;;
31021esac
31022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31023 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031024 ac_status=$?
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000031027 { (case "(($ac_try" in
31028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31029 *) ac_try_echo=$ac_try;;
31030esac
31031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31032 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000031033 ac_status=$?
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031036 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000031037else
31038 echo "$as_me: program exited with status $ac_status" >&5
31039echo "$as_me: failed program was:" >&5
31040sed 's/^/| /' conftest.$ac_ext >&5
31041
31042( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031043ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000031044fi
Reid Spencera773bd52006-08-04 18:18:08 +000031045rm -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 +000031046fi
Reid Spencera773bd52006-08-04 18:18:08 +000031047
31048
John Criswell0021c312004-02-13 21:57:29 +000031049fi
Reid Spencera773bd52006-08-04 18:18:08 +000031050{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31051echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031052
31053cat >>confdefs.h <<_ACEOF
31054#define STACK_DIRECTION $ac_cv_c_stack_direction
31055_ACEOF
31056
31057
John Criswell0021c312004-02-13 21:57:29 +000031058fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031059
31060
Reid Spencera773bd52006-08-04 18:18:08 +000031061{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
31062echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031063if test "${ac_cv_func_rand48+set}" = set; then
31064 echo $ECHO_N "(cached) $ECHO_C" >&6
31065else
Reid Spencera773bd52006-08-04 18:18:08 +000031066 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031067ac_cpp='$CXXCPP $CPPFLAGS'
31068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31071
31072 cat >conftest.$ac_ext <<_ACEOF
31073/* confdefs.h. */
31074_ACEOF
31075cat confdefs.h >>conftest.$ac_ext
31076cat >>conftest.$ac_ext <<_ACEOF
31077/* end confdefs.h. */
31078#include <stdlib.h>
31079int
31080main ()
31081{
31082srand48(0);lrand48();drand48();
31083 ;
31084 return 0;
31085}
31086_ACEOF
31087rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031088if { (ac_try="$ac_compile"
31089case "(($ac_try" in
31090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31091 *) ac_try_echo=$ac_try;;
31092esac
31093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31094 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031095 ac_status=$?
31096 grep -v '^ *+' conftest.er1 >conftest.err
31097 rm -f conftest.er1
31098 cat conftest.err >&5
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31102 { (case "(($ac_try" in
31103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31104 *) ac_try_echo=$ac_try;;
31105esac
31106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31107 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031108 ac_status=$?
31109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31110 (exit $ac_status); }; } &&
31111 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031112 { (case "(($ac_try" in
31113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114 *) ac_try_echo=$ac_try;;
31115esac
31116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
31121 ac_cv_func_rand48=yes
31122else
31123 echo "$as_me: failed program was:" >&5
31124sed 's/^/| /' conftest.$ac_ext >&5
31125
Reid Spencera773bd52006-08-04 18:18:08 +000031126 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031127fi
Reid Spencera773bd52006-08-04 18:18:08 +000031128
31129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031130 ac_ext=c
31131ac_cpp='$CPP $CPPFLAGS'
31132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31134ac_compiler_gnu=$ac_cv_c_compiler_gnu
31135
31136fi
Reid Spencera773bd52006-08-04 18:18:08 +000031137{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31138echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031139
31140if test "$ac_cv_func_rand48" = "yes" ; then
31141
31142cat >>confdefs.h <<\_ACEOF
31143#define HAVE_RAND48 1
31144_ACEOF
31145
31146fi
John Criswell0021c312004-02-13 21:57:29 +000031147
31148
Reid Spencera773bd52006-08-04 18:18:08 +000031149{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31150echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031151if test "${ac_cv_cxx_namespaces+set}" = set; then
31152 echo $ECHO_N "(cached) $ECHO_C" >&6
31153else
Reid Spencera773bd52006-08-04 18:18:08 +000031154 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031155ac_cpp='$CXXCPP $CPPFLAGS'
31156ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31157ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31158ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31159
31160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031161/* confdefs.h. */
31162_ACEOF
31163cat confdefs.h >>conftest.$ac_ext
31164cat >>conftest.$ac_ext <<_ACEOF
31165/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031166namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031167int
31168main ()
31169{
31170using namespace Outer::Inner; return i;
31171 ;
31172 return 0;
31173}
31174_ACEOF
31175rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031176if { (ac_try="$ac_compile"
31177case "(($ac_try" in
31178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31179 *) ac_try_echo=$ac_try;;
31180esac
31181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31182 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031183 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031184 grep -v '^ *+' conftest.er1 >conftest.err
31185 rm -f conftest.er1
31186 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31188 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31190 { (case "(($ac_try" in
31191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31192 *) ac_try_echo=$ac_try;;
31193esac
31194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31195 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031196 ac_status=$?
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); }; } &&
31199 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031200 { (case "(($ac_try" in
31201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31202 *) ac_try_echo=$ac_try;;
31203esac
31204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31205 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31209 ac_cv_cxx_namespaces=yes
31210else
31211 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031212sed 's/^/| /' conftest.$ac_ext >&5
31213
Reid Spencera773bd52006-08-04 18:18:08 +000031214 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031215fi
Reid Spencera773bd52006-08-04 18:18:08 +000031216
31217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031218 ac_ext=c
31219ac_cpp='$CPP $CPPFLAGS'
31220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31222ac_compiler_gnu=$ac_cv_c_compiler_gnu
31223
31224
31225fi
Reid Spencera773bd52006-08-04 18:18:08 +000031226{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31227echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031228if test "$ac_cv_cxx_namespaces" = yes; then
31229
31230cat >>confdefs.h <<\_ACEOF
31231#define HAVE_NAMESPACES
31232_ACEOF
31233
31234fi
31235
Reid Spencera773bd52006-08-04 18:18:08 +000031236{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31237echo $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 +000031238if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031239 echo $ECHO_N "(cached) $ECHO_C" >&6
31240else
31241
Reid Spencera773bd52006-08-04 18:18:08 +000031242 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031243ac_cpp='$CXXCPP $CPPFLAGS'
31244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31247
31248 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031254#include <ext/hash_map>
31255#ifdef HAVE_NAMESPACES
31256using namespace std;
31257#endif
John Criswell7a73b802003-06-30 21:59:07 +000031258int
31259main ()
31260{
Brian Gaeke90583492003-11-10 03:06:28 +000031261hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031262 ;
31263 return 0;
31264}
31265_ACEOF
31266rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031267if { (ac_try="$ac_compile"
31268case "(($ac_try" in
31269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31270 *) ac_try_echo=$ac_try;;
31271esac
31272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31273 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031275 grep -v '^ *+' conftest.er1 >conftest.err
31276 rm -f conftest.er1
31277 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31281 { (case "(($ac_try" in
31282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31283 *) ac_try_echo=$ac_try;;
31284esac
31285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31286 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031287 ac_status=$?
31288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31289 (exit $ac_status); }; } &&
31290 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031291 { (case "(($ac_try" in
31292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31293 *) ac_try_echo=$ac_try;;
31294esac
31295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31296 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031297 ac_status=$?
31298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31299 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031300 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031301else
31302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031303sed 's/^/| /' conftest.$ac_ext >&5
31304
Reid Spencera773bd52006-08-04 18:18:08 +000031305 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031306fi
Reid Spencera773bd52006-08-04 18:18:08 +000031307
31308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031309 ac_ext=c
31310ac_cpp='$CPP $CPPFLAGS'
31311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31313ac_compiler_gnu=$ac_cv_c_compiler_gnu
31314
John Criswell7a73b802003-06-30 21:59:07 +000031315fi
Reid Spencera773bd52006-08-04 18:18:08 +000031316{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31317echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031318 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31319 then
John Criswell9f011862004-09-24 18:28:00 +000031320
31321cat >>confdefs.h <<\_ACEOF
31322#define HAVE_STD_EXT_HASH_MAP 1
31323_ACEOF
31324
31325 else
31326
31327cat >>confdefs.h <<\_ACEOF
31328#define HAVE_STD_EXT_HASH_MAP 0
31329_ACEOF
31330
Brian Gaeke90583492003-11-10 03:06:28 +000031331 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031332
Reid Spencera773bd52006-08-04 18:18:08 +000031333 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31334echo $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 +000031335if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31337else
31338
Reid Spencera773bd52006-08-04 18:18:08 +000031339 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031340ac_cpp='$CXXCPP $CPPFLAGS'
31341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31344
31345 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031346/* confdefs.h. */
31347_ACEOF
31348cat confdefs.h >>conftest.$ac_ext
31349cat >>conftest.$ac_ext <<_ACEOF
31350/* end confdefs.h. */
31351#include <ext/hash_map>
31352#ifdef HAVE_NAMESPACES
31353using namespace __gnu_cxx;
31354#endif
31355int
31356main ()
31357{
31358hash_map<int,int> t;
31359 ;
31360 return 0;
31361}
31362_ACEOF
31363rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031364if { (ac_try="$ac_compile"
31365case "(($ac_try" in
31366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31367 *) ac_try_echo=$ac_try;;
31368esac
31369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31370 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031371 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31378 { (case "(($ac_try" in
31379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31380 *) ac_try_echo=$ac_try;;
31381esac
31382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31383 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031384 ac_status=$?
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; } &&
31387 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031388 { (case "(($ac_try" in
31389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31390 *) ac_try_echo=$ac_try;;
31391esac
31392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31393 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031394 ac_status=$?
31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31396 (exit $ac_status); }; }; then
31397 ac_cv_cxx_have_gnu_ext_hash_map=yes
31398else
31399 echo "$as_me: failed program was:" >&5
31400sed 's/^/| /' conftest.$ac_ext >&5
31401
Reid Spencera773bd52006-08-04 18:18:08 +000031402 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031403fi
Reid Spencera773bd52006-08-04 18:18:08 +000031404
31405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031406 ac_ext=c
31407ac_cpp='$CPP $CPPFLAGS'
31408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31410ac_compiler_gnu=$ac_cv_c_compiler_gnu
31411
31412fi
Reid Spencera773bd52006-08-04 18:18:08 +000031413{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31414echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031415 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31416 then
John Criswell9f011862004-09-24 18:28:00 +000031417
31418cat >>confdefs.h <<\_ACEOF
31419#define HAVE_GNU_EXT_HASH_MAP 1
31420_ACEOF
31421
31422 else
31423
31424cat >>confdefs.h <<\_ACEOF
31425#define HAVE_GNU_EXT_HASH_MAP 0
31426_ACEOF
31427
Brian Gaeke90583492003-11-10 03:06:28 +000031428 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031429
Reid Spencera773bd52006-08-04 18:18:08 +000031430 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31431echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031432if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
John Criswell7a73b802003-06-30 21:59:07 +000031435
Reid Spencera773bd52006-08-04 18:18:08 +000031436 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031437ac_cpp='$CXXCPP $CPPFLAGS'
31438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31441
31442 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031443/* confdefs.h. */
31444_ACEOF
31445cat confdefs.h >>conftest.$ac_ext
31446cat >>conftest.$ac_ext <<_ACEOF
31447/* end confdefs.h. */
31448#include <hash_map>
31449int
31450main ()
31451{
31452hash_map<int,int> t;
31453 ;
31454 return 0;
31455}
31456_ACEOF
31457rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031458if { (ac_try="$ac_compile"
31459case "(($ac_try" in
31460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31461 *) ac_try_echo=$ac_try;;
31462esac
31463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31464 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031465 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031466 grep -v '^ *+' conftest.er1 >conftest.err
31467 rm -f conftest.er1
31468 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31470 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31472 { (case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31475esac
31476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31477 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); }; } &&
31481 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031482 { (case "(($ac_try" in
31483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31484 *) ac_try_echo=$ac_try;;
31485esac
31486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31487 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031488 ac_status=$?
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; }; then
31491 ac_cv_cxx_have_global_hash_map=yes
31492else
31493 echo "$as_me: failed program was:" >&5
31494sed 's/^/| /' conftest.$ac_ext >&5
31495
Reid Spencera773bd52006-08-04 18:18:08 +000031496 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031497fi
Reid Spencera773bd52006-08-04 18:18:08 +000031498
31499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031500 ac_ext=c
31501ac_cpp='$CPP $CPPFLAGS'
31502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31504ac_compiler_gnu=$ac_cv_c_compiler_gnu
31505
31506fi
Reid Spencera773bd52006-08-04 18:18:08 +000031507{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31508echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031509 if test "$ac_cv_cxx_have_global_hash_map" = yes
31510 then
John Criswell9f011862004-09-24 18:28:00 +000031511
31512cat >>confdefs.h <<\_ACEOF
31513#define HAVE_GLOBAL_HASH_MAP 1
31514_ACEOF
31515
31516 else
31517
31518cat >>confdefs.h <<\_ACEOF
31519#define HAVE_GLOBAL_HASH_MAP 0
31520_ACEOF
31521
Brian Gaeke90583492003-11-10 03:06:28 +000031522 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031523
Reid Spencera773bd52006-08-04 18:18:08 +000031524{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31525echo $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 +000031526if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031527 echo $ECHO_N "(cached) $ECHO_C" >&6
31528else
31529
Reid Spencera773bd52006-08-04 18:18:08 +000031530 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031531ac_cpp='$CXXCPP $CPPFLAGS'
31532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31535
31536 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031537/* confdefs.h. */
31538_ACEOF
31539cat confdefs.h >>conftest.$ac_ext
31540cat >>conftest.$ac_ext <<_ACEOF
31541/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031542#include <ext/hash_set>
31543#ifdef HAVE_NAMESPACES
31544using namespace std;
31545#endif
John Criswell7a73b802003-06-30 21:59:07 +000031546int
31547main ()
31548{
Brian Gaeke90583492003-11-10 03:06:28 +000031549hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031550 ;
31551 return 0;
31552}
31553_ACEOF
31554rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031555if { (ac_try="$ac_compile"
31556case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31559esac
31560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031563 grep -v '^ *+' conftest.er1 >conftest.err
31564 rm -f conftest.er1
31565 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31569 { (case "(($ac_try" in
31570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571 *) ac_try_echo=$ac_try;;
31572esac
31573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031579 { (case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31582esac
31583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031585 ac_status=$?
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031588 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031589else
31590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031591sed 's/^/| /' conftest.$ac_ext >&5
31592
Reid Spencera773bd52006-08-04 18:18:08 +000031593 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031594fi
Reid Spencera773bd52006-08-04 18:18:08 +000031595
31596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031597 ac_ext=c
31598ac_cpp='$CPP $CPPFLAGS'
31599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31601ac_compiler_gnu=$ac_cv_c_compiler_gnu
31602
31603fi
Reid Spencera773bd52006-08-04 18:18:08 +000031604{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31605echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031606 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31607 then
John Criswell9f011862004-09-24 18:28:00 +000031608
31609cat >>confdefs.h <<\_ACEOF
31610#define HAVE_STD_EXT_HASH_SET 1
31611_ACEOF
31612
31613 else
31614
31615cat >>confdefs.h <<\_ACEOF
31616#define HAVE_STD_EXT_HASH_SET 0
31617_ACEOF
31618
Brian Gaeke90583492003-11-10 03:06:28 +000031619 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031620
Reid Spencera773bd52006-08-04 18:18:08 +000031621 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31622echo $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 +000031623if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31624 echo $ECHO_N "(cached) $ECHO_C" >&6
31625else
31626
Reid Spencera773bd52006-08-04 18:18:08 +000031627 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031628ac_cpp='$CXXCPP $CPPFLAGS'
31629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31632
John Criswell7a73b802003-06-30 21:59:07 +000031633 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031634/* confdefs.h. */
31635_ACEOF
31636cat confdefs.h >>conftest.$ac_ext
31637cat >>conftest.$ac_ext <<_ACEOF
31638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031639#include <ext/hash_set>
31640#ifdef HAVE_NAMESPACES
31641using namespace __gnu_cxx;
31642#endif
John Criswell7a73b802003-06-30 21:59:07 +000031643int
31644main ()
31645{
Brian Gaeke90583492003-11-10 03:06:28 +000031646hash_set<int> t;
31647 ;
31648 return 0;
31649}
31650_ACEOF
31651rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031652if { (ac_try="$ac_compile"
31653case "(($ac_try" in
31654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655 *) ac_try_echo=$ac_try;;
31656esac
31657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031660 grep -v '^ *+' conftest.er1 >conftest.err
31661 rm -f conftest.er1
31662 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31666 { (case "(($ac_try" in
31667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31668 *) ac_try_echo=$ac_try;;
31669esac
31670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31671 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; } &&
31675 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031676 { (case "(($ac_try" in
31677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678 *) ac_try_echo=$ac_try;;
31679esac
31680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031682 ac_status=$?
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); }; }; then
31685 ac_cv_cxx_have_gnu_ext_hash_set=yes
31686else
31687 echo "$as_me: failed program was:" >&5
31688sed 's/^/| /' conftest.$ac_ext >&5
31689
Reid Spencera773bd52006-08-04 18:18:08 +000031690 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031691fi
Reid Spencera773bd52006-08-04 18:18:08 +000031692
31693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031694 ac_ext=c
31695ac_cpp='$CPP $CPPFLAGS'
31696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31698ac_compiler_gnu=$ac_cv_c_compiler_gnu
31699
31700fi
Reid Spencera773bd52006-08-04 18:18:08 +000031701{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31702echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031703 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31704 then
John Criswell9f011862004-09-24 18:28:00 +000031705
31706cat >>confdefs.h <<\_ACEOF
31707#define HAVE_GNU_EXT_HASH_SET 1
31708_ACEOF
31709
31710 else
31711
31712cat >>confdefs.h <<\_ACEOF
31713#define HAVE_GNU_EXT_HASH_SET 0
31714_ACEOF
31715
Brian Gaeke90583492003-11-10 03:06:28 +000031716 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031717
Reid Spencera773bd52006-08-04 18:18:08 +000031718 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31719echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031720if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31721 echo $ECHO_N "(cached) $ECHO_C" >&6
31722else
31723
Reid Spencera773bd52006-08-04 18:18:08 +000031724 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031725ac_cpp='$CXXCPP $CPPFLAGS'
31726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31729
31730 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031731/* confdefs.h. */
31732_ACEOF
31733cat confdefs.h >>conftest.$ac_ext
31734cat >>conftest.$ac_ext <<_ACEOF
31735/* end confdefs.h. */
31736#include <hash_set>
31737int
31738main ()
31739{
John Criswell7a73b802003-06-30 21:59:07 +000031740hash_set<int> t; return 0;
31741 ;
31742 return 0;
31743}
31744_ACEOF
31745rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031746if { (ac_try="$ac_compile"
31747case "(($ac_try" in
31748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31749 *) ac_try_echo=$ac_try;;
31750esac
31751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31752 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031753 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031754 grep -v '^ *+' conftest.er1 >conftest.err
31755 rm -f conftest.er1
31756 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31758 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31760 { (case "(($ac_try" in
31761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31762 *) ac_try_echo=$ac_try;;
31763esac
31764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31765 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031766 ac_status=$?
31767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768 (exit $ac_status); }; } &&
31769 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031770 { (case "(($ac_try" in
31771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31772 *) ac_try_echo=$ac_try;;
31773esac
31774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31775 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031776 ac_status=$?
31777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31778 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031779 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031780else
31781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031782sed 's/^/| /' conftest.$ac_ext >&5
31783
Reid Spencera773bd52006-08-04 18:18:08 +000031784 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031785fi
Reid Spencera773bd52006-08-04 18:18:08 +000031786
31787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031788 ac_ext=c
31789ac_cpp='$CPP $CPPFLAGS'
31790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31792ac_compiler_gnu=$ac_cv_c_compiler_gnu
31793
John Criswell7a73b802003-06-30 21:59:07 +000031794fi
Reid Spencera773bd52006-08-04 18:18:08 +000031795{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31796echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031797 if test "$ac_cv_cxx_have_global_hash_set" = yes
31798 then
John Criswell9f011862004-09-24 18:28:00 +000031799
31800cat >>confdefs.h <<\_ACEOF
31801#define HAVE_GLOBAL_HASH_SET 1
31802_ACEOF
31803
31804 else
31805
31806cat >>confdefs.h <<\_ACEOF
31807#define HAVE_GLOBAL_HASH_SET 0
31808_ACEOF
31809
Brian Gaeke90583492003-11-10 03:06:28 +000031810 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031811
Reid Spencera773bd52006-08-04 18:18:08 +000031812{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31813echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031814if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31816else
31817
Reid Spencera773bd52006-08-04 18:18:08 +000031818 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031819ac_cpp='$CXXCPP $CPPFLAGS'
31820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31823
31824 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031825/* confdefs.h. */
31826_ACEOF
31827cat confdefs.h >>conftest.$ac_ext
31828cat >>conftest.$ac_ext <<_ACEOF
31829/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031830#include <iterator>
31831#ifdef HAVE_NAMESPACES
31832using namespace std;
31833#endif
John Criswell7a73b802003-06-30 21:59:07 +000031834int
31835main ()
31836{
31837iterator<int,int,int> t; return 0;
31838 ;
31839 return 0;
31840}
31841_ACEOF
31842rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031843if { (ac_try="$ac_compile"
31844case "(($ac_try" in
31845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31846 *) ac_try_echo=$ac_try;;
31847esac
31848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31849 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031851 grep -v '^ *+' conftest.er1 >conftest.err
31852 rm -f conftest.er1
31853 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31857 { (case "(($ac_try" in
31858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31859 *) ac_try_echo=$ac_try;;
31860esac
31861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31862 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; } &&
31866 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031867 { (case "(($ac_try" in
31868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869 *) ac_try_echo=$ac_try;;
31870esac
31871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031873 ac_status=$?
31874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31875 (exit $ac_status); }; }; then
31876 ac_cv_cxx_have_std_iterator=yes
31877else
31878 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031879sed 's/^/| /' conftest.$ac_ext >&5
31880
Reid Spencera773bd52006-08-04 18:18:08 +000031881 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031882fi
Reid Spencera773bd52006-08-04 18:18:08 +000031883
31884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031885 ac_ext=c
31886ac_cpp='$CPP $CPPFLAGS'
31887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31889ac_compiler_gnu=$ac_cv_c_compiler_gnu
31890
31891
31892fi
Reid Spencera773bd52006-08-04 18:18:08 +000031893{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31894echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031895if test "$ac_cv_cxx_have_std_iterator" = yes
31896then
John Criswell40468462004-09-24 21:19:06 +000031897
31898cat >>confdefs.h <<\_ACEOF
31899#define HAVE_STD_ITERATOR 1
31900_ACEOF
31901
31902else
31903
31904cat >>confdefs.h <<\_ACEOF
31905#define HAVE_STD_ITERATOR 0
31906_ACEOF
31907
John Criswell7a73b802003-06-30 21:59:07 +000031908fi
31909
Reid Spencera773bd52006-08-04 18:18:08 +000031910{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31911echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031912if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31914else
31915
Reid Spencera773bd52006-08-04 18:18:08 +000031916 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031917ac_cpp='$CXXCPP $CPPFLAGS'
31918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31921
31922 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031923/* confdefs.h. */
31924_ACEOF
31925cat confdefs.h >>conftest.$ac_ext
31926cat >>conftest.$ac_ext <<_ACEOF
31927/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031928#include <iterator>
31929#ifdef HAVE_NAMESPACES
31930using namespace std;
31931#endif
John Criswell7a73b802003-06-30 21:59:07 +000031932int
31933main ()
31934{
John Criswellc78022e2003-07-29 19:11:58 +000031935bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031936 ;
31937 return 0;
31938}
31939_ACEOF
31940rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031941if { (ac_try="$ac_compile"
31942case "(($ac_try" in
31943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31944 *) ac_try_echo=$ac_try;;
31945esac
31946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31947 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031948 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031949 grep -v '^ *+' conftest.er1 >conftest.err
31950 rm -f conftest.er1
31951 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31953 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31955 { (case "(($ac_try" in
31956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31957 *) ac_try_echo=$ac_try;;
31958esac
31959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31960 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031961 ac_status=$?
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); }; } &&
31964 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031965 { (case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31968esac
31969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031971 ac_status=$?
31972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31973 (exit $ac_status); }; }; then
31974 ac_cv_cxx_have_bi_iterator=yes
31975else
31976 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031977sed 's/^/| /' conftest.$ac_ext >&5
31978
Reid Spencera773bd52006-08-04 18:18:08 +000031979 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031980fi
Reid Spencera773bd52006-08-04 18:18:08 +000031981
31982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031983 ac_ext=c
31984ac_cpp='$CPP $CPPFLAGS'
31985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31987ac_compiler_gnu=$ac_cv_c_compiler_gnu
31988
31989
31990fi
Reid Spencera773bd52006-08-04 18:18:08 +000031991{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31992echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031993if test "$ac_cv_cxx_have_bi_iterator" = yes
31994then
John Criswell40468462004-09-24 21:19:06 +000031995
31996cat >>confdefs.h <<\_ACEOF
31997#define HAVE_BI_ITERATOR 1
31998_ACEOF
31999
32000else
32001
32002cat >>confdefs.h <<\_ACEOF
32003#define HAVE_BI_ITERATOR 0
32004_ACEOF
32005
John Criswell7a73b802003-06-30 21:59:07 +000032006fi
32007
Reid Spencera773bd52006-08-04 18:18:08 +000032008{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
32009echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032010if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
32011 echo $ECHO_N "(cached) $ECHO_C" >&6
32012else
32013
Reid Spencera773bd52006-08-04 18:18:08 +000032014 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000032015ac_cpp='$CXXCPP $CPPFLAGS'
32016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32019
32020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032021/* confdefs.h. */
32022_ACEOF
32023cat confdefs.h >>conftest.$ac_ext
32024cat >>conftest.$ac_ext <<_ACEOF
32025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032026#include <iterator>
32027#ifdef HAVE_NAMESPACES
32028using namespace std;
32029#endif
John Criswell7a73b802003-06-30 21:59:07 +000032030int
32031main ()
32032{
John Criswellc78022e2003-07-29 19:11:58 +000032033forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032034 ;
32035 return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032039if { (ac_try="$ac_compile"
32040case "(($ac_try" in
32041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32042 *) ac_try_echo=$ac_try;;
32043esac
32044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32045 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032047 grep -v '^ *+' conftest.er1 >conftest.err
32048 rm -f conftest.er1
32049 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32051 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32053 { (case "(($ac_try" in
32054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32055 *) ac_try_echo=$ac_try;;
32056esac
32057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32058 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032059 ac_status=$?
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; } &&
32062 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032063 { (case "(($ac_try" in
32064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32065 *) ac_try_echo=$ac_try;;
32066esac
32067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32068 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032069 ac_status=$?
32070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32071 (exit $ac_status); }; }; then
32072 ac_cv_cxx_have_fwd_iterator=yes
32073else
32074 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032075sed 's/^/| /' conftest.$ac_ext >&5
32076
Reid Spencera773bd52006-08-04 18:18:08 +000032077 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000032078fi
Reid Spencera773bd52006-08-04 18:18:08 +000032079
32080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032081 ac_ext=c
32082ac_cpp='$CPP $CPPFLAGS'
32083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32085ac_compiler_gnu=$ac_cv_c_compiler_gnu
32086
32087
32088fi
Reid Spencera773bd52006-08-04 18:18:08 +000032089{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
32090echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000032091if test "$ac_cv_cxx_have_fwd_iterator" = yes
32092then
John Criswell40468462004-09-24 21:19:06 +000032093
32094cat >>confdefs.h <<\_ACEOF
32095#define HAVE_FWD_ITERATOR 1
32096_ACEOF
32097
32098else
32099
32100cat >>confdefs.h <<\_ACEOF
32101#define HAVE_FWD_ITERATOR 0
32102_ACEOF
32103
John Criswell7a73b802003-06-30 21:59:07 +000032104fi
32105
32106
Reid Spencera773bd52006-08-04 18:18:08 +000032107{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
32108echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032109if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
32110 echo $ECHO_N "(cached) $ECHO_C" >&6
32111else
Reid Spencera773bd52006-08-04 18:18:08 +000032112 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032113ac_cpp='$CXXCPP $CPPFLAGS'
32114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32117
Reid Spencerabec8f92004-10-27 23:03:44 +000032118 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032119/* confdefs.h. */
32120_ACEOF
32121cat confdefs.h >>conftest.$ac_ext
32122cat >>conftest.$ac_ext <<_ACEOF
32123/* end confdefs.h. */
32124#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032125int
32126main ()
32127{
32128float f; isnan(f);
32129 ;
32130 return 0;
32131}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032132_ACEOF
32133rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032134if { (ac_try="$ac_compile"
32135case "(($ac_try" in
32136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137 *) ac_try_echo=$ac_try;;
32138esac
32139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032141 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032142 grep -v '^ *+' conftest.er1 >conftest.err
32143 rm -f conftest.er1
32144 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032147 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32148 { (case "(($ac_try" in
32149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32150 *) ac_try_echo=$ac_try;;
32151esac
32152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32153 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032154 ac_status=$?
32155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32156 (exit $ac_status); }; } &&
32157 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032158 { (case "(($ac_try" in
32159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32160 *) ac_try_echo=$ac_try;;
32161esac
32162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32163 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032164 ac_status=$?
32165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32166 (exit $ac_status); }; }; then
32167 ac_cv_func_isnan_in_math_h=yes
32168else
32169 echo "$as_me: failed program was:" >&5
32170sed 's/^/| /' conftest.$ac_ext >&5
32171
Reid Spencera773bd52006-08-04 18:18:08 +000032172 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032173fi
Reid Spencera773bd52006-08-04 18:18:08 +000032174
32175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032176 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032177ac_cpp='$CPP $CPPFLAGS'
32178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32180ac_compiler_gnu=$ac_cv_c_compiler_gnu
32181
32182fi
Reid Spencera773bd52006-08-04 18:18:08 +000032183{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32184echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032185
32186
32187if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032188
32189cat >>confdefs.h <<\_ACEOF
32190#define HAVE_ISNAN_IN_MATH_H 1
32191_ACEOF
32192
Reid Spencerabec8f92004-10-27 23:03:44 +000032193fi
32194
Reid Spencera773bd52006-08-04 18:18:08 +000032195{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32196echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032197if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32198 echo $ECHO_N "(cached) $ECHO_C" >&6
32199else
Reid Spencera773bd52006-08-04 18:18:08 +000032200 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032201ac_cpp='$CXXCPP $CPPFLAGS'
32202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32205
Reid Spencerabec8f92004-10-27 23:03:44 +000032206 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032207/* confdefs.h. */
32208_ACEOF
32209cat confdefs.h >>conftest.$ac_ext
32210cat >>conftest.$ac_ext <<_ACEOF
32211/* end confdefs.h. */
32212#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032213int
32214main ()
32215{
32216float f; isnan(f);
32217 ;
32218 return 0;
32219}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032220_ACEOF
32221rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032222if { (ac_try="$ac_compile"
32223case "(($ac_try" in
32224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32225 *) ac_try_echo=$ac_try;;
32226esac
32227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32228 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032230 grep -v '^ *+' conftest.er1 >conftest.err
32231 rm -f conftest.er1
32232 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032235 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32236 { (case "(($ac_try" in
32237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32238 *) ac_try_echo=$ac_try;;
32239esac
32240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32241 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032242 ac_status=$?
32243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32244 (exit $ac_status); }; } &&
32245 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032246 { (case "(($ac_try" in
32247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248 *) ac_try_echo=$ac_try;;
32249esac
32250eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032252 ac_status=$?
32253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254 (exit $ac_status); }; }; then
32255 ac_cv_func_isnan_in_cmath=yes
32256else
32257 echo "$as_me: failed program was:" >&5
32258sed 's/^/| /' conftest.$ac_ext >&5
32259
Reid Spencera773bd52006-08-04 18:18:08 +000032260 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032261fi
Reid Spencera773bd52006-08-04 18:18:08 +000032262
32263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032264 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032265ac_cpp='$CPP $CPPFLAGS'
32266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32268ac_compiler_gnu=$ac_cv_c_compiler_gnu
32269
32270fi
Reid Spencera773bd52006-08-04 18:18:08 +000032271{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32272echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032273
32274if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032275
32276cat >>confdefs.h <<\_ACEOF
32277#define HAVE_ISNAN_IN_CMATH 1
32278_ACEOF
32279
Reid Spencerabec8f92004-10-27 23:03:44 +000032280fi
32281
Reid Spencera773bd52006-08-04 18:18:08 +000032282{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32283echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032284if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32285 echo $ECHO_N "(cached) $ECHO_C" >&6
32286else
Reid Spencera773bd52006-08-04 18:18:08 +000032287 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032288ac_cpp='$CXXCPP $CPPFLAGS'
32289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32292
Reid Spencerabec8f92004-10-27 23:03:44 +000032293 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032294/* confdefs.h. */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h. */
32299#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032300int
32301main ()
32302{
32303float f; std::isnan(f);
32304 ;
32305 return 0;
32306}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032307_ACEOF
32308rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032309if { (ac_try="$ac_compile"
32310case "(($ac_try" in
32311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32312 *) ac_try_echo=$ac_try;;
32313esac
32314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32315 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032317 grep -v '^ *+' conftest.er1 >conftest.err
32318 rm -f conftest.er1
32319 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32323 { (case "(($ac_try" in
32324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325 *) ac_try_echo=$ac_try;;
32326esac
32327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; } &&
32332 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032333 { (case "(($ac_try" in
32334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335 *) ac_try_echo=$ac_try;;
32336esac
32337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032339 ac_status=$?
32340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32341 (exit $ac_status); }; }; then
32342 ac_cv_func_std_isnan_in_cmath=yes
32343else
32344 echo "$as_me: failed program was:" >&5
32345sed 's/^/| /' conftest.$ac_ext >&5
32346
Reid Spencera773bd52006-08-04 18:18:08 +000032347 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032348fi
Reid Spencera773bd52006-08-04 18:18:08 +000032349
32350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032351 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032352ac_cpp='$CPP $CPPFLAGS'
32353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32355ac_compiler_gnu=$ac_cv_c_compiler_gnu
32356
32357fi
Reid Spencera773bd52006-08-04 18:18:08 +000032358{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32359echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032360
32361if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032362
32363cat >>confdefs.h <<\_ACEOF
32364#define HAVE_STD_ISNAN_IN_CMATH 1
32365_ACEOF
32366
Reid Spencerabec8f92004-10-27 23:03:44 +000032367fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032368
32369
Reid Spencera773bd52006-08-04 18:18:08 +000032370{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32371echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032372if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32373 echo $ECHO_N "(cached) $ECHO_C" >&6
32374else
Reid Spencera773bd52006-08-04 18:18:08 +000032375 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032376ac_cpp='$CXXCPP $CPPFLAGS'
32377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32380
Reid Spencerabec8f92004-10-27 23:03:44 +000032381 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032382/* confdefs.h. */
32383_ACEOF
32384cat confdefs.h >>conftest.$ac_ext
32385cat >>conftest.$ac_ext <<_ACEOF
32386/* end confdefs.h. */
32387#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032388int
32389main ()
32390{
32391float f; isinf(f);
32392 ;
32393 return 0;
32394}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032395_ACEOF
32396rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032397if { (ac_try="$ac_compile"
32398case "(($ac_try" in
32399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32400 *) ac_try_echo=$ac_try;;
32401esac
32402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32403 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032404 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032405 grep -v '^ *+' conftest.er1 >conftest.err
32406 rm -f conftest.er1
32407 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32411 { (case "(($ac_try" in
32412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32413 *) ac_try_echo=$ac_try;;
32414esac
32415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32416 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032417 ac_status=$?
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; } &&
32420 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032421 { (case "(($ac_try" in
32422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32423 *) ac_try_echo=$ac_try;;
32424esac
32425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32426 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032427 ac_status=$?
32428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32429 (exit $ac_status); }; }; then
32430 ac_cv_func_isinf_in_math_h=yes
32431else
32432 echo "$as_me: failed program was:" >&5
32433sed 's/^/| /' conftest.$ac_ext >&5
32434
Reid Spencera773bd52006-08-04 18:18:08 +000032435 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032436fi
Reid Spencera773bd52006-08-04 18:18:08 +000032437
32438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032439 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032440ac_cpp='$CPP $CPPFLAGS'
32441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32443ac_compiler_gnu=$ac_cv_c_compiler_gnu
32444
32445fi
Reid Spencera773bd52006-08-04 18:18:08 +000032446{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32447echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032448
32449if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032450
32451cat >>confdefs.h <<\_ACEOF
32452#define HAVE_ISINF_IN_MATH_H 1
32453_ACEOF
32454
Reid Spencerabec8f92004-10-27 23:03:44 +000032455fi
32456
Reid Spencera773bd52006-08-04 18:18:08 +000032457{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32458echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032459if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32461else
Reid Spencera773bd52006-08-04 18:18:08 +000032462 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032463ac_cpp='$CXXCPP $CPPFLAGS'
32464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32467
Reid Spencerabec8f92004-10-27 23:03:44 +000032468 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032469/* confdefs.h. */
32470_ACEOF
32471cat confdefs.h >>conftest.$ac_ext
32472cat >>conftest.$ac_ext <<_ACEOF
32473/* end confdefs.h. */
32474#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032475int
32476main ()
32477{
32478float f; isinf(f);
32479 ;
32480 return 0;
32481}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032482_ACEOF
32483rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032484if { (ac_try="$ac_compile"
32485case "(($ac_try" in
32486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32487 *) ac_try_echo=$ac_try;;
32488esac
32489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32490 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032492 grep -v '^ *+' conftest.er1 >conftest.err
32493 rm -f conftest.er1
32494 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32498 { (case "(($ac_try" in
32499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32500 *) ac_try_echo=$ac_try;;
32501esac
32502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32503 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032504 ac_status=$?
32505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32506 (exit $ac_status); }; } &&
32507 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032508 { (case "(($ac_try" in
32509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32510 *) ac_try_echo=$ac_try;;
32511esac
32512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32513 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032514 ac_status=$?
32515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32516 (exit $ac_status); }; }; then
32517 ac_cv_func_isinf_in_cmath=yes
32518else
32519 echo "$as_me: failed program was:" >&5
32520sed 's/^/| /' conftest.$ac_ext >&5
32521
Reid Spencera773bd52006-08-04 18:18:08 +000032522 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032523fi
Reid Spencera773bd52006-08-04 18:18:08 +000032524
32525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032526 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032527ac_cpp='$CPP $CPPFLAGS'
32528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32530ac_compiler_gnu=$ac_cv_c_compiler_gnu
32531
32532fi
Reid Spencera773bd52006-08-04 18:18:08 +000032533{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32534echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032535
32536if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032537
32538cat >>confdefs.h <<\_ACEOF
32539#define HAVE_ISINF_IN_CMATH 1
32540_ACEOF
32541
Reid Spencerabec8f92004-10-27 23:03:44 +000032542fi
32543
Reid Spencera773bd52006-08-04 18:18:08 +000032544{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32545echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032546if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32547 echo $ECHO_N "(cached) $ECHO_C" >&6
32548else
Reid Spencera773bd52006-08-04 18:18:08 +000032549 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032550ac_cpp='$CXXCPP $CPPFLAGS'
32551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32554
Reid Spencerabec8f92004-10-27 23:03:44 +000032555 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032556/* confdefs.h. */
32557_ACEOF
32558cat confdefs.h >>conftest.$ac_ext
32559cat >>conftest.$ac_ext <<_ACEOF
32560/* end confdefs.h. */
32561#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032562int
32563main ()
32564{
32565float f; std::isinf(f)}
32566 ;
32567 return 0;
32568}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032569_ACEOF
32570rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032571if { (ac_try="$ac_compile"
32572case "(($ac_try" in
32573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32574 *) ac_try_echo=$ac_try;;
32575esac
32576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32577 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032578 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032579 grep -v '^ *+' conftest.er1 >conftest.err
32580 rm -f conftest.er1
32581 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32585 { (case "(($ac_try" in
32586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32587 *) ac_try_echo=$ac_try;;
32588esac
32589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32590 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032595 { (case "(($ac_try" in
32596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32597 *) ac_try_echo=$ac_try;;
32598esac
32599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32600 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; }; then
32604 ac_cv_func_std_isinf_in_cmath=yes
32605else
32606 echo "$as_me: failed program was:" >&5
32607sed 's/^/| /' conftest.$ac_ext >&5
32608
Reid Spencera773bd52006-08-04 18:18:08 +000032609 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032610fi
Reid Spencera773bd52006-08-04 18:18:08 +000032611
32612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032613 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032614ac_cpp='$CPP $CPPFLAGS'
32615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32617ac_compiler_gnu=$ac_cv_c_compiler_gnu
32618
32619fi
Reid Spencera773bd52006-08-04 18:18:08 +000032620{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32621echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032622
32623if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032624
32625cat >>confdefs.h <<\_ACEOF
32626#define HAVE_STD_ISINF_IN_CMATH 1
32627_ACEOF
32628
Reid Spencerabec8f92004-10-27 23:03:44 +000032629fi
32630
Reid Spencera773bd52006-08-04 18:18:08 +000032631{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32632echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032633if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32634 echo $ECHO_N "(cached) $ECHO_C" >&6
32635else
Reid Spencera773bd52006-08-04 18:18:08 +000032636 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032637ac_cpp='$CXXCPP $CPPFLAGS'
32638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32641
Reid Spencerabec8f92004-10-27 23:03:44 +000032642 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032643/* confdefs.h. */
32644_ACEOF
32645cat confdefs.h >>conftest.$ac_ext
32646cat >>conftest.$ac_ext <<_ACEOF
32647/* end confdefs.h. */
32648#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032649int
32650main ()
32651{
32652float f; finite(f);
32653 ;
32654 return 0;
32655}
Brian Gaeked59a6472004-07-21 03:33:58 +000032656_ACEOF
32657rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032658if { (ac_try="$ac_compile"
32659case "(($ac_try" in
32660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32661 *) ac_try_echo=$ac_try;;
32662esac
32663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32664 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032666 grep -v '^ *+' conftest.er1 >conftest.err
32667 rm -f conftest.er1
32668 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32670 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32672 { (case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32675esac
32676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032678 ac_status=$?
32679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32680 (exit $ac_status); }; } &&
32681 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032682 { (case "(($ac_try" in
32683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32684 *) ac_try_echo=$ac_try;;
32685esac
32686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32687 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; }; then
32691 ac_cv_func_finite_in_ieeefp_h=yes
32692else
32693 echo "$as_me: failed program was:" >&5
32694sed 's/^/| /' conftest.$ac_ext >&5
32695
Reid Spencera773bd52006-08-04 18:18:08 +000032696 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032697fi
Reid Spencera773bd52006-08-04 18:18:08 +000032698
32699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032700 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032701ac_cpp='$CPP $CPPFLAGS'
32702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32704ac_compiler_gnu=$ac_cv_c_compiler_gnu
32705
32706fi
Reid Spencera773bd52006-08-04 18:18:08 +000032707{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32708echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032709
Brian Gaeke6802b552004-10-28 05:06:45 +000032710if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032711
32712cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032713#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032714_ACEOF
32715
Reid Spencerabec8f92004-10-27 23:03:44 +000032716fi
32717
32718
32719
John Criswell7a73b802003-06-30 21:59:07 +000032720
32721
32722for ac_header in stdlib.h unistd.h
32723do
32724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032725if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32727echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032729 echo $ECHO_N "(cached) $ECHO_C" >&6
32730fi
Reid Spencera773bd52006-08-04 18:18:08 +000032731ac_res=`eval echo '${'$as_ac_Header'}'`
32732 { echo "$as_me:$LINENO: result: $ac_res" >&5
32733echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032734else
32735 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032736{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032739/* confdefs.h. */
32740_ACEOF
32741cat confdefs.h >>conftest.$ac_ext
32742cat >>conftest.$ac_ext <<_ACEOF
32743/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032744$ac_includes_default
32745#include <$ac_header>
32746_ACEOF
32747rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032748if { (ac_try="$ac_compile"
32749case "(($ac_try" in
32750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32751 *) ac_try_echo=$ac_try;;
32752esac
32753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32754 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032755 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032756 grep -v '^ *+' conftest.er1 >conftest.err
32757 rm -f conftest.er1
32758 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32760 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32762 { (case "(($ac_try" in
32763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32764 *) ac_try_echo=$ac_try;;
32765esac
32766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32767 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032768 ac_status=$?
32769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32770 (exit $ac_status); }; } &&
32771 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032772 { (case "(($ac_try" in
32773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32774 *) ac_try_echo=$ac_try;;
32775esac
32776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32777 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_header_compiler=yes
32782else
32783 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032784sed 's/^/| /' conftest.$ac_ext >&5
32785
Reid Spencera773bd52006-08-04 18:18:08 +000032786 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032787fi
Reid Spencera773bd52006-08-04 18:18:08 +000032788
32789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32790{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32791echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032792
32793# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032794{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032796cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032797/* confdefs.h. */
32798_ACEOF
32799cat confdefs.h >>conftest.$ac_ext
32800cat >>conftest.$ac_ext <<_ACEOF
32801/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032802#include <$ac_header>
32803_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032804if { (ac_try="$ac_cpp conftest.$ac_ext"
32805case "(($ac_try" in
32806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32807 *) ac_try_echo=$ac_try;;
32808esac
32809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032811 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032812 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032813 rm -f conftest.er1
32814 cat conftest.err >&5
32815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32816 (exit $ac_status); } >/dev/null; then
32817 if test -s conftest.err; then
32818 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032820 else
32821 ac_cpp_err=
32822 fi
32823else
32824 ac_cpp_err=yes
32825fi
32826if test -z "$ac_cpp_err"; then
32827 ac_header_preproc=yes
32828else
32829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032830sed 's/^/| /' conftest.$ac_ext >&5
32831
John Criswell7a73b802003-06-30 21:59:07 +000032832 ac_header_preproc=no
32833fi
Reid Spencera773bd52006-08-04 18:18:08 +000032834
John Criswell7a73b802003-06-30 21:59:07 +000032835rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032836{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32837echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032838
32839# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32841 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32846 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032847 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032848 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032861 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032862## ----------------------------------- ##
32863## Report this to llvmbugs@cs.uiuc.edu ##
32864## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032865_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032866 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032867 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032868esac
Reid Spencera773bd52006-08-04 18:18:08 +000032869{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032872 echo $ECHO_N "(cached) $ECHO_C" >&6
32873else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032874 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032875fi
Reid Spencera773bd52006-08-04 18:18:08 +000032876ac_res=`eval echo '${'$as_ac_Header'}'`
32877 { echo "$as_me:$LINENO: result: $ac_res" >&5
32878echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032879
32880fi
32881if test `eval echo '${'$as_ac_Header'}'` = yes; then
32882 cat >>confdefs.h <<_ACEOF
32883#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32884_ACEOF
32885
32886fi
32887
32888done
32889
32890
32891for ac_func in getpagesize
32892do
32893as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032894{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32895echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32896if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032897 echo $ECHO_N "(cached) $ECHO_C" >&6
32898else
32899 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032900/* confdefs.h. */
32901_ACEOF
32902cat confdefs.h >>conftest.$ac_ext
32903cat >>conftest.$ac_ext <<_ACEOF
32904/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032905/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32907#define $ac_func innocuous_$ac_func
32908
John Criswell7a73b802003-06-30 21:59:07 +000032909/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032910 which can conflict with char $ac_func (); below.
32911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32912 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032913
John Criswell0c38eaf2003-09-10 15:17:25 +000032914#ifdef __STDC__
32915# include <limits.h>
32916#else
32917# include <assert.h>
32918#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032919
32920#undef $ac_func
32921
Reid Spencera773bd52006-08-04 18:18:08 +000032922/* Override any GCC internal prototype to avoid an error.
32923 Use char because int might match the return type of a GCC
32924 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032925#ifdef __cplusplus
32926extern "C"
32927#endif
John Criswell7a73b802003-06-30 21:59:07 +000032928char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032929/* The GNU C library defines this for functions which it implements
32930 to always fail with ENOSYS. Some functions are actually named
32931 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032932#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032933choke me
John Criswell7a73b802003-06-30 21:59:07 +000032934#endif
32935
John Criswell0c38eaf2003-09-10 15:17:25 +000032936int
32937main ()
32938{
Reid Spencera773bd52006-08-04 18:18:08 +000032939return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032940 ;
32941 return 0;
32942}
32943_ACEOF
32944rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032945if { (ac_try="$ac_link"
32946case "(($ac_try" in
32947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32948 *) ac_try_echo=$ac_try;;
32949esac
32950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32951 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032952 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032953 grep -v '^ *+' conftest.er1 >conftest.err
32954 rm -f conftest.er1
32955 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32959 { (case "(($ac_try" in
32960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32961 *) ac_try_echo=$ac_try;;
32962esac
32963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32964 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032965 ac_status=$?
32966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32967 (exit $ac_status); }; } &&
32968 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032969 { (case "(($ac_try" in
32970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971 *) ac_try_echo=$ac_try;;
32972esac
32973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032975 ac_status=$?
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); }; }; then
32978 eval "$as_ac_var=yes"
32979else
32980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032981sed 's/^/| /' conftest.$ac_ext >&5
32982
Reid Spencera773bd52006-08-04 18:18:08 +000032983 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032984fi
Reid Spencera773bd52006-08-04 18:18:08 +000032985
32986rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032987 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032988fi
Reid Spencera773bd52006-08-04 18:18:08 +000032989ac_res=`eval echo '${'$as_ac_var'}'`
32990 { echo "$as_me:$LINENO: result: $ac_res" >&5
32991echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032992if test `eval echo '${'$as_ac_var'}'` = yes; then
32993 cat >>confdefs.h <<_ACEOF
32994#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32995_ACEOF
32996
32997fi
32998done
32999
Reid Spencera773bd52006-08-04 18:18:08 +000033000{ echo "$as_me:$LINENO: checking for working mmap" >&5
33001echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033002if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
33003 echo $ECHO_N "(cached) $ECHO_C" >&6
33004else
33005 if test "$cross_compiling" = yes; then
33006 ac_cv_func_mmap_fixed_mapped=no
33007else
33008 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033009/* confdefs.h. */
33010_ACEOF
33011cat confdefs.h >>conftest.$ac_ext
33012cat >>conftest.$ac_ext <<_ACEOF
33013/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000033014$ac_includes_default
33015/* malloc might have been renamed as rpl_malloc. */
33016#undef malloc
33017
33018/* Thanks to Mike Haertel and Jim Avera for this test.
33019 Here is a matrix of mmap possibilities:
33020 mmap private not fixed
33021 mmap private fixed at somewhere currently unmapped
33022 mmap private fixed at somewhere already mapped
33023 mmap shared not fixed
33024 mmap shared fixed at somewhere currently unmapped
33025 mmap shared fixed at somewhere already mapped
33026 For private mappings, we should verify that changes cannot be read()
33027 back from the file, nor mmap's back from the file at a different
33028 address. (There have been systems where private was not correctly
33029 implemented like the infamous i386 svr4.0, and systems where the
33030 VM page cache was not coherent with the file system buffer cache
33031 like early versions of FreeBSD and possibly contemporary NetBSD.)
33032 For shared mappings, we should conversely verify that changes get
33033 propagated back to all the places they're supposed to be.
33034
33035 Grep wants private fixed already mapped.
33036 The main things grep needs to know about mmap are:
33037 * does it exist and is it safe to write into the mmap'd area
33038 * how to use it (BSD variants) */
33039
33040#include <fcntl.h>
33041#include <sys/mman.h>
33042
33043#if !STDC_HEADERS && !HAVE_STDLIB_H
33044char *malloc ();
33045#endif
33046
33047/* This mess was copied from the GNU getpagesize.h. */
33048#if !HAVE_GETPAGESIZE
33049/* Assume that all systems that can run configure have sys/param.h. */
33050# if !HAVE_SYS_PARAM_H
33051# define HAVE_SYS_PARAM_H 1
33052# endif
33053
33054# ifdef _SC_PAGESIZE
33055# define getpagesize() sysconf(_SC_PAGESIZE)
33056# else /* no _SC_PAGESIZE */
33057# if HAVE_SYS_PARAM_H
33058# include <sys/param.h>
33059# ifdef EXEC_PAGESIZE
33060# define getpagesize() EXEC_PAGESIZE
33061# else /* no EXEC_PAGESIZE */
33062# ifdef NBPG
33063# define getpagesize() NBPG * CLSIZE
33064# ifndef CLSIZE
33065# define CLSIZE 1
33066# endif /* no CLSIZE */
33067# else /* no NBPG */
33068# ifdef NBPC
33069# define getpagesize() NBPC
33070# else /* no NBPC */
33071# ifdef PAGESIZE
33072# define getpagesize() PAGESIZE
33073# endif /* PAGESIZE */
33074# endif /* no NBPC */
33075# endif /* no NBPG */
33076# endif /* no EXEC_PAGESIZE */
33077# else /* no HAVE_SYS_PARAM_H */
33078# define getpagesize() 8192 /* punt totally */
33079# endif /* no HAVE_SYS_PARAM_H */
33080# endif /* no _SC_PAGESIZE */
33081
33082#endif /* no HAVE_GETPAGESIZE */
33083
33084int
33085main ()
33086{
33087 char *data, *data2, *data3;
33088 int i, pagesize;
33089 int fd;
33090
33091 pagesize = getpagesize ();
33092
33093 /* First, make a file with some known garbage in it. */
33094 data = (char *) malloc (pagesize);
33095 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000033096 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033097 for (i = 0; i < pagesize; ++i)
33098 *(data + i) = rand ();
33099 umask (0);
33100 fd = creat ("conftest.mmap", 0600);
33101 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033102 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033103 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033104 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033105 close (fd);
33106
33107 /* Next, try to mmap the file at a fixed address which already has
33108 something else allocated at it. If we can, also make sure that
33109 we see the same garbage. */
33110 fd = open ("conftest.mmap", O_RDWR);
33111 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000033112 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033113 data2 = (char *) malloc (2 * pagesize);
33114 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000033115 return 1;
33116 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033117 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033118 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033119 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033120 for (i = 0; i < pagesize; ++i)
33121 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033122 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033123
33124 /* Finally, make sure that changes to the mapped area do not
33125 percolate back to the file as seen by read(). (This is a bug on
33126 some variants of i386 svr4.0.) */
33127 for (i = 0; i < pagesize; ++i)
33128 *(data2 + i) = *(data2 + i) + 1;
33129 data3 = (char *) malloc (pagesize);
33130 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033131 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033132 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033133 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033134 for (i = 0; i < pagesize; ++i)
33135 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033136 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033137 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033138 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033139}
33140_ACEOF
33141rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033142if { (ac_try="$ac_link"
33143case "(($ac_try" in
33144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145 *) ac_try_echo=$ac_try;;
33146esac
33147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033149 ac_status=$?
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033152 { (case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33155esac
33156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033158 ac_status=$?
33159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33160 (exit $ac_status); }; }; then
33161 ac_cv_func_mmap_fixed_mapped=yes
33162else
33163 echo "$as_me: program exited with status $ac_status" >&5
33164echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033165sed 's/^/| /' conftest.$ac_ext >&5
33166
John Criswell7a73b802003-06-30 21:59:07 +000033167( exit $ac_status )
33168ac_cv_func_mmap_fixed_mapped=no
33169fi
Reid Spencera773bd52006-08-04 18:18:08 +000033170rm -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 +000033171fi
Reid Spencera773bd52006-08-04 18:18:08 +000033172
33173
John Criswell7a73b802003-06-30 21:59:07 +000033174fi
Reid Spencera773bd52006-08-04 18:18:08 +000033175{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33176echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033177if test $ac_cv_func_mmap_fixed_mapped = yes; then
33178
33179cat >>confdefs.h <<\_ACEOF
33180#define HAVE_MMAP 1
33181_ACEOF
33182
33183fi
33184rm -f conftest.mmap
33185
Reid Spencera773bd52006-08-04 18:18:08 +000033186{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33187echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033188if test "${ac_cv_func_mmap_file+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33190else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033191 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033192ac_cpp='$CPP $CPPFLAGS'
33193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33195ac_compiler_gnu=$ac_cv_c_compiler_gnu
33196
33197 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033198 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033199else
33200 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033201
Reid Spencer777ce172004-09-20 04:09:56 +000033202 /* confdefs.h. */
33203_ACEOF
33204cat confdefs.h >>conftest.$ac_ext
33205cat >>conftest.$ac_ext <<_ACEOF
33206/* end confdefs.h. */
33207
John Criswell7a73b802003-06-30 21:59:07 +000033208#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033209#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033210#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033211
33212int
33213main ()
33214{
John Criswell7a73b802003-06-30 21:59:07 +000033215
33216 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033217 fd = creat ("foo",0777);
33218 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33219 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033220 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033221 ;
33222 return 0;
33223}
John Criswell7a73b802003-06-30 21:59:07 +000033224_ACEOF
33225rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033226if { (ac_try="$ac_link"
33227case "(($ac_try" in
33228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229 *) ac_try_echo=$ac_try;;
33230esac
33231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033236 { (case "(($ac_try" in
33237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33238 *) ac_try_echo=$ac_try;;
33239esac
33240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33241 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033242 ac_status=$?
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); }; }; then
33245 ac_cv_func_mmap_file=yes
33246else
33247 echo "$as_me: program exited with status $ac_status" >&5
33248echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033249sed 's/^/| /' conftest.$ac_ext >&5
33250
John Criswell7a73b802003-06-30 21:59:07 +000033251( exit $ac_status )
33252ac_cv_func_mmap_file=no
33253fi
Reid Spencera773bd52006-08-04 18:18:08 +000033254rm -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 +000033255fi
Reid Spencera773bd52006-08-04 18:18:08 +000033256
33257
John Criswell7a73b802003-06-30 21:59:07 +000033258 ac_ext=c
33259ac_cpp='$CPP $CPPFLAGS'
33260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33262ac_compiler_gnu=$ac_cv_c_compiler_gnu
33263
33264
33265fi
Reid Spencera773bd52006-08-04 18:18:08 +000033266{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33267echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033268if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033269
33270cat >>confdefs.h <<\_ACEOF
33271#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033272_ACEOF
33273
33274 MMAP_FILE=yes
33275
33276fi
33277
Reid Spencera773bd52006-08-04 18:18:08 +000033278{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33279echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033280if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33281 echo $ECHO_N "(cached) $ECHO_C" >&6
33282else
Reid Spencer582a23c2004-12-29 07:07:57 +000033283 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033284 ac_cv_need_dev_zero_for_mmap=yes
33285 else
33286 ac_cv_need_dev_zero_for_mmap=no
33287 fi
33288
33289fi
Reid Spencera773bd52006-08-04 18:18:08 +000033290{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33291echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033292if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33293
33294cat >>confdefs.h <<\_ACEOF
33295#define NEED_DEV_ZERO_FOR_MMAP 1
33296_ACEOF
33297
33298fi
Reid Spencera773bd52006-08-04 18:18:08 +000033299{ echo "$as_me:$LINENO: checking for mprotect" >&5
33300echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033301if test "${ac_cv_func_mprotect+set}" = set; then
33302 echo $ECHO_N "(cached) $ECHO_C" >&6
33303else
33304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033305/* confdefs.h. */
33306_ACEOF
33307cat confdefs.h >>conftest.$ac_ext
33308cat >>conftest.$ac_ext <<_ACEOF
33309/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033310/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33312#define mprotect innocuous_mprotect
33313
John Criswell7a73b802003-06-30 21:59:07 +000033314/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033315 which can conflict with char mprotect (); below.
33316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33317 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033318
John Criswell0c38eaf2003-09-10 15:17:25 +000033319#ifdef __STDC__
33320# include <limits.h>
33321#else
33322# include <assert.h>
33323#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033324
33325#undef mprotect
33326
Reid Spencera773bd52006-08-04 18:18:08 +000033327/* Override any GCC internal prototype to avoid an error.
33328 Use char because int might match the return type of a GCC
33329 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033330#ifdef __cplusplus
33331extern "C"
33332#endif
John Criswell7a73b802003-06-30 21:59:07 +000033333char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033334/* The GNU C library defines this for functions which it implements
33335 to always fail with ENOSYS. Some functions are actually named
33336 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033337#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033338choke me
John Criswell7a73b802003-06-30 21:59:07 +000033339#endif
33340
John Criswell0c38eaf2003-09-10 15:17:25 +000033341int
33342main ()
33343{
Reid Spencera773bd52006-08-04 18:18:08 +000033344return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033345 ;
33346 return 0;
33347}
33348_ACEOF
33349rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033350if { (ac_try="$ac_link"
33351case "(($ac_try" in
33352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33353 *) ac_try_echo=$ac_try;;
33354esac
33355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33356 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033358 grep -v '^ *+' conftest.er1 >conftest.err
33359 rm -f conftest.er1
33360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33364 { (case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33367esac
33368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033370 ac_status=$?
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; } &&
33373 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033374 { (case "(($ac_try" in
33375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33376 *) ac_try_echo=$ac_try;;
33377esac
33378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33379 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033380 ac_status=$?
33381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33382 (exit $ac_status); }; }; then
33383 ac_cv_func_mprotect=yes
33384else
33385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033386sed 's/^/| /' conftest.$ac_ext >&5
33387
Reid Spencera773bd52006-08-04 18:18:08 +000033388 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033389fi
Reid Spencera773bd52006-08-04 18:18:08 +000033390
33391rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033392 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033393fi
Reid Spencera773bd52006-08-04 18:18:08 +000033394{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33395echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033396if test $ac_cv_func_mprotect = yes; then
33397 :
33398else
33399 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33400echo "$as_me: error: Function mprotect() required but not found" >&2;}
33401 { (exit 1); exit 1; }; }
33402fi
33403
33404
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033405if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033406then
Reid Spencer582a23c2004-12-29 07:07:57 +000033407 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33408echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033409fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033410if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033411then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033412 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33413echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033414fi
John Criswell7a73b802003-06-30 21:59:07 +000033415
33416
Reid Spencera773bd52006-08-04 18:18:08 +000033417{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33418echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033419if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
33422 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033423if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033424 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033425 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033426 if test $? -eq 0 ; then
33427 llvm_cv_llvmgcc_sanity="yes"
33428 fi
33429 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033430fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033431fi
Reid Spencera773bd52006-08-04 18:18:08 +000033432{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33433echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033434
33435if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033436 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033437 LLVMCC1=$llvmcc1path
33438
Reid Spencer502935f2004-12-22 05:56:56 +000033439 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033440 LLVMCC1PLUS=$llvmcc1pluspath
33441
Reid Spencer502935f2004-12-22 05:56:56 +000033442 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33443 LLVMGCCDIR=$llvmgccdir
33444
Reid Spencer282d8c12006-12-21 22:55:41 +000033445 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33446 LLVMGCCLIBEXEC=$llvmgcclibexec
33447
Reid Spencerb5d75b82006-05-09 00:31:01 +000033448 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033449 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33450 LLVMGCC_VERSION=$llvmgccversion
33451
33452 LLVMGCC_MAJVERS=$llvmgccmajvers
33453
Brian Gaekef3b24102003-11-16 18:38:14 +000033454fi
33455
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033456SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033457
33458
Reid Spencere9de0912004-08-20 09:03:57 +000033459# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033460# information into substitutions that will end up in Makefile.config.in
33461# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033462if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033463 prefix="/usr/local"
33464fi
Reid Spencere9de0912004-08-20 09:03:57 +000033465eval LLVM_PREFIX="${prefix}";
33466eval LLVM_BINDIR="${prefix}/bin";
33467eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033468eval LLVM_DATADIR="${prefix}/share/llvm";
33469eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33470eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033471eval LLVM_INCLUDEDIR="${prefix}/include";
33472eval LLVM_INFODIR="${prefix}/info";
33473eval LLVM_MANDIR="${prefix}/man";
33474LLVM_CONFIGTIME=`date`
33475
33476
33477
33478
33479
33480
33481
33482
33483
33484
33485
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033486# Place the various directores into the config.h file as #defines so that we
33487# can know about the installation paths within LLVM.
33488
Reid Spencere9de0912004-08-20 09:03:57 +000033489cat >>confdefs.h <<_ACEOF
33490#define LLVM_PREFIX "$LLVM_PREFIX"
33491_ACEOF
33492
33493
33494cat >>confdefs.h <<_ACEOF
33495#define LLVM_BINDIR "$LLVM_BINDIR"
33496_ACEOF
33497
33498
33499cat >>confdefs.h <<_ACEOF
33500#define LLVM_LIBDIR "$LLVM_LIBDIR"
33501_ACEOF
33502
33503
33504cat >>confdefs.h <<_ACEOF
33505#define LLVM_DATADIR "$LLVM_DATADIR"
33506_ACEOF
33507
33508
33509cat >>confdefs.h <<_ACEOF
33510#define LLVM_DATADIR "$LLVM_DOCSDIR"
33511_ACEOF
33512
33513
33514cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033515#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033516_ACEOF
33517
33518
33519cat >>confdefs.h <<_ACEOF
33520#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33521_ACEOF
33522
33523
33524cat >>confdefs.h <<_ACEOF
33525#define LLVM_INFODIR "$LLVM_INFODIR"
33526_ACEOF
33527
33528
33529cat >>confdefs.h <<_ACEOF
33530#define LLVM_MANDIR "$LLVM_MANDIR"
33531_ACEOF
33532
33533
33534cat >>confdefs.h <<_ACEOF
33535#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33536_ACEOF
33537
33538
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033539
Reid Spencera773bd52006-08-04 18:18:08 +000033540ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033541
Reid Spencera773bd52006-08-04 18:18:08 +000033542ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033543
Reid Spencera773bd52006-08-04 18:18:08 +000033544ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033545
Reid Spencera773bd52006-08-04 18:18:08 +000033546ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033547
Reid Spencera773bd52006-08-04 18:18:08 +000033548ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033549
33550
Reid Spencera773bd52006-08-04 18:18:08 +000033551ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033552
33553
Reid Spencerea949cf2006-08-16 00:45:38 +000033554ac_config_files="$ac_config_files llvm.spec"
33555
33556
Reid Spencera773bd52006-08-04 18:18:08 +000033557ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033558
33559
Reid Spencera773bd52006-08-04 18:18:08 +000033560ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033561
33562
Reid Spencera773bd52006-08-04 18:18:08 +000033563ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033564
Reid Spencera773bd52006-08-04 18:18:08 +000033565ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033566
33567
Reid Spencera773bd52006-08-04 18:18:08 +000033568ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033569
33570
Reid Spencera773bd52006-08-04 18:18:08 +000033571ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033572
33573
Reid Spencera773bd52006-08-04 18:18:08 +000033574ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033575
33576
Reid Spencer8b2e1412006-11-17 03:32:33 +000033577ac_config_commands="$ac_config_commands runtime/Makefile"
33578
33579
Reid Spencera773bd52006-08-04 18:18:08 +000033580ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033581
33582
Reid Spencera773bd52006-08-04 18:18:08 +000033583ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033584
33585
Reid Spencera773bd52006-08-04 18:18:08 +000033586ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033587
33588
Reid Spencera773bd52006-08-04 18:18:08 +000033589ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033590
33591
Reid Spencera773bd52006-08-04 18:18:08 +000033592ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033593
33594
33595
John Criswell7a73b802003-06-30 21:59:07 +000033596cat >confcache <<\_ACEOF
33597# This file is a shell script that caches the results of configure
33598# tests run on this system so they can be shared between configure
33599# scripts and configure runs, see configure's option --config-cache.
33600# It is not useful on other systems. If it contains results you don't
33601# want to keep, you may remove or edit it.
33602#
33603# config.status only pays attention to the cache file if you give it
33604# the --recheck option to rerun configure.
33605#
John Criswell0c38eaf2003-09-10 15:17:25 +000033606# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033607# loading this file, other *unset* `ac_cv_foo' will be assigned the
33608# following values.
33609
33610_ACEOF
33611
33612# The following way of writing the cache mishandles newlines in values,
33613# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033614# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033615# Ultrix sh set writes to stderr and can't be redirected directly,
33616# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033617(
33618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33619 eval ac_val=\$$ac_var
33620 case $ac_val in #(
33621 *${as_nl}*)
33622 case $ac_var in #(
33623 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33624echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33625 esac
33626 case $ac_var in #(
33627 _ | IFS | as_nl) ;; #(
33628 *) $as_unset $ac_var ;;
33629 esac ;;
33630 esac
33631 done
33632
John Criswell7a73b802003-06-30 21:59:07 +000033633 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33635 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033636 # `set' does not quote correctly, so add quotes (double-quote
33637 # substitution turns \\\\ into \\, and sed turns \\ into \).
33638 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033639 "s/'/'\\\\''/g;
33640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033641 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033642 *)
33643 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033645 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033646 esac |
33647 sort
33648) |
John Criswell7a73b802003-06-30 21:59:07 +000033649 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033650 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033651 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033652 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33654 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33656 :end' >>confcache
33657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33658 if test -w "$cache_file"; then
33659 test "x$cache_file" != "x/dev/null" &&
33660 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33661echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033662 cat confcache >$cache_file
33663 else
Reid Spencera773bd52006-08-04 18:18:08 +000033664 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33665echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033666 fi
33667fi
33668rm -f confcache
33669
33670test "x$prefix" = xNONE && prefix=$ac_default_prefix
33671# Let make expand exec_prefix.
33672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33673
John Criswell7a73b802003-06-30 21:59:07 +000033674DEFS=-DHAVE_CONFIG_H
33675
John Criswell0c38eaf2003-09-10 15:17:25 +000033676ac_libobjs=
33677ac_ltlibobjs=
33678for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33679 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033680 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33681 ac_i=`echo "$ac_i" | sed "$ac_script"`
33682 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33683 # will be set to the directory where LIBOBJS objects are built.
33684 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33685 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033686done
33687LIBOBJS=$ac_libobjs
33688
33689LTLIBOBJS=$ac_ltlibobjs
33690
33691
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033692if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33693 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33694Usually this means the macro was only invoked conditionally." >&5
33695echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33696Usually this means the macro was only invoked conditionally." >&2;}
33697 { (exit 1); exit 1; }; }
33698fi
33699if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33700 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33701Usually this means the macro was only invoked conditionally." >&5
33702echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33703Usually this means the macro was only invoked conditionally." >&2;}
33704 { (exit 1); exit 1; }; }
33705fi
John Criswell7a73b802003-06-30 21:59:07 +000033706
33707: ${CONFIG_STATUS=./config.status}
33708ac_clean_files_save=$ac_clean_files
33709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33710{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33711echo "$as_me: creating $CONFIG_STATUS" >&6;}
33712cat >$CONFIG_STATUS <<_ACEOF
33713#! $SHELL
33714# Generated by $as_me.
33715# Run this file to recreate the current configuration.
33716# Compiler output produced by configure, useful for debugging
33717# configure, is in config.log if it exists.
33718
33719debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033720ac_cs_recheck=false
33721ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033722SHELL=\${CONFIG_SHELL-$SHELL}
33723_ACEOF
33724
33725cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033726## --------------------- ##
33727## M4sh Initialization. ##
33728## --------------------- ##
33729
33730# Be Bourne compatible
33731if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33732 emulate sh
33733 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033734 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33735 # is contrary to our usage. Disable this feature.
33736 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033737 setopt NO_GLOB_SUBST
33738else
33739 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033740fi
Reid Spencera773bd52006-08-04 18:18:08 +000033741BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033742DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033743
John Criswell7a73b802003-06-30 21:59:07 +000033744
Reid Spencera773bd52006-08-04 18:18:08 +000033745# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033746# Avoid depending upon Character Ranges.
33747as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33748as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33749as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33750as_cr_digits='0123456789'
33751as_cr_alnum=$as_cr_Letters$as_cr_digits
33752
33753# The user is always right.
33754if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033755 echo "#! /bin/sh" >conf$$.sh
33756 echo "exit 0" >>conf$$.sh
33757 chmod +x conf$$.sh
33758 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033759 PATH_SEPARATOR=';'
33760 else
33761 PATH_SEPARATOR=:
33762 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033763 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033764fi
33765
Reid Spencera773bd52006-08-04 18:18:08 +000033766# Support unset when possible.
33767if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33768 as_unset=unset
33769else
33770 as_unset=false
33771fi
John Criswell7a73b802003-06-30 21:59:07 +000033772
Reid Spencera773bd52006-08-04 18:18:08 +000033773
33774# IFS
33775# We need space, tab and new line, in precisely that order. Quoting is
33776# there to prevent editors from complaining about space-tab.
33777# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33778# splitting by setting IFS to empty value.)
33779as_nl='
33780'
33781IFS=" "" $as_nl"
33782
33783# Find who we are. Look in the path if we contain no directory separator.
33784case $0 in
33785 *[\\/]* ) as_myself=$0 ;;
33786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033787for as_dir in $PATH
33788do
33789 IFS=$as_save_IFS
33790 test -z "$as_dir" && as_dir=.
33791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33792done
Reid Spencera773bd52006-08-04 18:18:08 +000033793IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033794
Reid Spencera773bd52006-08-04 18:18:08 +000033795 ;;
33796esac
33797# We did not find ourselves, most probably we were run as `sh COMMAND'
33798# in which case we are not to be found in the path.
33799if test "x$as_myself" = x; then
33800 as_myself=$0
33801fi
33802if test ! -f "$as_myself"; then
33803 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33804 { (exit 1); exit 1; }
33805fi
33806
33807# Work around bugs in pre-3.0 UWIN ksh.
33808for as_var in ENV MAIL MAILPATH
33809do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33810done
33811PS1='$ '
33812PS2='> '
33813PS4='+ '
33814
33815# NLS nuisances.
33816for as_var in \
33817 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33818 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33819 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033820do
Reid Spencera773bd52006-08-04 18:18:08 +000033821 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33822 eval $as_var=C; export $as_var
33823 else
33824 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33825 fi
33826done
33827
33828# Required to use basename.
33829if expr a : '\(a\)' >/dev/null 2>&1 &&
33830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33831 as_expr=expr
33832else
33833 as_expr=false
33834fi
33835
33836if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33837 as_basename=basename
33838else
33839 as_basename=false
33840fi
33841
33842
33843# Name of the executable.
33844as_me=`$as_basename -- "$0" ||
33845$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33846 X"$0" : 'X\(//\)$' \| \
33847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33848echo X/"$0" |
33849 sed '/^.*\/\([^/][^/]*\)\/*$/{
33850 s//\1/
33851 q
33852 }
33853 /^X\/\(\/\/\)$/{
33854 s//\1/
33855 q
33856 }
33857 /^X\/\(\/\).*/{
33858 s//\1/
33859 q
33860 }
33861 s/.*/./; q'`
33862
33863# CDPATH.
33864$as_unset CDPATH
33865
33866
33867
John Criswell7a73b802003-06-30 21:59:07 +000033868 as_lineno_1=$LINENO
33869 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033870 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033871 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033872
33873 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33874 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033875 # line-number line after each line using $LINENO; the second 'sed'
33876 # does the real work. The second script uses 'N' to pair each
33877 # line-number line with the line containing $LINENO, and appends
33878 # trailing '-' during substitution so that $LINENO is not a special
33879 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033880 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033881 # scripts with optimization help from Paolo Bonzini. Blame Lee
33882 # E. McMahon (1931-1989) for sed's syntax. :-)
33883 sed -n '
33884 p
33885 /[$]LINENO/=
33886 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033887 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033888 s/[$]LINENO.*/&-/
33889 t lineno
33890 b
33891 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033892 N
Reid Spencera773bd52006-08-04 18:18:08 +000033893 :loop
33894 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033895 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033896 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033897 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033898 chmod +x "$as_me.lineno" ||
33899 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033900 { (exit 1); exit 1; }; }
33901
33902 # Don't try to exec as it changes $[0], causing all sort of problems
33903 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033904 # original and so on. Autoconf is especially sensitive to this).
33905 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033906 # Exit status is that of the last command.
33907 exit
33908}
33909
33910
Reid Spencera773bd52006-08-04 18:18:08 +000033911if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33912 as_dirname=dirname
33913else
33914 as_dirname=false
33915fi
33916
33917ECHO_C= ECHO_N= ECHO_T=
33918case `echo -n x` in
33919-n*)
33920 case `echo 'x\c'` in
33921 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33922 *) ECHO_C='\c';;
33923 esac;;
33924*)
33925 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033926esac
33927
Reid Spencera773bd52006-08-04 18:18:08 +000033928if expr a : '\(a\)' >/dev/null 2>&1 &&
33929 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033930 as_expr=expr
33931else
33932 as_expr=false
33933fi
33934
33935rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033936if test -d conf$$.dir; then
33937 rm -f conf$$.dir/conf$$.file
33938else
33939 rm -f conf$$.dir
33940 mkdir conf$$.dir
33941fi
John Criswell7a73b802003-06-30 21:59:07 +000033942echo >conf$$.file
33943if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033944 as_ln_s='ln -s'
33945 # ... but there are two gotchas:
33946 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33947 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33948 # In both cases, we have to default to `cp -p'.
33949 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033950 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033951elif ln conf$$.file conf$$ 2>/dev/null; then
33952 as_ln_s=ln
33953else
33954 as_ln_s='cp -p'
33955fi
Reid Spencera773bd52006-08-04 18:18:08 +000033956rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33957rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033958
John Criswell0c38eaf2003-09-10 15:17:25 +000033959if mkdir -p . 2>/dev/null; then
33960 as_mkdir_p=:
33961else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033962 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033963 as_mkdir_p=false
33964fi
33965
Reid Spencera773bd52006-08-04 18:18:08 +000033966# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33967# systems may use methods other than mode bits to determine executability.
33968cat >conf$$.file <<_ASEOF
33969#! /bin/sh
33970exit 0
33971_ASEOF
33972chmod +x conf$$.file
33973if test -x conf$$.file >/dev/null 2>&1; then
33974 as_executable_p="test -x"
33975else
33976 as_executable_p=:
33977fi
33978rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033979
33980# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033981as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033982
33983# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033984as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033985
33986
John Criswell7a73b802003-06-30 21:59:07 +000033987exec 6>&1
33988
Reid Spencera773bd52006-08-04 18:18:08 +000033989# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033990# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033991# values after options handling.
33992ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033993This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033994generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033995
33996 CONFIG_FILES = $CONFIG_FILES
33997 CONFIG_HEADERS = $CONFIG_HEADERS
33998 CONFIG_LINKS = $CONFIG_LINKS
33999 CONFIG_COMMANDS = $CONFIG_COMMANDS
34000 $ $0 $@
34001
Reid Spencera773bd52006-08-04 18:18:08 +000034002on `(hostname || uname -n) 2>/dev/null | sed 1q`
34003"
34004
John Criswell7a73b802003-06-30 21:59:07 +000034005_ACEOF
34006
Reid Spencera773bd52006-08-04 18:18:08 +000034007cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034008# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000034009config_files="$ac_config_files"
34010config_headers="$ac_config_headers"
34011config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000034012
Reid Spencera773bd52006-08-04 18:18:08 +000034013_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034014
34015cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034016ac_cs_usage="\
34017\`$as_me' instantiates files from templates according to the
34018current configuration.
34019
34020Usage: $0 [OPTIONS] [FILE]...
34021
34022 -h, --help print this help, then exit
34023 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000034024 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000034025 -d, --debug don't remove temporary files
34026 --recheck update $as_me by reconfiguring in the same conditions
34027 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034028 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000034029 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000034030 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000034031
34032Configuration files:
34033$config_files
34034
34035Configuration headers:
34036$config_headers
34037
John Criswellc764fbc2003-09-06 15:17:13 +000034038Configuration commands:
34039$config_commands
34040
John Criswell7a73b802003-06-30 21:59:07 +000034041Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000034042
Reid Spencera773bd52006-08-04 18:18:08 +000034043_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034044cat >>$CONFIG_STATUS <<_ACEOF
34045ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000034046llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000034047configured by $0, generated by GNU Autoconf 2.60,
34048 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000034049
Reid Spencera773bd52006-08-04 18:18:08 +000034050Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000034051This config.status script is free software; the Free Software Foundation
34052gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000034053
34054ac_pwd='$ac_pwd'
34055srcdir='$srcdir'
34056INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000034057_ACEOF
34058
34059cat >>$CONFIG_STATUS <<\_ACEOF
34060# If no file are specified by the user, then we need to provide default
34061# value. By we need to know if files were specified by the user.
34062ac_need_defaults=:
34063while test $# != 0
34064do
34065 case $1 in
34066 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000034067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000034069 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000034070 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034071 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000034072 ac_option=$1
34073 ac_optarg=$2
34074 ac_shift=shift
34075 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034076 esac
34077
John Criswell0c38eaf2003-09-10 15:17:25 +000034078 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000034079 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000034080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34081 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034082 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34083 echo "$ac_cs_version"; exit ;;
34084 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000034085 debug=: ;;
34086 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000034087 $ac_shift
34088 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034089 ac_need_defaults=false;;
34090 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000034091 $ac_shift
34092 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000034093 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000034094 --he | --h)
34095 # Conflict between --help and --header
34096 { echo "$as_me: error: ambiguous option: $1
34097Try \`$0 --help' for more information." >&2
34098 { (exit 1); exit 1; }; };;
34099 --help | --hel | -h )
34100 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000034101 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34102 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34103 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000034104
34105 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000034106 -*) { echo "$as_me: error: unrecognized option: $1
34107Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034108 { (exit 1); exit 1; }; } ;;
34109
Reid Spencera773bd52006-08-04 18:18:08 +000034110 *) ac_config_targets="$ac_config_targets $1"
34111 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000034112
34113 esac
34114 shift
34115done
34116
John Criswell0c38eaf2003-09-10 15:17:25 +000034117ac_configure_extra_args=
34118
34119if $ac_cs_silent; then
34120 exec 6>/dev/null
34121 ac_configure_extra_args="$ac_configure_extra_args --silent"
34122fi
34123
34124_ACEOF
34125cat >>$CONFIG_STATUS <<_ACEOF
34126if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034127 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34128 CONFIG_SHELL=$SHELL
34129 export CONFIG_SHELL
34130 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034131fi
34132
John Criswell7a73b802003-06-30 21:59:07 +000034133_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034134cat >>$CONFIG_STATUS <<\_ACEOF
34135exec 5>>config.log
34136{
34137 echo
34138 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34139## Running $as_me. ##
34140_ASBOX
34141 echo "$ac_log"
34142} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034143
Reid Spencera773bd52006-08-04 18:18:08 +000034144_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034145cat >>$CONFIG_STATUS <<_ACEOF
34146#
Reid Spencera773bd52006-08-04 18:18:08 +000034147# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034148#
Reid Spencerc0682832005-02-24 19:05:19 +000034149llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034150
34151_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034152
John Criswell7a73b802003-06-30 21:59:07 +000034153cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034154
34155# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034156for ac_config_target in $ac_config_targets
34157do
Reid Spencera773bd52006-08-04 18:18:08 +000034158 case $ac_config_target in
34159 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34160 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34161 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34162 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34163 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34164 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034165 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034166 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34167 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34168 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34169 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34170 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34171 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34172 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034173 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034174 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34175 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34176 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34177 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34178 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34179
John Criswell7a73b802003-06-30 21:59:07 +000034180 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34181echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34182 { (exit 1); exit 1; }; };;
34183 esac
34184done
34185
Reid Spencera773bd52006-08-04 18:18:08 +000034186
John Criswell7a73b802003-06-30 21:59:07 +000034187# If the user did not use the arguments to specify the items to instantiate,
34188# then the envvar interface is used. Set only those that are not.
34189# We use the long form for the default assignment because of an extremely
34190# bizarre bug on SunOS 4.1.3.
34191if $ac_need_defaults; then
34192 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34193 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034195fi
34196
John Criswell0c38eaf2003-09-10 15:17:25 +000034197# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034198# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034199# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034200# Hook for its removal unless debugging.
34201# Note that there is a small window in which the directory will not be cleaned:
34202# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034203$debug ||
34204{
Reid Spencera773bd52006-08-04 18:18:08 +000034205 tmp=
34206 trap 'exit_status=$?
34207 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34208' 0
John Criswell7a73b802003-06-30 21:59:07 +000034209 trap '{ (exit 1); exit 1; }' 1 2 13 15
34210}
John Criswell7a73b802003-06-30 21:59:07 +000034211# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034212
John Criswell7a73b802003-06-30 21:59:07 +000034213{
Reid Spencera773bd52006-08-04 18:18:08 +000034214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034215 test -n "$tmp" && test -d "$tmp"
34216} ||
34217{
Reid Spencera773bd52006-08-04 18:18:08 +000034218 tmp=./conf$$-$RANDOM
34219 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034220} ||
34221{
John Criswell0c38eaf2003-09-10 15:17:25 +000034222 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034223 { (exit 1); exit 1; }
34224}
34225
John Criswell7a73b802003-06-30 21:59:07 +000034226#
Reid Spencera773bd52006-08-04 18:18:08 +000034227# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034228#
34229
34230# No need to generate the scripts if there are no CONFIG_FILES.
34231# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034232if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034233
34234_ACEOF
34235
Reid Spencera773bd52006-08-04 18:18:08 +000034236
34237
34238ac_delim='%!_!# '
34239for ac_last_try in false false false false false :; do
34240 cat >conf$$subs.sed <<_ACEOF
34241SHELL!$SHELL$ac_delim
34242PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34243PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34244PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34245PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34246PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34247PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34248exec_prefix!$exec_prefix$ac_delim
34249prefix!$prefix$ac_delim
34250program_transform_name!$program_transform_name$ac_delim
34251bindir!$bindir$ac_delim
34252sbindir!$sbindir$ac_delim
34253libexecdir!$libexecdir$ac_delim
34254datarootdir!$datarootdir$ac_delim
34255datadir!$datadir$ac_delim
34256sysconfdir!$sysconfdir$ac_delim
34257sharedstatedir!$sharedstatedir$ac_delim
34258localstatedir!$localstatedir$ac_delim
34259includedir!$includedir$ac_delim
34260oldincludedir!$oldincludedir$ac_delim
34261docdir!$docdir$ac_delim
34262infodir!$infodir$ac_delim
34263htmldir!$htmldir$ac_delim
34264dvidir!$dvidir$ac_delim
34265pdfdir!$pdfdir$ac_delim
34266psdir!$psdir$ac_delim
34267libdir!$libdir$ac_delim
34268localedir!$localedir$ac_delim
34269mandir!$mandir$ac_delim
34270DEFS!$DEFS$ac_delim
34271ECHO_C!$ECHO_C$ac_delim
34272ECHO_N!$ECHO_N$ac_delim
34273ECHO_T!$ECHO_T$ac_delim
34274LIBS!$LIBS$ac_delim
34275build_alias!$build_alias$ac_delim
34276host_alias!$host_alias$ac_delim
34277target_alias!$target_alias$ac_delim
34278LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34279subdirs!$subdirs$ac_delim
34280build!$build$ac_delim
34281build_cpu!$build_cpu$ac_delim
34282build_vendor!$build_vendor$ac_delim
34283build_os!$build_os$ac_delim
34284host!$host$ac_delim
34285host_cpu!$host_cpu$ac_delim
34286host_vendor!$host_vendor$ac_delim
34287host_os!$host_os$ac_delim
34288target!$target$ac_delim
34289target_cpu!$target_cpu$ac_delim
34290target_vendor!$target_vendor$ac_delim
34291target_os!$target_os$ac_delim
34292OS!$OS$ac_delim
34293LINKALL!$LINKALL$ac_delim
34294NOLINKALL!$NOLINKALL$ac_delim
34295LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34296LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34297ARCH!$ARCH$ac_delim
34298ENDIAN!$ENDIAN$ac_delim
34299CC!$CC$ac_delim
34300CFLAGS!$CFLAGS$ac_delim
34301LDFLAGS!$LDFLAGS$ac_delim
34302CPPFLAGS!$CPPFLAGS$ac_delim
34303ac_ct_CC!$ac_ct_CC$ac_delim
34304EXEEXT!$EXEEXT$ac_delim
34305OBJEXT!$OBJEXT$ac_delim
34306CPP!$CPP$ac_delim
34307GREP!$GREP$ac_delim
34308EGREP!$EGREP$ac_delim
34309LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34310BUILD_CC!$BUILD_CC$ac_delim
34311BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34312CVSBUILD!$CVSBUILD$ac_delim
34313ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34314DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034315DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034316JIT!$JIT$ac_delim
34317TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34318ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34319ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034320ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034321TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034322ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034323EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34324CXX!$CXX$ac_delim
34325CXXFLAGS!$CXXFLAGS$ac_delim
34326ac_ct_CXX!$ac_ct_CXX$ac_delim
34327LEX!$LEX$ac_delim
34328LEXLIB!$LEXLIB$ac_delim
34329LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34330FLEX!$FLEX$ac_delim
34331YACC!$YACC$ac_delim
34332YFLAGS!$YFLAGS$ac_delim
34333BISON!$BISON$ac_delim
34334NM!$NM$ac_delim
34335ifGNUmake!$ifGNUmake$ac_delim
34336LN_S!$LN_S$ac_delim
34337CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034338_ACEOF
34339
34340 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34341 break
34342 elif $ac_last_try; then
34343 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34344echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34345 { (exit 1); exit 1; }; }
34346 else
34347 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034348 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034349done
34350
34351ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34352if test -n "$ac_eof"; then
34353 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34354 ac_eof=`expr $ac_eof + 1`
34355fi
34356
34357cat >>$CONFIG_STATUS <<_ACEOF
34358cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34359/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34360_ACEOF
34361sed '
34362s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34363s/^/s,@/; s/!/@,|#_!!_#|/
34364:n
34365t n
34366s/'"$ac_delim"'$/,g/; t
34367s/$/\\/; p
34368N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34369' >>$CONFIG_STATUS <conf$$subs.sed
34370rm -f conf$$subs.sed
34371cat >>$CONFIG_STATUS <<_ACEOF
34372CEOF$ac_eof
34373_ACEOF
34374
34375
34376ac_delim='%!_!# '
34377for ac_last_try in false false false false false :; do
34378 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034379CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034380DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034381FIND!$FIND$ac_delim
34382MKDIR!$MKDIR$ac_delim
34383MV!$MV$ac_delim
34384RANLIB!$RANLIB$ac_delim
34385RM!$RM$ac_delim
34386SED!$SED$ac_delim
34387TAR!$TAR$ac_delim
34388BINPWD!$BINPWD$ac_delim
34389GRAPHVIZ!$GRAPHVIZ$ac_delim
34390DOT!$DOT$ac_delim
34391GV!$GV$ac_delim
34392DOTTY!$DOTTY$ac_delim
34393PERL!$PERL$ac_delim
34394HAVE_PERL!$HAVE_PERL$ac_delim
34395INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34396INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34397INSTALL_DATA!$INSTALL_DATA$ac_delim
34398BZIP2!$BZIP2$ac_delim
34399DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034400GROFF!$GROFF$ac_delim
34401GZIP!$GZIP$ac_delim
34402POD2HTML!$POD2HTML$ac_delim
34403POD2MAN!$POD2MAN$ac_delim
34404RUNTEST!$RUNTEST$ac_delim
34405TCLSH!$TCLSH$ac_delim
34406ZIP!$ZIP$ac_delim
34407INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34408INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34409CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34410CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34411LIBADD_DL!$LIBADD_DL$ac_delim
34412ECHO!$ECHO$ac_delim
34413AR!$AR$ac_delim
34414STRIP!$STRIP$ac_delim
34415CXXCPP!$CXXCPP$ac_delim
34416F77!$F77$ac_delim
34417FFLAGS!$FFLAGS$ac_delim
34418ac_ct_F77!$ac_ct_F77$ac_delim
34419LIBTOOL!$LIBTOOL$ac_delim
34420ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34421LLVMGCC!$LLVMGCC$ac_delim
34422LLVMGXX!$LLVMGXX$ac_delim
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034423USE_UDIS86!$USE_UDIS86$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034424HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034425HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034426ALLOCA!$ALLOCA$ac_delim
34427MMAP_FILE!$MMAP_FILE$ac_delim
34428LLVMCC1!$LLVMCC1$ac_delim
34429LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34430LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034431LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034432LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34433LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34434SHLIBEXT!$SHLIBEXT$ac_delim
34435LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34436LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34437LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34438LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34439LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34440LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34441LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34442LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34443LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34444LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34445LIBOBJS!$LIBOBJS$ac_delim
34446LTLIBOBJS!$LTLIBOBJS$ac_delim
34447_ACEOF
34448
Reid Spencerb6a7aa72007-01-19 17:41:47 +000034449 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 68; then
Reid Spencera773bd52006-08-04 18:18:08 +000034450 break
34451 elif $ac_last_try; then
34452 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34453echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34454 { (exit 1); exit 1; }; }
34455 else
34456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34457 fi
34458done
34459
34460ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34461if test -n "$ac_eof"; then
34462 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34463 ac_eof=`expr $ac_eof + 1`
34464fi
34465
34466cat >>$CONFIG_STATUS <<_ACEOF
34467cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34469_ACEOF
34470sed '
34471s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34472s/^/s,@/; s/!/@,|#_!!_#|/
34473:n
34474t n
34475s/'"$ac_delim"'$/,g/; t
34476s/$/\\/; p
34477N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34478' >>$CONFIG_STATUS <conf$$subs.sed
34479rm -f conf$$subs.sed
34480cat >>$CONFIG_STATUS <<_ACEOF
34481:end
34482s/|#_!!_#|//g
34483CEOF$ac_eof
34484_ACEOF
34485
34486
34487# VPATH may cause trouble with some makes, so we remove $(srcdir),
34488# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34489# trailing colons and then remove the whole line if VPATH becomes empty
34490# (actually we leave an empty line to preserve line numbers).
34491if test "x$srcdir" = x.; then
34492 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34493s/:*\$(srcdir):*/:/
34494s/:*\${srcdir}:*/:/
34495s/:*@srcdir@:*/:/
34496s/^\([^=]*=[ ]*\):*/\1/
34497s/:*$//
34498s/^[^=]*=[ ]*$//
34499}'
34500fi
34501
34502cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034503fi # test -n "$CONFIG_FILES"
34504
Reid Spencera773bd52006-08-04 18:18:08 +000034505
34506for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34507do
34508 case $ac_tag in
34509 :[FHLC]) ac_mode=$ac_tag; continue;;
34510 esac
34511 case $ac_mode$ac_tag in
34512 :[FHL]*:*);;
34513 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34514echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34515 { (exit 1); exit 1; }; };;
34516 :[FH]-) ac_tag=-:-;;
34517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34518 esac
34519 ac_save_IFS=$IFS
34520 IFS=:
34521 set x $ac_tag
34522 IFS=$ac_save_IFS
34523 shift
34524 ac_file=$1
34525 shift
34526
34527 case $ac_mode in
34528 :L) ac_source=$1;;
34529 :[FH])
34530 ac_file_inputs=
34531 for ac_f
34532 do
34533 case $ac_f in
34534 -) ac_f="$tmp/stdin";;
34535 *) # Look for the file first in the build tree, then in the source tree
34536 # (if the path is not absolute). The absolute path cannot be DOS-style,
34537 # because $ac_f cannot contain `:'.
34538 test -f "$ac_f" ||
34539 case $ac_f in
34540 [\\/$]*) false;;
34541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34542 esac ||
34543 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34544echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34545 { (exit 1); exit 1; }; };;
34546 esac
34547 ac_file_inputs="$ac_file_inputs $ac_f"
34548 done
34549
34550 # Let's still pretend it is `configure' which instantiates (i.e., don't
34551 # use $as_me), people would be surprised to read:
34552 # /* config.h. Generated by config.status. */
34553 configure_input="Generated from "`IFS=:
34554 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34555 if test x"$ac_file" != x-; then
34556 configure_input="$ac_file. $configure_input"
34557 { echo "$as_me:$LINENO: creating $ac_file" >&5
34558echo "$as_me: creating $ac_file" >&6;}
34559 fi
34560
34561 case $ac_tag in
34562 *:-:* | *:-) cat >"$tmp/stdin";;
34563 esac
34564 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034565 esac
34566
Reid Spencera773bd52006-08-04 18:18:08 +000034567 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034568$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034569 X"$ac_file" : 'X\(//\)[^/]' \| \
34570 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034571 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034572echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034573 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34574 s//\1/
34575 q
34576 }
34577 /^X\(\/\/\)[^/].*/{
34578 s//\1/
34579 q
34580 }
34581 /^X\(\/\/\)$/{
34582 s//\1/
34583 q
34584 }
34585 /^X\(\/\).*/{
34586 s//\1/
34587 q
34588 }
34589 s/.*/./; q'`
34590 { as_dir="$ac_dir"
34591 case $as_dir in #(
34592 -*) as_dir=./$as_dir;;
34593 esac
34594 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034595 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034596 while :; do
34597 case $as_dir in #(
34598 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34599 *) as_qdir=$as_dir;;
34600 esac
34601 as_dirs="'$as_qdir' $as_dirs"
34602 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034604 X"$as_dir" : 'X\(//\)[^/]' \| \
34605 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034607echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34609 s//\1/
34610 q
34611 }
34612 /^X\(\/\/\)[^/].*/{
34613 s//\1/
34614 q
34615 }
34616 /^X\(\/\/\)$/{
34617 s//\1/
34618 q
34619 }
34620 /^X\(\/\).*/{
34621 s//\1/
34622 q
34623 }
34624 s/.*/./; q'`
34625 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034626 done
Reid Spencera773bd52006-08-04 18:18:08 +000034627 test -z "$as_dirs" || eval "mkdir $as_dirs"
34628 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34629echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034630 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034631 ac_builddir=.
34632
Reid Spencera773bd52006-08-04 18:18:08 +000034633case "$ac_dir" in
34634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34635*)
John Criswell7a73b802003-06-30 21:59:07 +000034636 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034637 # A ".." for each directory in $ac_dir_suffix.
34638 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34639 case $ac_top_builddir_sub in
34640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34642 esac ;;
34643esac
34644ac_abs_top_builddir=$ac_pwd
34645ac_abs_builddir=$ac_pwd$ac_dir_suffix
34646# for backward compatibility:
34647ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034648
34649case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034650 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034651 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034652 ac_top_srcdir=$ac_top_builddir_sub
34653 ac_abs_top_srcdir=$ac_pwd ;;
34654 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034655 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034656 ac_top_srcdir=$srcdir
34657 ac_abs_top_srcdir=$srcdir ;;
34658 *) # Relative name.
34659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34660 ac_top_srcdir=$ac_top_build_prefix$srcdir
34661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034662esac
Reid Spencera773bd52006-08-04 18:18:08 +000034663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034664
John Criswell7a73b802003-06-30 21:59:07 +000034665
Reid Spencera773bd52006-08-04 18:18:08 +000034666 case $ac_mode in
34667 :F)
34668 #
34669 # CONFIG_FILE
34670 #
John Criswell7a73b802003-06-30 21:59:07 +000034671
34672 case $INSTALL in
34673 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034674 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034675 esac
John Criswell7a73b802003-06-30 21:59:07 +000034676_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034677
34678cat >>$CONFIG_STATUS <<\_ACEOF
34679# If the template does not know about datarootdir, expand it.
34680# FIXME: This hack should be removed a few years after 2.60.
34681ac_datarootdir_hack=; ac_datarootdir_seen=
34682
34683case `sed -n '/datarootdir/ {
34684 p
34685 q
34686}
34687/@datadir@/p
34688/@docdir@/p
34689/@infodir@/p
34690/@localedir@/p
34691/@mandir@/p
34692' $ac_file_inputs` in
34693*datarootdir*) ac_datarootdir_seen=yes;;
34694*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34695 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34696echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34697_ACEOF
34698cat >>$CONFIG_STATUS <<_ACEOF
34699 ac_datarootdir_hack='
34700 s&@datadir@&$datadir&g
34701 s&@docdir@&$docdir&g
34702 s&@infodir@&$infodir&g
34703 s&@localedir@&$localedir&g
34704 s&@mandir@&$mandir&g
34705 s&\\\${datarootdir}&$datarootdir&g' ;;
34706esac
34707_ACEOF
34708
34709# Neutralize VPATH when `$srcdir' = `.'.
34710# Shell code in configure.ac might set extrasub.
34711# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034712cat >>$CONFIG_STATUS <<_ACEOF
34713 sed "$ac_vpsub
34714$extrasub
34715_ACEOF
34716cat >>$CONFIG_STATUS <<\_ACEOF
34717:t
34718/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034719s&@configure_input@&$configure_input&;t t
34720s&@top_builddir@&$ac_top_builddir_sub&;t t
34721s&@srcdir@&$ac_srcdir&;t t
34722s&@abs_srcdir@&$ac_abs_srcdir&;t t
34723s&@top_srcdir@&$ac_top_srcdir&;t t
34724s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34725s&@builddir@&$ac_builddir&;t t
34726s&@abs_builddir@&$ac_abs_builddir&;t t
34727s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34728s&@INSTALL@&$ac_INSTALL&;t t
34729$ac_datarootdir_hack
34730" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034731
Reid Spencera773bd52006-08-04 18:18:08 +000034732test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34733 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34734 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34735 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34736which seems to be undefined. Please make sure it is defined." >&5
34737echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34738which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034739
Reid Spencera773bd52006-08-04 18:18:08 +000034740 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034741 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034742 -) cat "$tmp/out"; rm -f "$tmp/out";;
34743 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034744 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034745 ;;
34746 :H)
34747 #
34748 # CONFIG_HEADER
34749 #
John Criswell7a73b802003-06-30 21:59:07 +000034750_ACEOF
34751
Reid Spencera773bd52006-08-04 18:18:08 +000034752# Transform confdefs.h into a sed script `conftest.defines', that
34753# substitutes the proper values into config.h.in to produce config.h.
34754rm -f conftest.defines conftest.tail
34755# First, append a space to every undef/define line, to ease matching.
34756echo 's/$/ /' >conftest.defines
34757# Then, protect against being on the right side of a sed subst, or in
34758# an unquoted here document, in config.status. If some macros were
34759# called several times there might be several #defines for the same
34760# symbol, which is useless. But do not sort them, since the last
34761# AC_DEFINE must be honored.
34762ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34763# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34764# NAME is the cpp macro being defined, VALUE is the value it is being given.
34765# PARAMS is the parameter list in the macro definition--in most cases, it's
34766# just an empty string.
34767ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34768ac_dB='\\)[ (].*,\\1define\\2'
34769ac_dC=' '
34770ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034771
Reid Spencera773bd52006-08-04 18:18:08 +000034772uniq confdefs.h |
34773 sed -n '
34774 t rset
34775 :rset
34776 s/^[ ]*#[ ]*define[ ][ ]*//
34777 t ok
34778 d
34779 :ok
34780 s/[\\&,]/\\&/g
34781 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34782 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34783 ' >>conftest.defines
34784
34785# Remove the space that was appended to ease matching.
34786# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034787# example, in the case of _POSIX_SOURCE, which is predefined and required
34788# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034789# (The regexp can be short, since the line contains either #define or #undef.)
34790echo 's/ $//
34791s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034792
Reid Spencera773bd52006-08-04 18:18:08 +000034793# Break up conftest.defines:
34794ac_max_sed_lines=50
34795
34796# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34797# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34798# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34799# et cetera.
34800ac_in='$ac_file_inputs'
34801ac_out='"$tmp/out1"'
34802ac_nxt='"$tmp/out2"'
34803
34804while :
John Criswell7a73b802003-06-30 21:59:07 +000034805do
Reid Spencera773bd52006-08-04 18:18:08 +000034806 # Write a here document:
34807 cat >>$CONFIG_STATUS <<_ACEOF
34808 # First, check the format of the line:
34809 cat >"\$tmp/defines.sed" <<\\CEOF
34810/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34811/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34812b
34813:def
34814_ACEOF
34815 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034816 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034817 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34818 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34819 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34820 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034821 rm -f conftest.defines
34822 mv conftest.tail conftest.defines
34823done
Reid Spencera773bd52006-08-04 18:18:08 +000034824rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034825
Reid Spencera773bd52006-08-04 18:18:08 +000034826echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034827cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034828 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034829 echo "/* $configure_input */" >"$tmp/config.h"
34830 cat "$ac_result" >>"$tmp/config.h"
34831 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034832 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34833echo "$as_me: $ac_file is unchanged" >&6;}
34834 else
John Criswell7a73b802003-06-30 21:59:07 +000034835 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034836 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034837 fi
34838 else
Reid Spencera773bd52006-08-04 18:18:08 +000034839 echo "/* $configure_input */"
34840 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034841 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034842 rm -f "$tmp/out12"
34843 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034844
Reid Spencera773bd52006-08-04 18:18:08 +000034845 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34846echo "$as_me: executing $ac_file commands" >&6;}
34847 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034848 esac
John Criswell7a73b802003-06-30 21:59:07 +000034849
Reid Spencera773bd52006-08-04 18:18:08 +000034850
34851 case $ac_file$ac_mode in
34852 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34853 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34854 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34855 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34856 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34857 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34858 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34859 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034860 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34861 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034862 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34863 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34864 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34865 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34866 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34867 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34868 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34869 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34870 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34871 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34872
34873 esac
34874done # for ac_tag
34875
John Criswell7a73b802003-06-30 21:59:07 +000034876
34877{ (exit 0); exit 0; }
34878_ACEOF
34879chmod +x $CONFIG_STATUS
34880ac_clean_files=$ac_clean_files_save
34881
34882
34883# configure is writing to config.log, and then calls config.status.
34884# config.status does its own redirection, appending to config.log.
34885# Unfortunately, on DOS this fails, as config.log is still kept open
34886# by configure, so config.status won't be able to write to it; its
34887# output is simply discarded. So we exec the FD to /dev/null,
34888# effectively closing config.log, so it can be properly (re)opened and
34889# appended to by config.status. When coming back to configure, we
34890# need to make the FD available again.
34891if test "$no_create" != yes; then
34892 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034893 ac_config_status_args=
34894 test "$silent" = yes &&
34895 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034896 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034898 exec 5>>config.log
34899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34900 # would make configure fail if this is the last instruction.
34901 $ac_cs_success || { (exit 1); exit 1; }
34902fi
34903
John Criswell12399a12003-09-30 15:55:44 +000034904#
34905# CONFIG_SUBDIRS section.
34906#
34907if test "$no_recursion" != yes; then
34908
34909 # Remove --cache-file and --srcdir arguments so they do not pile up.
34910 ac_sub_configure_args=
34911 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034912 eval "set x $ac_configure_args"
34913 shift
34914 for ac_arg
34915 do
John Criswell12399a12003-09-30 15:55:44 +000034916 if test -n "$ac_prev"; then
34917 ac_prev=
34918 continue
34919 fi
34920 case $ac_arg in
34921 -cache-file | --cache-file | --cache-fil | --cache-fi \
34922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34923 ac_prev=cache_file ;;
34924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34926 | --c=*)
34927 ;;
34928 --config-cache | -C)
34929 ;;
34930 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34931 ac_prev=srcdir ;;
34932 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34933 ;;
34934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34935 ac_prev=prefix ;;
34936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34937 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034938 *)
34939 case $ac_arg in
34940 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34941 esac
34942 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034943 esac
34944 done
34945
34946 # Always prepend --prefix to ensure using the same prefix
34947 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034948 ac_arg="--prefix=$prefix"
34949 case $ac_arg in
34950 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34951 esac
34952 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034953
34954 ac_popdir=`pwd`
34955 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34956
34957 # Do not complain, so a configure script can configure whichever
34958 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034959 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034960
Reid Spencera773bd52006-08-04 18:18:08 +000034961 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34962 echo "$as_me:$LINENO: $ac_msg" >&5
34963 echo "$ac_msg" >&6
34964 { as_dir="$ac_dir"
34965 case $as_dir in #(
34966 -*) as_dir=./$as_dir;;
34967 esac
34968 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034969 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034970 while :; do
34971 case $as_dir in #(
34972 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34973 *) as_qdir=$as_dir;;
34974 esac
34975 as_dirs="'$as_qdir' $as_dirs"
34976 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034977$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034978 X"$as_dir" : 'X\(//\)[^/]' \| \
34979 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034981echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34983 s//\1/
34984 q
34985 }
34986 /^X\(\/\/\)[^/].*/{
34987 s//\1/
34988 q
34989 }
34990 /^X\(\/\/\)$/{
34991 s//\1/
34992 q
34993 }
34994 /^X\(\/\).*/{
34995 s//\1/
34996 q
34997 }
34998 s/.*/./; q'`
34999 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000035000 done
Reid Spencera773bd52006-08-04 18:18:08 +000035001 test -z "$as_dirs" || eval "mkdir $as_dirs"
35002 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35003echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000035004 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000035005 ac_builddir=.
35006
Reid Spencera773bd52006-08-04 18:18:08 +000035007case "$ac_dir" in
35008.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35009*)
John Criswell12399a12003-09-30 15:55:44 +000035010 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000035011 # A ".." for each directory in $ac_dir_suffix.
35012 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35013 case $ac_top_builddir_sub in
35014 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35015 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35016 esac ;;
35017esac
35018ac_abs_top_builddir=$ac_pwd
35019ac_abs_builddir=$ac_pwd$ac_dir_suffix
35020# for backward compatibility:
35021ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000035022
35023case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000035024 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000035025 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000035026 ac_top_srcdir=$ac_top_builddir_sub
35027 ac_abs_top_srcdir=$ac_pwd ;;
35028 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000035029 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000035030 ac_top_srcdir=$srcdir
35031 ac_abs_top_srcdir=$srcdir ;;
35032 *) # Relative name.
35033 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35034 ac_top_srcdir=$ac_top_build_prefix$srcdir
35035 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000035036esac
Reid Spencera773bd52006-08-04 18:18:08 +000035037ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000035038
35039
Reid Spencera773bd52006-08-04 18:18:08 +000035040 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000035041
35042 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000035043 if test -f "$ac_srcdir/configure.gnu"; then
35044 ac_sub_configure=$ac_srcdir/configure.gnu
35045 elif test -f "$ac_srcdir/configure"; then
35046 ac_sub_configure=$ac_srcdir/configure
35047 elif test -f "$ac_srcdir/configure.in"; then
35048 # This should be Cygnus configure.
35049 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000035050 else
35051 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
35052echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
35053 ac_sub_configure=
35054 fi
35055
35056 # The recursion is here.
35057 if test -n "$ac_sub_configure"; then
35058 # Make the cache file name correct relative to the subdirectory.
35059 case $cache_file in
35060 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000035061 *) # Relative name.
35062 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000035063 esac
35064
Reid Spencera773bd52006-08-04 18:18:08 +000035065 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
35066echo "$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 +000035067 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000035068 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
35069 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000035070 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000035071echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
35072 { (exit 1); exit 1; }; }
35073 fi
35074
Reid Spencera773bd52006-08-04 18:18:08 +000035075 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000035076 done
35077fi
35078
Brian Gaekef3b24102003-11-16 18:38:14 +000035079