blob: 96711205919bec6d5daa0c69459bb5a61fca7a51 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Tanya Lattner01d3e382006-11-14 00:59:52 +00003# Generated by GNU Autoconf 2.60 for llvm 2.0cvs.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencera773bd52006-08-04 18:18:08 +00007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000011#
John Criswellc0c186d2005-11-08 21:11:33 +000012# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell0c38eaf2003-09-10 15:17:25 +000013## --------------------- ##
14## M4sh Initialization. ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 emulate sh
20 NULLCMD=:
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000024 setopt NO_GLOB_SUBST
25else
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell0c38eaf2003-09-10 15:17:25 +000027fi
Reid Spencera773bd52006-08-04 18:18:08 +000028BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000029DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000030
John Criswell0c38eaf2003-09-10 15:17:25 +000031
Reid Spencera773bd52006-08-04 18:18:08 +000032# PATH needs CR
John Criswell0c38eaf2003-09-10 15:17:25 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Reid Spencera773bd52006-08-04 18:18:08 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
John Criswell0c38eaf2003-09-10 15:17:25 +000059
Reid Spencera773bd52006-08-04 18:18:08 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell0c38eaf2003-09-10 15:17:25 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Reid Spencera773bd52006-08-04 18:18:08 +000080IFS=$as_save_IFS
John Criswell0c38eaf2003-09-10 15:17:25 +000081
Reid Spencera773bd52006-08-04 18:18:08 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
John Criswell0c38eaf2003-09-10 15:17:25 +0000112 fi
Reid Spencera773bd52006-08-04 18:18:08 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
John Criswell0c38eaf2003-09-10 15:17:25 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +0000222for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
John Criswell0c38eaf2003-09-10 15:17:25 +0000223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000226 case $as_dir in
John Criswell0c38eaf2003-09-10 15:17:25 +0000227 /*)
Reid Spencera773bd52006-08-04 18:18:08 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240# Be Bourne compatible
241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242 emulate sh
243 NULLCMD=:
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
247 setopt NO_GLOB_SUBST
248else
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250fi
251BIN_SH=xpg4; export BIN_SH # for Tru64
252DUALCASE=1; export DUALCASE # for MKS sh
253
254:
255_ASEOF
256}; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260# Be Bourne compatible
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270fi
271BIN_SH=xpg4; export BIN_SH # for Tru64
272DUALCASE=1; export DUALCASE # for MKS sh
273
274:
275(as_func_return () {
276 (exit $1)
277}
278as_func_success () {
279 as_func_return 0
280}
281as_func_failure () {
282 as_func_return 1
283}
284as_func_ret_success () {
285 return 0
286}
287as_func_ret_failure () {
288 return 1
289}
290
291exitcode=0
292if as_func_success; then
293 :
294else
295 exitcode=1
296 echo as_func_success failed.
297fi
298
299if as_func_failure; then
300 exitcode=1
301 echo as_func_failure succeeded.
302fi
303
304if as_func_ret_success; then
305 :
306else
307 exitcode=1
308 echo as_func_ret_success failed.
309fi
310
311if as_func_ret_failure; then
312 exitcode=1
313 echo as_func_ret_failure succeeded.
314fi
315
316if ( set x; as_func_ret_success y && test x = "$1" ); then
317 :
318else
319 exitcode=1
320 echo positional parameters were not saved.
321fi
322
323test $exitcode = 0) || { (exit 1); exit 1; }
324
325(
John Criswell0c38eaf2003-09-10 15:17:25 +0000326 as_lineno_1=$LINENO
327 as_lineno_2=$LINENO
John Criswell0c38eaf2003-09-10 15:17:25 +0000328 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +0000329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
330
331_ASEOF
332}; then
333 break
334fi
335
336fi
337
338 done
339
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
343 done
344 export CONFIG_SHELL
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
346fi
347
348
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
355fi
356
357
358fi
359
360fi
361
362
363
364(eval "as_func_return () {
365 (exit \$1)
366}
367as_func_success () {
368 as_func_return 0
369}
370as_func_failure () {
371 as_func_return 1
372}
373as_func_ret_success () {
374 return 0
375}
376as_func_ret_failure () {
377 return 1
378}
379
380exitcode=0
381if as_func_success; then
382 :
383else
384 exitcode=1
385 echo as_func_success failed.
386fi
387
388if as_func_failure; then
389 exitcode=1
390 echo as_func_failure succeeded.
391fi
392
393if as_func_ret_success; then
394 :
395else
396 exitcode=1
397 echo as_func_ret_success failed.
398fi
399
400if as_func_ret_failure; then
401 exitcode=1
402 echo as_func_ret_failure succeeded.
403fi
404
405if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
406 :
407else
408 exitcode=1
409 echo positional parameters were not saved.
410fi
411
412test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
416 echo message
417}
418
419
420
421 as_lineno_1=$LINENO
422 as_lineno_2=$LINENO
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell0c38eaf2003-09-10 15:17:25 +0000425
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +0000428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
432 # case at line end.
John Criswell0c38eaf2003-09-10 15:17:25 +0000433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +0000434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
436 sed -n '
437 p
438 /[$]LINENO/=
439 ' <$as_myself |
John Criswell0c38eaf2003-09-10 15:17:25 +0000440 sed '
Reid Spencera773bd52006-08-04 18:18:08 +0000441 s/[$]LINENO.*/&-/
442 t lineno
443 b
444 :lineno
John Criswell0c38eaf2003-09-10 15:17:25 +0000445 N
Reid Spencera773bd52006-08-04 18:18:08 +0000446 :loop
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell0c38eaf2003-09-10 15:17:25 +0000448 t loop
Reid Spencera773bd52006-08-04 18:18:08 +0000449 s/-\n.*//
John Criswell0c38eaf2003-09-10 15:17:25 +0000450 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +0000451 chmod +x "$as_me.lineno" ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +0000457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
John Criswell0c38eaf2003-09-10 15:17:25 +0000459 # Exit status is that of the last command.
460 exit
461}
462
463
Reid Spencera773bd52006-08-04 18:18:08 +0000464if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466else
467 as_dirname=false
468fi
469
470ECHO_C= ECHO_N= ECHO_T=
471case `echo -n x` in
472-n*)
473 case `echo 'x\c'` in
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
475 *) ECHO_C='\c';;
476 esac;;
477*)
478 ECHO_N='-n';;
John Criswell0c38eaf2003-09-10 15:17:25 +0000479esac
480
Reid Spencera773bd52006-08-04 18:18:08 +0000481if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell0c38eaf2003-09-10 15:17:25 +0000483 as_expr=expr
484else
485 as_expr=false
486fi
487
488rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +0000489if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
491else
492 rm -f conf$$.dir
493 mkdir conf$$.dir
494fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000495echo >conf$$.file
496if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +0000497 as_ln_s='ln -s'
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell0c38eaf2003-09-10 15:17:25 +0000503 as_ln_s='cp -p'
John Criswell0c38eaf2003-09-10 15:17:25 +0000504elif ln conf$$.file conf$$ 2>/dev/null; then
505 as_ln_s=ln
506else
507 as_ln_s='cp -p'
508fi
Reid Spencera773bd52006-08-04 18:18:08 +0000509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510rmdir conf$$.dir 2>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +0000511
512if mkdir -p . 2>/dev/null; then
513 as_mkdir_p=:
514else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000515 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000516 as_mkdir_p=false
517fi
518
Reid Spencera773bd52006-08-04 18:18:08 +0000519# Find out whether ``test -x'' works. Don't use a zero-byte file, as
520# systems may use methods other than mode bits to determine executability.
521cat >conf$$.file <<_ASEOF
522#! /bin/sh
523exit 0
524_ASEOF
525chmod +x conf$$.file
526if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
528else
529 as_executable_p=:
530fi
531rm -f conf$$.file
John Criswell0c38eaf2003-09-10 15:17:25 +0000532
533# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000535
536# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000538
539
John Criswell7a73b802003-06-30 21:59:07 +0000540
John Criswell7a73b802003-06-30 21:59:07 +0000541
542# Check that we are running under the correct shell.
543SHELL=${CONFIG_SHELL-/bin/sh}
544
545case X$ECHO in
546X*--fallback-echo)
547 # Remove one level of quotation (which was required for Make).
548 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
549 ;;
550esac
551
552echo=${ECHO-echo}
553if test "X$1" = X--no-reexec; then
554 # Discard the --no-reexec flag, and continue.
555 shift
556elif test "X$1" = X--fallback-echo; then
557 # Avoid inline document here, it may be left over
558 :
John Criswell47fdd832003-07-14 16:52:07 +0000559elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000560 # Yippee, $echo works!
561 :
562else
563 # Restart under the correct shell.
564 exec $SHELL "$0" --no-reexec ${1+"$@"}
565fi
566
567if test "X$1" = X--fallback-echo; then
568 # used as fallback echo
569 shift
570 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000571$*
John Criswell7a73b802003-06-30 21:59:07 +0000572EOF
573 exit 0
574fi
575
576# The HP-UX ksh and POSIX shell print the target directory to stdout
577# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000578(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000579
580if test -z "$ECHO"; then
581if test "X${echo_test_string+set}" != Xset; then
582# find a string as large as possible, as long as the shell can cope with it
583 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
584 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
Reid Spencera773bd52006-08-04 18:18:08 +0000585 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
586 echo_test_string=`eval $cmd` &&
John Criswell7a73b802003-06-30 21:59:07 +0000587 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
588 then
589 break
590 fi
591 done
592fi
593
594if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
597 :
598else
599 # The Solaris, AIX, and Digital Unix default echo programs unquote
600 # backslashes. This makes it impossible to quote backslashes using
601 # echo "$something" | sed 's/\\/\\\\/g'
602 #
603 # So, first we look for a working echo in the user's PATH.
604
John Criswell47fdd832003-07-14 16:52:07 +0000605 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000606 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000607 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000608 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
609 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 echo="$dir/echo"
613 break
614 fi
615 done
John Criswell47fdd832003-07-14 16:52:07 +0000616 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000617
618 if test "X$echo" = Xecho; then
619 # We didn't find a better echo, so look for alternatives.
620 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 # This shell has a builtin print -r that does the trick.
624 echo='print -r'
625 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
626 test "X$CONFIG_SHELL" != X/bin/ksh; then
627 # If we have ksh, try running configure again with it.
628 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
629 export ORIGINAL_CONFIG_SHELL
630 CONFIG_SHELL=/bin/ksh
631 export CONFIG_SHELL
632 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
633 else
634 # Try using printf.
635 echo='printf %s\n'
636 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
637 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 # Cool, printf works
640 :
641 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642 test "X$echo_testing_string" = 'X\t' &&
643 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644 test "X$echo_testing_string" = "X$echo_test_string"; then
645 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
646 export CONFIG_SHELL
647 SHELL="$CONFIG_SHELL"
648 export SHELL
649 echo="$CONFIG_SHELL $0 --fallback-echo"
650 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
651 test "X$echo_testing_string" = 'X\t' &&
652 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 echo="$CONFIG_SHELL $0 --fallback-echo"
655 else
656 # maybe with a smaller string...
657 prev=:
658
659 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
660 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
661 then
662 break
663 fi
664 prev="$cmd"
665 done
666
667 if test "$prev" != 'sed 50q "$0"'; then
668 echo_test_string=`eval $prev`
669 export echo_test_string
670 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
671 else
672 # Oops. We lost completely, so just stick with echo.
673 echo=echo
674 fi
675 fi
676 fi
677 fi
678fi
679fi
680
681# Copy echo and quote the copy suitably for passing to libtool from
682# the Makefile, instead of quoting the original, which is used later.
683ECHO=$echo
684if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
685 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
686fi
687
688
689
John Criswell47fdd832003-07-14 16:52:07 +0000690
Reid Spencer2706f8c2004-09-19 23:53:36 +0000691tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000692
Reid Spencer2706f8c2004-09-19 23:53:36 +0000693tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000694
Reid Spencera773bd52006-08-04 18:18:08 +0000695exec 7<&0 </dev/null 6>&1
696
John Criswell7a73b802003-06-30 21:59:07 +0000697# Name of the host.
698# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
699# so uname gets run too.
700ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
701
John Criswell7a73b802003-06-30 21:59:07 +0000702#
703# Initializations.
704#
705ac_default_prefix=/usr/local
Reid Spencera773bd52006-08-04 18:18:08 +0000706ac_clean_files=
John Criswell0c38eaf2003-09-10 15:17:25 +0000707ac_config_libobj_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +0000708LIBOBJS=
John Criswell7a73b802003-06-30 21:59:07 +0000709cross_compiling=no
710subdirs=
711MFLAGS=
712MAKEFLAGS=
713SHELL=${CONFIG_SHELL-/bin/sh}
714
John Criswell7a73b802003-06-30 21:59:07 +0000715# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000716PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000717PACKAGE_TARNAME='-llvm-'
Tanya Lattner01d3e382006-11-14 00:59:52 +0000718PACKAGE_VERSION='2.0cvs'
719PACKAGE_STRING='llvm 2.0cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000720PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
721
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000722ac_unique_file="lib/VMCore/Module.cpp"
John Criswell7a73b802003-06-30 21:59:07 +0000723# Factoring default headers for most tests.
724ac_includes_default="\
725#include <stdio.h>
726#if HAVE_SYS_TYPES_H
727# include <sys/types.h>
728#endif
729#if HAVE_SYS_STAT_H
730# include <sys/stat.h>
731#endif
732#if STDC_HEADERS
733# include <stdlib.h>
734# include <stddef.h>
735#else
736# if HAVE_STDLIB_H
737# include <stdlib.h>
738# endif
739#endif
740#if HAVE_STRING_H
741# if !STDC_HEADERS && HAVE_MEMORY_H
742# include <memory.h>
743# endif
744# include <string.h>
745#endif
746#if HAVE_STRINGS_H
747# include <strings.h>
748#endif
749#if HAVE_INTTYPES_H
750# include <inttypes.h>
Reid Spencera773bd52006-08-04 18:18:08 +0000751#endif
752#if HAVE_STDINT_H
753# include <stdint.h>
John Criswell7a73b802003-06-30 21:59:07 +0000754#endif
755#if HAVE_UNISTD_H
756# include <unistd.h>
757#endif"
758
Reid Spencera773bd52006-08-04 18:18:08 +0000759ac_subst_vars='SHELL
760PATH_SEPARATOR
761PACKAGE_NAME
762PACKAGE_TARNAME
763PACKAGE_VERSION
764PACKAGE_STRING
765PACKAGE_BUGREPORT
766exec_prefix
767prefix
768program_transform_name
769bindir
770sbindir
771libexecdir
772datarootdir
773datadir
774sysconfdir
775sharedstatedir
776localstatedir
777includedir
778oldincludedir
779docdir
780infodir
781htmldir
782dvidir
783pdfdir
784psdir
785libdir
786localedir
787mandir
788DEFS
789ECHO_C
790ECHO_N
791ECHO_T
792LIBS
793build_alias
794host_alias
795target_alias
796LLVM_COPYRIGHT
797subdirs
798build
799build_cpu
800build_vendor
801build_os
802host
803host_cpu
804host_vendor
805host_os
806target
807target_cpu
808target_vendor
809target_os
810OS
811LINKALL
812NOLINKALL
813LLVM_ON_UNIX
814LLVM_ON_WIN32
815ARCH
816ENDIAN
817CC
818CFLAGS
819LDFLAGS
820CPPFLAGS
821ac_ct_CC
822EXEEXT
823OBJEXT
824CPP
825GREP
826EGREP
827LLVM_CROSS_COMPILING
828BUILD_CC
829BUILD_EXEEXT
830CVSBUILD
831ENABLE_OPTIMIZED
832DISABLE_ASSERTIONS
Reid 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 Spencer1000b732006-12-01 00:37:14 +0000900HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000901HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000902ALLOCA
903MMAP_FILE
904LLVMCC1
905LLVMCC1PLUS
906LLVMGCCDIR
Reid Spencer282d8c12006-12-21 22:55:41 +0000907LLVMGCCLIBEXEC
Reid Spencera773bd52006-08-04 18:18:08 +0000908LLVMGCC_VERSION
909LLVMGCC_MAJVERS
910SHLIBEXT
911LLVM_PREFIX
912LLVM_BINDIR
913LLVM_LIBDIR
914LLVM_DATADIR
915LLVM_DOCSDIR
916LLVM_ETCDIR
917LLVM_INCLUDEDIR
918LLVM_INFODIR
919LLVM_MANDIR
920LLVM_CONFIGTIME
921LIBOBJS
922LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000923ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000924 ac_precious_vars='build_alias
925host_alias
926target_alias
927CC
928CFLAGS
929LDFLAGS
930CPPFLAGS
931CPP
932CXX
933CXXFLAGS
934CCC
935YACC
936YFLAGS
937CXXCPP
938F77
939FFLAGS'
940ac_subdirs_all='projects/sample
941projects/Stacker
942projects/privbracket
943projects/llvm-test
944projects/llvm-reopt
945projects/llvm-gcc
946projects/llvm-java
947projects/llvm-tv
948projects/llvm-poolalloc
949projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000950
951# Initialize some variables set by options.
952ac_init_help=
953ac_init_version=false
954# The variables have the same names as the options, with
955# dashes changed to underlines.
956cache_file=/dev/null
957exec_prefix=NONE
958no_create=
959no_recursion=
960prefix=NONE
961program_prefix=NONE
962program_suffix=NONE
963program_transform_name=s,x,x,
964silent=
965site=
966srcdir=
967verbose=
968x_includes=NONE
969x_libraries=NONE
970
971# Installation directory options.
972# These are left unexpanded so users can "make install exec_prefix=/foo"
973# and all the variables that are supposed to be based on exec_prefix
974# by default will actually change.
975# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000976# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000977bindir='${exec_prefix}/bin'
978sbindir='${exec_prefix}/sbin'
979libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000980datarootdir='${prefix}/share'
981datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000982sysconfdir='${prefix}/etc'
983sharedstatedir='${prefix}/com'
984localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000985includedir='${prefix}/include'
986oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000987docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
988infodir='${datarootdir}/info'
989htmldir='${docdir}'
990dvidir='${docdir}'
991pdfdir='${docdir}'
992psdir='${docdir}'
993libdir='${exec_prefix}/lib'
994localedir='${datarootdir}/locale'
995mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000996
997ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000998ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000999for ac_option
1000do
1001 # If the previous option needs an argument, assign it.
1002 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001003 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001004 ac_prev=
1005 continue
1006 fi
1007
Reid Spencera773bd52006-08-04 18:18:08 +00001008 case $ac_option in
1009 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1010 *) ac_optarg=yes ;;
1011 esac
John Criswell7a73b802003-06-30 21:59:07 +00001012
1013 # Accept the important Cygnus configure options, so we can diagnose typos.
1014
Reid Spencera773bd52006-08-04 18:18:08 +00001015 case $ac_dashdash$ac_option in
1016 --)
1017 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001018
1019 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1020 ac_prev=bindir ;;
1021 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1022 bindir=$ac_optarg ;;
1023
1024 -build | --build | --buil | --bui | --bu)
1025 ac_prev=build_alias ;;
1026 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1027 build_alias=$ac_optarg ;;
1028
1029 -cache-file | --cache-file | --cache-fil | --cache-fi \
1030 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1031 ac_prev=cache_file ;;
1032 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1033 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1034 cache_file=$ac_optarg ;;
1035
1036 --config-cache | -C)
1037 cache_file=config.cache ;;
1038
Reid Spencera773bd52006-08-04 18:18:08 +00001039 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001040 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001041 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001042 datadir=$ac_optarg ;;
1043
Reid Spencera773bd52006-08-04 18:18:08 +00001044 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1045 | --dataroo | --dataro | --datar)
1046 ac_prev=datarootdir ;;
1047 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1048 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1049 datarootdir=$ac_optarg ;;
1050
John Criswell7a73b802003-06-30 21:59:07 +00001051 -disable-* | --disable-*)
1052 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001058 eval enable_$ac_feature=no ;;
1059
1060 -docdir | --docdir | --docdi | --doc | --do)
1061 ac_prev=docdir ;;
1062 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1063 docdir=$ac_optarg ;;
1064
1065 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066 ac_prev=dvidir ;;
1067 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1068 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070 -enable-* | --enable-*)
1071 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001077 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1080 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1081 | --exec | --exe | --ex)
1082 ac_prev=exec_prefix ;;
1083 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1084 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1085 | --exec=* | --exe=* | --ex=*)
1086 exec_prefix=$ac_optarg ;;
1087
1088 -gas | --gas | --ga | --g)
1089 # Obsolete; use --with-gas.
1090 with_gas=yes ;;
1091
1092 -help | --help | --hel | --he | -h)
1093 ac_init_help=long ;;
1094 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1095 ac_init_help=recursive ;;
1096 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1097 ac_init_help=short ;;
1098
1099 -host | --host | --hos | --ho)
1100 ac_prev=host_alias ;;
1101 -host=* | --host=* | --hos=* | --ho=*)
1102 host_alias=$ac_optarg ;;
1103
Reid Spencera773bd52006-08-04 18:18:08 +00001104 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105 ac_prev=htmldir ;;
1106 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107 | --ht=*)
1108 htmldir=$ac_optarg ;;
1109
John Criswell7a73b802003-06-30 21:59:07 +00001110 -includedir | --includedir | --includedi | --included | --include \
1111 | --includ | --inclu | --incl | --inc)
1112 ac_prev=includedir ;;
1113 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1114 | --includ=* | --inclu=* | --incl=* | --inc=*)
1115 includedir=$ac_optarg ;;
1116
1117 -infodir | --infodir | --infodi | --infod | --info | --inf)
1118 ac_prev=infodir ;;
1119 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1120 infodir=$ac_optarg ;;
1121
1122 -libdir | --libdir | --libdi | --libd)
1123 ac_prev=libdir ;;
1124 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1125 libdir=$ac_optarg ;;
1126
1127 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1128 | --libexe | --libex | --libe)
1129 ac_prev=libexecdir ;;
1130 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1131 | --libexe=* | --libex=* | --libe=*)
1132 libexecdir=$ac_optarg ;;
1133
Reid Spencera773bd52006-08-04 18:18:08 +00001134 -localedir | --localedir | --localedi | --localed | --locale)
1135 ac_prev=localedir ;;
1136 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1137 localedir=$ac_optarg ;;
1138
John Criswell7a73b802003-06-30 21:59:07 +00001139 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001140 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001141 ac_prev=localstatedir ;;
1142 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001143 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001144 localstatedir=$ac_optarg ;;
1145
1146 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147 ac_prev=mandir ;;
1148 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1149 mandir=$ac_optarg ;;
1150
1151 -nfp | --nfp | --nf)
1152 # Obsolete; use --without-fp.
1153 with_fp=no ;;
1154
1155 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1156 | --no-cr | --no-c | -n)
1157 no_create=yes ;;
1158
1159 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1160 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1161 no_recursion=yes ;;
1162
1163 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1164 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1165 | --oldin | --oldi | --old | --ol | --o)
1166 ac_prev=oldincludedir ;;
1167 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1168 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1169 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1170 oldincludedir=$ac_optarg ;;
1171
1172 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173 ac_prev=prefix ;;
1174 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1175 prefix=$ac_optarg ;;
1176
1177 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1178 | --program-pre | --program-pr | --program-p)
1179 ac_prev=program_prefix ;;
1180 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1181 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1182 program_prefix=$ac_optarg ;;
1183
1184 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1185 | --program-suf | --program-su | --program-s)
1186 ac_prev=program_suffix ;;
1187 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1188 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1189 program_suffix=$ac_optarg ;;
1190
1191 -program-transform-name | --program-transform-name \
1192 | --program-transform-nam | --program-transform-na \
1193 | --program-transform-n | --program-transform- \
1194 | --program-transform | --program-transfor \
1195 | --program-transfo | --program-transf \
1196 | --program-trans | --program-tran \
1197 | --progr-tra | --program-tr | --program-t)
1198 ac_prev=program_transform_name ;;
1199 -program-transform-name=* | --program-transform-name=* \
1200 | --program-transform-nam=* | --program-transform-na=* \
1201 | --program-transform-n=* | --program-transform-=* \
1202 | --program-transform=* | --program-transfor=* \
1203 | --program-transfo=* | --program-transf=* \
1204 | --program-trans=* | --program-tran=* \
1205 | --progr-tra=* | --program-tr=* | --program-t=*)
1206 program_transform_name=$ac_optarg ;;
1207
Reid Spencera773bd52006-08-04 18:18:08 +00001208 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209 ac_prev=pdfdir ;;
1210 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1211 pdfdir=$ac_optarg ;;
1212
1213 -psdir | --psdir | --psdi | --psd | --ps)
1214 ac_prev=psdir ;;
1215 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1216 psdir=$ac_optarg ;;
1217
John Criswell7a73b802003-06-30 21:59:07 +00001218 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1219 | -silent | --silent | --silen | --sile | --sil)
1220 silent=yes ;;
1221
1222 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223 ac_prev=sbindir ;;
1224 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225 | --sbi=* | --sb=*)
1226 sbindir=$ac_optarg ;;
1227
1228 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1229 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1230 | --sharedst | --shareds | --shared | --share | --shar \
1231 | --sha | --sh)
1232 ac_prev=sharedstatedir ;;
1233 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1234 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1235 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236 | --sha=* | --sh=*)
1237 sharedstatedir=$ac_optarg ;;
1238
1239 -site | --site | --sit)
1240 ac_prev=site ;;
1241 -site=* | --site=* | --sit=*)
1242 site=$ac_optarg ;;
1243
1244 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245 ac_prev=srcdir ;;
1246 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1247 srcdir=$ac_optarg ;;
1248
1249 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1250 | --syscon | --sysco | --sysc | --sys | --sy)
1251 ac_prev=sysconfdir ;;
1252 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1253 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1254 sysconfdir=$ac_optarg ;;
1255
1256 -target | --target | --targe | --targ | --tar | --ta | --t)
1257 ac_prev=target_alias ;;
1258 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1259 target_alias=$ac_optarg ;;
1260
1261 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1262 verbose=yes ;;
1263
1264 -version | --version | --versio | --versi | --vers | -V)
1265 ac_init_version=: ;;
1266
1267 -with-* | --with-*)
1268 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid package name: $ac_package" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001274 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001275
1276 -without-* | --without-*)
1277 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1280 { echo "$as_me: error: invalid package name: $ac_package" >&2
1281 { (exit 1); exit 1; }; }
1282 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001283 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1294 x_includes=$ac_optarg ;;
1295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1301 x_libraries=$ac_optarg ;;
1302
1303 -*) { echo "$as_me: error: unrecognized option: $ac_option
1304Try \`$0 --help' for more information." >&2
1305 { (exit 1); exit 1; }; }
1306 ;;
1307
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1312 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1313 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001314 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001315 export $ac_envvar ;;
1316
1317 *)
1318 # FIXME: should be removed in autoconf 3.0.
1319 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1321 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1323 ;;
1324
1325 esac
1326done
1327
1328if test -n "$ac_prev"; then
1329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1330 { echo "$as_me: error: missing argument to $ac_option" >&2
1331 { (exit 1); exit 1; }; }
1332fi
1333
Reid Spencera773bd52006-08-04 18:18:08 +00001334# Be sure to have absolute directory names.
1335for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1336 datadir sysconfdir sharedstatedir localstatedir includedir \
1337 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1338 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001339do
Reid Spencera773bd52006-08-04 18:18:08 +00001340 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001341 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001342 [\\/$]* | ?:[\\/]* ) continue;;
1343 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001344 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001345 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1346 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001347done
1348
1349# There might be people who depend on the old broken behavior: `$host'
1350# used to hold the argument of --host etc.
1351# FIXME: To remove some day.
1352build=$build_alias
1353host=$host_alias
1354target=$target_alias
1355
1356# FIXME: To remove some day.
1357if test "x$host_alias" != x; then
1358 if test "x$build_alias" = x; then
1359 cross_compiling=maybe
1360 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1361 If a cross compiler is detected then cross compile mode will be used." >&2
1362 elif test "x$build_alias" != "x$host_alias"; then
1363 cross_compiling=yes
1364 fi
1365fi
1366
1367ac_tool_prefix=
1368test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
1370test "$silent" = yes && exec 6>/dev/null
1371
1372
Reid Spencera773bd52006-08-04 18:18:08 +00001373ac_pwd=`pwd` && test -n "$ac_pwd" &&
1374ac_ls_di=`ls -di .` &&
1375ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1376 { echo "$as_me: error: Working directory cannot be determined" >&2
1377 { (exit 1); exit 1; }; }
1378test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1379 { echo "$as_me: error: pwd does not report name of working directory" >&2
1380 { (exit 1); exit 1; }; }
1381
1382
John Criswell7a73b802003-06-30 21:59:07 +00001383# Find the source files, if location was not specified.
1384if test -z "$srcdir"; then
1385 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001386 # Try the directory containing this script, then the parent directory.
1387 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001388$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001389 X"$0" : 'X\(//\)[^/]' \| \
1390 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001391 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001392echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)[^/].*/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\/\)$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\).*/{
1406 s//\1/
1407 q
1408 }
1409 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001410 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001411 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001412 srcdir=..
1413 fi
1414else
1415 ac_srcdir_defaulted=no
1416fi
Reid Spencera773bd52006-08-04 18:18:08 +00001417if test ! -r "$srcdir/$ac_unique_file"; then
1418 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1419 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001420 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001421fi
Reid Spencera773bd52006-08-04 18:18:08 +00001422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423ac_abs_confdir=`(
1424 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001425 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001426 pwd)`
1427# When building in place, set srcdir=.
1428if test "$ac_abs_confdir" = "$ac_pwd"; then
1429 srcdir=.
1430fi
1431# Remove unnecessary trailing slashes from srcdir.
1432# Double slashes in file names in object file debugging info
1433# mess up M-x gdb in Emacs.
1434case $srcdir in
1435*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436esac
1437for ac_var in $ac_precious_vars; do
1438 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_${ac_var}_value=\$${ac_var}
1440 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1442done
John Criswell7a73b802003-06-30 21:59:07 +00001443
1444#
1445# Report the --help message.
1446#
1447if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1450 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001451\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001452
1453Usage: $0 [OPTION]... [VAR=VALUE]...
1454
1455To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456VAR=VALUE. See below for descriptions of some of the useful variables.
1457
1458Defaults for the options are specified in brackets.
1459
1460Configuration:
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470
John Criswell7a73b802003-06-30 21:59:07 +00001471Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001475 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001476
1477By default, \`make install' will install all the files in
1478\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480for instance \`--prefix=\$HOME'.
1481
1482For better control, use the options below.
1483
1484Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001504_ACEOF
1505
1506 cat <<\_ACEOF
1507
1508System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1512_ACEOF
1513fi
1514
1515if test -n "$ac_init_help"; then
1516 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001517 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001518 esac
1519 cat <<\_ACEOF
1520
1521Optional Features:
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001524 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001525 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001526 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001527 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001528 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001529 --enable-threads Use threads if available (default is YES)
Reid Spencer89b0d992006-12-16 22:07:52 +00001530 --enable-pic Build LLVM with Position Independent Code (default
1531 is NO)
Evan Cheng939ea652006-07-06 07:46:33 +00001532 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001533 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001534 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1535 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001536 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001537 --enable-shared[=PKGS] build shared libraries
1538 [default=enable_shared_default]
1539 --enable-static[=PKGS] build static libraries
1540 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001541 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001542 optimize for fast installation
1543 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001544 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001545
1546Optional Packages:
1547 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1548 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001549 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1550 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001551 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001552 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001553 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1554 --with-pic try to use only PIC/non-PIC objects [default=use
1555 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001556 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001557
1558Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001559 CC C compiler command
1560 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001563 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001565 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 CXX C++ compiler command
1567 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001568 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1569 the first program found out of: `bison -y', `byacc', `yacc'.
1570 YFLAGS The list of arguments that will be passed by default to $YACC.
1571 This script will default YFLAGS to the empty string to avoid a
1572 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001573 CXXCPP C++ preprocessor
1574 F77 Fortran 77 compiler command
1575 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
1580Report bugs to <llvmbugs@cs.uiuc.edu>.
1581_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001582ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001588 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001589 ac_builddir=.
1590
Reid Spencera773bd52006-08-04 18:18:08 +00001591case "$ac_dir" in
1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593*)
John Criswell7a73b802003-06-30 21:59:07 +00001594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001595 # A ".." for each directory in $ac_dir_suffix.
1596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1597 case $ac_top_builddir_sub in
1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1600 esac ;;
1601esac
1602ac_abs_top_builddir=$ac_pwd
1603ac_abs_builddir=$ac_pwd$ac_dir_suffix
1604# for backward compatibility:
1605ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001606
1607case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001608 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001609 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001610 ac_top_srcdir=$ac_top_builddir_sub
1611 ac_abs_top_srcdir=$ac_pwd ;;
1612 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001613 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001614 ac_top_srcdir=$srcdir
1615 ac_abs_top_srcdir=$srcdir ;;
1616 *) # Relative name.
1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1618 ac_top_srcdir=$ac_top_build_prefix$srcdir
1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001620esac
Reid Spencera773bd52006-08-04 18:18:08 +00001621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001622
Reid Spencera773bd52006-08-04 18:18:08 +00001623 cd "$ac_dir" || { ac_status=$?; continue; }
1624 # Check for guested configure.
1625 if test -f "$ac_srcdir/configure.gnu"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1628 elif test -f "$ac_srcdir/configure"; then
1629 echo &&
1630 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001631 else
1632 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001633 fi || ac_status=$?
1634 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001635 done
1636fi
1637
Reid Spencera773bd52006-08-04 18:18:08 +00001638test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001639if $ac_init_version; then
1640 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001641llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001642generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001643
Reid Spencera773bd52006-08-04 18:18:08 +00001644Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16452002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001646This configure script is free software; the Free Software Foundation
1647gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001648
John Criswellc0c186d2005-11-08 21:11:33 +00001649Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001650_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001651 exit
John Criswell7a73b802003-06-30 21:59:07 +00001652fi
Reid Spencera773bd52006-08-04 18:18:08 +00001653cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001654This file contains any messages produced by compilers while
1655running configure, to aid debugging if configure makes a mistake.
1656
Tanya Lattner01d3e382006-11-14 00:59:52 +00001657It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001658generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001659
1660 $ $0 $@
1661
1662_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001663exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001664{
1665cat <<_ASUNAME
1666## --------- ##
1667## Platform. ##
1668## --------- ##
1669
1670hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1671uname -m = `(uname -m) 2>/dev/null || echo unknown`
1672uname -r = `(uname -r) 2>/dev/null || echo unknown`
1673uname -s = `(uname -s) 2>/dev/null || echo unknown`
1674uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675
1676/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1677/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678
1679/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1680/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1681/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001682/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001683/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1684/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1685/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686
1687_ASUNAME
1688
1689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690for as_dir in $PATH
1691do
1692 IFS=$as_save_IFS
1693 test -z "$as_dir" && as_dir=.
1694 echo "PATH: $as_dir"
1695done
Reid Spencera773bd52006-08-04 18:18:08 +00001696IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001697
1698} >&5
1699
1700cat >&5 <<_ACEOF
1701
1702
1703## ----------- ##
1704## Core tests. ##
1705## ----------- ##
1706
1707_ACEOF
1708
1709
1710# Keep a trace of the command line.
1711# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001712# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001713# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001714# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001715ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001716ac_configure_args0=
1717ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001718ac_must_keep_next=false
1719for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001720do
John Criswell0c38eaf2003-09-10 15:17:25 +00001721 for ac_arg
1722 do
1723 case $ac_arg in
1724 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1725 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1726 | -silent | --silent | --silen | --sile | --sil)
1727 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001728 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001729 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1730 esac
1731 case $ac_pass in
1732 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 2)
1734 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1735 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001736 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001737 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001738 case $ac_arg in
1739 *=* | --config-cache | -C | -disable-* | --disable-* \
1740 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1741 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1742 | -with-* | --with-* | -without-* | --without-* | --x)
1743 case "$ac_configure_args0 " in
1744 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1745 esac
1746 ;;
1747 -* ) ac_must_keep_next=true ;;
1748 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001749 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001750 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001751 ;;
1752 esac
1753 done
John Criswell7a73b802003-06-30 21:59:07 +00001754done
John Criswell0c38eaf2003-09-10 15:17:25 +00001755$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1756$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 +00001757
1758# When interrupted or exit'd, cleanup temporary files, and complete
1759# config.log. We remove comments because anyway the quotes in there
1760# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001761# WARNING: Use '\'' to represent an apostrophe within the trap.
1762# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001763trap 'exit_status=$?
1764 # Save into config.log some information that might help in debugging.
1765 {
1766 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001767
John Criswell7a73b802003-06-30 21:59:07 +00001768 cat <<\_ASBOX
1769## ---------------- ##
1770## Cache variables. ##
1771## ---------------- ##
1772_ASBOX
1773 echo
1774 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001775(
1776 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1777 eval ac_val=\$$ac_var
1778 case $ac_val in #(
1779 *${as_nl}*)
1780 case $ac_var in #(
1781 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1782echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1783 esac
1784 case $ac_var in #(
1785 _ | IFS | as_nl) ;; #(
1786 *) $as_unset $ac_var ;;
1787 esac ;;
1788 esac
1789 done
John Criswell7a73b802003-06-30 21:59:07 +00001790 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001793 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001797 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001799 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001800 esac |
1801 sort
1802)
John Criswell7a73b802003-06-30 21:59:07 +00001803 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001804
1805 cat <<\_ASBOX
1806## ----------------- ##
1807## Output variables. ##
1808## ----------------- ##
1809_ASBOX
1810 echo
1811 for ac_var in $ac_subst_vars
1812 do
Reid Spencera773bd52006-08-04 18:18:08 +00001813 eval ac_val=\$$ac_var
1814 case $ac_val in
1815 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 esac
1817 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001818 done | sort
1819 echo
1820
1821 if test -n "$ac_subst_files"; then
1822 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001823## ------------------- ##
1824## File substitutions. ##
1825## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001826_ASBOX
1827 echo
1828 for ac_var in $ac_subst_files
1829 do
Reid Spencera773bd52006-08-04 18:18:08 +00001830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001835 done | sort
1836 echo
1837 fi
1838
John Criswell7a73b802003-06-30 21:59:07 +00001839 if test -s confdefs.h; then
1840 cat <<\_ASBOX
1841## ----------- ##
1842## confdefs.h. ##
1843## ----------- ##
1844_ASBOX
1845 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001846 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001847 echo
1848 fi
1849 test "$ac_signal" != 0 &&
1850 echo "$as_me: caught signal $ac_signal"
1851 echo "$as_me: exit $exit_status"
1852 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001855 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001856' 0
John Criswell7a73b802003-06-30 21:59:07 +00001857for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859done
1860ac_signal=0
1861
1862# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001863rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001864
1865# Predefined preprocessor variables.
1866
1867cat >>confdefs.h <<_ACEOF
1868#define PACKAGE_NAME "$PACKAGE_NAME"
1869_ACEOF
1870
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874_ACEOF
1875
1876
1877cat >>confdefs.h <<_ACEOF
1878#define PACKAGE_VERSION "$PACKAGE_VERSION"
1879_ACEOF
1880
1881
1882cat >>confdefs.h <<_ACEOF
1883#define PACKAGE_STRING "$PACKAGE_STRING"
1884_ACEOF
1885
1886
1887cat >>confdefs.h <<_ACEOF
1888#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889_ACEOF
1890
1891
1892# Let the site file select an alternate cache file if it wants to.
1893# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001894if test -n "$CONFIG_SITE"; then
1895 set x "$CONFIG_SITE"
1896elif test "x$prefix" != xNONE; then
1897 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1898else
1899 set x "$ac_default_prefix/share/config.site" \
1900 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001901fi
Reid Spencera773bd52006-08-04 18:18:08 +00001902shift
1903for ac_site_file
1904do
John Criswell7a73b802003-06-30 21:59:07 +00001905 if test -r "$ac_site_file"; then
1906 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1907echo "$as_me: loading site script $ac_site_file" >&6;}
1908 sed 's/^/| /' "$ac_site_file" >&5
1909 . "$ac_site_file"
1910 fi
1911done
1912
1913if test -r "$cache_file"; then
1914 # Some versions of bash will fail to source /dev/null (special
1915 # files actually), so we avoid doing that.
1916 if test -f "$cache_file"; then
1917 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1918echo "$as_me: loading cache $cache_file" >&6;}
1919 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001920 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1921 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001922 esac
1923 fi
1924else
1925 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1926echo "$as_me: creating cache $cache_file" >&6;}
1927 >$cache_file
1928fi
1929
1930# Check that the precious variables saved in the cache have kept the same
1931# value.
1932ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001933for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001934 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1935 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001936 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1937 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001938 case $ac_old_set,$ac_new_set in
1939 set,)
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1941echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,set)
1944 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1945echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1946 ac_cache_corrupted=: ;;
1947 ,);;
1948 *)
1949 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001950 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001951echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001953echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001954 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001955echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001956 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001957 fi;;
1958 esac
1959 # Pass precious variables to config.status.
1960 if test "$ac_new_set" = set; then
1961 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001962 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001963 *) ac_arg=$ac_var=$ac_new_val ;;
1964 esac
1965 case " $ac_configure_args " in
1966 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1967 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1968 esac
1969 fi
1970done
1971if $ac_cache_corrupted; then
1972 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
1977fi
1978
Reid Spencera773bd52006-08-04 18:18:08 +00001979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
John Criswell7a73b802003-06-30 21:59:07 +00002003ac_ext=c
2004ac_cpp='$CPP $CPPFLAGS'
2005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010
Misha Brukman19098e52005-05-12 22:15:34 +00002011LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012
2013
2014
2015
2016
2017
2018
John Criswell7a73b802003-06-30 21:59:07 +00002019ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002020for ac_dir in autoconf "$srcdir"/autoconf; do
2021 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002022 ac_aux_dir=$ac_dir
2023 ac_install_sh="$ac_aux_dir/install-sh -c"
2024 break
Reid Spencera773bd52006-08-04 18:18:08 +00002025 elif test -f "$ac_dir/install.sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002026 ac_aux_dir=$ac_dir
2027 ac_install_sh="$ac_aux_dir/install.sh -c"
2028 break
Reid Spencera773bd52006-08-04 18:18:08 +00002029 elif test -f "$ac_dir/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002030 ac_aux_dir=$ac_dir
2031 ac_install_sh="$ac_aux_dir/shtool install -c"
2032 break
2033 fi
2034done
2035if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002036 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2037echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002038 { (exit 1); exit 1; }; }
2039fi
Reid Spencera773bd52006-08-04 18:18:08 +00002040
2041# These three variables are undocumented and unsupported,
2042# and are intended to be withdrawn in a future Autoconf release.
2043# They can cause serious problems if a builder's source tree is in a directory
2044# whose full name contains unusual characters.
2045ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2046ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2047ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2048
John Criswell7a73b802003-06-30 21:59:07 +00002049
John Criswell392aaa32003-07-22 19:18:09 +00002050
Reid Spencer2706f8c2004-09-19 23:53:36 +00002051if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2053 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002054echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2055 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002056 fi
John Criswell93e1c722003-09-15 17:04:06 +00002057fi
2058
John Criswell33a911a2003-11-25 20:36:46 +00002059for i in `ls ${srcdir}/projects`
2060do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002061 if test -d ${srcdir}/projects/${i} ; then
2062 case ${i} in
2063 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002064 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002066 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002068 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002069 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002070 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002072 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002073;;
Reid Spencera773bd52006-08-04 18:18:08 +00002074 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002076 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002077 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002078 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002079 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002080 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002081 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002082 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002083 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002085 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2086echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002087 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002088 esac
John Criswell33a911a2003-11-25 20:36:46 +00002089 fi
2090done
John Criswell559a6c12003-09-30 16:31:48 +00002091
John Criswell7a73b802003-06-30 21:59:07 +00002092
2093# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002094$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2095 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2096echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002097 { (exit 1); exit 1; }; }
2098
Reid Spencera773bd52006-08-04 18:18:08 +00002099{ echo "$as_me:$LINENO: checking build system type" >&5
2100echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002101if test "${ac_cv_build+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2103else
Reid Spencera773bd52006-08-04 18:18:08 +00002104 ac_build_alias=$build_alias
2105test "x$ac_build_alias" = x &&
2106 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2107test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002108 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2109echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2110 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002111ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2112 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2113echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002114 { (exit 1); exit 1; }; }
2115
2116fi
Reid Spencera773bd52006-08-04 18:18:08 +00002117{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2118echo "${ECHO_T}$ac_cv_build" >&6; }
2119case $ac_cv_build in
2120*-*-*) ;;
2121*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2122echo "$as_me: error: invalid value of canonical build" >&2;}
2123 { (exit 1); exit 1; }; };;
2124esac
John Criswell7a73b802003-06-30 21:59:07 +00002125build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002126ac_save_IFS=$IFS; IFS='-'
2127set x $ac_cv_build
2128shift
2129build_cpu=$1
2130build_vendor=$2
2131shift; shift
2132# Remember, the first character of IFS is used to create $*,
2133# except with old shells:
2134build_os=$*
2135IFS=$ac_save_IFS
2136case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002137
2138
Reid Spencera773bd52006-08-04 18:18:08 +00002139{ echo "$as_me:$LINENO: checking host system type" >&5
2140echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002141if test "${ac_cv_host+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2143else
Reid Spencera773bd52006-08-04 18:18:08 +00002144 if test "x$host_alias" = x; then
2145 ac_cv_host=$ac_cv_build
2146else
2147 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2148 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2149echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002150 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002151fi
John Criswell7a73b802003-06-30 21:59:07 +00002152
2153fi
Reid Spencera773bd52006-08-04 18:18:08 +00002154{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2155echo "${ECHO_T}$ac_cv_host" >&6; }
2156case $ac_cv_host in
2157*-*-*) ;;
2158*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2159echo "$as_me: error: invalid value of canonical host" >&2;}
2160 { (exit 1); exit 1; }; };;
2161esac
John Criswell7a73b802003-06-30 21:59:07 +00002162host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002163ac_save_IFS=$IFS; IFS='-'
2164set x $ac_cv_host
2165shift
2166host_cpu=$1
2167host_vendor=$2
2168shift; shift
2169# Remember, the first character of IFS is used to create $*,
2170# except with old shells:
2171host_os=$*
2172IFS=$ac_save_IFS
2173case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002174
2175
Reid Spencera773bd52006-08-04 18:18:08 +00002176{ echo "$as_me:$LINENO: checking target system type" >&5
2177echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002178if test "${ac_cv_target+set}" = set; then
2179 echo $ECHO_N "(cached) $ECHO_C" >&6
2180else
Reid Spencera773bd52006-08-04 18:18:08 +00002181 if test "x$target_alias" = x; then
2182 ac_cv_target=$ac_cv_host
2183else
2184 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2185 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2186echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002187 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002188fi
John Criswell7a73b802003-06-30 21:59:07 +00002189
2190fi
Reid Spencera773bd52006-08-04 18:18:08 +00002191{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2192echo "${ECHO_T}$ac_cv_target" >&6; }
2193case $ac_cv_target in
2194*-*-*) ;;
2195*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2196echo "$as_me: error: invalid value of canonical target" >&2;}
2197 { (exit 1); exit 1; }; };;
2198esac
John Criswell7a73b802003-06-30 21:59:07 +00002199target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002200ac_save_IFS=$IFS; IFS='-'
2201set x $ac_cv_target
2202shift
2203target_cpu=$1
2204target_vendor=$2
2205shift; shift
2206# Remember, the first character of IFS is used to create $*,
2207# except with old shells:
2208target_os=$*
2209IFS=$ac_save_IFS
2210case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002211
2212
2213# The aliases save the names the user supplied, while $host etc.
2214# will get canonicalized.
2215test -n "$target_alias" &&
2216 test "$program_prefix$program_suffix$program_transform_name" = \
2217 NONENONEs,x,x, &&
2218 program_prefix=${target_alias}-
2219
Reid Spencera773bd52006-08-04 18:18:08 +00002220{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2221echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002223 echo $ECHO_N "(cached) $ECHO_C" >&6
2224else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002225 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002226 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002227 llvm_cv_link_all_option="-Wl,--whole-archive"
2228 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002229 llvm_cv_os_type="AIX"
2230 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002231 *-*-irix*)
2232 llvm_cv_link_all_option="-Wl,--whole-archive"
2233 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2234 llvm_cv_os_type="IRIX"
2235 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002236 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002237 llvm_cv_link_all_option="-Wl,--whole-archive"
2238 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002239 llvm_cv_os_type="Cygwin"
2240 llvm_cv_platform_type="Unix" ;;
2241 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002242 llvm_cv_link_all_option="-Wl,-all_load"
2243 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002244 llvm_cv_os_type="Darwin"
2245 llvm_cv_platform_type="Unix" ;;
2246 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002247 llvm_cv_link_all_option="-Wl,--whole-archive"
2248 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002249 llvm_cv_os_type="FreeBSD"
2250 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002251 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002252 llvm_cv_link_all_option="-Wl,--whole-archive"
2253 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002254 llvm_cv_os_type="OpenBSD"
2255 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002256 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002257 llvm_cv_link_all_option="-Wl,--whole-archive"
2258 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002259 llvm_cv_os_type="HP-UX"
2260 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002261 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002262 llvm_cv_link_all_option="-Wl,--whole-archive"
2263 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002264 llvm_cv_os_type="Interix"
2265 llvm_cv_platform_type="Unix" ;;
2266 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002267 llvm_cv_link_all_option="-Wl,--whole-archive"
2268 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002269 llvm_cv_os_type="Linux"
2270 llvm_cv_platform_type="Unix" ;;
2271 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002272 llvm_cv_link_all_option="-Wl,-z,allextract"
2273 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002274 llvm_cv_os_type="SunOS"
2275 llvm_cv_platform_type="Unix" ;;
2276 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002277 llvm_cv_link_all_option="-Wl,--whole-archive"
2278 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002279 llvm_cv_os_type="Win32"
2280 llvm_cv_platform_type="Win32" ;;
2281 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002282 llvm_cv_link_all_option="-Wl,--whole-archive"
2283 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002284 llvm_cv_os_type="MingW"
2285 llvm_cv_platform_type="Win32" ;;
2286 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002287 llvm_cv_link_all_option=""
2288 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002289 llvm_cv_os_type="Unknown"
2290 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002291esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002292fi
Reid Spencera773bd52006-08-04 18:18:08 +00002293{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2294echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002295
Reid Spencer7b3e8512004-12-24 06:29:05 +00002296if test "$llvm_cv_os_type" = "Unknown" ; then
2297 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2298echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002299 { (exit 1); exit 1; }; }
2300fi
2301
Reid Spencer7b3e8512004-12-24 06:29:05 +00002302OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002303
2304
Reid Spencera773bd52006-08-04 18:18:08 +00002305LINKALL=$llvm_cv_link_all_option
2306
2307NOLINKALL=$llvm_cv_no_link_all_option
2308
2309
Reid Spencer7b3e8512004-12-24 06:29:05 +00002310case $llvm_cv_platform_type in
2311 Unix)
2312
2313cat >>confdefs.h <<\_ACEOF
2314#define LLVM_ON_UNIX 1
2315_ACEOF
2316
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002317 LLVM_ON_UNIX=1
2318
2319 LLVM_ON_WIN32=0
2320
Reid Spencer7b3e8512004-12-24 06:29:05 +00002321 ;;
2322 Win32)
2323
2324cat >>confdefs.h <<\_ACEOF
2325#define LLVM_ON_WIN32 1
2326_ACEOF
2327
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002328 LLVM_ON_UNIX=0
2329
2330 LLVM_ON_WIN32=1
2331
Reid Spencer7b3e8512004-12-24 06:29:05 +00002332 ;;
2333esac
2334
Reid Spencera773bd52006-08-04 18:18:08 +00002335{ echo "$as_me:$LINENO: checking target architecture" >&5
2336echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002337if test "${llvm_cv_target_arch+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002341 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002342 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002343 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2344 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002345 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002346 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002347 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002348esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349fi
Reid Spencera773bd52006-08-04 18:18:08 +00002350{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2351echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002352
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002353if test "$llvm_cv_target_arch" = "Unknown" ; then
2354 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2355echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2356fi
John Criswell76595452003-07-01 22:07:39 +00002357
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002358ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002359
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002360
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002361ac_ext=c
2362ac_cpp='$CPP $CPPFLAGS'
2363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002366if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2368set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002369{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002371if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2373else
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2376else
2377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
2382 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002383 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 +00002384 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2386 break 2
2387 fi
2388done
2389done
Reid Spencera773bd52006-08-04 18:18:08 +00002390IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391
2392fi
2393fi
2394CC=$ac_cv_prog_CC
2395if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002396 { echo "$as_me:$LINENO: result: $CC" >&5
2397echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002398else
Reid Spencera773bd52006-08-04 18:18:08 +00002399 { echo "$as_me:$LINENO: result: no" >&5
2400echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002401fi
2402
Reid Spencera773bd52006-08-04 18:18:08 +00002403
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002404fi
2405if test -z "$ac_cv_prog_CC"; then
2406 ac_ct_CC=$CC
2407 # Extract the first word of "gcc", so it can be a program name with args.
2408set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002409{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2412 echo $ECHO_N "(cached) $ECHO_C" >&6
2413else
2414 if test -n "$ac_ct_CC"; then
2415 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2416else
2417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2418for as_dir in $PATH
2419do
2420 IFS=$as_save_IFS
2421 test -z "$as_dir" && as_dir=.
2422 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002423 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 +00002424 ac_cv_prog_ac_ct_CC="gcc"
2425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 break 2
2427 fi
2428done
2429done
Reid Spencera773bd52006-08-04 18:18:08 +00002430IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002431
2432fi
2433fi
2434ac_ct_CC=$ac_cv_prog_ac_ct_CC
2435if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002436 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2437echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002438else
Reid Spencera773bd52006-08-04 18:18:08 +00002439 { echo "$as_me:$LINENO: result: no" >&5
2440echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002441fi
2442
Reid Spencera773bd52006-08-04 18:18:08 +00002443 if test "x$ac_ct_CC" = x; then
2444 CC=""
2445 else
2446 case $cross_compiling:$ac_tool_warned in
2447yes:)
2448{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2449whose name does not start with the host triplet. If you think this
2450configuration is useful to you, please write to autoconf@gnu.org." >&5
2451echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2452whose name does not start with the host triplet. If you think this
2453configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2454ac_tool_warned=yes ;;
2455esac
2456 CC=$ac_ct_CC
2457 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002458else
2459 CC="$ac_cv_prog_CC"
2460fi
2461
2462if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002463 if test -n "$ac_tool_prefix"; then
2464 # 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 +00002465set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468if test "${ac_cv_prog_CC+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471 if test -n "$CC"; then
2472 ac_cv_prog_CC="$CC" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
2478 test -z "$as_dir" && as_dir=.
2479 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002480 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 +00002481 ac_cv_prog_CC="${ac_tool_prefix}cc"
2482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 break 2
2484 fi
2485done
2486done
Reid Spencera773bd52006-08-04 18:18:08 +00002487IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002488
2489fi
2490fi
2491CC=$ac_cv_prog_CC
2492if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002493 { echo "$as_me:$LINENO: result: $CC" >&5
2494echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002495else
Reid Spencera773bd52006-08-04 18:18:08 +00002496 { echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498fi
2499
Reid Spencera773bd52006-08-04 18:18:08 +00002500
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002501 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002502fi
2503if test -z "$CC"; then
2504 # Extract the first word of "cc", so it can be a program name with args.
2505set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002508if test "${ac_cv_prog_CC+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2510else
2511 if test -n "$CC"; then
2512 ac_cv_prog_CC="$CC" # Let the user override the test.
2513else
2514 ac_prog_rejected=no
2515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516for as_dir in $PATH
2517do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002521 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 +00002522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2523 ac_prog_rejected=yes
2524 continue
2525 fi
2526 ac_cv_prog_CC="cc"
2527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2528 break 2
2529 fi
2530done
2531done
Reid Spencera773bd52006-08-04 18:18:08 +00002532IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002533
2534if test $ac_prog_rejected = yes; then
2535 # We found a bogon in the path, so make sure we never use it.
2536 set dummy $ac_cv_prog_CC
2537 shift
2538 if test $# != 0; then
2539 # We chose a different compiler from the bogus one.
2540 # However, it has the same basename, so the bogon will be chosen
2541 # first if we set CC to just the basename; use the full file name.
2542 shift
2543 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2544 fi
2545fi
2546fi
2547fi
2548CC=$ac_cv_prog_CC
2549if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002550 { echo "$as_me:$LINENO: result: $CC" >&5
2551echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002552else
Reid Spencera773bd52006-08-04 18:18:08 +00002553 { echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002555fi
2556
Reid Spencera773bd52006-08-04 18:18:08 +00002557
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002558fi
2559if test -z "$CC"; then
2560 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002561 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002562 do
2563 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2564set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002565{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002567if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002570 if test -n "$CC"; then
2571 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002579 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 +00002580 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585done
Reid Spencera773bd52006-08-04 18:18:08 +00002586IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002587
2588fi
2589fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002590CC=$ac_cv_prog_CC
2591if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002592 { echo "$as_me:$LINENO: result: $CC" >&5
2593echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002594else
Reid Spencera773bd52006-08-04 18:18:08 +00002595 { echo "$as_me:$LINENO: result: no" >&5
2596echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002597fi
2598
Reid Spencera773bd52006-08-04 18:18:08 +00002599
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002600 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002601 done
2602fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002603if test -z "$CC"; then
2604 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002605 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002606do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002609{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002611if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002614 if test -n "$ac_ct_CC"; then
2615 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002616else
2617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002623 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 +00002624 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628done
2629done
Reid Spencera773bd52006-08-04 18:18:08 +00002630IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002631
2632fi
2633fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002634ac_ct_CC=$ac_cv_prog_ac_ct_CC
2635if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002636 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2637echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002638else
Reid Spencera773bd52006-08-04 18:18:08 +00002639 { echo "$as_me:$LINENO: result: no" >&5
2640echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002641fi
2642
Reid Spencera773bd52006-08-04 18:18:08 +00002643
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002644 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002645done
John Criswell7a73b802003-06-30 21:59:07 +00002646
Reid Spencera773bd52006-08-04 18:18:08 +00002647 if test "x$ac_ct_CC" = x; then
2648 CC=""
2649 else
2650 case $cross_compiling:$ac_tool_warned in
2651yes:)
2652{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2653whose name does not start with the host triplet. If you think this
2654configuration is useful to you, please write to autoconf@gnu.org." >&5
2655echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2656whose name does not start with the host triplet. If you think this
2657configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2658ac_tool_warned=yes ;;
2659esac
2660 CC=$ac_ct_CC
2661 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002662fi
2663
John Criswell7a73b802003-06-30 21:59:07 +00002664fi
2665
2666
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002667test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2668See \`config.log' for more details." >&5
2669echo "$as_me: error: no acceptable C compiler found in \$PATH
2670See \`config.log' for more details." >&2;}
2671 { (exit 1); exit 1; }; }
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002674echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002675ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002676{ (ac_try="$ac_compiler --version >&5"
2677case "(($ac_try" in
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2680esac
2681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002686{ (ac_try="$ac_compiler -v >&5"
2687case "(($ac_try" in
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2690esac
2691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002696{ (ac_try="$ac_compiler -V >&5"
2697case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2700esac
2701eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2706
2707cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002708/* confdefs.h. */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002713
John Criswell7a73b802003-06-30 21:59:07 +00002714int
2715main ()
2716{
2717
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002723ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002724# Try to create an executable without -o first, disregard a.out.
2725# It will help us diagnose broken compilers, and finding out an intuition
2726# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002727{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2728echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002729ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002730#
2731# List of possible output files, starting from the most likely.
2732# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2733# only as a last resort. b.out is created by i960 compilers.
2734ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2735#
2736# The IRIX 6 linker writes into existing files which may not be
2737# executable, retaining their permissions. Remove them first so a
2738# subsequent execution test works.
2739ac_rmfiles=
2740for ac_file in $ac_files
2741do
2742 case $ac_file in
2743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2744 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2745 esac
2746done
2747rm -f $ac_rmfiles
2748
2749if { (ac_try="$ac_link_default"
2750case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2753esac
2754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002756 ac_status=$?
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2761# in a Makefile. We should not override ac_cv_exeext if it was cached,
2762# so that the user can short-circuit this test for compilers unknown to
2763# Autoconf.
2764for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002765do
2766 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002767 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002769 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002770 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002771 # We found the default executable, but exeext='' is most
2772 # certainly right.
2773 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002774 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2776 then :; else
2777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2778 fi
2779 # We set ac_cv_exeext here because the later test for it is not
2780 # safe: cross compilers may not add the suffix if given an `-o'
2781 # argument, so we may need to know it at that point already.
2782 # Even if this section looks crufty: it has the advantage of
2783 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002784 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002785 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002786 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002787 esac
2788done
Reid Spencera773bd52006-08-04 18:18:08 +00002789test "$ac_cv_exeext" = no && ac_cv_exeext=
2790
John Criswell7a73b802003-06-30 21:59:07 +00002791else
2792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002793sed 's/^/| /' conftest.$ac_ext >&5
2794
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002795{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002796See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002797echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002798See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002799 { (exit 77); exit 77; }; }
2800fi
2801
2802ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002803{ echo "$as_me:$LINENO: result: $ac_file" >&5
2804echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002805
Reid Spencera773bd52006-08-04 18:18:08 +00002806# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002807# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002808{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2809echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002810# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2811# If not cross compiling, check that we can run a simple program.
2812if test "$cross_compiling" != yes; then
2813 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002814 { (case "(($ac_try" in
2815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2816 *) ac_try_echo=$ac_try;;
2817esac
2818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2819 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002820 ac_status=$?
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); }; }; then
2823 cross_compiling=no
2824 else
2825 if test "$cross_compiling" = maybe; then
2826 cross_compiling=yes
2827 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002829If you meant to cross compile, use \`--host'.
2830See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002831echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002832If you meant to cross compile, use \`--host'.
2833See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002834 { (exit 1); exit 1; }; }
2835 fi
2836 fi
2837fi
Reid Spencera773bd52006-08-04 18:18:08 +00002838{ echo "$as_me:$LINENO: result: yes" >&5
2839echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002840
John Criswell0c38eaf2003-09-10 15:17:25 +00002841rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002842ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002843# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002844# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002845{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2846echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2847{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2848echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002849
Reid Spencera773bd52006-08-04 18:18:08 +00002850{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2851echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2852if { (ac_try="$ac_link"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; then
2862 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2863# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2864# work properly (i.e., refer to `conftest.exe'), while it won't with
2865# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002866for ac_file in conftest.exe conftest conftest.*; do
2867 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002868 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002871 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002872 * ) break;;
2873 esac
2874done
2875else
John Criswell0c38eaf2003-09-10 15:17:25 +00002876 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2877See \`config.log' for more details." >&5
2878echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2879See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002880 { (exit 1); exit 1; }; }
2881fi
2882
2883rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002884{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2885echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002886
2887rm -f conftest.$ac_ext
2888EXEEXT=$ac_cv_exeext
2889ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002890{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2891echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002892if test "${ac_cv_objext+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002901
John Criswell7a73b802003-06-30 21:59:07 +00002902int
2903main ()
2904{
2905
2906 ;
2907 return 0;
2908}
2909_ACEOF
2910rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002911if { (ac_try="$ac_compile"
2912case "(($ac_try" in
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2915esac
2916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002921 for ac_file in conftest.o conftest.obj conftest.*; do
2922 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002923 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2926 break;;
2927 esac
2928done
2929else
2930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002931sed 's/^/| /' conftest.$ac_ext >&5
2932
2933{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2934See \`config.log' for more details." >&5
2935echo "$as_me: error: cannot compute suffix of object files: cannot compile
2936See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002937 { (exit 1); exit 1; }; }
2938fi
2939
2940rm -f conftest.$ac_cv_objext conftest.$ac_ext
2941fi
Reid Spencera773bd52006-08-04 18:18:08 +00002942{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2943echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002944OBJEXT=$ac_cv_objext
2945ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002946{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2947echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002948if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002952/* confdefs.h. */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002957
John Criswell7a73b802003-06-30 21:59:07 +00002958int
2959main ()
2960{
2961#ifndef __GNUC__
2962 choke me
2963#endif
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002970if { (ac_try="$ac_compile"
2971case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002977 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002978 grep -v '^ *+' conftest.er1 >conftest.err
2979 rm -f conftest.er1
2980 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
2998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2999 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; }; then
3003 ac_compiler_gnu=yes
3004else
3005 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003006sed 's/^/| /' conftest.$ac_ext >&5
3007
Reid Spencera773bd52006-08-04 18:18:08 +00003008 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003009fi
Reid Spencera773bd52006-08-04 18:18:08 +00003010
3011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003012ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003013
3014fi
Reid Spencera773bd52006-08-04 18:18:08 +00003015{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3016echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003017GCC=`test $ac_compiler_gnu = yes && echo yes`
3018ac_test_CFLAGS=${CFLAGS+set}
3019ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003020{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3021echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003022if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003023 echo $ECHO_N "(cached) $ECHO_C" >&6
3024else
Reid Spencera773bd52006-08-04 18:18:08 +00003025 ac_save_c_werror_flag=$ac_c_werror_flag
3026 ac_c_werror_flag=yes
3027 ac_cv_prog_cc_g=no
3028 CFLAGS="-g"
3029 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003030/* confdefs.h. */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003035
John Criswell7a73b802003-06-30 21:59:07 +00003036int
3037main ()
3038{
3039
3040 ;
3041 return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003045if { (ac_try="$ac_compile"
3046case "(($ac_try" in
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3049esac
3050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003053 grep -v '^ *+' conftest.er1 >conftest.err
3054 rm -f conftest.er1
3055 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062esac
3063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003065 ac_status=$?
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; } &&
3068 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003069 { (case "(($ac_try" in
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3072esac
3073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003075 ac_status=$?
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003078 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003079else
3080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003081sed 's/^/| /' conftest.$ac_ext >&5
3082
Reid Spencera773bd52006-08-04 18:18:08 +00003083 CFLAGS=""
3084 cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext
3100if { (ac_try="$ac_compile"
3101case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104esac
3105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3107 ac_status=$?
3108 grep -v '^ *+' conftest.er1 >conftest.err
3109 rm -f conftest.er1
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } &&
3113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117esac
3118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3120 ac_status=$?
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; } &&
3123 { ac_try='test -s conftest.$ac_objext'
3124 { (case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127esac
3128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129 (eval "$ac_try") 2>&5
3130 ac_status=$?
3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132 (exit $ac_status); }; }; then
3133 :
3134else
3135 echo "$as_me: failed program was:" >&5
3136sed 's/^/| /' conftest.$ac_ext >&5
3137
3138 ac_c_werror_flag=$ac_save_c_werror_flag
3139 CFLAGS="-g"
3140 cat >conftest.$ac_ext <<_ACEOF
3141/* confdefs.h. */
3142_ACEOF
3143cat confdefs.h >>conftest.$ac_ext
3144cat >>conftest.$ac_ext <<_ACEOF
3145/* end confdefs.h. */
3146
3147int
3148main ()
3149{
3150
3151 ;
3152 return 0;
3153}
3154_ACEOF
3155rm -f conftest.$ac_objext
3156if { (ac_try="$ac_compile"
3157case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160esac
3161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3163 ac_status=$?
3164 grep -v '^ *+' conftest.er1 >conftest.err
3165 rm -f conftest.er1
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } &&
3169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173esac
3174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3176 ac_status=$?
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; } &&
3179 { ac_try='test -s conftest.$ac_objext'
3180 { (case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183esac
3184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }; }; then
3189 ac_cv_prog_cc_g=yes
3190else
3191 echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194
John Criswell7a73b802003-06-30 21:59:07 +00003195fi
Reid Spencera773bd52006-08-04 18:18:08 +00003196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003198fi
Reid Spencera773bd52006-08-04 18:18:08 +00003199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201fi
3202
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205fi
3206{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3207echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003208if test "$ac_test_CFLAGS" = set; then
3209 CFLAGS=$ac_save_CFLAGS
3210elif test $ac_cv_prog_cc_g = yes; then
3211 if test "$GCC" = yes; then
3212 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003213 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003214 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003215 fi
3216else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003217 if test "$GCC" = yes; then
3218 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003219 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003220 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003221 fi
3222fi
Reid Spencera773bd52006-08-04 18:18:08 +00003223{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227else
Reid Spencera773bd52006-08-04 18:18:08 +00003228 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003229ac_save_CC=$CC
3230cat >conftest.$ac_ext <<_ACEOF
3231/* confdefs.h. */
3232_ACEOF
3233cat confdefs.h >>conftest.$ac_ext
3234cat >>conftest.$ac_ext <<_ACEOF
3235/* end confdefs.h. */
3236#include <stdarg.h>
3237#include <stdio.h>
3238#include <sys/types.h>
3239#include <sys/stat.h>
3240/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241struct buf { int x; };
3242FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243static char *e (p, i)
3244 char **p;
3245 int i;
3246{
3247 return p[i];
3248}
3249static char *f (char * (*g) (char **, int), char **p, ...)
3250{
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3257}
3258
3259/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003262 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003265 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003266int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3267
Reid Spencera773bd52006-08-04 18:18:08 +00003268/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270#define FOO(x) 'x'
3271int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3272
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003273int test (int i, double x);
3274struct s1 {int (*f) (int a);};
3275struct s2 {int (*f) (double a);};
3276int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277int argc;
3278char **argv;
3279int
3280main ()
3281{
3282return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3283 ;
3284 return 0;
3285}
3286_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003287for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003289do
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003292if { (ac_try="$ac_compile"
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
3297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3309esac
3310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003312 ac_status=$?
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; } &&
3315 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003316 { (case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
3320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3321 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003325 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003326else
3327 echo "$as_me: failed program was:" >&5
3328sed 's/^/| /' conftest.$ac_ext >&5
3329
Reid Spencera773bd52006-08-04 18:18:08 +00003330
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331fi
Reid Spencera773bd52006-08-04 18:18:08 +00003332
3333rm -f core conftest.err conftest.$ac_objext
3334 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003335done
Reid Spencera773bd52006-08-04 18:18:08 +00003336rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003337CC=$ac_save_CC
3338
3339fi
Reid Spencera773bd52006-08-04 18:18:08 +00003340# AC_CACHE_VAL
3341case "x$ac_cv_prog_cc_c89" in
3342 x)
3343 { echo "$as_me:$LINENO: result: none needed" >&5
3344echo "${ECHO_T}none needed" >&6; } ;;
3345 xno)
3346 { echo "$as_me:$LINENO: result: unsupported" >&5
3347echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003349 CC="$CC $ac_cv_prog_cc_c89"
3350 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3351echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003352esac
3353
John Criswell0c38eaf2003-09-10 15:17:25 +00003354
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003355ac_ext=c
3356ac_cpp='$CPP $CPPFLAGS'
3357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3359ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360
3361
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003367{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003369# On Suns, sometimes $CPP names a directory.
3370if test -n "$CPP" && test -d "$CPP"; then
3371 CPP=
3372fi
3373if test -z "$CPP"; then
3374 if test "${ac_cv_prog_CPP+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377 # Double quotes because CPP needs to be expanded
3378 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379 do
3380 ac_preproc_ok=false
3381for ac_c_preproc_warn_flag in '' yes
3382do
3383 # Use a header file that comes with gcc, so configuring glibc
3384 # with a fresh cross-compiler works.
3385 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386 # <limits.h> exists even on freestanding compilers.
3387 # On the NeXT, cc -E runs the code through the compiler's parser,
3388 # not just through cpp. "Syntax error" is here to catch this case.
3389 cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h. */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h. */
3395#ifdef __STDC__
3396# include <limits.h>
3397#else
3398# include <assert.h>
3399#endif
3400 Syntax error
3401_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003402if { (ac_try="$ac_cpp conftest.$ac_ext"
3403case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003409 ac_status=$?
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } >/dev/null; then
3415 if test -s conftest.err; then
3416 ac_cpp_err=$ac_c_preproc_warn_flag
3417 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3418 else
3419 ac_cpp_err=
3420 fi
3421else
3422 ac_cpp_err=yes
3423fi
3424if test -z "$ac_cpp_err"; then
3425 :
3426else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Broken: fails on valid input.
3431continue
3432fi
Reid Spencera773bd52006-08-04 18:18:08 +00003433
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003434rm -f conftest.err conftest.$ac_ext
3435
Reid Spencera773bd52006-08-04 18:18:08 +00003436 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003437 # can be detected and how.
3438 cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h. */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h. */
3444#include <ac_nonexistent.h>
3445_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003446if { (ac_try="$ac_cpp conftest.$ac_ext"
3447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
3451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003453 ac_status=$?
3454 grep -v '^ *+' conftest.er1 >conftest.err
3455 rm -f conftest.er1
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } >/dev/null; then
3459 if test -s conftest.err; then
3460 ac_cpp_err=$ac_c_preproc_warn_flag
3461 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3462 else
3463 ac_cpp_err=
3464 fi
3465else
3466 ac_cpp_err=yes
3467fi
3468if test -z "$ac_cpp_err"; then
3469 # Broken: success on invalid input.
3470continue
3471else
3472 echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475 # Passes both tests.
3476ac_preproc_ok=:
3477break
3478fi
Reid Spencera773bd52006-08-04 18:18:08 +00003479
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003480rm -f conftest.err conftest.$ac_ext
3481
3482done
3483# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3484rm -f conftest.err conftest.$ac_ext
3485if $ac_preproc_ok; then
3486 break
3487fi
3488
3489 done
3490 ac_cv_prog_CPP=$CPP
3491
3492fi
3493 CPP=$ac_cv_prog_CPP
3494else
3495 ac_cv_prog_CPP=$CPP
3496fi
Reid Spencera773bd52006-08-04 18:18:08 +00003497{ echo "$as_me:$LINENO: result: $CPP" >&5
3498echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003499ac_preproc_ok=false
3500for ac_c_preproc_warn_flag in '' yes
3501do
3502 # Use a header file that comes with gcc, so configuring glibc
3503 # with a fresh cross-compiler works.
3504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3505 # <limits.h> exists even on freestanding compilers.
3506 # On the NeXT, cc -E runs the code through the compiler's parser,
3507 # not just through cpp. "Syntax error" is here to catch this case.
3508 cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#ifdef __STDC__
3515# include <limits.h>
3516#else
3517# include <assert.h>
3518#endif
3519 Syntax error
3520_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525esac
3526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } >/dev/null; then
3534 if test -s conftest.err; then
3535 ac_cpp_err=$ac_c_preproc_warn_flag
3536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 else
3538 ac_cpp_err=
3539 fi
3540else
3541 ac_cpp_err=yes
3542fi
3543if test -z "$ac_cpp_err"; then
3544 :
3545else
3546 echo "$as_me: failed program was:" >&5
3547sed 's/^/| /' conftest.$ac_ext >&5
3548
3549 # Broken: fails on valid input.
3550continue
3551fi
Reid Spencera773bd52006-08-04 18:18:08 +00003552
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003553rm -f conftest.err conftest.$ac_ext
3554
Reid Spencera773bd52006-08-04 18:18:08 +00003555 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003556 # can be detected and how.
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563#include <ac_nonexistent.h>
3564_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003565if { (ac_try="$ac_cpp conftest.$ac_ext"
3566case "(($ac_try" in
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3569esac
3570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003572 ac_status=$?
3573 grep -v '^ *+' conftest.er1 >conftest.err
3574 rm -f conftest.er1
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } >/dev/null; then
3578 if test -s conftest.err; then
3579 ac_cpp_err=$ac_c_preproc_warn_flag
3580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3581 else
3582 ac_cpp_err=
3583 fi
3584else
3585 ac_cpp_err=yes
3586fi
3587if test -z "$ac_cpp_err"; then
3588 # Broken: success on invalid input.
3589continue
3590else
3591 echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 # Passes both tests.
3595ac_preproc_ok=:
3596break
3597fi
Reid Spencera773bd52006-08-04 18:18:08 +00003598
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003599rm -f conftest.err conftest.$ac_ext
3600
3601done
3602# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3603rm -f conftest.err conftest.$ac_ext
3604if $ac_preproc_ok; then
3605 :
3606else
3607 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3608See \`config.log' for more details." >&5
3609echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3610See \`config.log' for more details." >&2;}
3611 { (exit 1); exit 1; }; }
3612fi
3613
John Criswell7a73b802003-06-30 21:59:07 +00003614ac_ext=c
3615ac_cpp='$CPP $CPPFLAGS'
3616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3618ac_compiler_gnu=$ac_cv_c_compiler_gnu
3619
John Criswell7a73b802003-06-30 21:59:07 +00003620
Reid Spencera773bd52006-08-04 18:18:08 +00003621{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3622echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003623if test "${ac_cv_path_GREP+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
Reid Spencera773bd52006-08-04 18:18:08 +00003626 # Extract the first word of "grep ggrep" to use in msg output
3627if test -z "$GREP"; then
3628set dummy grep ggrep; ac_prog_name=$2
3629if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
Reid Spencera773bd52006-08-04 18:18:08 +00003632 ac_path_GREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003636do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003639 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003640 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645case `"$ac_path_GREP" --version 2>&1` in
3646*GNU*)
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3648*)
3649 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003664 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac
3670
3671
3672 $ac_path_GREP_found && break 3
3673 done
3674done
3675
3676done
3677IFS=$as_save_IFS
3678
3679
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003680fi
Reid Spencera773bd52006-08-04 18:18:08 +00003681
3682GREP="$ac_cv_path_GREP"
3683if test -z "$GREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3687fi
3688
3689else
3690 ac_cv_path_GREP=$GREP
3691fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003692
John Criswell7a73b802003-06-30 21:59:07 +00003693
Reid Spencera773bd52006-08-04 18:18:08 +00003694fi
3695{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3696echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3697 GREP="$ac_cv_path_GREP"
3698
3699
3700{ echo "$as_me:$LINENO: checking for egrep" >&5
3701echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3702if test "${ac_cv_path_EGREP+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3706 then ac_cv_path_EGREP="$GREP -E"
3707 else
3708 # Extract the first word of "egrep" to use in msg output
3709if test -z "$EGREP"; then
3710set dummy egrep; ac_prog_name=$2
3711if test "${ac_cv_path_EGREP+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714 ac_path_EGREP_found=false
3715# Loop through the user's path and test for each of PROGNAME-LIST
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3718do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_prog in egrep; do
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3724 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3725 # Check for GNU ac_path_EGREP and select it if it is found.
3726 # Check for GNU $ac_path_EGREP
3727case `"$ac_path_EGREP" --version 2>&1` in
3728*GNU*)
3729 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3730*)
3731 ac_count=0
3732 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3733 while :
3734 do
3735 cat "conftest.in" "conftest.in" >"conftest.tmp"
3736 mv "conftest.tmp" "conftest.in"
3737 cp "conftest.in" "conftest.nl"
3738 echo 'EGREP' >> "conftest.nl"
3739 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3740 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3741 ac_count=`expr $ac_count + 1`
3742 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3743 # Best one so far, save it but keep looking for a better one
3744 ac_cv_path_EGREP="$ac_path_EGREP"
3745 ac_path_EGREP_max=$ac_count
3746 fi
3747 # 10*(2^10) chars as input seems more than enough
3748 test $ac_count -gt 10 && break
3749 done
3750 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3751esac
3752
3753
3754 $ac_path_EGREP_found && break 3
3755 done
3756done
3757
3758done
3759IFS=$as_save_IFS
3760
3761
3762fi
3763
3764EGREP="$ac_cv_path_EGREP"
3765if test -z "$EGREP"; then
3766 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3767echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3768 { (exit 1); exit 1; }; }
3769fi
3770
3771else
3772 ac_cv_path_EGREP=$EGREP
3773fi
3774
3775
3776 fi
3777fi
3778{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3779echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3780 EGREP="$ac_cv_path_EGREP"
3781
3782
3783{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3784echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003785if test "${ac_cv_header_stdc+set}" = set; then
3786 echo $ECHO_N "(cached) $ECHO_C" >&6
3787else
3788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003789/* confdefs.h. */
3790_ACEOF
3791cat confdefs.h >>conftest.$ac_ext
3792cat >>conftest.$ac_ext <<_ACEOF
3793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003794#include <stdlib.h>
3795#include <stdarg.h>
3796#include <string.h>
3797#include <float.h>
3798
John Criswell0c38eaf2003-09-10 15:17:25 +00003799int
3800main ()
3801{
3802
3803 ;
3804 return 0;
3805}
John Criswell7a73b802003-06-30 21:59:07 +00003806_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003807rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003808if { (ac_try="$ac_compile"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
3813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003820 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3822 { (case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825esac
3826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003828 ac_status=$?
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; } &&
3831 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003832 { (case "(($ac_try" in
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3835esac
3836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003838 ac_status=$?
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003841 ac_cv_header_stdc=yes
3842else
3843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003844sed 's/^/| /' conftest.$ac_ext >&5
3845
Reid Spencera773bd52006-08-04 18:18:08 +00003846 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003847fi
Reid Spencera773bd52006-08-04 18:18:08 +00003848
3849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003850
3851if test $ac_cv_header_stdc = yes; then
3852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3853 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003859#include <string.h>
3860
3861_ACEOF
3862if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003863 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003864 :
3865else
3866 ac_cv_header_stdc=no
3867fi
3868rm -f conftest*
3869
3870fi
3871
3872if test $ac_cv_header_stdc = yes; then
3873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3874 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003875/* confdefs.h. */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003880#include <stdlib.h>
3881
3882_ACEOF
3883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003884 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003885 :
3886else
3887 ac_cv_header_stdc=no
3888fi
3889rm -f conftest*
3890
3891fi
3892
3893if test $ac_cv_header_stdc = yes; then
3894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3895 if test "$cross_compiling" = yes; then
3896 :
3897else
3898 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003899/* confdefs.h. */
3900_ACEOF
3901cat confdefs.h >>conftest.$ac_ext
3902cat >>conftest.$ac_ext <<_ACEOF
3903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003904#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003905#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003906#if ((' ' & 0x0FF) == 0x020)
3907# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3908# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3909#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003910# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003911 (('a' <= (c) && (c) <= 'i') \
3912 || ('j' <= (c) && (c) <= 'r') \
3913 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003914# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3915#endif
3916
3917#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3918int
3919main ()
3920{
3921 int i;
3922 for (i = 0; i < 256; i++)
3923 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003924 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003925 return 2;
3926 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003927}
3928_ACEOF
3929rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003930if { (ac_try="$ac_link"
3931case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934esac
3935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3936 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003937 ac_status=$?
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003940 { (case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943esac
3944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003946 ac_status=$?
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); }; }; then
3949 :
3950else
3951 echo "$as_me: program exited with status $ac_status" >&5
3952echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003953sed 's/^/| /' conftest.$ac_ext >&5
3954
John Criswell7a73b802003-06-30 21:59:07 +00003955( exit $ac_status )
3956ac_cv_header_stdc=no
3957fi
Reid Spencera773bd52006-08-04 18:18:08 +00003958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3959fi
3960
3961
John Criswell7a73b802003-06-30 21:59:07 +00003962fi
3963fi
Reid Spencera773bd52006-08-04 18:18:08 +00003964{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3965echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003966if test $ac_cv_header_stdc = yes; then
3967
3968cat >>confdefs.h <<\_ACEOF
3969#define STDC_HEADERS 1
3970_ACEOF
3971
3972fi
3973
Reid Spencera773bd52006-08-04 18:18:08 +00003974# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3985 inttypes.h stdint.h unistd.h
3986do
3987as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3988{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3991 echo $ECHO_N "(cached) $ECHO_C" >&6
3992else
3993 cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h. */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h. */
3999$ac_includes_default
4000
4001#include <$ac_header>
4002_ACEOF
4003rm -f conftest.$ac_objext
4004if { (ac_try="$ac_compile"
4005case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008esac
4009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } &&
4017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4018 { (case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4021esac
4022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_try") 2>&5
4024 ac_status=$?
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try='test -s conftest.$ac_objext'
4028 { (case "(($ac_try" in
4029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4030 *) ac_try_echo=$ac_try;;
4031esac
4032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4033 (eval "$ac_try") 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4037 eval "$as_ac_Header=yes"
4038else
4039 echo "$as_me: failed program was:" >&5
4040sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 eval "$as_ac_Header=no"
4043fi
4044
4045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046fi
4047ac_res=`eval echo '${'$as_ac_Header'}'`
4048 { echo "$as_me:$LINENO: result: $ac_res" >&5
4049echo "${ECHO_T}$ac_res" >&6; }
4050if test `eval echo '${'$as_ac_Header'}'` = yes; then
4051 cat >>confdefs.h <<_ACEOF
4052#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4053_ACEOF
4054
4055fi
4056
4057done
4058
4059
4060{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4061echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4062if test "${ac_cv_c_bigendian+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065 # See if sys/param.h defines the BYTE_ORDER macro.
4066cat >conftest.$ac_ext <<_ACEOF
4067/* confdefs.h. */
4068_ACEOF
4069cat confdefs.h >>conftest.$ac_ext
4070cat >>conftest.$ac_ext <<_ACEOF
4071/* end confdefs.h. */
4072#include <sys/types.h>
4073#include <sys/param.h>
4074
4075int
4076main ()
4077{
4078#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4079 bogus endian macros
4080#endif
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext
4087if { (ac_try="$ac_compile"
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } &&
4100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4104esac
4105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4107 ac_status=$?
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (case "(($ac_try" in
4112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4113 *) ac_try_echo=$ac_try;;
4114esac
4115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4116 (eval "$ac_try") 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
4120 # It does; now see whether it defined to BIG_ENDIAN or not.
4121cat >conftest.$ac_ext <<_ACEOF
4122/* confdefs.h. */
4123_ACEOF
4124cat confdefs.h >>conftest.$ac_ext
4125cat >>conftest.$ac_ext <<_ACEOF
4126/* end confdefs.h. */
4127#include <sys/types.h>
4128#include <sys/param.h>
4129
4130int
4131main ()
4132{
4133#if BYTE_ORDER != BIG_ENDIAN
4134 not big endian
4135#endif
4136
4137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext
4142if { (ac_try="$ac_compile"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_compile") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } &&
4155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest.$ac_objext'
4166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
4172 ac_status=$?
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 ac_cv_c_bigendian=yes
4176else
4177 echo "$as_me: failed program was:" >&5
4178sed 's/^/| /' conftest.$ac_ext >&5
4179
4180 ac_cv_c_bigendian=no
4181fi
4182
4183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184else
4185 echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188 # It does not; compile a test program.
4189if test "$cross_compiling" = yes; then
4190 # try to guess the endianness by grepping values into an object file
4191 ac_cv_c_bigendian=unknown
4192 cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h. */
4198short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4199short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4200void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4201short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4202short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4203void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4204int
4205main ()
4206{
4207 _ascii (); _ebcdic ();
4208 ;
4209 return 0;
4210}
4211_ACEOF
4212rm -f conftest.$ac_objext
4213if { (ac_try="$ac_compile"
4214case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4230esac
4231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4233 ac_status=$?
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; } &&
4236 { ac_try='test -s conftest.$ac_objext'
4237 { (case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240esac
4241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_try") 2>&5
4243 ac_status=$?
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); }; }; then
4246 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4247 ac_cv_c_bigendian=yes
4248fi
4249if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4250 if test "$ac_cv_c_bigendian" = unknown; then
4251 ac_cv_c_bigendian=no
4252 else
4253 # finding both strings is unlikely to happen, but who knows?
4254 ac_cv_c_bigendian=unknown
4255 fi
4256fi
4257else
4258 echo "$as_me: failed program was:" >&5
4259sed 's/^/| /' conftest.$ac_ext >&5
4260
4261
4262fi
4263
4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4265else
4266 cat >conftest.$ac_ext <<_ACEOF
4267/* confdefs.h. */
4268_ACEOF
4269cat confdefs.h >>conftest.$ac_ext
4270cat >>conftest.$ac_ext <<_ACEOF
4271/* end confdefs.h. */
4272$ac_includes_default
4273int
4274main ()
4275{
4276
4277 /* Are we little or big endian? From Harbison&Steele. */
4278 union
4279 {
4280 long int l;
4281 char c[sizeof (long int)];
4282 } u;
4283 u.l = 1;
4284 return u.c[sizeof (long int) - 1] == 1;
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest$ac_exeext
4291if { (ac_try="$ac_link"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4297 (eval "$ac_link") 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4301 { (case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304esac
4305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_try") 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; }; then
4310 ac_cv_c_bigendian=no
4311else
4312 echo "$as_me: program exited with status $ac_status" >&5
4313echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316( exit $ac_status )
4317ac_cv_c_bigendian=yes
4318fi
4319rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4320fi
4321
4322
4323fi
4324
4325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326fi
4327{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4328echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4329case $ac_cv_c_bigendian in
4330 yes)
4331 ENDIAN=big
4332 ;;
4333 no)
4334 ENDIAN=little
4335 ;;
4336 *)
4337 { { echo "$as_me:$LINENO: error: unknown endianness
4338presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4339echo "$as_me: error: unknown endianness
4340presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4341 { (exit 1); exit 1; }; } ;;
4342esac
4343
4344
4345if test "$cross_compiling" = yes; then
4346 LLVM_CROSS_COMPILING=1
4347
4348
4349{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4350echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4351if test "${ac_cv_build_exeext+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4353else
4354 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4355 ac_cv_build_exeext=.exe
4356else
4357 ac_build_prefix=${build_alias}-
4358
4359 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4360set dummy ${ac_build_prefix}gcc; ac_word=$2
4361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 if test -n "$BUILD_CC"; then
4367 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 break 2
4379 fi
4380done
4381done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386BUILD_CC=$ac_cv_prog_BUILD_CC
4387if test -n "$BUILD_CC"; then
4388 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4389echo "${ECHO_T}$BUILD_CC" >&6; }
4390else
4391 { echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6; }
4393fi
4394
4395
4396 if test -z "$BUILD_CC"; then
4397 # Extract the first word of "gcc", so it can be a program name with args.
4398set dummy gcc; ac_word=$2
4399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403else
4404 if test -n "$BUILD_CC"; then
4405 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4406else
4407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH
4409do
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_BUILD_CC="gcc"
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4417 fi
4418done
4419done
4420IFS=$as_save_IFS
4421
4422fi
4423fi
4424BUILD_CC=$ac_cv_prog_BUILD_CC
4425if test -n "$BUILD_CC"; then
4426 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4427echo "${ECHO_T}$BUILD_CC" >&6; }
4428else
4429 { echo "$as_me:$LINENO: result: no" >&5
4430echo "${ECHO_T}no" >&6; }
4431fi
4432
4433
4434 if test -z "$BUILD_CC"; then
4435 # Extract the first word of "cc", so it can be a program name with args.
4436set dummy cc; ac_word=$2
4437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442 if test -n "$BUILD_CC"; then
4443 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4444else
4445 ac_prog_rejected=no
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4454 ac_prog_rejected=yes
4455 continue
4456 fi
4457 ac_cv_prog_BUILD_CC="cc"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463IFS=$as_save_IFS
4464
4465if test $ac_prog_rejected = yes; then
4466 # We found a bogon in the path, so make sure we never use it.
4467 set dummy $ac_cv_prog_BUILD_CC
4468 shift
4469 if test $# != 0; then
4470 # We chose a different compiler from the bogus one.
4471 # However, it has the same basename, so the bogon will be chosen
4472 # first if we set BUILD_CC to just the basename; use the full file name.
4473 shift
4474 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4475 fi
4476fi
4477fi
4478fi
4479BUILD_CC=$ac_cv_prog_BUILD_CC
4480if test -n "$BUILD_CC"; then
4481 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4482echo "${ECHO_T}$BUILD_CC" >&6; }
4483else
4484 { echo "$as_me:$LINENO: result: no" >&5
4485echo "${ECHO_T}no" >&6; }
4486fi
4487
4488
4489 fi
4490 fi
4491 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4492echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4493 { (exit 1); exit 1; }; }
4494 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4495 rm -f conftest*
4496 echo 'int main () { return 0; }' > conftest.$ac_ext
4497 ac_cv_build_exeext=
4498 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4499 (eval $ac_build_link) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; then
4503 for file in conftest.*; do
4504 case $file in
4505 *.c | *.o | *.obj) ;;
4506 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4507 esac
4508 done
4509 else
4510 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4511echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4512 { (exit 1); exit 1; }; }
4513 fi
4514 rm -f conftest*
4515 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4516fi
4517fi
4518
4519BUILD_EXEEXT=""
4520test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4521{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4522echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4523ac_build_exeext=$BUILD_EXEEXT
4524
4525else
4526 LLVM_CROSS_COMPILING=0
4527
4528fi
4529
4530if test -d "CVS" -o -d "${srcdir}/CVS"; then
4531 cvsbuild="yes"
4532 optimize="no"
4533 CVSBUILD=CVSBUILD=1
4534
4535else
4536 cvsbuild="no"
4537 optimize="yes"
4538fi
4539
4540
4541# Check whether --enable-optimized was given.
4542if test "${enable_optimized+set}" = set; then
4543 enableval=$enable_optimized;
4544else
4545 enableval=$optimize
4546fi
4547
4548if test ${enableval} = "no" ; then
4549 ENABLE_OPTIMIZED=
4550
4551else
4552 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4553
4554fi
4555
4556# Check whether --enable-assertions was given.
4557if test "${enable_assertions+set}" = set; then
4558 enableval=$enable_assertions;
4559else
4560 enableval="yes"
4561fi
4562
4563if test ${enableval} = "yes" ; then
4564 DISABLE_ASSERTIONS=
4565
4566else
4567 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4568
4569fi
4570
Reid Spencer8b2e1412006-11-17 03:32:33 +00004571# Check whether --enable-debug-runtime was given.
4572if test "${enable_debug_runtime+set}" = set; then
4573 enableval=$enable_debug_runtime;
4574else
4575 enableval=no
4576fi
4577
4578if test ${enableval} = "no" ; then
4579 DEBUG_RUNTIME=
4580
4581else
4582 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4583
4584fi
4585
Reid Spencera773bd52006-08-04 18:18:08 +00004586# Check whether --enable-jit was given.
4587if test "${enable_jit+set}" = set; then
4588 enableval=$enable_jit;
4589else
4590 enableval=default
4591fi
4592
4593if test ${enableval} = "no"
4594then
4595 JIT=
4596
4597else
4598 case "$llvm_cv_target_arch" in
4599 x86) TARGET_HAS_JIT=1
4600 ;;
4601 Sparc) TARGET_HAS_JIT=1
4602 ;;
4603 PowerPC) TARGET_HAS_JIT=1
4604 ;;
4605 x86_64) TARGET_HAS_JIT=0
4606 ;;
4607 Alpha) TARGET_HAS_JIT=1
4608 ;;
4609 IA64) TARGET_HAS_JIT=0
4610 ;;
4611 *) TARGET_HAS_JIT=0
4612 ;;
4613 esac
4614fi
4615
4616# Check whether --enable-doxygen was given.
4617if test "${enable_doxygen+set}" = set; then
4618 enableval=$enable_doxygen;
4619else
4620 enableval=default
4621fi
4622
4623case "$enableval" in
4624 yes) ENABLE_DOXYGEN=1
4625 ;;
4626 no) ENABLE_DOXYGEN=0
4627 ;;
4628 default) ENABLE_DOXYGEN=0
4629 ;;
4630 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4631echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4632 { (exit 1); exit 1; }; } ;;
4633esac
4634
4635# Check whether --enable-threads was given.
4636if test "${enable_threads+set}" = set; then
4637 enableval=$enable_threads;
4638else
Reid Spencer65c5d752006-11-05 17:08:18 +00004639 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004640fi
4641
4642case "$enableval" in
4643 yes) ENABLE_THREADS=1
4644 ;;
4645 no) ENABLE_THREADS=0
4646 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004647 default) ENABLE_THREADS=1
4648 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004649 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4650echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4651 { (exit 1); exit 1; }; } ;;
4652esac
4653
4654cat >>confdefs.h <<_ACEOF
4655#define ENABLE_THREADS $ENABLE_THREADS
4656_ACEOF
4657
4658
Reid Spencer89b0d992006-12-16 22:07:52 +00004659# Check whether --enable-pic was given.
4660if test "${enable_pic+set}" = set; then
4661 enableval=$enable_pic;
4662else
4663 enableval=default
4664fi
4665
4666case "$enableval" in
4667 yes) ENABLE_PIC=1
4668 ;;
4669 no) ENABLE_PIC=0
4670 ;;
4671 default) ENABLE_PIC=0
4672 ;;
4673 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4674echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4676esac
4677
4678cat >>confdefs.h <<_ACEOF
4679#define ENABLE_PIC $ENABLE_PIC
4680_ACEOF
4681
4682
Reid Spencera773bd52006-08-04 18:18:08 +00004683TARGETS_TO_BUILD=""
4684# Check whether --enable-targets was given.
4685if test "${enable_targets+set}" = set; then
4686 enableval=$enable_targets;
4687else
4688 enableval=all
4689fi
4690
4691case "$enableval" in
4692 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4693 host-only)
4694 case "$llvm_cv_target_arch" in
4695 x86) TARGETS_TO_BUILD="X86" ;;
4696 x86_64) TARGETS_TO_BUILD="X86" ;;
4697 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4698 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4699 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4700 IA64) TARGETS_TO_BUILD="IA64" ;;
4701 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4702echo "$as_me: error: Can not set target to build" >&2;}
4703 { (exit 1); exit 1; }; } ;;
4704 esac
4705 ;;
4706 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4707 case "$a_target" in
4708 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4709 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4710 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4711 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4712 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4713 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4714 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4715echo "$as_me: error: Unrecognized target $a_target" >&2;}
4716 { (exit 1); exit 1; }; } ;;
4717 esac
4718 done
4719 ;;
4720esac
4721TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4722TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4723
4724
Reid Spencer65c5d752006-11-05 17:08:18 +00004725# Check whether --enable-cbe-printf-a was given.
4726if test "${enable_cbe_printf_a+set}" = set; then
4727 enableval=$enable_cbe_printf_a;
4728else
4729 enableval=default
4730fi
4731
4732case "$enableval" in
4733 yes) ENABLE_CBE_PRINTF_A=1
4734 ;;
4735 no) ENABLE_CBE_PRINTF_A=0
4736 ;;
4737 default) ENABLE_CBE_PRINTF_A=1
4738 ;;
4739 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4740echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4741 { (exit 1); exit 1; }; } ;;
4742esac
4743
4744cat >>confdefs.h <<_ACEOF
4745#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4746_ACEOF
4747
4748
Reid Spencera773bd52006-08-04 18:18:08 +00004749
4750# Check whether --with-llvmgccdir was given.
4751if test "${with_llvmgccdir+set}" = set; then
4752 withval=$with_llvmgccdir;
4753else
4754 withval=default
4755fi
4756
4757case "$withval" in
4758 default) WITH_LLVMGCCDIR=default ;;
4759 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4760 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4761echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4762 { (exit 1); exit 1; }; } ;;
4763esac
4764
4765
4766# Check whether --with-extra-options was given.
4767if test "${with_extra_options+set}" = set; then
4768 withval=$with_extra_options;
4769else
4770 withval=default
4771fi
4772
4773case "$withval" in
4774 default) EXTRA_OPTIONS= ;;
4775 *) EXTRA_OPTIONS=$withval ;;
4776esac
4777EXTRA_OPTIONS=$EXTRA_OPTIONS
4778
4779
4780
4781ac_ext=c
4782ac_cpp='$CPP $CPPFLAGS'
4783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785ac_compiler_gnu=$ac_cv_c_compiler_gnu
4786{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4787echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4788# On Suns, sometimes $CPP names a directory.
4789if test -n "$CPP" && test -d "$CPP"; then
4790 CPP=
4791fi
4792if test -z "$CPP"; then
4793 if test "${ac_cv_prog_CPP+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795else
4796 # Double quotes because CPP needs to be expanded
4797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4798 do
4799 ac_preproc_ok=false
4800for ac_c_preproc_warn_flag in '' yes
4801do
4802 # Use a header file that comes with gcc, so configuring glibc
4803 # with a fresh cross-compiler works.
4804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4805 # <limits.h> exists even on freestanding compilers.
4806 # On the NeXT, cc -E runs the code through the compiler's parser,
4807 # not just through cpp. "Syntax error" is here to catch this case.
4808 cat >conftest.$ac_ext <<_ACEOF
4809/* confdefs.h. */
4810_ACEOF
4811cat confdefs.h >>conftest.$ac_ext
4812cat >>conftest.$ac_ext <<_ACEOF
4813/* end confdefs.h. */
4814#ifdef __STDC__
4815# include <limits.h>
4816#else
4817# include <assert.h>
4818#endif
4819 Syntax error
4820_ACEOF
4821if { (ac_try="$ac_cpp conftest.$ac_ext"
4822case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825esac
4826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4828 ac_status=$?
4829 grep -v '^ *+' conftest.er1 >conftest.err
4830 rm -f conftest.er1
4831 cat conftest.err >&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); } >/dev/null; then
4834 if test -s conftest.err; then
4835 ac_cpp_err=$ac_c_preproc_warn_flag
4836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4837 else
4838 ac_cpp_err=
4839 fi
4840else
4841 ac_cpp_err=yes
4842fi
4843if test -z "$ac_cpp_err"; then
4844 :
4845else
4846 echo "$as_me: failed program was:" >&5
4847sed 's/^/| /' conftest.$ac_ext >&5
4848
4849 # Broken: fails on valid input.
4850continue
4851fi
4852
4853rm -f conftest.err conftest.$ac_ext
4854
4855 # OK, works on sane cases. Now check whether nonexistent headers
4856 # can be detected and how.
4857 cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h. */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h. */
4863#include <ac_nonexistent.h>
4864_ACEOF
4865if { (ac_try="$ac_cpp conftest.$ac_ext"
4866case "(($ac_try" in
4867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4868 *) ac_try_echo=$ac_try;;
4869esac
4870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } >/dev/null; then
4878 if test -s conftest.err; then
4879 ac_cpp_err=$ac_c_preproc_warn_flag
4880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881 else
4882 ac_cpp_err=
4883 fi
4884else
4885 ac_cpp_err=yes
4886fi
4887if test -z "$ac_cpp_err"; then
4888 # Broken: success on invalid input.
4889continue
4890else
4891 echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
4894 # Passes both tests.
4895ac_preproc_ok=:
4896break
4897fi
4898
4899rm -f conftest.err conftest.$ac_ext
4900
4901done
4902# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903rm -f conftest.err conftest.$ac_ext
4904if $ac_preproc_ok; then
4905 break
4906fi
4907
4908 done
4909 ac_cv_prog_CPP=$CPP
4910
4911fi
4912 CPP=$ac_cv_prog_CPP
4913else
4914 ac_cv_prog_CPP=$CPP
4915fi
4916{ echo "$as_me:$LINENO: result: $CPP" >&5
4917echo "${ECHO_T}$CPP" >&6; }
4918ac_preproc_ok=false
4919for ac_c_preproc_warn_flag in '' yes
4920do
4921 # Use a header file that comes with gcc, so configuring glibc
4922 # with a fresh cross-compiler works.
4923 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4924 # <limits.h> exists even on freestanding compilers.
4925 # On the NeXT, cc -E runs the code through the compiler's parser,
4926 # not just through cpp. "Syntax error" is here to catch this case.
4927 cat >conftest.$ac_ext <<_ACEOF
4928/* confdefs.h. */
4929_ACEOF
4930cat confdefs.h >>conftest.$ac_ext
4931cat >>conftest.$ac_ext <<_ACEOF
4932/* end confdefs.h. */
4933#ifdef __STDC__
4934# include <limits.h>
4935#else
4936# include <assert.h>
4937#endif
4938 Syntax error
4939_ACEOF
4940if { (ac_try="$ac_cpp conftest.$ac_ext"
4941case "(($ac_try" in
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4944esac
4945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_c_preproc_warn_flag
4955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4956 else
4957 ac_cpp_err=
4958 fi
4959else
4960 ac_cpp_err=yes
4961fi
4962if test -z "$ac_cpp_err"; then
4963 :
4964else
4965 echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 # Broken: fails on valid input.
4969continue
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982#include <ac_nonexistent.h>
4983_ACEOF
4984if { (ac_try="$ac_cpp conftest.$ac_ext"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_c_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5000 else
5001 ac_cpp_err=
5002 fi
5003else
5004 ac_cpp_err=yes
5005fi
5006if test -z "$ac_cpp_err"; then
5007 # Broken: success on invalid input.
5008continue
5009else
5010 echo "$as_me: failed program was:" >&5
5011sed 's/^/| /' conftest.$ac_ext >&5
5012
5013 # Passes both tests.
5014ac_preproc_ok=:
5015break
5016fi
5017
5018rm -f conftest.err conftest.$ac_ext
5019
5020done
5021# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022rm -f conftest.err conftest.$ac_ext
5023if $ac_preproc_ok; then
5024 :
5025else
5026 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5027See \`config.log' for more details." >&5
5028echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5029See \`config.log' for more details." >&2;}
5030 { (exit 1); exit 1; }; }
5031fi
5032
5033ac_ext=c
5034ac_cpp='$CPP $CPPFLAGS'
5035ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037ac_compiler_gnu=$ac_cv_c_compiler_gnu
5038
5039ac_ext=c
5040ac_cpp='$CPP $CPPFLAGS'
5041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044if test -n "$ac_tool_prefix"; then
5045 for ac_prog in gcc
5046 do
5047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5048set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051if test "${ac_cv_prog_CC+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 if test -n "$CC"; then
5055 ac_cv_prog_CC="$CC" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060 IFS=$as_save_IFS
5061 test -z "$as_dir" && as_dir=.
5062 for ac_exec_ext in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 break 2
5067 fi
5068done
5069done
5070IFS=$as_save_IFS
5071
5072fi
5073fi
5074CC=$ac_cv_prog_CC
5075if test -n "$CC"; then
5076 { echo "$as_me:$LINENO: result: $CC" >&5
5077echo "${ECHO_T}$CC" >&6; }
5078else
5079 { echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6; }
5081fi
5082
5083
5084 test -n "$CC" && break
5085 done
5086fi
5087if test -z "$CC"; then
5088 ac_ct_CC=$CC
5089 for ac_prog in gcc
5090do
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092set dummy $ac_prog; ac_word=$2
5093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5095if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097else
5098 if test -n "$ac_ct_CC"; then
5099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ac_ct_CC="$ac_prog"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5111 fi
5112done
5113done
5114IFS=$as_save_IFS
5115
5116fi
5117fi
5118ac_ct_CC=$ac_cv_prog_ac_ct_CC
5119if test -n "$ac_ct_CC"; then
5120 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5121echo "${ECHO_T}$ac_ct_CC" >&6; }
5122else
5123 { echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6; }
5125fi
5126
5127
5128 test -n "$ac_ct_CC" && break
5129done
5130
5131 if test "x$ac_ct_CC" = x; then
5132 CC=""
5133 else
5134 case $cross_compiling:$ac_tool_warned in
5135yes:)
5136{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5137whose name does not start with the host triplet. If you think this
5138configuration is useful to you, please write to autoconf@gnu.org." >&5
5139echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5140whose name does not start with the host triplet. If you think this
5141configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5142ac_tool_warned=yes ;;
5143esac
5144 CC=$ac_ct_CC
5145 fi
5146fi
5147
5148
5149test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5150See \`config.log' for more details." >&5
5151echo "$as_me: error: no acceptable C compiler found in \$PATH
5152See \`config.log' for more details." >&2;}
5153 { (exit 1); exit 1; }; }
5154
5155# Provide some information about the compiler.
5156echo "$as_me:$LINENO: checking for C compiler version" >&5
5157ac_compiler=`set X $ac_compile; echo $2`
5158{ (ac_try="$ac_compiler --version >&5"
5159case "(($ac_try" in
5160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5161 *) ac_try_echo=$ac_try;;
5162esac
5163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compiler --version >&5") 2>&5
5165 ac_status=$?
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }
5168{ (ac_try="$ac_compiler -v >&5"
5169case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172esac
5173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5174 (eval "$ac_compiler -v >&5") 2>&5
5175 ac_status=$?
5176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5177 (exit $ac_status); }
5178{ (ac_try="$ac_compiler -V >&5"
5179case "(($ac_try" in
5180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181 *) ac_try_echo=$ac_try;;
5182esac
5183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compiler -V >&5") 2>&5
5185 ac_status=$?
5186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187 (exit $ac_status); }
5188
5189{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5190echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5191if test "${ac_cv_c_compiler_gnu+set}" = set; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194 cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h. */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h. */
5200
5201int
5202main ()
5203{
5204#ifndef __GNUC__
5205 choke me
5206#endif
5207
5208 ;
5209 return 0;
5210}
5211_ACEOF
5212rm -f conftest.$ac_objext
5213if { (ac_try="$ac_compile"
5214case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217esac
5218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compile") 2>conftest.er1
5220 ac_status=$?
5221 grep -v '^ *+' conftest.er1 >conftest.err
5222 rm -f conftest.er1
5223 cat conftest.err >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); } &&
5226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5227 { (case "(($ac_try" in
5228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5229 *) ac_try_echo=$ac_try;;
5230esac
5231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5232 (eval "$ac_try") 2>&5
5233 ac_status=$?
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; } &&
5236 { ac_try='test -s conftest.$ac_objext'
5237 { (case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240esac
5241eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_try") 2>&5
5243 ac_status=$?
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }; }; then
5246 ac_compiler_gnu=yes
5247else
5248 echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
5251 ac_compiler_gnu=no
5252fi
5253
5254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255ac_cv_c_compiler_gnu=$ac_compiler_gnu
5256
5257fi
5258{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5259echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5260GCC=`test $ac_compiler_gnu = yes && echo yes`
5261ac_test_CFLAGS=${CFLAGS+set}
5262ac_save_CFLAGS=$CFLAGS
5263{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5264echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5265if test "${ac_cv_prog_cc_g+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5267else
5268 ac_save_c_werror_flag=$ac_c_werror_flag
5269 ac_c_werror_flag=yes
5270 ac_cv_prog_cc_g=no
5271 CFLAGS="-g"
5272 cat >conftest.$ac_ext <<_ACEOF
5273/* confdefs.h. */
5274_ACEOF
5275cat confdefs.h >>conftest.$ac_ext
5276cat >>conftest.$ac_ext <<_ACEOF
5277/* end confdefs.h. */
5278
5279int
5280main ()
5281{
5282
5283 ;
5284 return 0;
5285}
5286_ACEOF
5287rm -f conftest.$ac_objext
5288if { (ac_try="$ac_compile"
5289case "(($ac_try" in
5290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5292esac
5293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5295 ac_status=$?
5296 grep -v '^ *+' conftest.er1 >conftest.err
5297 rm -f conftest.er1
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
5306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5307 (eval "$ac_try") 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest.$ac_objext'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315esac
5316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; }; then
5321 ac_cv_prog_cc_g=yes
5322else
5323 echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 CFLAGS=""
5327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333
5334int
5335main ()
5336{
5337
5338 ;
5339 return 0;
5340}
5341_ACEOF
5342rm -f conftest.$ac_objext
5343if { (ac_try="$ac_compile"
5344case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347esac
5348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } &&
5356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5357 { (case "(($ac_try" in
5358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5360esac
5361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_try") 2>&5
5363 ac_status=$?
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); }; } &&
5366 { ac_try='test -s conftest.$ac_objext'
5367 { (case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_try") 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 :
5377else
5378 echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 ac_c_werror_flag=$ac_save_c_werror_flag
5382 CFLAGS="-g"
5383 cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h. */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h. */
5389
5390int
5391main ()
5392{
5393
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext
5399if { (ac_try="$ac_compile"
5400case "(($ac_try" in
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5403esac
5404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5406 ac_status=$?
5407 grep -v '^ *+' conftest.er1 >conftest.err
5408 rm -f conftest.er1
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } &&
5412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5413 { (case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416esac
5417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5418 (eval "$ac_try") 2>&5
5419 ac_status=$?
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; } &&
5422 { ac_try='test -s conftest.$ac_objext'
5423 { (case "(($ac_try" in
5424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425 *) ac_try_echo=$ac_try;;
5426esac
5427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428 (eval "$ac_try") 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 ac_cv_prog_cc_g=yes
5433else
5434 echo "$as_me: failed program was:" >&5
5435sed 's/^/| /' conftest.$ac_ext >&5
5436
5437
5438fi
5439
5440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5441fi
5442
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444fi
5445
5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5447 ac_c_werror_flag=$ac_save_c_werror_flag
5448fi
5449{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5450echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5451if test "$ac_test_CFLAGS" = set; then
5452 CFLAGS=$ac_save_CFLAGS
5453elif test $ac_cv_prog_cc_g = yes; then
5454 if test "$GCC" = yes; then
5455 CFLAGS="-g -O2"
5456 else
5457 CFLAGS="-g"
5458 fi
5459else
5460 if test "$GCC" = yes; then
5461 CFLAGS="-O2"
5462 else
5463 CFLAGS=
5464 fi
5465fi
5466{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5467echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5468if test "${ac_cv_prog_cc_c89+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5470else
5471 ac_cv_prog_cc_c89=no
5472ac_save_CC=$CC
5473cat >conftest.$ac_ext <<_ACEOF
5474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
5479#include <stdarg.h>
5480#include <stdio.h>
5481#include <sys/types.h>
5482#include <sys/stat.h>
5483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5484struct buf { int x; };
5485FILE * (*rcsopen) (struct buf *, struct stat *, int);
5486static char *e (p, i)
5487 char **p;
5488 int i;
5489{
5490 return p[i];
5491}
5492static char *f (char * (*g) (char **, int), char **p, ...)
5493{
5494 char *s;
5495 va_list v;
5496 va_start (v,p);
5497 s = g (p, va_arg (v,int));
5498 va_end (v);
5499 return s;
5500}
5501
5502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5503 function prototypes and stuff, but not '\xHH' hex character constants.
5504 These don't provoke an error unfortunately, instead are silently treated
5505 as 'x'. The following induces an error, until -std is added to get
5506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5507 array size at least. It's necessary to write '\x00'==0 to get something
5508 that's true only with -std. */
5509int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5510
5511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5512 inside strings and character constants. */
5513#define FOO(x) 'x'
5514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5515
5516int test (int i, double x);
5517struct s1 {int (*f) (int a);};
5518struct s2 {int (*f) (double a);};
5519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5520int argc;
5521char **argv;
5522int
5523main ()
5524{
5525return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5526 ;
5527 return 0;
5528}
5529_ACEOF
5530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5532do
5533 CC="$ac_save_CC $ac_arg"
5534 rm -f conftest.$ac_objext
5535if { (ac_try="$ac_compile"
5536case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539esac
5540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_compile") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } &&
5548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5549 { (case "(($ac_try" in
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5552esac
5553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_try") 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; } &&
5558 { ac_try='test -s conftest.$ac_objext'
5559 { (case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_try") 2>&5
5565 ac_status=$?
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); }; }; then
5568 ac_cv_prog_cc_c89=$ac_arg
5569else
5570 echo "$as_me: failed program was:" >&5
5571sed 's/^/| /' conftest.$ac_ext >&5
5572
5573
5574fi
5575
5576rm -f core conftest.err conftest.$ac_objext
5577 test "x$ac_cv_prog_cc_c89" != "xno" && break
5578done
5579rm -f conftest.$ac_ext
5580CC=$ac_save_CC
5581
5582fi
5583# AC_CACHE_VAL
5584case "x$ac_cv_prog_cc_c89" in
5585 x)
5586 { echo "$as_me:$LINENO: result: none needed" >&5
5587echo "${ECHO_T}none needed" >&6; } ;;
5588 xno)
5589 { echo "$as_me:$LINENO: result: unsupported" >&5
5590echo "${ECHO_T}unsupported" >&6; } ;;
5591 *)
5592 CC="$CC $ac_cv_prog_cc_c89"
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5594echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5595esac
5596
5597
5598ac_ext=c
5599ac_cpp='$CPP $CPPFLAGS'
5600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603
5604ac_ext=cpp
5605ac_cpp='$CXXCPP $CPPFLAGS'
5606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609if test -z "$CXX"; then
5610 if test -n "$CCC"; then
5611 CXX=$CCC
5612 else
5613 if test -n "$ac_tool_prefix"; then
5614 for ac_prog in g++
5615 do
5616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5617set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5620if test "${ac_cv_prog_CXX+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623 if test -n "$CXX"; then
5624 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5625else
5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627for as_dir in $PATH
5628do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637done
5638done
5639IFS=$as_save_IFS
5640
5641fi
5642fi
5643CXX=$ac_cv_prog_CXX
5644if test -n "$CXX"; then
5645 { echo "$as_me:$LINENO: result: $CXX" >&5
5646echo "${ECHO_T}$CXX" >&6; }
5647else
5648 { echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6; }
5650fi
5651
5652
5653 test -n "$CXX" && break
5654 done
5655fi
5656if test -z "$CXX"; then
5657 ac_ct_CXX=$CXX
5658 for ac_prog in g++
5659do
5660 # Extract the first word of "$ac_prog", so it can be a program name with args.
5661set dummy $ac_prog; ac_word=$2
5662{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5664if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5665 echo $ECHO_N "(cached) $ECHO_C" >&6
5666else
5667 if test -n "$ac_ct_CXX"; then
5668 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5669else
5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671for as_dir in $PATH
5672do
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_prog_ac_ct_CXX="$ac_prog"
5678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5680 fi
5681done
5682done
5683IFS=$as_save_IFS
5684
5685fi
5686fi
5687ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5688if test -n "$ac_ct_CXX"; then
5689 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5690echo "${ECHO_T}$ac_ct_CXX" >&6; }
5691else
5692 { echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6; }
5694fi
5695
5696
5697 test -n "$ac_ct_CXX" && break
5698done
5699
5700 if test "x$ac_ct_CXX" = x; then
5701 CXX="g++"
5702 else
5703 case $cross_compiling:$ac_tool_warned in
5704yes:)
5705{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5706whose name does not start with the host triplet. If you think this
5707configuration is useful to you, please write to autoconf@gnu.org." >&5
5708echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5709whose name does not start with the host triplet. If you think this
5710configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5711ac_tool_warned=yes ;;
5712esac
5713 CXX=$ac_ct_CXX
5714 fi
5715fi
5716
5717 fi
5718fi
5719# Provide some information about the compiler.
5720echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5721ac_compiler=`set X $ac_compile; echo $2`
5722{ (ac_try="$ac_compiler --version >&5"
5723case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726esac
5727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compiler --version >&5") 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5732{ (ac_try="$ac_compiler -v >&5"
5733case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compiler -v >&5") 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }
5742{ (ac_try="$ac_compiler -V >&5"
5743case "(($ac_try" in
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5746esac
5747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5748 (eval "$ac_compiler -V >&5") 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }
5752
5753{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5754echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5755if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5757else
5758 cat >conftest.$ac_ext <<_ACEOF
5759/* confdefs.h. */
5760_ACEOF
5761cat confdefs.h >>conftest.$ac_ext
5762cat >>conftest.$ac_ext <<_ACEOF
5763/* end confdefs.h. */
5764
5765int
5766main ()
5767{
5768#ifndef __GNUC__
5769 choke me
5770#endif
5771
5772 ;
5773 return 0;
5774}
5775_ACEOF
5776rm -f conftest.$ac_objext
5777if { (ac_try="$ac_compile"
5778case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781esac
5782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5797 ac_status=$?
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; } &&
5800 { ac_try='test -s conftest.$ac_objext'
5801 { (case "(($ac_try" in
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5804esac
5805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_try") 2>&5
5807 ac_status=$?
5808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 (exit $ac_status); }; }; then
5810 ac_compiler_gnu=yes
5811else
5812 echo "$as_me: failed program was:" >&5
5813sed 's/^/| /' conftest.$ac_ext >&5
5814
5815 ac_compiler_gnu=no
5816fi
5817
5818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5820
5821fi
5822{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5823echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5824GXX=`test $ac_compiler_gnu = yes && echo yes`
5825ac_test_CXXFLAGS=${CXXFLAGS+set}
5826ac_save_CXXFLAGS=$CXXFLAGS
5827{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5828echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5829if test "${ac_cv_prog_cxx_g+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831else
5832 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5833 ac_cxx_werror_flag=yes
5834 ac_cv_prog_cxx_g=no
5835 CXXFLAGS="-g"
5836 cat >conftest.$ac_ext <<_ACEOF
5837/* confdefs.h. */
5838_ACEOF
5839cat confdefs.h >>conftest.$ac_ext
5840cat >>conftest.$ac_ext <<_ACEOF
5841/* end confdefs.h. */
5842
5843int
5844main ()
5845{
5846
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext
5852if { (ac_try="$ac_compile"
5853case "(($ac_try" in
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858 (eval "$ac_compile") 2>conftest.er1
5859 ac_status=$?
5860 grep -v '^ *+' conftest.er1 >conftest.err
5861 rm -f conftest.er1
5862 cat conftest.err >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); } &&
5865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5866 { (case "(($ac_try" in
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5869esac
5870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871 (eval "$ac_try") 2>&5
5872 ac_status=$?
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_try") 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_cv_prog_cxx_g=yes
5886else
5887 echo "$as_me: failed program was:" >&5
5888sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 CXXFLAGS=""
5891 cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897
5898int
5899main ()
5900{
5901
5902 ;
5903 return 0;
5904}
5905_ACEOF
5906rm -f conftest.$ac_objext
5907if { (ac_try="$ac_compile"
5908case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911esac
5912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_compile") 2>conftest.er1
5914 ac_status=$?
5915 grep -v '^ *+' conftest.er1 >conftest.err
5916 rm -f conftest.er1
5917 cat conftest.err >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); } &&
5920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5921 { (case "(($ac_try" in
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5924esac
5925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_try") 2>&5
5927 ac_status=$?
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }; } &&
5930 { ac_try='test -s conftest.$ac_objext'
5931 { (case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_try") 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; }; then
5940 :
5941else
5942 echo "$as_me: failed program was:" >&5
5943sed 's/^/| /' conftest.$ac_ext >&5
5944
5945 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5946 CXXFLAGS="-g"
5947 cat >conftest.$ac_ext <<_ACEOF
5948/* confdefs.h. */
5949_ACEOF
5950cat confdefs.h >>conftest.$ac_ext
5951cat >>conftest.$ac_ext <<_ACEOF
5952/* end confdefs.h. */
5953
5954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (ac_try="$ac_compile"
5964case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967esac
5968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } &&
5976 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5977 { (case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_try") 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest.$ac_objext'
5987 { (case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990esac
5991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_try") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; }; then
5996 ac_cv_prog_cxx_g=yes
5997else
5998 echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001
6002fi
6003
6004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6005fi
6006
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008fi
6009
6010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6012fi
6013{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6014echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6015if test "$ac_test_CXXFLAGS" = set; then
6016 CXXFLAGS=$ac_save_CXXFLAGS
6017elif test $ac_cv_prog_cxx_g = yes; then
6018 if test "$GXX" = yes; then
6019 CXXFLAGS="-g -O2"
6020 else
6021 CXXFLAGS="-g"
6022 fi
6023else
6024 if test "$GXX" = yes; then
6025 CXXFLAGS="-O2"
6026 else
6027 CXXFLAGS=
6028 fi
6029fi
6030ac_ext=c
6031ac_cpp='$CPP $CPPFLAGS'
6032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6034ac_compiler_gnu=$ac_cv_c_compiler_gnu
6035
6036{ echo "$as_me:$LINENO: checking " >&5
6037echo $ECHO_N "checking ... $ECHO_C" >&6; }
6038if test "${ac_cv_has_flex+set}" = set; then
6039 echo $ECHO_N "(cached) $ECHO_C" >&6
6040else
6041 for ac_prog in flex lex
6042do
6043 # Extract the first word of "$ac_prog", so it can be a program name with args.
6044set dummy $ac_prog; ac_word=$2
6045{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047if test "${ac_cv_prog_LEX+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050 if test -n "$LEX"; then
6051 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6052else
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056 IFS=$as_save_IFS
6057 test -z "$as_dir" && as_dir=.
6058 for ac_exec_ext in '' $ac_executable_extensions; do
6059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6060 ac_cv_prog_LEX="$ac_prog"
6061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 break 2
6063 fi
6064done
6065done
6066IFS=$as_save_IFS
6067
6068fi
6069fi
6070LEX=$ac_cv_prog_LEX
6071if test -n "$LEX"; then
6072 { echo "$as_me:$LINENO: result: $LEX" >&5
6073echo "${ECHO_T}$LEX" >&6; }
6074else
6075 { echo "$as_me:$LINENO: result: no" >&5
6076echo "${ECHO_T}no" >&6; }
6077fi
6078
6079
6080 test -n "$LEX" && break
6081done
6082test -n "$LEX" || LEX=":"
6083
6084if test -z "$LEXLIB"
6085then
6086 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6087echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6088if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 ac_check_lib_save_LIBS=$LIBS
6092LIBS="-lfl $LIBS"
6093cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099
6100/* Override any GCC internal prototype to avoid an error.
6101 Use char because int might match the return type of a GCC
6102 builtin and then its argument prototype would still apply. */
6103#ifdef __cplusplus
6104extern "C"
6105#endif
6106char yywrap ();
6107int
6108main ()
6109{
6110return yywrap ();
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext conftest$ac_exeext
6116if { (ac_try="$ac_link"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6122 (eval "$ac_link") 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6130 { (case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133esac
6134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_try") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; } &&
6139 { ac_try='test -s conftest$ac_exeext'
6140 { (case "(($ac_try" in
6141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6142 *) ac_try_echo=$ac_try;;
6143esac
6144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6145 (eval "$ac_try") 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
6149 ac_cv_lib_fl_yywrap=yes
6150else
6151 echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
6154 ac_cv_lib_fl_yywrap=no
6155fi
6156
6157rm -f core conftest.err conftest.$ac_objext \
6158 conftest$ac_exeext conftest.$ac_ext
6159LIBS=$ac_check_lib_save_LIBS
6160fi
6161{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6162echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6163if test $ac_cv_lib_fl_yywrap = yes; then
6164 LEXLIB="-lfl"
6165else
6166 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6167echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6168if test "${ac_cv_lib_l_yywrap+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6170else
6171 ac_check_lib_save_LIBS=$LIBS
6172LIBS="-ll $LIBS"
6173cat >conftest.$ac_ext <<_ACEOF
6174/* confdefs.h. */
6175_ACEOF
6176cat confdefs.h >>conftest.$ac_ext
6177cat >>conftest.$ac_ext <<_ACEOF
6178/* end confdefs.h. */
6179
6180/* Override any GCC internal prototype to avoid an error.
6181 Use char because int might match the return type of a GCC
6182 builtin and then its argument prototype would still apply. */
6183#ifdef __cplusplus
6184extern "C"
6185#endif
6186char yywrap ();
6187int
6188main ()
6189{
6190return yywrap ();
6191 ;
6192 return 0;
6193}
6194_ACEOF
6195rm -f conftest.$ac_objext conftest$ac_exeext
6196if { (ac_try="$ac_link"
6197case "(($ac_try" in
6198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199 *) ac_try_echo=$ac_try;;
6200esac
6201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202 (eval "$ac_link") 2>conftest.er1
6203 ac_status=$?
6204 grep -v '^ *+' conftest.er1 >conftest.err
6205 rm -f conftest.er1
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213esac
6214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; } &&
6219 { ac_try='test -s conftest$ac_exeext'
6220 { (case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223esac
6224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6225 (eval "$ac_try") 2>&5
6226 ac_status=$?
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); }; }; then
6229 ac_cv_lib_l_yywrap=yes
6230else
6231 echo "$as_me: failed program was:" >&5
6232sed 's/^/| /' conftest.$ac_ext >&5
6233
6234 ac_cv_lib_l_yywrap=no
6235fi
6236
6237rm -f core conftest.err conftest.$ac_objext \
6238 conftest$ac_exeext conftest.$ac_ext
6239LIBS=$ac_check_lib_save_LIBS
6240fi
6241{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6242echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6243if test $ac_cv_lib_l_yywrap = yes; then
6244 LEXLIB="-ll"
6245fi
6246
6247fi
6248
6249fi
6250
6251if test "x$LEX" != "x:"; then
6252 { echo "$as_me:$LINENO: checking lex output file root" >&5
6253echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6254if test "${ac_cv_prog_lex_root+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256else
6257 # The minimal lex program is just a single line: %%. But some broken lexes
6258# (Solaris, I think it was) want two %% lines, so accommodate them.
6259cat >conftest.l <<_ACEOF
6260%%
6261%%
6262_ACEOF
6263{ (ac_try="$LEX conftest.l"
6264case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267esac
6268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$LEX conftest.l") 2>&5
6270 ac_status=$?
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }
6273if test -f lex.yy.c; then
6274 ac_cv_prog_lex_root=lex.yy
6275elif test -f lexyy.c; then
6276 ac_cv_prog_lex_root=lexyy
6277else
6278 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6279echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6280 { (exit 1); exit 1; }; }
6281fi
6282fi
6283{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6284echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6285rm -f conftest.l
6286LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6287
6288{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6289echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6290if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293 # POSIX says lex can declare yytext either as a pointer or an array; the
6294# default is implementation-dependent. Figure out which it is, since
6295# not all implementations provide the %pointer and %array declarations.
6296ac_cv_prog_lex_yytext_pointer=no
6297echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6298ac_save_LIBS=$LIBS
6299LIBS="$LIBS $LEXLIB"
6300cat >conftest.$ac_ext <<_ACEOF
6301`cat $LEX_OUTPUT_ROOT.c`
6302_ACEOF
6303rm -f conftest.$ac_objext conftest$ac_exeext
6304if { (ac_try="$ac_link"
6305case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_link") 2>conftest.er1
6311 ac_status=$?
6312 grep -v '^ *+' conftest.er1 >conftest.err
6313 rm -f conftest.er1
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } &&
6317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6318 { (case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321esac
6322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_try") 2>&5
6324 ac_status=$?
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }; } &&
6327 { ac_try='test -s conftest$ac_exeext'
6328 { (case "(($ac_try" in
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6331esac
6332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_try") 2>&5
6334 ac_status=$?
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }; }; then
6337 ac_cv_prog_lex_yytext_pointer=yes
6338else
6339 echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342
6343fi
6344
6345rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347LIBS=$ac_save_LIBS
6348rm -f "${LEX_OUTPUT_ROOT}.c"
6349
6350fi
6351{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6352echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6353if test $ac_cv_prog_lex_yytext_pointer = yes; then
6354
6355cat >>confdefs.h <<\_ACEOF
6356#define YYTEXT_POINTER 1
6357_ACEOF
6358
6359fi
6360
6361fi
6362
6363fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6365echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6366if test "$LEX" != "flex"; then
6367 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6368echo "$as_me: error: flex not found but required" >&2;}
6369 { (exit 1); exit 1; }; }
6370else
6371 FLEX=flex
6372
6373fi
6374
6375{ echo "$as_me:$LINENO: checking " >&5
6376echo $ECHO_N "checking ... $ECHO_C" >&6; }
6377if test "${llvm_cv_has_bison+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379else
6380 for ac_prog in 'bison -y' byacc
6381do
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383set dummy $ac_prog; ac_word=$2
6384{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386if test "${ac_cv_prog_YACC+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389 if test -n "$YACC"; then
6390 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6391else
6392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393for as_dir in $PATH
6394do
6395 IFS=$as_save_IFS
6396 test -z "$as_dir" && as_dir=.
6397 for ac_exec_ext in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_YACC="$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6401 break 2
6402 fi
6403done
6404done
6405IFS=$as_save_IFS
6406
6407fi
6408fi
6409YACC=$ac_cv_prog_YACC
6410if test -n "$YACC"; then
6411 { echo "$as_me:$LINENO: result: $YACC" >&5
6412echo "${ECHO_T}$YACC" >&6; }
6413else
6414 { echo "$as_me:$LINENO: result: no" >&5
6415echo "${ECHO_T}no" >&6; }
6416fi
6417
6418
6419 test -n "$YACC" && break
6420done
6421test -n "$YACC" || YACC="yacc"
6422
6423fi
6424{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6425echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6426if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006427
6428 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6429echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006430else
6431 BISON=bison
6432
6433fi
6434
6435{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6436echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6437if test "${lt_cv_path_NM+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440 if test -n "$NM"; then
6441 # Let the user override the test.
6442 lt_cv_path_NM="$NM"
6443else
6444 lt_nm_to_check="${ac_tool_prefix}nm"
6445 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6446 lt_nm_to_check="$lt_nm_to_check nm"
6447 fi
6448 for lt_tmp_nm in $lt_nm_to_check; do
6449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6450 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6451 IFS="$lt_save_ifs"
6452 test -z "$ac_dir" && ac_dir=.
6453 tmp_nm="$ac_dir/$lt_tmp_nm"
6454 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6455 # Check to see if the nm accepts a BSD-compat flag.
6456 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6457 # nm: unknown option "B" ignored
6458 # Tru64's nm complains that /dev/null is an invalid object file
6459 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6460 */dev/null* | *'Invalid file or object type'*)
6461 lt_cv_path_NM="$tmp_nm -B"
6462 break
6463 ;;
6464 *)
6465 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6466 */dev/null*)
6467 lt_cv_path_NM="$tmp_nm -p"
6468 break
6469 ;;
6470 *)
6471 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6472 continue # so that we can try to find one that supports BSD flags
6473 ;;
6474 esac
6475 ;;
6476 esac
6477 fi
6478 done
6479 IFS="$lt_save_ifs"
6480 done
6481 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6482fi
6483fi
6484{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6485echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6486NM="$lt_cv_path_NM"
6487
6488
6489
6490{ echo "$as_me:$LINENO: checking for GNU make" >&5
6491echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6492if test "${llvm_cv_gnu_make_command+set}" = set; then
6493 echo $ECHO_N "(cached) $ECHO_C" >&6
6494else
6495 llvm_cv_gnu_make_command=''
6496 for a in "$MAKE" make gmake gnumake ; do
6497 if test -z "$a" ; then continue ; fi ;
6498 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6499 then
6500 llvm_cv_gnu_make_command=$a ;
6501 break;
6502 fi
6503 done
6504fi
6505{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6506echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6507 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6508 ifGNUmake='' ;
6509 else
6510 ifGNUmake='#' ;
6511 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6512echo "${ECHO_T}\"Not found\"" >&6; };
6513 fi
6514
6515
6516{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6517echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6518LN_S=$as_ln_s
6519if test "$LN_S" = "ln -s"; then
6520 { echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6; }
6522else
6523 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6524echo "${ECHO_T}no, using $LN_S" >&6; }
6525fi
6526
6527# Extract the first word of "cmp", so it can be a program name with args.
6528set dummy cmp; ac_word=$2
6529{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6531if test "${ac_cv_path_CMP+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 case $CMP in
6535 [\\/]* | ?:[\\/]*)
6536 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6537 ;;
6538 *)
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540for as_dir in $PATH
6541do
6542 IFS=$as_save_IFS
6543 test -z "$as_dir" && as_dir=.
6544 for ac_exec_ext in '' $ac_executable_extensions; do
6545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6546 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6548 break 2
6549 fi
6550done
6551done
6552IFS=$as_save_IFS
6553
6554 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6555 ;;
6556esac
6557fi
6558CMP=$ac_cv_path_CMP
6559if test -n "$CMP"; then
6560 { echo "$as_me:$LINENO: result: $CMP" >&5
6561echo "${ECHO_T}$CMP" >&6; }
6562else
6563 { echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6; }
6565fi
6566
6567
6568# Extract the first word of "cp", so it can be a program name with args.
6569set dummy cp; ac_word=$2
6570{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6572if test "${ac_cv_path_CP+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575 case $CP in
6576 [\\/]* | ?:[\\/]*)
6577 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6578 ;;
6579 *)
6580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581for as_dir in $PATH
6582do
6583 IFS=$as_save_IFS
6584 test -z "$as_dir" && as_dir=.
6585 for ac_exec_ext in '' $ac_executable_extensions; do
6586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6587 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6589 break 2
6590 fi
6591done
6592done
6593IFS=$as_save_IFS
6594
6595 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6596 ;;
6597esac
6598fi
6599CP=$ac_cv_path_CP
6600if test -n "$CP"; then
6601 { echo "$as_me:$LINENO: result: $CP" >&5
6602echo "${ECHO_T}$CP" >&6; }
6603else
6604 { echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6; }
6606fi
6607
6608
6609# Extract the first word of "date", so it can be a program name with args.
6610set dummy date; ac_word=$2
6611{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6613if test "${ac_cv_path_DATE+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616 case $DATE in
6617 [\\/]* | ?:[\\/]*)
6618 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6619 ;;
6620 *)
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622for as_dir in $PATH
6623do
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632done
6633done
6634IFS=$as_save_IFS
6635
6636 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6637 ;;
6638esac
6639fi
6640DATE=$ac_cv_path_DATE
6641if test -n "$DATE"; then
6642 { echo "$as_me:$LINENO: result: $DATE" >&5
6643echo "${ECHO_T}$DATE" >&6; }
6644else
6645 { echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6; }
6647fi
6648
6649
6650# Extract the first word of "find", so it can be a program name with args.
6651set dummy find; ac_word=$2
6652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6654if test "${ac_cv_path_FIND+set}" = set; then
6655 echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657 case $FIND in
6658 [\\/]* | ?:[\\/]*)
6659 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6660 ;;
6661 *)
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6669 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674done
6675IFS=$as_save_IFS
6676
6677 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6678 ;;
6679esac
6680fi
6681FIND=$ac_cv_path_FIND
6682if test -n "$FIND"; then
6683 { echo "$as_me:$LINENO: result: $FIND" >&5
6684echo "${ECHO_T}$FIND" >&6; }
6685else
6686 { echo "$as_me:$LINENO: result: no" >&5
6687echo "${ECHO_T}no" >&6; }
6688fi
6689
6690
6691# Extract the first word of "grep", so it can be a program name with args.
6692set dummy grep; ac_word=$2
6693{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695if test "${ac_cv_path_GREP+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6697else
6698 case $GREP in
6699 [\\/]* | ?:[\\/]*)
6700 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6701 ;;
6702 *)
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6710 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714done
6715done
6716IFS=$as_save_IFS
6717
6718 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6719 ;;
6720esac
6721fi
6722GREP=$ac_cv_path_GREP
6723if test -n "$GREP"; then
6724 { echo "$as_me:$LINENO: result: $GREP" >&5
6725echo "${ECHO_T}$GREP" >&6; }
6726else
6727 { echo "$as_me:$LINENO: result: no" >&5
6728echo "${ECHO_T}no" >&6; }
6729fi
6730
6731
6732# Extract the first word of "mkdir", so it can be a program name with args.
6733set dummy mkdir; ac_word=$2
6734{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6736if test "${ac_cv_path_MKDIR+set}" = set; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739 case $MKDIR in
6740 [\\/]* | ?:[\\/]*)
6741 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6742 ;;
6743 *)
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745for as_dir in $PATH
6746do
6747 IFS=$as_save_IFS
6748 test -z "$as_dir" && as_dir=.
6749 for ac_exec_ext in '' $ac_executable_extensions; do
6750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6751 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753 break 2
6754 fi
6755done
6756done
6757IFS=$as_save_IFS
6758
6759 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6760 ;;
6761esac
6762fi
6763MKDIR=$ac_cv_path_MKDIR
6764if test -n "$MKDIR"; then
6765 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6766echo "${ECHO_T}$MKDIR" >&6; }
6767else
6768 { echo "$as_me:$LINENO: result: no" >&5
6769echo "${ECHO_T}no" >&6; }
6770fi
6771
6772
6773# Extract the first word of "mv", so it can be a program name with args.
6774set dummy mv; ac_word=$2
6775{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6776echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6777if test "${ac_cv_path_MV+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780 case $MV in
6781 [\\/]* | ?:[\\/]*)
6782 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6783 ;;
6784 *)
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786for as_dir in $PATH
6787do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6792 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796done
6797done
6798IFS=$as_save_IFS
6799
6800 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6801 ;;
6802esac
6803fi
6804MV=$ac_cv_path_MV
6805if test -n "$MV"; then
6806 { echo "$as_me:$LINENO: result: $MV" >&5
6807echo "${ECHO_T}$MV" >&6; }
6808else
6809 { echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6; }
6811fi
6812
6813
6814if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6816set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6817{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6819if test "${ac_cv_prog_RANLIB+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6821else
6822 if test -n "$RANLIB"; then
6823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6824else
6825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826for as_dir in $PATH
6827do
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6835 fi
6836done
6837done
6838IFS=$as_save_IFS
6839
6840fi
6841fi
6842RANLIB=$ac_cv_prog_RANLIB
6843if test -n "$RANLIB"; then
6844 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6845echo "${ECHO_T}$RANLIB" >&6; }
6846else
6847 { echo "$as_me:$LINENO: result: no" >&5
6848echo "${ECHO_T}no" >&6; }
6849fi
6850
6851
6852fi
6853if test -z "$ac_cv_prog_RANLIB"; then
6854 ac_ct_RANLIB=$RANLIB
6855 # Extract the first word of "ranlib", so it can be a program name with args.
6856set dummy ranlib; ac_word=$2
6857{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6859if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861else
6862 if test -n "$ac_ct_RANLIB"; then
6863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_RANLIB="ranlib"
6873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6875 fi
6876done
6877done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6883if test -n "$ac_ct_RANLIB"; then
6884 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6885echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6886else
6887 { echo "$as_me:$LINENO: result: no" >&5
6888echo "${ECHO_T}no" >&6; }
6889fi
6890
6891 if test "x$ac_ct_RANLIB" = x; then
6892 RANLIB=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895yes:)
6896{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6897whose name does not start with the host triplet. If you think this
6898configuration is useful to you, please write to autoconf@gnu.org." >&5
6899echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6900whose name does not start with the host triplet. If you think this
6901configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904 RANLIB=$ac_ct_RANLIB
6905 fi
6906else
6907 RANLIB="$ac_cv_prog_RANLIB"
6908fi
6909
6910# Extract the first word of "rm", so it can be a program name with args.
6911set dummy rm; ac_word=$2
6912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914if test "${ac_cv_path_RM+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917 case $RM in
6918 [\\/]* | ?:[\\/]*)
6919 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6920 ;;
6921 *)
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933done
6934done
6935IFS=$as_save_IFS
6936
6937 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6938 ;;
6939esac
6940fi
6941RM=$ac_cv_path_RM
6942if test -n "$RM"; then
6943 { echo "$as_me:$LINENO: result: $RM" >&5
6944echo "${ECHO_T}$RM" >&6; }
6945else
6946 { echo "$as_me:$LINENO: result: no" >&5
6947echo "${ECHO_T}no" >&6; }
6948fi
6949
6950
6951# Extract the first word of "sed", so it can be a program name with args.
6952set dummy sed; ac_word=$2
6953{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955if test "${ac_cv_path_SED+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6957else
6958 case $SED in
6959 [\\/]* | ?:[\\/]*)
6960 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6961 ;;
6962 *)
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975done
6976IFS=$as_save_IFS
6977
6978 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6979 ;;
6980esac
6981fi
6982SED=$ac_cv_path_SED
6983if test -n "$SED"; then
6984 { echo "$as_me:$LINENO: result: $SED" >&5
6985echo "${ECHO_T}$SED" >&6; }
6986else
6987 { echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6; }
6989fi
6990
6991
6992# Extract the first word of "tar", so it can be a program name with args.
6993set dummy tar; ac_word=$2
6994{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996if test "${ac_cv_path_TAR+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999 case $TAR in
7000 [\\/]* | ?:[\\/]*)
7001 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7002 ;;
7003 *)
7004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007 IFS=$as_save_IFS
7008 test -z "$as_dir" && as_dir=.
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 break 2
7014 fi
7015done
7016done
7017IFS=$as_save_IFS
7018
7019 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7020 ;;
7021esac
7022fi
7023TAR=$ac_cv_path_TAR
7024if test -n "$TAR"; then
7025 { echo "$as_me:$LINENO: result: $TAR" >&5
7026echo "${ECHO_T}$TAR" >&6; }
7027else
7028 { echo "$as_me:$LINENO: result: no" >&5
7029echo "${ECHO_T}no" >&6; }
7030fi
7031
7032
7033# Extract the first word of "pwd", so it can be a program name with args.
7034set dummy pwd; ac_word=$2
7035{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7037if test "${ac_cv_path_BINPWD+set}" = set; then
7038 echo $ECHO_N "(cached) $ECHO_C" >&6
7039else
7040 case $BINPWD in
7041 [\\/]* | ?:[\\/]*)
7042 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7043 ;;
7044 *)
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046for as_dir in $PATH
7047do
7048 IFS=$as_save_IFS
7049 test -z "$as_dir" && as_dir=.
7050 for ac_exec_ext in '' $ac_executable_extensions; do
7051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7052 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7054 break 2
7055 fi
7056done
7057done
7058IFS=$as_save_IFS
7059
7060 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7061 ;;
7062esac
7063fi
7064BINPWD=$ac_cv_path_BINPWD
7065if test -n "$BINPWD"; then
7066 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7067echo "${ECHO_T}$BINPWD" >&6; }
7068else
7069 { echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6; }
7071fi
7072
7073
7074
7075# Extract the first word of "Graphviz", so it can be a program name with args.
7076set dummy Graphviz; ac_word=$2
7077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7079if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7080 echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082 case $GRAPHVIZ in
7083 [\\/]* | ?:[\\/]*)
7084 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7085 ;;
7086 *)
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7094 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098done
7099done
7100IFS=$as_save_IFS
7101
7102 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7103 ;;
7104esac
7105fi
7106GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7107if test -n "$GRAPHVIZ"; then
7108 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7109echo "${ECHO_T}$GRAPHVIZ" >&6; }
7110else
7111 { echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6; }
7113fi
7114
7115
7116if test "$GRAPHVIZ" != "echo Graphviz" ; then
7117
7118cat >>confdefs.h <<\_ACEOF
7119#define HAVE_GRAPHVIZ 1
7120_ACEOF
7121
Jeff Cohen28783c32007-01-12 18:22:38 +00007122 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007123 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7124 fi
7125
7126cat >>confdefs.h <<_ACEOF
7127#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7128_ACEOF
7129
7130fi
7131# Extract the first word of "dot", so it can be a program name with args.
7132set dummy dot; ac_word=$2
7133{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7135if test "${ac_cv_path_DOT+set}" = set; then
7136 echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138 case $DOT in
7139 [\\/]* | ?:[\\/]*)
7140 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7141 ;;
7142 *)
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146 IFS=$as_save_IFS
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152 break 2
7153 fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7159 ;;
7160esac
7161fi
7162DOT=$ac_cv_path_DOT
7163if test -n "$DOT"; then
7164 { echo "$as_me:$LINENO: result: $DOT" >&5
7165echo "${ECHO_T}$DOT" >&6; }
7166else
7167 { echo "$as_me:$LINENO: result: no" >&5
7168echo "${ECHO_T}no" >&6; }
7169fi
7170
7171
7172if test "$DOT" != "echo dot" ; then
7173
7174cat >>confdefs.h <<\_ACEOF
7175#define HAVE_DOT 1
7176_ACEOF
7177
Jeff Cohen28783c32007-01-12 18:22:38 +00007178 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007179 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7180 fi
7181
7182cat >>confdefs.h <<_ACEOF
7183#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7184_ACEOF
7185
7186fi
7187for ac_prog in gv gsview32
7188do
7189 # Extract the first word of "$ac_prog", so it can be a program name with args.
7190set dummy $ac_prog; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_path_GV+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196 case $GV in
7197 [\\/]* | ?:[\\/]*)
7198 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7199 ;;
7200 *)
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202for as_dir in $PATH
7203do
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7211 fi
7212done
7213done
7214IFS=$as_save_IFS
7215
7216 ;;
7217esac
7218fi
7219GV=$ac_cv_path_GV
7220if test -n "$GV"; then
7221 { echo "$as_me:$LINENO: result: $GV" >&5
7222echo "${ECHO_T}$GV" >&6; }
7223else
7224 { echo "$as_me:$LINENO: result: no" >&5
7225echo "${ECHO_T}no" >&6; }
7226fi
7227
7228
7229 test -n "$GV" && break
7230done
7231test -n "$GV" || GV="echo gv"
7232
7233if test "$GV" != "echo gv" ; then
7234
7235cat >>confdefs.h <<\_ACEOF
7236#define HAVE_GV 1
7237_ACEOF
7238
Jeff Cohen28783c32007-01-12 18:22:38 +00007239 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007240 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7241 fi
7242
7243cat >>confdefs.h <<_ACEOF
7244#define LLVM_PATH_GV "$GV${EXEEXT}"
7245_ACEOF
7246
7247fi
7248# Extract the first word of "dotty", so it can be a program name with args.
7249set dummy dotty; ac_word=$2
7250{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7252if test "${ac_cv_path_DOTTY+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7254else
7255 case $DOTTY in
7256 [\\/]* | ?:[\\/]*)
7257 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7258 ;;
7259 *)
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261for as_dir in $PATH
7262do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7267 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271done
7272done
7273IFS=$as_save_IFS
7274
7275 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7276 ;;
7277esac
7278fi
7279DOTTY=$ac_cv_path_DOTTY
7280if test -n "$DOTTY"; then
7281 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7282echo "${ECHO_T}$DOTTY" >&6; }
7283else
7284 { echo "$as_me:$LINENO: result: no" >&5
7285echo "${ECHO_T}no" >&6; }
7286fi
7287
7288
7289if test "$DOTTY" != "echo dotty" ; then
7290
7291cat >>confdefs.h <<\_ACEOF
7292#define HAVE_DOTTY 1
7293_ACEOF
7294
Jeff Cohen28783c32007-01-12 18:22:38 +00007295 if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencera773bd52006-08-04 18:18:08 +00007296 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7297 fi
7298
7299cat >>confdefs.h <<_ACEOF
7300#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7301_ACEOF
7302
7303fi
7304
7305
7306# Extract the first word of "perl", so it can be a program name with args.
7307set dummy perl; ac_word=$2
7308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7310if test "${ac_cv_path_PERL+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 case $PERL in
7314 [\\/]* | ?:[\\/]*)
7315 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7316 ;;
7317 *)
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7328 fi
7329done
7330done
7331IFS=$as_save_IFS
7332
7333 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7334 ;;
7335esac
7336fi
7337PERL=$ac_cv_path_PERL
7338if test -n "$PERL"; then
7339 { echo "$as_me:$LINENO: result: $PERL" >&5
7340echo "${ECHO_T}$PERL" >&6; }
7341else
7342 { echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6; }
7344fi
7345
7346
7347if test "$PERL" != "none"; then
7348 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7349echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7350 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7351 { echo "$as_me:$LINENO: result: yes" >&5
7352echo "${ECHO_T}yes" >&6; }
7353 else
7354 PERL=none
7355 { echo "$as_me:$LINENO: result: not found" >&5
7356echo "${ECHO_T}not found" >&6; }
7357 fi
7358fi
7359
7360
7361if test x"$PERL" = xnone; then
7362 HAVE_PERL=0
7363
7364else
7365 HAVE_PERL=1
7366
7367fi
7368
7369# Find a good install program. We prefer a C program (faster),
7370# so one script is as good as another. But avoid the broken or
7371# incompatible versions:
7372# SysV /etc/install, /usr/sbin/install
7373# SunOS /usr/etc/install
7374# IRIX /sbin/install
7375# AIX /bin/install
7376# AmigaOS /C/install, which installs bootblocks on floppy discs
7377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7380# OS/2's system install, which has a completely different semantic
7381# ./install, which can be erroneously created by make from ./install.sh.
7382{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7383echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7384if test -z "$INSTALL"; then
7385if test "${ac_cv_path_install+set}" = set; then
7386 echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391 IFS=$as_save_IFS
7392 test -z "$as_dir" && as_dir=.
7393 # Account for people who put trailing slashes in PATH elements.
7394case $as_dir/ in
7395 ./ | .// | /cC/* | \
7396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7397 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7398 /usr/ucb/* ) ;;
7399 *)
7400 # OSF1 and SCO ODT 3.0 have their own names for install.
7401 # Don't use installbsd from OSF since it installs stuff as root
7402 # by default.
7403 for ac_prog in ginstall scoinst install; do
7404 for ac_exec_ext in '' $ac_executable_extensions; do
7405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7406 if test $ac_prog = install &&
7407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7408 # AIX install. It has an incompatible calling convention.
7409 :
7410 elif test $ac_prog = install &&
7411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7412 # program-specific install script used by HP pwplus--don't use.
7413 :
7414 else
7415 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7416 break 3
7417 fi
7418 fi
7419 done
7420 done
7421 ;;
7422esac
7423done
7424IFS=$as_save_IFS
7425
7426
7427fi
7428 if test "${ac_cv_path_install+set}" = set; then
7429 INSTALL=$ac_cv_path_install
7430 else
7431 # As a last resort, use the slow shell script. Don't cache a
7432 # value for INSTALL within a source directory, because that will
7433 # break other packages using the cache if that directory is
7434 # removed, or if the value is a relative name.
7435 INSTALL=$ac_install_sh
7436 fi
7437fi
7438{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7439echo "${ECHO_T}$INSTALL" >&6; }
7440
7441# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7442# It thinks the first close brace ends the variable substitution.
7443test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7444
7445test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7446
7447test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7448
7449
7450# Extract the first word of "bzip2", so it can be a program name with args.
7451set dummy bzip2; ac_word=$2
7452{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7454if test "${ac_cv_path_BZIP2+set}" = set; then
7455 echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457 case $BZIP2 in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473done
7474done
7475IFS=$as_save_IFS
7476
7477 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7478 ;;
7479esac
7480fi
7481BZIP2=$ac_cv_path_BZIP2
7482if test -n "$BZIP2"; then
7483 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7484echo "${ECHO_T}$BZIP2" >&6; }
7485else
7486 { echo "$as_me:$LINENO: result: no" >&5
7487echo "${ECHO_T}no" >&6; }
7488fi
7489
7490
7491# Extract the first word of "doxygen", so it can be a program name with args.
7492set dummy doxygen; ac_word=$2
7493{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495if test "${ac_cv_path_DOXYGEN+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7497else
7498 case $DOXYGEN in
7499 [\\/]* | ?:[\\/]*)
7500 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7501 ;;
7502 *)
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514done
7515done
7516IFS=$as_save_IFS
7517
7518 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7519 ;;
7520esac
7521fi
7522DOXYGEN=$ac_cv_path_DOXYGEN
7523if test -n "$DOXYGEN"; then
7524 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7525echo "${ECHO_T}$DOXYGEN" >&6; }
7526else
7527 { echo "$as_me:$LINENO: result: no" >&5
7528echo "${ECHO_T}no" >&6; }
7529fi
7530
7531
Reid Spencera773bd52006-08-04 18:18:08 +00007532# Extract the first word of "groff", so it can be a program name with args.
7533set dummy groff; ac_word=$2
7534{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7536if test "${ac_cv_path_GROFF+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539 case $GROFF in
7540 [\\/]* | ?:[\\/]*)
7541 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7542 ;;
7543 *)
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7551 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555done
7556done
7557IFS=$as_save_IFS
7558
7559 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7560 ;;
7561esac
7562fi
7563GROFF=$ac_cv_path_GROFF
7564if test -n "$GROFF"; then
7565 { echo "$as_me:$LINENO: result: $GROFF" >&5
7566echo "${ECHO_T}$GROFF" >&6; }
7567else
7568 { echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6; }
7570fi
7571
7572
7573# Extract the first word of "gzip", so it can be a program name with args.
7574set dummy gzip; ac_word=$2
7575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7577if test "${ac_cv_path_GZIP+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580 case $GZIP in
7581 [\\/]* | ?:[\\/]*)
7582 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7583 ;;
7584 *)
7585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7592 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7594 break 2
7595 fi
7596done
7597done
7598IFS=$as_save_IFS
7599
7600 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7601 ;;
7602esac
7603fi
7604GZIP=$ac_cv_path_GZIP
7605if test -n "$GZIP"; then
7606 { echo "$as_me:$LINENO: result: $GZIP" >&5
7607echo "${ECHO_T}$GZIP" >&6; }
7608else
7609 { echo "$as_me:$LINENO: result: no" >&5
7610echo "${ECHO_T}no" >&6; }
7611fi
7612
7613
7614# Extract the first word of "pod2html", so it can be a program name with args.
7615set dummy pod2html; ac_word=$2
7616{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618if test "${ac_cv_path_POD2HTML+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7620else
7621 case $POD2HTML in
7622 [\\/]* | ?:[\\/]*)
7623 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7624 ;;
7625 *)
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627for as_dir in $PATH
7628do
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7636 fi
7637done
7638done
7639IFS=$as_save_IFS
7640
7641 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7642 ;;
7643esac
7644fi
7645POD2HTML=$ac_cv_path_POD2HTML
7646if test -n "$POD2HTML"; then
7647 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7648echo "${ECHO_T}$POD2HTML" >&6; }
7649else
7650 { echo "$as_me:$LINENO: result: no" >&5
7651echo "${ECHO_T}no" >&6; }
7652fi
7653
7654
7655# Extract the first word of "pod2man", so it can be a program name with args.
7656set dummy pod2man; ac_word=$2
7657{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659if test "${ac_cv_path_POD2MAN+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662 case $POD2MAN in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7665 ;;
7666 *)
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668for as_dir in $PATH
7669do
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7677 fi
7678done
7679done
7680IFS=$as_save_IFS
7681
7682 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7683 ;;
7684esac
7685fi
7686POD2MAN=$ac_cv_path_POD2MAN
7687if test -n "$POD2MAN"; then
7688 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7689echo "${ECHO_T}$POD2MAN" >&6; }
7690else
7691 { echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6; }
7693fi
7694
7695
7696# Extract the first word of "runtest", so it can be a program name with args.
7697set dummy runtest; ac_word=$2
7698{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7700if test "${ac_cv_path_RUNTEST+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7702else
7703 case $RUNTEST in
7704 [\\/]* | ?:[\\/]*)
7705 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7706 ;;
7707 *)
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711 IFS=$as_save_IFS
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717 break 2
7718 fi
7719done
7720done
7721IFS=$as_save_IFS
7722
7723 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7724 ;;
7725esac
7726fi
7727RUNTEST=$ac_cv_path_RUNTEST
7728if test -n "$RUNTEST"; then
7729 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7730echo "${ECHO_T}$RUNTEST" >&6; }
7731else
7732 { echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6; }
7734fi
7735
7736
7737
7738no_itcl=true
7739{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7740echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7741
7742# Check whether --with-tclinclude was given.
7743if test "${with_tclinclude+set}" = set; then
7744 withval=$with_tclinclude; with_tclinclude=${withval}
7745else
7746 with_tclinclude=''
7747fi
7748
7749if test "${ac_cv_path_tclsh+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7751else
7752
7753if test x"${with_tclinclude}" != x ; then
7754 if test -f ${with_tclinclude}/tclsh ; then
7755 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7756 elif test -f ${with_tclinclude}/src/tclsh ; then
7757 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7758 else
7759 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7760echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7761 { (exit 1); exit 1; }; }
7762 fi
7763fi
7764
7765if test x"${ac_cv_path_tclsh}" = x ; then
7766 { echo "$as_me:$LINENO: result: none" >&5
7767echo "${ECHO_T}none" >&6; }
7768 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
7769do
7770 # Extract the first word of "$ac_prog", so it can be a program name with args.
7771set dummy $ac_prog; ac_word=$2
7772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7774if test "${ac_cv_path_TCLSH+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7776else
7777 case $TCLSH in
7778 [\\/]* | ?:[\\/]*)
7779 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7780 ;;
7781 *)
7782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7789 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 break 2
7792 fi
7793done
7794done
7795IFS=$as_save_IFS
7796
7797 ;;
7798esac
7799fi
7800TCLSH=$ac_cv_path_TCLSH
7801if test -n "$TCLSH"; then
7802 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7803echo "${ECHO_T}$TCLSH" >&6; }
7804else
7805 { echo "$as_me:$LINENO: result: no" >&5
7806echo "${ECHO_T}no" >&6; }
7807fi
7808
7809
7810 test -n "$TCLSH" && break
7811done
7812
7813 if test x"${TCLSH}" = x ; then
7814 ac_cv_path_tclsh='';
7815 else
7816 ac_cv_path_tclsh="${TCLSH}";
7817 fi
7818else
7819 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7820echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7821 TCLSH="${ac_cv_path_tclsh}"
7822
7823fi
7824
7825fi
7826
7827# Extract the first word of "zip", so it can be a program name with args.
7828set dummy zip; ac_word=$2
7829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7831if test "${ac_cv_path_ZIP+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833else
7834 case $ZIP in
7835 [\\/]* | ?:[\\/]*)
7836 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7837 ;;
7838 *)
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7846 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851done
7852IFS=$as_save_IFS
7853
7854 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7855 ;;
7856esac
7857fi
7858ZIP=$ac_cv_path_ZIP
7859if test -n "$ZIP"; then
7860 { echo "$as_me:$LINENO: result: $ZIP" >&5
7861echo "${ECHO_T}$ZIP" >&6; }
7862else
7863 { echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6; }
7865fi
7866
7867
7868
7869{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7870echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7871if test "${llvm_cv_link_use_r+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7873else
7874 ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879
7880 oldcflags="$CFLAGS"
7881 CFLAGS="$CFLAGS -Wl,-R."
7882 cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888
7889int
7890main ()
7891{
7892int main() { return 0; }
7893 ;
7894 return 0;
7895}
7896_ACEOF
7897rm -f conftest.$ac_objext conftest$ac_exeext
7898if { (ac_try="$ac_link"
7899case "(($ac_try" in
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7902esac
7903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_link") 2>conftest.er1
7905 ac_status=$?
7906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912 { (case "(($ac_try" in
7913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7914 *) ac_try_echo=$ac_try;;
7915esac
7916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7917 (eval "$ac_try") 2>&5
7918 ac_status=$?
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925esac
7926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 llvm_cv_link_use_r=yes
7932else
7933 echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 llvm_cv_link_use_r=no
7937fi
7938
7939rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 CFLAGS="$oldcflags"
7942 ac_ext=c
7943ac_cpp='$CPP $CPPFLAGS'
7944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946ac_compiler_gnu=$ac_cv_c_compiler_gnu
7947
7948
7949fi
7950{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7951echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7952if test "$llvm_cv_link_use_r" = yes ; then
7953
7954cat >>confdefs.h <<\_ACEOF
7955#define HAVE_LINK_R 1
7956_ACEOF
7957
7958 fi
7959
7960
7961
7962
7963{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7964echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7965if test "${ac_cv_c_const+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968 cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
7973/* end confdefs.h. */
7974
7975int
7976main ()
7977{
7978/* FIXME: Include the comments suggested by Paul. */
7979#ifndef __cplusplus
7980 /* Ultrix mips cc rejects this. */
7981 typedef int charset[2];
7982 const charset x;
7983 /* SunOS 4.1.1 cc rejects this. */
7984 char const *const *ccp;
7985 char **p;
7986 /* NEC SVR4.0.2 mips cc rejects this. */
7987 struct point {int x, y;};
7988 static struct point const zero = {0,0};
7989 /* AIX XL C 1.02.0.0 rejects this.
7990 It does not let you subtract one const X* pointer from another in
7991 an arm of an if-expression whose if-part is not a constant
7992 expression */
7993 const char *g = "string";
7994 ccp = &g + (g ? g-g : 0);
7995 /* HPUX 7.0 cc rejects these. */
7996 ++ccp;
7997 p = (char**) ccp;
7998 ccp = (char const *const *) p;
7999 { /* SCO 3.2v4 cc rejects this. */
8000 char *t;
8001 char const *s = 0 ? (char *) 0 : (char const *) 0;
8002
8003 *t++ = 0;
8004 if (s) return 0;
8005 }
8006 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8007 int x[] = {25, 17};
8008 const int *foo = &x[0];
8009 ++foo;
8010 }
8011 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8012 typedef const int *iptr;
8013 iptr p = 0;
8014 ++p;
8015 }
8016 { /* AIX XL C 1.02.0.0 rejects this saying
8017 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8018 struct s { int j; const int *ap[3]; };
8019 struct s *b; b->j = 5;
8020 }
8021 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8022 const int foo = 10;
8023 if (!foo) return 0;
8024 }
8025 return !x[0] && !zero.x;
8026#endif
8027
8028 ;
8029 return 0;
8030}
8031_ACEOF
8032rm -f conftest.$ac_objext
8033if { (ac_try="$ac_compile"
8034case "(($ac_try" in
8035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036 *) ac_try_echo=$ac_try;;
8037esac
8038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (case "(($ac_try" in
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8050esac
8051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_try") 2>&5
8053 ac_status=$?
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); }; } &&
8056 { ac_try='test -s conftest.$ac_objext'
8057 { (case "(($ac_try" in
8058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059 *) ac_try_echo=$ac_try;;
8060esac
8061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_try") 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_c_const=yes
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_cv_c_const=no
8072fi
8073
8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075fi
8076{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8077echo "${ECHO_T}$ac_cv_c_const" >&6; }
8078if test $ac_cv_c_const = no; then
8079
8080cat >>confdefs.h <<\_ACEOF
8081#define const
8082_ACEOF
8083
8084fi
8085
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008086
8087
8088
8089
8090
8091ac_header_dirent=no
8092for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8093 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008094{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8095echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099 cat >conftest.$ac_ext <<_ACEOF
8100/* confdefs.h. */
8101_ACEOF
8102cat confdefs.h >>conftest.$ac_ext
8103cat >>conftest.$ac_ext <<_ACEOF
8104/* end confdefs.h. */
8105#include <sys/types.h>
8106#include <$ac_hdr>
8107
8108int
8109main ()
8110{
8111if ((DIR *) 0)
8112return 0;
8113 ;
8114 return 0;
8115}
8116_ACEOF
8117rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008118if { (ac_try="$ac_compile"
8119case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122esac
8123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8135esac
8136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008138 ac_status=$?
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145esac
8146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008148 ac_status=$?
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 eval "$as_ac_Header=yes"
8152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
Reid Spencera773bd52006-08-04 18:18:08 +00008156 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008157fi
Reid Spencera773bd52006-08-04 18:18:08 +00008158
8159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008160fi
Reid Spencera773bd52006-08-04 18:18:08 +00008161ac_res=`eval echo '${'$as_ac_Header'}'`
8162 { echo "$as_me:$LINENO: result: $ac_res" >&5
8163echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008164if test `eval echo '${'$as_ac_Header'}'` = yes; then
8165 cat >>confdefs.h <<_ACEOF
8166#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8167_ACEOF
8168
8169ac_header_dirent=$ac_hdr; break
8170fi
8171
8172done
8173# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8174if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008175 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8176echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008177if test "${ac_cv_search_opendir+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008181cat >conftest.$ac_ext <<_ACEOF
8182/* confdefs.h. */
8183_ACEOF
8184cat confdefs.h >>conftest.$ac_ext
8185cat >>conftest.$ac_ext <<_ACEOF
8186/* end confdefs.h. */
8187
Reid Spencera773bd52006-08-04 18:18:08 +00008188/* Override any GCC internal prototype to avoid an error.
8189 Use char because int might match the return type of a GCC
8190 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008191#ifdef __cplusplus
8192extern "C"
8193#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008194char opendir ();
8195int
8196main ()
8197{
Reid Spencera773bd52006-08-04 18:18:08 +00008198return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008199 ;
8200 return 0;
8201}
8202_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008203for ac_lib in '' dir; do
8204 if test -z "$ac_lib"; then
8205 ac_res="none required"
8206 else
8207 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008208 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008209 fi
8210 rm -f conftest.$ac_objext conftest$ac_exeext
8211if { (ac_try="$ac_link"
8212case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215esac
8216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
8229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008235 { (case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008244 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008245else
8246 echo "$as_me: failed program was:" >&5
8247sed 's/^/| /' conftest.$ac_ext >&5
8248
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008249
8250fi
8251
Reid Spencera773bd52006-08-04 18:18:08 +00008252rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext
8254 if test "${ac_cv_search_opendir+set}" = set; then
8255 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008256fi
John Criswell7a73b802003-06-30 21:59:07 +00008257done
Reid Spencera773bd52006-08-04 18:18:08 +00008258if test "${ac_cv_search_opendir+set}" = set; then
8259 :
8260else
8261 ac_cv_search_opendir=no
8262fi
8263rm conftest.$ac_ext
8264LIBS=$ac_func_search_save_LIBS
8265fi
8266{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8267echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8268ac_res=$ac_cv_search_opendir
8269if test "$ac_res" != no; then
8270 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008271
Reid Spencera773bd52006-08-04 18:18:08 +00008272fi
8273
8274else
8275 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8276echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8277if test "${ac_cv_search_opendir+set}" = set; then
8278 echo $ECHO_N "(cached) $ECHO_C" >&6
8279else
8280 ac_func_search_save_LIBS=$LIBS
8281cat >conftest.$ac_ext <<_ACEOF
8282/* confdefs.h. */
8283_ACEOF
8284cat confdefs.h >>conftest.$ac_ext
8285cat >>conftest.$ac_ext <<_ACEOF
8286/* end confdefs.h. */
8287
8288/* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8291#ifdef __cplusplus
8292extern "C"
8293#endif
8294char opendir ();
8295int
8296main ()
8297{
8298return opendir ();
8299 ;
8300 return 0;
8301}
8302_ACEOF
8303for ac_lib in '' x; do
8304 if test -z "$ac_lib"; then
8305 ac_res="none required"
8306 else
8307 ac_res=-l$ac_lib
8308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8309 fi
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311if { (ac_try="$ac_link"
8312case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_link") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325 { (case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328esac
8329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_try") 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; } &&
8334 { ac_try='test -s conftest$ac_exeext'
8335 { (case "(($ac_try" in
8336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8337 *) ac_try_echo=$ac_try;;
8338esac
8339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8340 (eval "$ac_try") 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8344 ac_cv_search_opendir=$ac_res
8345else
8346 echo "$as_me: failed program was:" >&5
8347sed 's/^/| /' conftest.$ac_ext >&5
8348
8349
8350fi
8351
8352rm -f core conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext
8354 if test "${ac_cv_search_opendir+set}" = set; then
8355 break
8356fi
8357done
8358if test "${ac_cv_search_opendir+set}" = set; then
8359 :
8360else
8361 ac_cv_search_opendir=no
8362fi
8363rm conftest.$ac_ext
8364LIBS=$ac_func_search_save_LIBS
8365fi
8366{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8367echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8368ac_res=$ac_cv_search_opendir
8369if test "$ac_res" != no; then
8370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8371
8372fi
8373
8374fi
John Criswell7a73b802003-06-30 21:59:07 +00008375
8376
8377for ac_header in dlfcn.h
8378do
8379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8383if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008384 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008385fi
Reid Spencera773bd52006-08-04 18:18:08 +00008386ac_res=`eval echo '${'$as_ac_Header'}'`
8387 { echo "$as_me:$LINENO: result: $ac_res" >&5
8388echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008389else
Brian Gaeke0a621332004-09-08 20:38:05 +00008390 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008391{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008394/* confdefs.h. */
8395_ACEOF
8396cat confdefs.h >>conftest.$ac_ext
8397cat >>conftest.$ac_ext <<_ACEOF
8398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008399$ac_includes_default
8400#include <$ac_header>
8401_ACEOF
8402rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008403if { (ac_try="$ac_compile"
8404case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407esac
8408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8417 { (case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
8421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8422 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008423 ac_status=$?
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; } &&
8426 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008427 { (case "(($ac_try" in
8428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8429 *) ac_try_echo=$ac_try;;
8430esac
8431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008433 ac_status=$?
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008436 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008437else
8438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008439sed 's/^/| /' conftest.$ac_ext >&5
8440
Reid Spencera773bd52006-08-04 18:18:08 +00008441 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008442fi
Reid Spencera773bd52006-08-04 18:18:08 +00008443
8444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8445{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8446echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008447
8448# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008449{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008451cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457#include <$ac_header>
8458_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008459if { (ac_try="$ac_cpp conftest.$ac_ext"
8460case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463esac
8464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } >/dev/null; then
8472 if test -s conftest.err; then
8473 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008475 else
8476 ac_cpp_err=
8477 fi
8478else
8479 ac_cpp_err=yes
8480fi
8481if test -z "$ac_cpp_err"; then
8482 ac_header_preproc=yes
8483else
8484 echo "$as_me: failed program was:" >&5
8485sed 's/^/| /' conftest.$ac_ext >&5
8486
8487 ac_header_preproc=no
8488fi
Reid Spencera773bd52006-08-04 18:18:08 +00008489
Brian Gaeke0a621332004-09-08 20:38:05 +00008490rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008491{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8492echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008493
8494# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008495case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8496 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8498echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8500echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8501 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008502 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008503 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8505echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8507echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8509echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8511echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8513echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8515echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008516 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008517## ----------------------------------- ##
8518## Report this to llvmbugs@cs.uiuc.edu ##
8519## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008520_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008521 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008522 ;;
8523esac
Reid Spencera773bd52006-08-04 18:18:08 +00008524{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008527 echo $ECHO_N "(cached) $ECHO_C" >&6
8528else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008529 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008530fi
Reid Spencera773bd52006-08-04 18:18:08 +00008531ac_res=`eval echo '${'$as_ac_Header'}'`
8532 { echo "$as_me:$LINENO: result: $ac_res" >&5
8533echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008534
8535fi
John Criswell7a73b802003-06-30 21:59:07 +00008536if test `eval echo '${'$as_ac_Header'}'` = yes; then
8537 cat >>confdefs.h <<_ACEOF
8538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8539_ACEOF
8540
8541fi
8542
8543done
8544
Reid Spencera773bd52006-08-04 18:18:08 +00008545# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008546if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008547 enableval=$enable_ltdl_install;
8548fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008549
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008550
8551
8552
8553if test x"${enable_ltdl_install-no}" != xno; then
8554 INSTALL_LTDL_TRUE=
8555 INSTALL_LTDL_FALSE='#'
8556else
8557 INSTALL_LTDL_TRUE='#'
8558 INSTALL_LTDL_FALSE=
8559fi
8560
8561
8562
8563if test x"${enable_ltdl_convenience-no}" != xno; then
8564 CONVENIENCE_LTDL_TRUE=
8565 CONVENIENCE_LTDL_FALSE='#'
8566else
8567 CONVENIENCE_LTDL_TRUE='#'
8568 CONVENIENCE_LTDL_FALSE=
8569fi
8570
8571
Reid Spencera773bd52006-08-04 18:18:08 +00008572{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8573echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008574library_names_spec=
8575libname_spec='lib$name'
8576soname_spec=
8577shrext_cmds=".so"
8578postinstall_cmds=
8579postuninstall_cmds=
8580finish_cmds=
8581finish_eval=
8582shlibpath_var=
8583shlibpath_overrides_runpath=unknown
8584version_type=none
8585dynamic_linker="$host_os ld.so"
8586sys_lib_dlsearch_path_spec="/lib /usr/lib"
8587if test "$GCC" = yes; then
8588 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8589 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8590 # if the path contains ";" then we assume it to be the separator
8591 # otherwise default to the standard path separator (i.e. ":") - it is
8592 # assumed that no part of a normal pathname contains ";" but that should
8593 # okay in the real world where ";" in dirpaths is itself problematic.
8594 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8595 else
8596 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8597 fi
8598else
8599 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8600fi
8601need_lib_prefix=unknown
8602hardcode_into_libs=no
8603
8604# when you set need_version to no, make sure it does not cause -set_version
8605# flags to be left without arguments
8606need_version=unknown
8607
8608case $host_os in
8609aix3*)
8610 version_type=linux
8611 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8612 shlibpath_var=LIBPATH
8613
8614 # AIX 3 has no versioning support, so we append a major version to the name.
8615 soname_spec='${libname}${release}${shared_ext}$major'
8616 ;;
8617
8618aix4* | aix5*)
8619 version_type=linux
8620 need_lib_prefix=no
8621 need_version=no
8622 hardcode_into_libs=yes
8623 if test "$host_cpu" = ia64; then
8624 # AIX 5 supports IA64
8625 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8626 shlibpath_var=LD_LIBRARY_PATH
8627 else
8628 # With GCC up to 2.95.x, collect2 would create an import file
8629 # for dependence libraries. The import file would start with
8630 # the line `#! .'. This would cause the generated library to
8631 # depend on `.', always an invalid library. This was fixed in
8632 # development snapshots of GCC prior to 3.0.
8633 case $host_os in
8634 aix4 | aix4.[01] | aix4.[01].*)
8635 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8636 echo ' yes '
8637 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8638 :
8639 else
8640 can_build_shared=no
8641 fi
8642 ;;
8643 esac
8644 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8645 # soname into executable. Probably we can add versioning support to
8646 # collect2, so additional links can be useful in future.
8647 if test "$aix_use_runtimelinking" = yes; then
8648 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8649 # instead of lib<name>.a to let people know that these are not
8650 # typical AIX shared libraries.
8651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8652 else
8653 # We preserve .a as extension for shared libraries through AIX4.2
8654 # and later when we are not doing run time linking.
8655 library_names_spec='${libname}${release}.a $libname.a'
8656 soname_spec='${libname}${release}${shared_ext}$major'
8657 fi
8658 shlibpath_var=LIBPATH
8659 fi
8660 ;;
8661
8662amigaos*)
8663 library_names_spec='$libname.ixlibrary $libname.a'
8664 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8665 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'
8666 ;;
8667
8668beos*)
8669 library_names_spec='${libname}${shared_ext}'
8670 dynamic_linker="$host_os ld.so"
8671 shlibpath_var=LIBRARY_PATH
8672 ;;
8673
8674bsdi[45]*)
8675 version_type=linux
8676 need_version=no
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8680 shlibpath_var=LD_LIBRARY_PATH
8681 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8682 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8683 # the default ld.so.conf also contains /usr/contrib/lib and
8684 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8685 # libtool to hard-code these into programs
8686 ;;
8687
8688cygwin* | mingw* | pw32*)
8689 version_type=windows
8690 shrext_cmds=".dll"
8691 need_version=no
8692 need_lib_prefix=no
8693
8694 case $GCC,$host_os in
8695 yes,cygwin* | yes,mingw* | yes,pw32*)
8696 library_names_spec='$libname.dll.a'
8697 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8698 postinstall_cmds='base_file=`basename \${file}`~
8699 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8700 dldir=$destdir/`dirname \$dlpath`~
8701 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008702 $install_prog $dir/$dlname \$dldir/$dlname~
8703 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008704 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8705 dlpath=$dir/\$dldll~
8706 $rm \$dlpath'
8707 shlibpath_overrides_runpath=yes
8708
8709 case $host_os in
8710 cygwin*)
8711 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8712 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8713 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8714 ;;
8715 mingw*)
8716 # MinGW DLLs use traditional 'lib' prefix
8717 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8718 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8719 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8720 # It is most probably a Windows format PATH printed by
8721 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8722 # path with ; separators, and with drive letters. We can handle the
8723 # drive letters (cygwin fileutils understands them), so leave them,
8724 # especially as we might pass files found there to a mingw objdump,
8725 # which wouldn't understand a cygwinified path. Ahh.
8726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8727 else
8728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8729 fi
8730 ;;
8731 pw32*)
8732 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008733 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 +00008734 ;;
8735 esac
8736 ;;
8737
8738 *)
8739 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8740 ;;
8741 esac
8742 dynamic_linker='Win32 ld.exe'
8743 # FIXME: first we should search . and the directory the executable is in
8744 shlibpath_var=PATH
8745 ;;
8746
8747darwin* | rhapsody*)
8748 dynamic_linker="$host_os dyld"
8749 version_type=darwin
8750 need_lib_prefix=no
8751 need_version=no
8752 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8753 soname_spec='${libname}${release}${major}$shared_ext'
8754 shlibpath_overrides_runpath=yes
8755 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008756 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008757 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8758 if test "$GCC" = yes; then
8759 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"`
8760 else
8761 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8762 fi
8763 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8764 ;;
8765
8766dgux*)
8767 version_type=linux
8768 need_lib_prefix=no
8769 need_version=no
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 ;;
8774
8775freebsd1*)
8776 dynamic_linker=no
8777 ;;
8778
8779kfreebsd*-gnu)
8780 version_type=linux
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 shlibpath_overrides_runpath=no
8787 hardcode_into_libs=yes
8788 dynamic_linker='GNU ld.so'
8789 ;;
8790
Reid Spencera773bd52006-08-04 18:18:08 +00008791freebsd* | dragonfly*)
8792 # DragonFly does not have aout. When/if they implement a new
8793 # versioning mechanism, adjust this.
8794 if test -x /usr/bin/objformat; then
8795 objformat=`/usr/bin/objformat`
8796 else
8797 case $host_os in
8798 freebsd[123]*) objformat=aout ;;
8799 *) objformat=elf ;;
8800 esac
8801 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008802 version_type=freebsd-$objformat
8803 case $version_type in
8804 freebsd-elf*)
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8806 need_version=no
8807 need_lib_prefix=no
8808 ;;
8809 freebsd-*)
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8811 need_version=yes
8812 ;;
8813 esac
8814 shlibpath_var=LD_LIBRARY_PATH
8815 case $host_os in
8816 freebsd2*)
8817 shlibpath_overrides_runpath=yes
8818 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008819 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008820 shlibpath_overrides_runpath=yes
8821 hardcode_into_libs=yes
8822 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008823 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8824 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008825 shlibpath_overrides_runpath=no
8826 hardcode_into_libs=yes
8827 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008828 freebsd*) # from 4.6 on
8829 shlibpath_overrides_runpath=yes
8830 hardcode_into_libs=yes
8831 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008832 esac
8833 ;;
8834
8835gnu*)
8836 version_type=linux
8837 need_lib_prefix=no
8838 need_version=no
8839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8840 soname_spec='${libname}${release}${shared_ext}$major'
8841 shlibpath_var=LD_LIBRARY_PATH
8842 hardcode_into_libs=yes
8843 ;;
8844
8845hpux9* | hpux10* | hpux11*)
8846 # Give a soname corresponding to the major version so that dld.sl refuses to
8847 # link against other versions.
8848 version_type=sunos
8849 need_lib_prefix=no
8850 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008851 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008852 ia64*)
8853 shrext_cmds='.so'
8854 hardcode_into_libs=yes
8855 dynamic_linker="$host_os dld.so"
8856 shlibpath_var=LD_LIBRARY_PATH
8857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 if test "X$HPUX_IA64_MODE" = X32; then
8861 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8862 else
8863 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8864 fi
8865 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 ;;
8867 hppa*64*)
8868 shrext_cmds='.sl'
8869 hardcode_into_libs=yes
8870 dynamic_linker="$host_os dld.sl"
8871 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
8875 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8876 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8877 ;;
8878 *)
8879 shrext_cmds='.sl'
8880 dynamic_linker="$host_os dld.sl"
8881 shlibpath_var=SHLIB_PATH
8882 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
8885 ;;
8886 esac
8887 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8888 postinstall_cmds='chmod 555 $lib'
8889 ;;
8890
Reid Spencera773bd52006-08-04 18:18:08 +00008891interix3*)
8892 version_type=linux
8893 need_lib_prefix=no
8894 need_version=no
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8898 shlibpath_var=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath=no
8900 hardcode_into_libs=yes
8901 ;;
8902
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008903irix5* | irix6* | nonstopux*)
8904 case $host_os in
8905 nonstopux*) version_type=nonstopux ;;
8906 *)
8907 if test "$lt_cv_prog_gnu_ld" = yes; then
8908 version_type=linux
8909 else
8910 version_type=irix
8911 fi ;;
8912 esac
8913 need_lib_prefix=no
8914 need_version=no
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8917 case $host_os in
8918 irix5* | nonstopux*)
8919 libsuff= shlibsuff=
8920 ;;
8921 *)
8922 case $LD in # libtool.m4 will add one of these switches to LD
8923 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8924 libsuff= shlibsuff= libmagic=32-bit;;
8925 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8926 libsuff=32 shlibsuff=N32 libmagic=N32;;
8927 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8928 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8929 *) libsuff= shlibsuff= libmagic=never-match;;
8930 esac
8931 ;;
8932 esac
8933 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8934 shlibpath_overrides_runpath=no
8935 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8936 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8937 hardcode_into_libs=yes
8938 ;;
8939
8940# No shared lib support for Linux oldld, aout, or coff.
8941linux*oldld* | linux*aout* | linux*coff*)
8942 dynamic_linker=no
8943 ;;
8944
8945# This must be Linux ELF.
8946linux*)
8947 version_type=linux
8948 need_lib_prefix=no
8949 need_version=no
8950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951 soname_spec='${libname}${release}${shared_ext}$major'
8952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 # This implies no fast_install, which is unacceptable.
8956 # Some rework will be needed to allow for fast_install
8957 # before this can be enabled.
8958 hardcode_into_libs=yes
8959
8960 # Append ld.so.conf contents to the search path
8961 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008962 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 +00008963 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8964 fi
8965
8966 # We used to test for /lib/ld.so.1 and disable shared libraries on
8967 # powerpc, because MkLinux only supported shared libraries with the
8968 # GNU dynamic linker. Since this was broken with cross compilers,
8969 # most powerpc-linux boxes support dynamic linking these days and
8970 # people can always --disable-shared, the test was removed, and we
8971 # assume the GNU/Linux dynamic linker is in use.
8972 dynamic_linker='GNU/Linux ld.so'
8973 ;;
8974
8975knetbsd*-gnu)
8976 version_type=linux
8977 need_lib_prefix=no
8978 need_version=no
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=no
8983 hardcode_into_libs=yes
8984 dynamic_linker='GNU ld.so'
8985 ;;
8986
8987netbsd*)
8988 version_type=sunos
8989 need_lib_prefix=no
8990 need_version=no
8991 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8994 dynamic_linker='NetBSD (a.out) ld.so'
8995 else
8996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8997 soname_spec='${libname}${release}${shared_ext}$major'
8998 dynamic_linker='NetBSD ld.elf_so'
8999 fi
9000 shlibpath_var=LD_LIBRARY_PATH
9001 shlibpath_overrides_runpath=yes
9002 hardcode_into_libs=yes
9003 ;;
9004
9005newsos6)
9006 version_type=linux
9007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9008 shlibpath_var=LD_LIBRARY_PATH
9009 shlibpath_overrides_runpath=yes
9010 ;;
9011
9012nto-qnx*)
9013 version_type=linux
9014 need_lib_prefix=no
9015 need_version=no
9016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017 soname_spec='${libname}${release}${shared_ext}$major'
9018 shlibpath_var=LD_LIBRARY_PATH
9019 shlibpath_overrides_runpath=yes
9020 ;;
9021
9022openbsd*)
9023 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00009024 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009025 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00009026 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9027 case $host_os in
9028 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9029 *) need_version=no ;;
9030 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9032 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9033 shlibpath_var=LD_LIBRARY_PATH
9034 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9035 case $host_os in
9036 openbsd2.[89] | openbsd2.[89].*)
9037 shlibpath_overrides_runpath=no
9038 ;;
9039 *)
9040 shlibpath_overrides_runpath=yes
9041 ;;
9042 esac
9043 else
9044 shlibpath_overrides_runpath=yes
9045 fi
9046 ;;
9047
9048os2*)
9049 libname_spec='$name'
9050 shrext_cmds=".dll"
9051 need_lib_prefix=no
9052 library_names_spec='$libname${shared_ext} $libname.a'
9053 dynamic_linker='OS/2 ld.exe'
9054 shlibpath_var=LIBPATH
9055 ;;
9056
9057osf3* | osf4* | osf5*)
9058 version_type=osf
9059 need_lib_prefix=no
9060 need_version=no
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9063 shlibpath_var=LD_LIBRARY_PATH
9064 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9065 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9066 ;;
9067
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009068solaris*)
9069 version_type=linux
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath=yes
9076 hardcode_into_libs=yes
9077 # ldd complains unless libraries are executable
9078 postinstall_cmds='chmod +x $lib'
9079 ;;
9080
9081sunos4*)
9082 version_type=sunos
9083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9084 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 shlibpath_overrides_runpath=yes
9087 if test "$with_gnu_ld" = yes; then
9088 need_lib_prefix=no
9089 fi
9090 need_version=yes
9091 ;;
9092
Reid Spencera773bd52006-08-04 18:18:08 +00009093sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009094 version_type=linux
9095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9096 soname_spec='${libname}${release}${shared_ext}$major'
9097 shlibpath_var=LD_LIBRARY_PATH
9098 case $host_vendor in
9099 sni)
9100 shlibpath_overrides_runpath=no
9101 need_lib_prefix=no
9102 export_dynamic_flag_spec='${wl}-Blargedynsym'
9103 runpath_var=LD_RUN_PATH
9104 ;;
9105 siemens)
9106 need_lib_prefix=no
9107 ;;
9108 motorola)
9109 need_lib_prefix=no
9110 need_version=no
9111 shlibpath_overrides_runpath=no
9112 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9113 ;;
9114 esac
9115 ;;
9116
9117sysv4*MP*)
9118 if test -d /usr/nec ;then
9119 version_type=linux
9120 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9121 soname_spec='$libname${shared_ext}.$major'
9122 shlibpath_var=LD_LIBRARY_PATH
9123 fi
9124 ;;
9125
Reid Spencera773bd52006-08-04 18:18:08 +00009126sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9127 version_type=freebsd-elf
9128 need_lib_prefix=no
9129 need_version=no
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 hardcode_into_libs=yes
9134 if test "$with_gnu_ld" = yes; then
9135 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9136 shlibpath_overrides_runpath=no
9137 else
9138 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9139 shlibpath_overrides_runpath=yes
9140 case $host_os in
9141 sco3.2v5*)
9142 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9143 ;;
9144 esac
9145 fi
9146 sys_lib_dlsearch_path_spec='/usr/lib'
9147 ;;
9148
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009149uts4*)
9150 version_type=linux
9151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9152 soname_spec='${libname}${release}${shared_ext}$major'
9153 shlibpath_var=LD_LIBRARY_PATH
9154 ;;
9155
9156*)
9157 dynamic_linker=no
9158 ;;
9159esac
Reid Spencera773bd52006-08-04 18:18:08 +00009160{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9161echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009162test "$dynamic_linker" = no && can_build_shared=no
9163
Reid Spencera773bd52006-08-04 18:18:08 +00009164variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9165if test "$GCC" = yes; then
9166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009168
Reid Spencera773bd52006-08-04 18:18:08 +00009169
9170{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9171echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172if test "${libltdl_cv_shlibext+set}" = set; then
9173 echo $ECHO_N "(cached) $ECHO_C" >&6
9174else
9175
9176module=yes
9177eval libltdl_cv_shlibext=$shrext_cmds
9178
9179fi
Reid Spencera773bd52006-08-04 18:18:08 +00009180{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9181echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009182if test -n "$libltdl_cv_shlibext"; then
9183
9184cat >>confdefs.h <<_ACEOF
9185#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9186_ACEOF
9187
9188fi
9189
9190
Reid Spencera773bd52006-08-04 18:18:08 +00009191{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9192echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009193if test "${libltdl_cv_shlibpath_var+set}" = set; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9195else
9196 libltdl_cv_shlibpath_var="$shlibpath_var"
9197fi
Reid Spencera773bd52006-08-04 18:18:08 +00009198{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9199echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009200if test -n "$libltdl_cv_shlibpath_var"; then
9201
9202cat >>confdefs.h <<_ACEOF
9203#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9204_ACEOF
9205
9206fi
9207
9208
Reid Spencera773bd52006-08-04 18:18:08 +00009209{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9210echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009211if test "${libltdl_cv_sys_search_path+set}" = set; then
9212 echo $ECHO_N "(cached) $ECHO_C" >&6
9213else
9214 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9215fi
Reid Spencera773bd52006-08-04 18:18:08 +00009216{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9217echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009218if test -n "$libltdl_cv_sys_search_path"; then
9219 sys_search_path=
9220 for dir in $libltdl_cv_sys_search_path; do
9221 if test -z "$sys_search_path"; then
9222 sys_search_path="$dir"
9223 else
9224 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9225 fi
9226 done
9227
9228cat >>confdefs.h <<_ACEOF
9229#define LTDL_SYSSEARCHPATH "$sys_search_path"
9230_ACEOF
9231
9232fi
9233
Reid Spencera773bd52006-08-04 18:18:08 +00009234{ echo "$as_me:$LINENO: checking for objdir" >&5
9235echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009236if test "${libltdl_cv_objdir+set}" = set; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238else
9239 libltdl_cv_objdir="$objdir"
9240 if test -n "$objdir"; then
9241 :
9242 else
9243 rm -f .libs 2>/dev/null
9244 mkdir .libs 2>/dev/null
9245 if test -d .libs; then
9246 libltdl_cv_objdir=.libs
9247 else
9248 # MS-DOS does not allow filenames that begin with a dot.
9249 libltdl_cv_objdir=_libs
9250 fi
9251 rmdir .libs 2>/dev/null
9252 fi
9253
9254fi
Reid Spencera773bd52006-08-04 18:18:08 +00009255{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9256echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009257
9258cat >>confdefs.h <<_ACEOF
9259#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9260_ACEOF
9261
9262
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009263
9264
9265
9266
9267# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009268{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9269echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009270if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9271 echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273
9274# These are sane defaults that work on at least a few old systems.
9275# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9276
9277# Character class describing NM global symbol codes.
9278symcode='[BCDEGRST]'
9279
9280# Regexp to match symbols that can be accessed directly from C.
9281sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9282
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009283# Transform an extracted symbol line into a proper C declaration
9284lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9285
9286# Transform an extracted symbol line into symbol name and symbol address
9287lt_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'"
9288
9289# Define system-specific variables.
9290case $host_os in
9291aix*)
9292 symcode='[BCDT]'
9293 ;;
9294cygwin* | mingw* | pw32*)
9295 symcode='[ABCDGISTW]'
9296 ;;
9297hpux*) # Its linker distinguishes data from code symbols
9298 if test "$host_cpu" = ia64; then
9299 symcode='[ABCDEGRST]'
9300 fi
9301 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9302 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'"
9303 ;;
9304linux*)
9305 if test "$host_cpu" = ia64; then
9306 symcode='[ABCDGIRSTW]'
9307 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9308 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'"
9309 fi
9310 ;;
9311irix* | nonstopux*)
9312 symcode='[BCDEGRST]'
9313 ;;
9314osf*)
9315 symcode='[BCDEGQRST]'
9316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009317solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009318 symcode='[BDRT]'
9319 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009320sco3.2v5*)
9321 symcode='[DT]'
9322 ;;
9323sysv4.2uw2*)
9324 symcode='[DT]'
9325 ;;
9326sysv5* | sco5v6* | unixware* | OpenUNIX*)
9327 symcode='[ABDT]'
9328 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009329sysv4)
9330 symcode='[DFNSTU]'
9331 ;;
9332esac
9333
9334# Handle CRLF in mingw tool chain
9335opt_cr=
9336case $build_os in
9337mingw*)
9338 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9339 ;;
9340esac
9341
9342# If we're using GNU nm, then use its standard symbol codes.
9343case `$NM -V 2>&1` in
9344*GNU* | *'with BFD'*)
9345 symcode='[ABCDGIRSTW]' ;;
9346esac
9347
9348# Try without a prefix undercore, then with it.
9349for ac_symprfx in "" "_"; do
9350
Reid Spencera773bd52006-08-04 18:18:08 +00009351 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9352 symxfrm="\\1 $ac_symprfx\\2 \\2"
9353
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009354 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009355 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 +00009356
9357 # Check to see that the pipe works correctly.
9358 pipe_works=no
9359
9360 rm -f conftest*
9361 cat > conftest.$ac_ext <<EOF
9362#ifdef __cplusplus
9363extern "C" {
9364#endif
9365char nm_test_var;
9366void nm_test_func(){}
9367#ifdef __cplusplus
9368}
9369#endif
9370int main(){nm_test_var='a';nm_test_func();return(0);}
9371EOF
9372
9373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9374 (eval $ac_compile) 2>&5
9375 ac_status=$?
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); }; then
9378 # Now try to grab the symbols.
9379 nlist=conftest.nm
9380 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9381 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9382 ac_status=$?
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && test -s "$nlist"; then
9385 # Try sorting and uniquifying the output.
9386 if sort "$nlist" | uniq > "$nlist"T; then
9387 mv -f "$nlist"T "$nlist"
9388 else
9389 rm -f "$nlist"T
9390 fi
9391
9392 # Make sure that we snagged all the symbols we need.
9393 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9394 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9395 cat <<EOF > conftest.$ac_ext
9396#ifdef __cplusplus
9397extern "C" {
9398#endif
9399
9400EOF
9401 # Now generate the symbol file.
9402 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9403
9404 cat <<EOF >> conftest.$ac_ext
9405#if defined (__STDC__) && __STDC__
9406# define lt_ptr_t void *
9407#else
9408# define lt_ptr_t char *
9409# define const
9410#endif
9411
9412/* The mapping between symbol names and symbols. */
9413const struct {
9414 const char *name;
9415 lt_ptr_t address;
9416}
9417lt_preloaded_symbols[] =
9418{
9419EOF
9420 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9421 cat <<\EOF >> conftest.$ac_ext
9422 {0, (lt_ptr_t) 0}
9423};
9424
9425#ifdef __cplusplus
9426}
9427#endif
9428EOF
9429 # Now try linking the two files.
9430 mv conftest.$ac_objext conftstm.$ac_objext
9431 lt_save_LIBS="$LIBS"
9432 lt_save_CFLAGS="$CFLAGS"
9433 LIBS="conftstm.$ac_objext"
9434 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9440 pipe_works=yes
9441 fi
9442 LIBS="$lt_save_LIBS"
9443 CFLAGS="$lt_save_CFLAGS"
9444 else
9445 echo "cannot find nm_test_func in $nlist" >&5
9446 fi
9447 else
9448 echo "cannot find nm_test_var in $nlist" >&5
9449 fi
9450 else
9451 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9452 fi
9453 else
9454 echo "$progname: failed program was:" >&5
9455 cat conftest.$ac_ext >&5
9456 fi
9457 rm -f conftest* conftst*
9458
9459 # Do not use the global_symbol_pipe unless it works.
9460 if test "$pipe_works" = yes; then
9461 break
9462 else
9463 lt_cv_sys_global_symbol_pipe=
9464 fi
9465done
9466
9467fi
9468
9469if test -z "$lt_cv_sys_global_symbol_pipe"; then
9470 lt_cv_sys_global_symbol_to_cdecl=
9471fi
9472if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009473 { echo "$as_me:$LINENO: result: failed" >&5
9474echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009475else
Reid Spencera773bd52006-08-04 18:18:08 +00009476 { echo "$as_me:$LINENO: result: ok" >&5
9477echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009478fi
9479
9480
Reid Spencera773bd52006-08-04 18:18:08 +00009481{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9482echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009483if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9485else
9486 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9487 libltdl_cv_preloaded_symbols=yes
9488 else
9489 libltdl_cv_preloaded_symbols=no
9490 fi
9491
9492fi
Reid Spencera773bd52006-08-04 18:18:08 +00009493{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9494echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009495if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9496
9497cat >>confdefs.h <<\_ACEOF
9498#define HAVE_PRELOADED_SYMBOLS 1
9499_ACEOF
9500
9501fi
9502
9503LIBADD_DL=
9504
9505ac_ext=c
9506ac_cpp='$CPP $CPPFLAGS'
9507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9509ac_compiler_gnu=$ac_cv_c_compiler_gnu
9510
9511
Reid Spencera773bd52006-08-04 18:18:08 +00009512{ echo "$as_me:$LINENO: checking for shl_load" >&5
9513echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009514if test "${ac_cv_func_shl_load+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9516else
9517 cat >conftest.$ac_ext <<_ACEOF
9518/* confdefs.h. */
9519_ACEOF
9520cat confdefs.h >>conftest.$ac_ext
9521cat >>conftest.$ac_ext <<_ACEOF
9522/* end confdefs.h. */
9523/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9525#define shl_load innocuous_shl_load
9526
9527/* System header to define __stub macros and hopefully few prototypes,
9528 which can conflict with char shl_load (); below.
9529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9530 <limits.h> exists even on freestanding compilers. */
9531
9532#ifdef __STDC__
9533# include <limits.h>
9534#else
9535# include <assert.h>
9536#endif
9537
9538#undef shl_load
9539
Reid Spencera773bd52006-08-04 18:18:08 +00009540/* Override any GCC internal prototype to avoid an error.
9541 Use char because int might match the return type of a GCC
9542 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009543#ifdef __cplusplus
9544extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009545#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009546char shl_load ();
9547/* The GNU C library defines this for functions which it implements
9548 to always fail with ENOSYS. Some functions are actually named
9549 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009550#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009551choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009552#endif
9553
9554int
9555main ()
9556{
Reid Spencera773bd52006-08-04 18:18:08 +00009557return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009558 ;
9559 return 0;
9560}
9561_ACEOF
9562rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009563if { (ac_try="$ac_link"
9564case "(($ac_try" in
9565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9566 *) ac_try_echo=$ac_try;;
9567esac
9568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9569 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009570 ac_status=$?
9571 grep -v '^ *+' conftest.er1 >conftest.err
9572 rm -f conftest.er1
9573 cat conftest.err >&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580esac
9581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009583 ac_status=$?
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; } &&
9586 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009587 { (case "(($ac_try" in
9588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589 *) ac_try_echo=$ac_try;;
9590esac
9591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9592 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009593 ac_status=$?
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; }; then
9596 ac_cv_func_shl_load=yes
9597else
9598 echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
Reid Spencera773bd52006-08-04 18:18:08 +00009601 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009602fi
Reid Spencera773bd52006-08-04 18:18:08 +00009603
9604rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605 conftest$ac_exeext conftest.$ac_ext
9606fi
Reid Spencera773bd52006-08-04 18:18:08 +00009607{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9608echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009609if test $ac_cv_func_shl_load = yes; then
9610
9611cat >>confdefs.h <<\_ACEOF
9612#define HAVE_SHL_LOAD 1
9613_ACEOF
9614
9615else
Reid Spencera773bd52006-08-04 18:18:08 +00009616 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9617echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009618if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9620else
9621 ac_check_lib_save_LIBS=$LIBS
9622LIBS="-ldld $LIBS"
9623cat >conftest.$ac_ext <<_ACEOF
9624/* confdefs.h. */
9625_ACEOF
9626cat confdefs.h >>conftest.$ac_ext
9627cat >>conftest.$ac_ext <<_ACEOF
9628/* end confdefs.h. */
9629
Reid Spencera773bd52006-08-04 18:18:08 +00009630/* Override any GCC internal prototype to avoid an error.
9631 Use char because int might match the return type of a GCC
9632 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009633#ifdef __cplusplus
9634extern "C"
9635#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009636char shl_load ();
9637int
9638main ()
9639{
Reid Spencera773bd52006-08-04 18:18:08 +00009640return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009641 ;
9642 return 0;
9643}
9644_ACEOF
9645rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009646if { (ac_try="$ac_link"
9647case "(($ac_try" in
9648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9649 *) ac_try_echo=$ac_try;;
9650esac
9651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9652 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9660 { (case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663esac
9664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; } &&
9669 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009670 { (case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009676 ac_status=$?
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); }; }; then
9679 ac_cv_lib_dld_shl_load=yes
9680else
9681 echo "$as_me: failed program was:" >&5
9682sed 's/^/| /' conftest.$ac_ext >&5
9683
Reid Spencera773bd52006-08-04 18:18:08 +00009684 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009685fi
Reid Spencera773bd52006-08-04 18:18:08 +00009686
9687rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009688 conftest$ac_exeext conftest.$ac_ext
9689LIBS=$ac_check_lib_save_LIBS
9690fi
Reid Spencera773bd52006-08-04 18:18:08 +00009691{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9692echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693if test $ac_cv_lib_dld_shl_load = yes; then
9694
9695cat >>confdefs.h <<\_ACEOF
9696#define HAVE_SHL_LOAD 1
9697_ACEOF
9698
9699 LIBADD_DL="$LIBADD_DL -ldld"
9700else
Reid Spencera773bd52006-08-04 18:18:08 +00009701 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9704 echo $ECHO_N "(cached) $ECHO_C" >&6
9705else
9706 ac_check_lib_save_LIBS=$LIBS
9707LIBS="-ldl $LIBS"
9708cat >conftest.$ac_ext <<_ACEOF
9709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
9714
Reid Spencera773bd52006-08-04 18:18:08 +00009715/* Override any GCC internal prototype to avoid an error.
9716 Use char because int might match the return type of a GCC
9717 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009718#ifdef __cplusplus
9719extern "C"
9720#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009721char dlopen ();
9722int
9723main ()
9724{
Reid Spencera773bd52006-08-04 18:18:08 +00009725return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009726 ;
9727 return 0;
9728}
9729_ACEOF
9730rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009731if { (ac_try="$ac_link"
9732case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735esac
9736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9748esac
9749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; } &&
9754 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009755 { (case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
9759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9760 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009761 ac_status=$?
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 ac_cv_lib_dl_dlopen=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
Reid Spencera773bd52006-08-04 18:18:08 +00009769 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009770fi
Reid Spencera773bd52006-08-04 18:18:08 +00009771
9772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009773 conftest$ac_exeext conftest.$ac_ext
9774LIBS=$ac_check_lib_save_LIBS
9775fi
Reid Spencera773bd52006-08-04 18:18:08 +00009776{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009778if test $ac_cv_lib_dl_dlopen = yes; then
9779
9780cat >>confdefs.h <<\_ACEOF
9781#define HAVE_LIBDL 1
9782_ACEOF
9783
9784 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9785else
9786 cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792#if HAVE_DLFCN_H
9793# include <dlfcn.h>
9794#endif
9795
9796int
9797main ()
9798{
9799dlopen(0, 0);
9800 ;
9801 return 0;
9802}
9803_ACEOF
9804rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009805if { (ac_try="$ac_link"
9806case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
9810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9822esac
9823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009825 ac_status=$?
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9832esac
9833eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009835 ac_status=$?
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838
9839cat >>confdefs.h <<\_ACEOF
9840#define HAVE_LIBDL 1
9841_ACEOF
9842 libltdl_cv_func_dlopen="yes"
9843else
9844 echo "$as_me: failed program was:" >&5
9845sed 's/^/| /' conftest.$ac_ext >&5
9846
Reid Spencera773bd52006-08-04 18:18:08 +00009847 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9848echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009849if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
9852 ac_check_lib_save_LIBS=$LIBS
9853LIBS="-lsvld $LIBS"
9854cat >conftest.$ac_ext <<_ACEOF
9855/* confdefs.h. */
9856_ACEOF
9857cat confdefs.h >>conftest.$ac_ext
9858cat >>conftest.$ac_ext <<_ACEOF
9859/* end confdefs.h. */
9860
Reid Spencera773bd52006-08-04 18:18:08 +00009861/* Override any GCC internal prototype to avoid an error.
9862 Use char because int might match the return type of a GCC
9863 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009864#ifdef __cplusplus
9865extern "C"
9866#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009867char dlopen ();
9868int
9869main ()
9870{
Reid Spencera773bd52006-08-04 18:18:08 +00009871return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009872 ;
9873 return 0;
9874}
9875_ACEOF
9876rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009877if { (ac_try="$ac_link"
9878case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881esac
9882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9891 { (case "(($ac_try" in
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9894esac
9895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009897 ac_status=$?
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); }; } &&
9900 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009901 { (case "(($ac_try" in
9902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903 *) ac_try_echo=$ac_try;;
9904esac
9905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; }; then
9910 ac_cv_lib_svld_dlopen=yes
9911else
9912 echo "$as_me: failed program was:" >&5
9913sed 's/^/| /' conftest.$ac_ext >&5
9914
Reid Spencera773bd52006-08-04 18:18:08 +00009915 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009916fi
Reid Spencera773bd52006-08-04 18:18:08 +00009917
9918rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009919 conftest$ac_exeext conftest.$ac_ext
9920LIBS=$ac_check_lib_save_LIBS
9921fi
Reid Spencera773bd52006-08-04 18:18:08 +00009922{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9923echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924if test $ac_cv_lib_svld_dlopen = yes; then
9925
9926cat >>confdefs.h <<\_ACEOF
9927#define HAVE_LIBDL 1
9928_ACEOF
9929
9930 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9931else
Reid Spencera773bd52006-08-04 18:18:08 +00009932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9933echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009934if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9936else
9937 ac_check_lib_save_LIBS=$LIBS
9938LIBS="-ldld $LIBS"
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945
Reid Spencera773bd52006-08-04 18:18:08 +00009946/* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009949#ifdef __cplusplus
9950extern "C"
9951#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009952char dld_link ();
9953int
9954main ()
9955{
Reid Spencera773bd52006-08-04 18:18:08 +00009956return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009957 ;
9958 return 0;
9959}
9960_ACEOF
9961rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009962if { (ac_try="$ac_link"
9963case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966esac
9967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009969 ac_status=$?
9970 grep -v '^ *+' conftest.er1 >conftest.err
9971 rm -f conftest.er1
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9979esac
9980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; } &&
9985 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009986 { (case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989esac
9990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009992 ac_status=$?
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 ac_cv_lib_dld_dld_link=yes
9996else
9997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
9999
Reid Spencera773bd52006-08-04 18:18:08 +000010000 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010001fi
Reid Spencera773bd52006-08-04 18:18:08 +000010002
10003rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010004 conftest$ac_exeext conftest.$ac_ext
10005LIBS=$ac_check_lib_save_LIBS
10006fi
Reid Spencera773bd52006-08-04 18:18:08 +000010007{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10008echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010009if test $ac_cv_lib_dld_dld_link = yes; then
10010
10011cat >>confdefs.h <<\_ACEOF
10012#define HAVE_DLD 1
10013_ACEOF
10014
10015 LIBADD_DL="$LIBADD_DL -ldld"
10016else
Reid Spencera773bd52006-08-04 18:18:08 +000010017 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10018echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010019if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021else
10022 cat >conftest.$ac_ext <<_ACEOF
10023/* confdefs.h. */
10024_ACEOF
10025cat confdefs.h >>conftest.$ac_ext
10026cat >>conftest.$ac_ext <<_ACEOF
10027/* end confdefs.h. */
10028/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030#define _dyld_func_lookup innocuous__dyld_func_lookup
10031
10032/* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char _dyld_func_lookup (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10036
10037#ifdef __STDC__
10038# include <limits.h>
10039#else
10040# include <assert.h>
10041#endif
10042
10043#undef _dyld_func_lookup
10044
Reid Spencera773bd52006-08-04 18:18:08 +000010045/* Override any GCC internal prototype to avoid an error.
10046 Use char because int might match the return type of a GCC
10047 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010048#ifdef __cplusplus
10049extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010050#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010051char _dyld_func_lookup ();
10052/* The GNU C library defines this for functions which it implements
10053 to always fail with ENOSYS. Some functions are actually named
10054 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010055#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010056choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010057#endif
10058
10059int
10060main ()
10061{
Reid Spencera773bd52006-08-04 18:18:08 +000010062return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010063 ;
10064 return 0;
10065}
10066_ACEOF
10067rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010068if { (ac_try="$ac_link"
10069case "(($ac_try" in
10070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10072esac
10073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10082 { (case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10085esac
10086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; } &&
10091 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 ac_cv_func__dyld_func_lookup=yes
10102else
10103 echo "$as_me: failed program was:" >&5
10104sed 's/^/| /' conftest.$ac_ext >&5
10105
Reid Spencera773bd52006-08-04 18:18:08 +000010106 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010107fi
Reid Spencera773bd52006-08-04 18:18:08 +000010108
10109rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010110 conftest$ac_exeext conftest.$ac_ext
10111fi
Reid Spencera773bd52006-08-04 18:18:08 +000010112{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10113echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010114if test $ac_cv_func__dyld_func_lookup = yes; then
10115
10116cat >>confdefs.h <<\_ACEOF
10117#define HAVE_DYLD 1
10118_ACEOF
10119
10120fi
10121
10122
10123fi
10124
10125
10126fi
10127
10128
10129fi
Reid Spencera773bd52006-08-04 18:18:08 +000010130
10131rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010132 conftest$ac_exeext conftest.$ac_ext
10133
10134fi
10135
10136
10137fi
10138
10139
10140fi
10141
10142
10143if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10144then
10145 lt_save_LIBS="$LIBS"
10146 LIBS="$LIBS $LIBADD_DL"
10147
10148for ac_func in dlerror
10149do
10150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010151{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10153if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156 cat >conftest.$ac_ext <<_ACEOF
10157/* confdefs.h. */
10158_ACEOF
10159cat confdefs.h >>conftest.$ac_ext
10160cat >>conftest.$ac_ext <<_ACEOF
10161/* end confdefs.h. */
10162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10164#define $ac_func innocuous_$ac_func
10165
10166/* System header to define __stub macros and hopefully few prototypes,
10167 which can conflict with char $ac_func (); below.
10168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10169 <limits.h> exists even on freestanding compilers. */
10170
10171#ifdef __STDC__
10172# include <limits.h>
10173#else
10174# include <assert.h>
10175#endif
10176
10177#undef $ac_func
10178
Reid Spencera773bd52006-08-04 18:18:08 +000010179/* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010182#ifdef __cplusplus
10183extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010184#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010185char $ac_func ();
10186/* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010189#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010190choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010191#endif
10192
10193int
10194main ()
10195{
Reid Spencera773bd52006-08-04 18:18:08 +000010196return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010197 ;
10198 return 0;
10199}
10200_ACEOF
10201rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010202if { (ac_try="$ac_link"
10203case "(($ac_try" in
10204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205 *) ac_try_echo=$ac_try;;
10206esac
10207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10216 { (case "(($ac_try" in
10217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10219esac
10220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010222 ac_status=$?
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; } &&
10225 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010226 { (case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229esac
10230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10231 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010232 ac_status=$?
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; }; then
10235 eval "$as_ac_var=yes"
10236else
10237 echo "$as_me: failed program was:" >&5
10238sed 's/^/| /' conftest.$ac_ext >&5
10239
Reid Spencera773bd52006-08-04 18:18:08 +000010240 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241fi
Reid Spencera773bd52006-08-04 18:18:08 +000010242
10243rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010244 conftest$ac_exeext conftest.$ac_ext
10245fi
Reid Spencera773bd52006-08-04 18:18:08 +000010246ac_res=`eval echo '${'$as_ac_var'}'`
10247 { echo "$as_me:$LINENO: result: $ac_res" >&5
10248echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010249if test `eval echo '${'$as_ac_var'}'` = yes; then
10250 cat >>confdefs.h <<_ACEOF
10251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10252_ACEOF
10253
10254fi
10255done
10256
10257 LIBS="$lt_save_LIBS"
10258fi
10259ac_ext=c
10260ac_cpp='$CPP $CPPFLAGS'
10261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10263ac_compiler_gnu=$ac_cv_c_compiler_gnu
10264
10265
10266
Reid Spencera773bd52006-08-04 18:18:08 +000010267{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10268echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010269if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271else
10272 ac_cv_sys_symbol_underscore=no
10273 cat > conftest.$ac_ext <<EOF
10274void nm_test_func(){}
10275int main(){nm_test_func;return 0;}
10276EOF
10277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 # Now try to grab the symbols.
10283 ac_nlist=conftest.nm
10284 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10285 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10286 ac_status=$?
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s "$ac_nlist"; then
10289 # See whether the symbols have a leading underscore.
10290 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10291 ac_cv_sys_symbol_underscore=yes
10292 else
10293 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10294 :
10295 else
10296 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10297 fi
10298 fi
10299 else
10300 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10301 fi
10302 else
10303 echo "configure: failed program was:" >&5
10304 cat conftest.c >&5
10305 fi
10306 rm -rf conftest*
10307
10308fi
Reid Spencera773bd52006-08-04 18:18:08 +000010309{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10310echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010311
10312
10313if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10314 if test x"$libltdl_cv_func_dlopen" = xyes ||
10315 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010316 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10317echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010318if test "${libltdl_cv_need_uscore+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 libltdl_cv_need_uscore=unknown
10322 save_LIBS="$LIBS"
10323 LIBS="$LIBS $LIBADD_DL"
10324 if test "$cross_compiling" = yes; then :
10325 libltdl_cv_need_uscore=cross
10326else
10327 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10328 lt_status=$lt_dlunknown
10329 cat > conftest.$ac_ext <<EOF
Reid Spencer282d8c12006-12-21 22:55:41 +000010330#line 10330 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010331#include "confdefs.h"
10332
10333#if HAVE_DLFCN_H
10334#include <dlfcn.h>
10335#endif
10336
10337#include <stdio.h>
10338
10339#ifdef RTLD_GLOBAL
10340# define LT_DLGLOBAL RTLD_GLOBAL
10341#else
10342# ifdef DL_GLOBAL
10343# define LT_DLGLOBAL DL_GLOBAL
10344# else
10345# define LT_DLGLOBAL 0
10346# endif
10347#endif
10348
10349/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10350 find out it does not work in some platform. */
10351#ifndef LT_DLLAZY_OR_NOW
10352# ifdef RTLD_LAZY
10353# define LT_DLLAZY_OR_NOW RTLD_LAZY
10354# else
10355# ifdef DL_LAZY
10356# define LT_DLLAZY_OR_NOW DL_LAZY
10357# else
10358# ifdef RTLD_NOW
10359# define LT_DLLAZY_OR_NOW RTLD_NOW
10360# else
10361# ifdef DL_NOW
10362# define LT_DLLAZY_OR_NOW DL_NOW
10363# else
10364# define LT_DLLAZY_OR_NOW 0
10365# endif
10366# endif
10367# endif
10368# endif
10369#endif
10370
10371#ifdef __cplusplus
10372extern "C" void exit (int);
10373#endif
10374
10375void fnord() { int i=42;}
10376int main ()
10377{
10378 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10379 int status = $lt_dlunknown;
10380
10381 if (self)
10382 {
10383 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10384 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10385 /* dlclose (self); */
10386 }
Reid Spencera773bd52006-08-04 18:18:08 +000010387 else
10388 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389
10390 exit (status);
10391}
10392EOF
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010398 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010399 lt_status=$?
10400 case x$lt_status in
10401 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10402 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010403 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010404 esac
10405 else :
10406 # compilation failed
10407
10408 fi
10409fi
10410rm -fr conftest*
10411
10412 LIBS="$save_LIBS"
10413
10414fi
Reid Spencera773bd52006-08-04 18:18:08 +000010415{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10416echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010417 fi
10418fi
10419
10420if test x"$libltdl_cv_need_uscore" = xyes; then
10421
10422cat >>confdefs.h <<\_ACEOF
10423#define NEED_USCORE 1
10424_ACEOF
10425
10426fi
10427
10428
Reid Spencera773bd52006-08-04 18:18:08 +000010429{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10430echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010431if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434 # PORTME does your system automatically load deplibs for dlopen?
10435 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10436 # For now, we just catch OSes we know something about -- in the
10437 # future, we'll try test this programmatically.
10438 libltdl_cv_sys_dlopen_deplibs=unknown
10439 case "$host_os" in
10440 aix3*|aix4.1.*|aix4.2.*)
10441 # Unknown whether this is true for these versions of AIX, but
10442 # we want this `case' here to explicitly catch those versions.
10443 libltdl_cv_sys_dlopen_deplibs=unknown
10444 ;;
10445 aix[45]*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10447 ;;
10448 darwin*)
10449 # Assuming the user has installed a libdl from somewhere, this is true
10450 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10451 libltdl_cv_sys_dlopen_deplibs=yes
10452 ;;
10453 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10454 # GNU and its variants, using gnu ld.so (Glibc)
10455 libltdl_cv_sys_dlopen_deplibs=yes
10456 ;;
10457 hpux10*|hpux11*)
10458 libltdl_cv_sys_dlopen_deplibs=yes
10459 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010460 interix*)
10461 libltdl_cv_sys_dlopen_deplibs=yes
10462 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010463 irix[12345]*|irix6.[01]*)
10464 # Catch all versions of IRIX before 6.2, and indicate that we don't
10465 # know how it worked for any of those versions.
10466 libltdl_cv_sys_dlopen_deplibs=unknown
10467 ;;
10468 irix*)
10469 # The case above catches anything before 6.2, and it's known that
10470 # at 6.2 and later dlopen does load deplibs.
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
10473 netbsd*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
10476 openbsd*)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
10479 osf[1234]*)
10480 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10481 # it did *not* use an RPATH in a shared library to find objects the
10482 # library depends on, so we explictly say `no'.
10483 libltdl_cv_sys_dlopen_deplibs=no
10484 ;;
10485 osf5.0|osf5.0a|osf5.1)
10486 # dlopen *does* load deplibs and with the right loader patch applied
10487 # it even uses RPATH in a shared library to search for shared objects
10488 # that the library depends on, but there's no easy way to know if that
10489 # patch is installed. Since this is the case, all we can really
10490 # say is unknown -- it depends on the patch being installed. If
10491 # it is, this changes to `yes'. Without it, it would be `no'.
10492 libltdl_cv_sys_dlopen_deplibs=unknown
10493 ;;
10494 osf*)
10495 # the two cases above should catch all versions of osf <= 5.1. Read
10496 # the comments above for what we know about them.
10497 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10498 # is used to find them so we can finally say `yes'.
10499 libltdl_cv_sys_dlopen_deplibs=yes
10500 ;;
10501 solaris*)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10503 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010504 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10505 libltdl_cv_sys_dlopen_deplibs=yes
10506 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010507 esac
10508
10509fi
Reid Spencera773bd52006-08-04 18:18:08 +000010510{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10511echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010512if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10513
10514cat >>confdefs.h <<\_ACEOF
10515#define LTDL_DLOPEN_DEPLIBS 1
10516_ACEOF
10517
10518fi
10519
10520
10521for ac_header in argz.h
10522do
10523as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010524if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529fi
Reid Spencera773bd52006-08-04 18:18:08 +000010530ac_res=`eval echo '${'$as_ac_Header'}'`
10531 { echo "$as_me:$LINENO: result: $ac_res" >&5
10532echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010533else
10534 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010535{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010537cat >conftest.$ac_ext <<_ACEOF
10538/* confdefs.h. */
10539_ACEOF
10540cat confdefs.h >>conftest.$ac_ext
10541cat >>conftest.$ac_ext <<_ACEOF
10542/* end confdefs.h. */
10543$ac_includes_default
10544#include <$ac_header>
10545_ACEOF
10546rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010547if { (ac_try="$ac_compile"
10548case "(($ac_try" in
10549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10550 *) ac_try_echo=$ac_try;;
10551esac
10552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10553 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010554 ac_status=$?
10555 grep -v '^ *+' conftest.er1 >conftest.err
10556 rm -f conftest.er1
10557 cat conftest.err >&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10561 { (case "(($ac_try" in
10562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10564esac
10565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010571 { (case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574esac
10575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010577 ac_status=$?
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); }; }; then
10580 ac_header_compiler=yes
10581else
10582 echo "$as_me: failed program was:" >&5
10583sed 's/^/| /' conftest.$ac_ext >&5
10584
Reid Spencera773bd52006-08-04 18:18:08 +000010585 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010586fi
Reid Spencera773bd52006-08-04 18:18:08 +000010587
10588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10589{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010591
10592# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010593{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010595cat >conftest.$ac_ext <<_ACEOF
10596/* confdefs.h. */
10597_ACEOF
10598cat confdefs.h >>conftest.$ac_ext
10599cat >>conftest.$ac_ext <<_ACEOF
10600/* end confdefs.h. */
10601#include <$ac_header>
10602_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010603if { (ac_try="$ac_cpp conftest.$ac_ext"
10604case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607esac
10608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } >/dev/null; then
10616 if test -s conftest.err; then
10617 ac_cpp_err=$ac_c_preproc_warn_flag
10618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10619 else
10620 ac_cpp_err=
10621 fi
10622else
10623 ac_cpp_err=yes
10624fi
10625if test -z "$ac_cpp_err"; then
10626 ac_header_preproc=yes
10627else
10628 echo "$as_me: failed program was:" >&5
10629sed 's/^/| /' conftest.$ac_ext >&5
10630
10631 ac_header_preproc=no
10632fi
Reid Spencera773bd52006-08-04 18:18:08 +000010633
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010634rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010635{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010637
10638# So? What about this header?
10639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640 yes:no: )
10641 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc=yes
10646 ;;
10647 no:yes:* )
10648 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010660 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010661## ----------------------------------- ##
10662## Report this to llvmbugs@cs.uiuc.edu ##
10663## ----------------------------------- ##
10664_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010665 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010666 ;;
10667esac
Reid Spencera773bd52006-08-04 18:18:08 +000010668{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672else
10673 eval "$as_ac_Header=\$ac_header_preproc"
10674fi
Reid Spencera773bd52006-08-04 18:18:08 +000010675ac_res=`eval echo '${'$as_ac_Header'}'`
10676 { echo "$as_me:$LINENO: result: $ac_res" >&5
10677echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678
10679fi
10680if test `eval echo '${'$as_ac_Header'}'` = yes; then
10681 cat >>confdefs.h <<_ACEOF
10682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10683_ACEOF
10684
10685fi
10686
10687done
10688
10689
Reid Spencera773bd52006-08-04 18:18:08 +000010690{ echo "$as_me:$LINENO: checking for error_t" >&5
10691echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010692if test "${ac_cv_type_error_t+set}" = set; then
10693 echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695 cat >conftest.$ac_ext <<_ACEOF
10696/* confdefs.h. */
10697_ACEOF
10698cat confdefs.h >>conftest.$ac_ext
10699cat >>conftest.$ac_ext <<_ACEOF
10700/* end confdefs.h. */
10701#if HAVE_ARGZ_H
10702# include <argz.h>
10703#endif
10704
Reid Spencera773bd52006-08-04 18:18:08 +000010705typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010706int
10707main ()
10708{
Reid Spencera773bd52006-08-04 18:18:08 +000010709if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010711if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010712 return 0;
10713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010718if { (ac_try="$ac_compile"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
10723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010725 ac_status=$?
10726 grep -v '^ *+' conftest.er1 >conftest.err
10727 rm -f conftest.er1
10728 cat conftest.err >&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735esac
10736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010738 ac_status=$?
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; } &&
10741 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010742 { (case "(($ac_try" in
10743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10744 *) ac_try_echo=$ac_try;;
10745esac
10746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10747 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_type_error_t=yes
10752else
10753 echo "$as_me: failed program was:" >&5
10754sed 's/^/| /' conftest.$ac_ext >&5
10755
Reid Spencera773bd52006-08-04 18:18:08 +000010756 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010757fi
Reid Spencera773bd52006-08-04 18:18:08 +000010758
10759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010760fi
Reid Spencera773bd52006-08-04 18:18:08 +000010761{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10762echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010763if test $ac_cv_type_error_t = yes; then
10764
10765cat >>confdefs.h <<_ACEOF
10766#define HAVE_ERROR_T 1
10767_ACEOF
10768
10769
10770else
10771
10772cat >>confdefs.h <<\_ACEOF
10773#define error_t int
10774_ACEOF
10775
10776fi
10777
10778
10779
10780
10781
10782
10783
10784for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10785do
10786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010787{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10789if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790 echo $ECHO_N "(cached) $ECHO_C" >&6
10791else
10792 cat >conftest.$ac_ext <<_ACEOF
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
10798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800#define $ac_func innocuous_$ac_func
10801
10802/* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10806
10807#ifdef __STDC__
10808# include <limits.h>
10809#else
10810# include <assert.h>
10811#endif
10812
10813#undef $ac_func
10814
Reid Spencera773bd52006-08-04 18:18:08 +000010815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010818#ifdef __cplusplus
10819extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010820#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010821char $ac_func ();
10822/* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010825#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010826choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010827#endif
10828
10829int
10830main ()
10831{
Reid Spencera773bd52006-08-04 18:18:08 +000010832return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010833 ;
10834 return 0;
10835}
10836_ACEOF
10837rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010838if { (ac_try="$ac_link"
10839case "(($ac_try" in
10840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10842esac
10843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10844 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010845 ac_status=$?
10846 grep -v '^ *+' conftest.er1 >conftest.err
10847 rm -f conftest.er1
10848 cat conftest.err >&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10852 { (case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; } &&
10861 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010862 { (case "(($ac_try" in
10863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10864 *) ac_try_echo=$ac_try;;
10865esac
10866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10867 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010868 ac_status=$?
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; }; then
10871 eval "$as_ac_var=yes"
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
Reid Spencera773bd52006-08-04 18:18:08 +000010876 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010877fi
Reid Spencera773bd52006-08-04 18:18:08 +000010878
10879rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010880 conftest$ac_exeext conftest.$ac_ext
10881fi
Reid Spencera773bd52006-08-04 18:18:08 +000010882ac_res=`eval echo '${'$as_ac_var'}'`
10883 { echo "$as_me:$LINENO: result: $ac_res" >&5
10884echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010885if test `eval echo '${'$as_ac_var'}'` = yes; then
10886 cat >>confdefs.h <<_ACEOF
10887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10888_ACEOF
10889
10890fi
10891done
10892
10893
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
10920for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10921 stdio.h unistd.h
10922do
10923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010924if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010928 echo $ECHO_N "(cached) $ECHO_C" >&6
10929fi
Reid Spencera773bd52006-08-04 18:18:08 +000010930ac_res=`eval echo '${'$as_ac_Header'}'`
10931 { echo "$as_me:$LINENO: result: $ac_res" >&5
10932echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010933else
10934 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010935{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010937cat >conftest.$ac_ext <<_ACEOF
10938/* confdefs.h. */
10939_ACEOF
10940cat confdefs.h >>conftest.$ac_ext
10941cat >>conftest.$ac_ext <<_ACEOF
10942/* end confdefs.h. */
10943$ac_includes_default
10944#include <$ac_header>
10945_ACEOF
10946rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010947if { (ac_try="$ac_compile"
10948case "(($ac_try" in
10949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10951esac
10952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010954 ac_status=$?
10955 grep -v '^ *+' conftest.er1 >conftest.err
10956 rm -f conftest.er1
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010971 { (case "(($ac_try" in
10972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973 *) ac_try_echo=$ac_try;;
10974esac
10975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010977 ac_status=$?
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_header_compiler=yes
10981else
10982 echo "$as_me: failed program was:" >&5
10983sed 's/^/| /' conftest.$ac_ext >&5
10984
Reid Spencera773bd52006-08-04 18:18:08 +000010985 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010986fi
Reid Spencera773bd52006-08-04 18:18:08 +000010987
10988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10989{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10990echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010991
10992# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010993{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010995cat >conftest.$ac_ext <<_ACEOF
10996/* confdefs.h. */
10997_ACEOF
10998cat confdefs.h >>conftest.$ac_ext
10999cat >>conftest.$ac_ext <<_ACEOF
11000/* end confdefs.h. */
11001#include <$ac_header>
11002_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011003if { (ac_try="$ac_cpp conftest.$ac_ext"
11004case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11007esac
11008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011010 ac_status=$?
11011 grep -v '^ *+' conftest.er1 >conftest.err
11012 rm -f conftest.er1
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } >/dev/null; then
11016 if test -s conftest.err; then
11017 ac_cpp_err=$ac_c_preproc_warn_flag
11018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11019 else
11020 ac_cpp_err=
11021 fi
11022else
11023 ac_cpp_err=yes
11024fi
11025if test -z "$ac_cpp_err"; then
11026 ac_header_preproc=yes
11027else
11028 echo "$as_me: failed program was:" >&5
11029sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 ac_header_preproc=no
11032fi
Reid Spencera773bd52006-08-04 18:18:08 +000011033
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011034rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011035{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11036echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011037
11038# So? What about this header?
11039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11040 yes:no: )
11041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11042echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11044echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11045 ac_header_preproc=yes
11046 ;;
11047 no:yes:* )
11048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11049echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11051echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11053echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11055echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11057echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11059echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011060 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011061## ----------------------------------- ##
11062## Report this to llvmbugs@cs.uiuc.edu ##
11063## ----------------------------------- ##
11064_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011065 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011066 ;;
11067esac
Reid Spencera773bd52006-08-04 18:18:08 +000011068{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11070if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011071 echo $ECHO_N "(cached) $ECHO_C" >&6
11072else
11073 eval "$as_ac_Header=\$ac_header_preproc"
11074fi
Reid Spencera773bd52006-08-04 18:18:08 +000011075ac_res=`eval echo '${'$as_ac_Header'}'`
11076 { echo "$as_me:$LINENO: result: $ac_res" >&5
11077echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011078
11079fi
11080if test `eval echo '${'$as_ac_Header'}'` = yes; then
11081 cat >>confdefs.h <<_ACEOF
11082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11083_ACEOF
11084
11085fi
11086
11087done
11088
11089
11090
11091
11092
11093for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11094do
11095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101fi
Reid Spencera773bd52006-08-04 18:18:08 +000011102ac_res=`eval echo '${'$as_ac_Header'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011105else
11106 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011107{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11108echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011109cat >conftest.$ac_ext <<_ACEOF
11110/* confdefs.h. */
11111_ACEOF
11112cat confdefs.h >>conftest.$ac_ext
11113cat >>conftest.$ac_ext <<_ACEOF
11114/* end confdefs.h. */
11115$ac_includes_default
11116#include <$ac_header>
11117_ACEOF
11118rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011119if { (ac_try="$ac_compile"
11120case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11123esac
11124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11136esac
11137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139 ac_status=$?
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_header_compiler=yes
11153else
11154 echo "$as_me: failed program was:" >&5
11155sed 's/^/| /' conftest.$ac_ext >&5
11156
Reid Spencera773bd52006-08-04 18:18:08 +000011157 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011158fi
Reid Spencera773bd52006-08-04 18:18:08 +000011159
11160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11161{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11162echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011163
11164# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011165{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11166echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011167cat >conftest.$ac_ext <<_ACEOF
11168/* confdefs.h. */
11169_ACEOF
11170cat confdefs.h >>conftest.$ac_ext
11171cat >>conftest.$ac_ext <<_ACEOF
11172/* end confdefs.h. */
11173#include <$ac_header>
11174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011175if { (ac_try="$ac_cpp conftest.$ac_ext"
11176case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011182 ac_status=$?
11183 grep -v '^ *+' conftest.er1 >conftest.err
11184 rm -f conftest.er1
11185 cat conftest.err >&5
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); } >/dev/null; then
11188 if test -s conftest.err; then
11189 ac_cpp_err=$ac_c_preproc_warn_flag
11190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11191 else
11192 ac_cpp_err=
11193 fi
11194else
11195 ac_cpp_err=yes
11196fi
11197if test -z "$ac_cpp_err"; then
11198 ac_header_preproc=yes
11199else
11200 echo "$as_me: failed program was:" >&5
11201sed 's/^/| /' conftest.$ac_ext >&5
11202
11203 ac_header_preproc=no
11204fi
Reid Spencera773bd52006-08-04 18:18:08 +000011205
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011206rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011207{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11208echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011209
11210# So? What about this header?
11211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11212 yes:no: )
11213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11214echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11216echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11217 ac_header_preproc=yes
11218 ;;
11219 no:yes:* )
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11221echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11223echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11225echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11227echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11229echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11231echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011232 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011233## ----------------------------------- ##
11234## Report this to llvmbugs@cs.uiuc.edu ##
11235## ----------------------------------- ##
11236_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011237 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011238 ;;
11239esac
Reid Spencera773bd52006-08-04 18:18:08 +000011240{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11242if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011243 echo $ECHO_N "(cached) $ECHO_C" >&6
11244else
11245 eval "$as_ac_Header=\$ac_header_preproc"
11246fi
Reid Spencera773bd52006-08-04 18:18:08 +000011247ac_res=`eval echo '${'$as_ac_Header'}'`
11248 { echo "$as_me:$LINENO: result: $ac_res" >&5
11249echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011250
11251fi
11252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261
11262
11263for ac_header in string.h strings.h
11264do
11265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011266if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271fi
Reid Spencera773bd52006-08-04 18:18:08 +000011272ac_res=`eval echo '${'$as_ac_Header'}'`
11273 { echo "$as_me:$LINENO: result: $ac_res" >&5
11274echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011275else
11276 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011277{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011279cat >conftest.$ac_ext <<_ACEOF
11280/* confdefs.h. */
11281_ACEOF
11282cat confdefs.h >>conftest.$ac_ext
11283cat >>conftest.$ac_ext <<_ACEOF
11284/* end confdefs.h. */
11285$ac_includes_default
11286#include <$ac_header>
11287_ACEOF
11288rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011289if { (ac_try="$ac_compile"
11290case "(($ac_try" in
11291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292 *) ac_try_echo=$ac_try;;
11293esac
11294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11303 { (case "(($ac_try" in
11304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11306esac
11307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011313 { (case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316esac
11317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_header_compiler=yes
11323else
11324 echo "$as_me: failed program was:" >&5
11325sed 's/^/| /' conftest.$ac_ext >&5
11326
Reid Spencera773bd52006-08-04 18:18:08 +000011327 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011328fi
Reid Spencera773bd52006-08-04 18:18:08 +000011329
11330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11331{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11332echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011333
11334# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011335{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011337cat >conftest.$ac_ext <<_ACEOF
11338/* confdefs.h. */
11339_ACEOF
11340cat confdefs.h >>conftest.$ac_ext
11341cat >>conftest.$ac_ext <<_ACEOF
11342/* end confdefs.h. */
11343#include <$ac_header>
11344_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011345if { (ac_try="$ac_cpp conftest.$ac_ext"
11346case "(($ac_try" in
11347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348 *) ac_try_echo=$ac_try;;
11349esac
11350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } >/dev/null; then
11358 if test -s conftest.err; then
11359 ac_cpp_err=$ac_c_preproc_warn_flag
11360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11361 else
11362 ac_cpp_err=
11363 fi
11364else
11365 ac_cpp_err=yes
11366fi
11367if test -z "$ac_cpp_err"; then
11368 ac_header_preproc=yes
11369else
11370 echo "$as_me: failed program was:" >&5
11371sed 's/^/| /' conftest.$ac_ext >&5
11372
11373 ac_header_preproc=no
11374fi
Reid Spencera773bd52006-08-04 18:18:08 +000011375
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011376rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011377{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11378echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011379
11380# So? What about this header?
11381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11382 yes:no: )
11383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11387 ac_header_preproc=yes
11388 ;;
11389 no:yes:* )
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011402 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011403## ----------------------------------- ##
11404## Report this to llvmbugs@cs.uiuc.edu ##
11405## ----------------------------------- ##
11406_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011407 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011408 ;;
11409esac
Reid Spencera773bd52006-08-04 18:18:08 +000011410{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011413 echo $ECHO_N "(cached) $ECHO_C" >&6
11414else
11415 eval "$as_ac_Header=\$ac_header_preproc"
11416fi
Reid Spencera773bd52006-08-04 18:18:08 +000011417ac_res=`eval echo '${'$as_ac_Header'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011420
11421fi
11422if test `eval echo '${'$as_ac_Header'}'` = yes; then
11423 cat >>confdefs.h <<_ACEOF
11424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11425_ACEOF
11426 break
11427fi
11428
11429done
11430
11431
11432
11433
11434for ac_func in strchr index
11435do
11436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011437{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11439if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440 echo $ECHO_N "(cached) $ECHO_C" >&6
11441else
11442 cat >conftest.$ac_ext <<_ACEOF
11443/* confdefs.h. */
11444_ACEOF
11445cat confdefs.h >>conftest.$ac_ext
11446cat >>conftest.$ac_ext <<_ACEOF
11447/* end confdefs.h. */
11448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11450#define $ac_func innocuous_$ac_func
11451
11452/* System header to define __stub macros and hopefully few prototypes,
11453 which can conflict with char $ac_func (); below.
11454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11455 <limits.h> exists even on freestanding compilers. */
11456
11457#ifdef __STDC__
11458# include <limits.h>
11459#else
11460# include <assert.h>
11461#endif
11462
11463#undef $ac_func
11464
Reid Spencera773bd52006-08-04 18:18:08 +000011465/* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011468#ifdef __cplusplus
11469extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011470#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011471char $ac_func ();
11472/* The GNU C library defines this for functions which it implements
11473 to always fail with ENOSYS. Some functions are actually named
11474 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011475#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011476choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011477#endif
11478
11479int
11480main ()
11481{
Reid Spencera773bd52006-08-04 18:18:08 +000011482return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011488if { (ac_try="$ac_link"
11489case "(($ac_try" in
11490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11491 *) ac_try_echo=$ac_try;;
11492esac
11493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11494 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011495 ac_status=$?
11496 grep -v '^ *+' conftest.er1 >conftest.err
11497 rm -f conftest.er1
11498 cat conftest.err >&5
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11502 { (case "(($ac_try" in
11503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504 *) ac_try_echo=$ac_try;;
11505esac
11506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011512 { (case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 eval "$as_ac_var=yes"
11522else
11523 echo "$as_me: failed program was:" >&5
11524sed 's/^/| /' conftest.$ac_ext >&5
11525
Reid Spencera773bd52006-08-04 18:18:08 +000011526 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011527fi
Reid Spencera773bd52006-08-04 18:18:08 +000011528
11529rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011530 conftest$ac_exeext conftest.$ac_ext
11531fi
Reid Spencera773bd52006-08-04 18:18:08 +000011532ac_res=`eval echo '${'$as_ac_var'}'`
11533 { echo "$as_me:$LINENO: result: $ac_res" >&5
11534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011535if test `eval echo '${'$as_ac_var'}'` = yes; then
11536 cat >>confdefs.h <<_ACEOF
11537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11538_ACEOF
11539 break
11540fi
11541done
11542
11543
11544
11545for ac_func in strrchr rindex
11546do
11547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011548{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11550if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551 echo $ECHO_N "(cached) $ECHO_C" >&6
11552else
11553 cat >conftest.$ac_ext <<_ACEOF
11554/* confdefs.h. */
11555_ACEOF
11556cat confdefs.h >>conftest.$ac_ext
11557cat >>conftest.$ac_ext <<_ACEOF
11558/* end confdefs.h. */
11559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11561#define $ac_func innocuous_$ac_func
11562
11563/* System header to define __stub macros and hopefully few prototypes,
11564 which can conflict with char $ac_func (); below.
11565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11566 <limits.h> exists even on freestanding compilers. */
11567
11568#ifdef __STDC__
11569# include <limits.h>
11570#else
11571# include <assert.h>
11572#endif
11573
11574#undef $ac_func
11575
Reid Spencera773bd52006-08-04 18:18:08 +000011576/* Override any GCC internal prototype to avoid an error.
11577 Use char because int might match the return type of a GCC
11578 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011579#ifdef __cplusplus
11580extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011581#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011582char $ac_func ();
11583/* The GNU C library defines this for functions which it implements
11584 to always fail with ENOSYS. Some functions are actually named
11585 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011586#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011587choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011588#endif
11589
11590int
11591main ()
11592{
Reid Spencera773bd52006-08-04 18:18:08 +000011593return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011594 ;
11595 return 0;
11596}
11597_ACEOF
11598rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011599if { (ac_try="$ac_link"
11600case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603esac
11604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616esac
11617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626esac
11627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 eval "$as_ac_var=yes"
11633else
11634 echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
Reid Spencera773bd52006-08-04 18:18:08 +000011637 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011638fi
Reid Spencera773bd52006-08-04 18:18:08 +000011639
11640rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011641 conftest$ac_exeext conftest.$ac_ext
11642fi
Reid Spencera773bd52006-08-04 18:18:08 +000011643ac_res=`eval echo '${'$as_ac_var'}'`
11644 { echo "$as_me:$LINENO: result: $ac_res" >&5
11645echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011646if test `eval echo '${'$as_ac_var'}'` = yes; then
11647 cat >>confdefs.h <<_ACEOF
11648#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11649_ACEOF
11650 break
11651fi
11652done
11653
11654
11655
11656for ac_func in memcpy bcopy
11657do
11658as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011659{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11661if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662 echo $ECHO_N "(cached) $ECHO_C" >&6
11663else
11664 cat >conftest.$ac_ext <<_ACEOF
11665/* confdefs.h. */
11666_ACEOF
11667cat confdefs.h >>conftest.$ac_ext
11668cat >>conftest.$ac_ext <<_ACEOF
11669/* end confdefs.h. */
11670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11672#define $ac_func innocuous_$ac_func
11673
11674/* System header to define __stub macros and hopefully few prototypes,
11675 which can conflict with char $ac_func (); below.
11676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677 <limits.h> exists even on freestanding compilers. */
11678
11679#ifdef __STDC__
11680# include <limits.h>
11681#else
11682# include <assert.h>
11683#endif
11684
11685#undef $ac_func
11686
Reid Spencera773bd52006-08-04 18:18:08 +000011687/* Override any GCC internal prototype to avoid an error.
11688 Use char because int might match the return type of a GCC
11689 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011690#ifdef __cplusplus
11691extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011692#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011693char $ac_func ();
11694/* The GNU C library defines this for functions which it implements
11695 to always fail with ENOSYS. Some functions are actually named
11696 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011697#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011698choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011699#endif
11700
11701int
11702main ()
11703{
Reid Spencera773bd52006-08-04 18:18:08 +000011704return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011705 ;
11706 return 0;
11707}
11708_ACEOF
11709rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011710if { (ac_try="$ac_link"
11711case "(($ac_try" in
11712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11714esac
11715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011717 ac_status=$?
11718 grep -v '^ *+' conftest.er1 >conftest.err
11719 rm -f conftest.er1
11720 cat conftest.err >&5
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011734 { (case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737esac
11738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011740 ac_status=$?
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; }; then
11743 eval "$as_ac_var=yes"
11744else
11745 echo "$as_me: failed program was:" >&5
11746sed 's/^/| /' conftest.$ac_ext >&5
11747
Reid Spencera773bd52006-08-04 18:18:08 +000011748 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011749fi
Reid Spencera773bd52006-08-04 18:18:08 +000011750
11751rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011752 conftest$ac_exeext conftest.$ac_ext
11753fi
Reid Spencera773bd52006-08-04 18:18:08 +000011754ac_res=`eval echo '${'$as_ac_var'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011757if test `eval echo '${'$as_ac_var'}'` = yes; then
11758 cat >>confdefs.h <<_ACEOF
11759#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11760_ACEOF
11761 break
11762fi
11763done
11764
11765
11766
11767for ac_func in memmove strcmp
11768do
11769as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011770{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11771echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11772if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11783#define $ac_func innocuous_$ac_func
11784
11785/* System header to define __stub macros and hopefully few prototypes,
11786 which can conflict with char $ac_func (); below.
11787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11788 <limits.h> exists even on freestanding compilers. */
11789
11790#ifdef __STDC__
11791# include <limits.h>
11792#else
11793# include <assert.h>
11794#endif
11795
11796#undef $ac_func
11797
Reid Spencera773bd52006-08-04 18:18:08 +000011798/* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011801#ifdef __cplusplus
11802extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011803#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011804char $ac_func ();
11805/* The GNU C library defines this for functions which it implements
11806 to always fail with ENOSYS. Some functions are actually named
11807 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011808#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011809choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011810#endif
11811
11812int
11813main ()
11814{
Reid Spencera773bd52006-08-04 18:18:08 +000011815return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011821if { (ac_try="$ac_link"
11822case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825esac
11826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11835 { (case "(($ac_try" in
11836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837 *) ac_try_echo=$ac_try;;
11838esac
11839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011841 ac_status=$?
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); }; } &&
11844 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011845 { (case "(($ac_try" in
11846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847 *) ac_try_echo=$ac_try;;
11848esac
11849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 eval "$as_ac_var=yes"
11855else
11856 echo "$as_me: failed program was:" >&5
11857sed 's/^/| /' conftest.$ac_ext >&5
11858
Reid Spencera773bd52006-08-04 18:18:08 +000011859 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011860fi
Reid Spencera773bd52006-08-04 18:18:08 +000011861
11862rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011863 conftest$ac_exeext conftest.$ac_ext
11864fi
Reid Spencera773bd52006-08-04 18:18:08 +000011865ac_res=`eval echo '${'$as_ac_var'}'`
11866 { echo "$as_me:$LINENO: result: $ac_res" >&5
11867echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011868if test `eval echo '${'$as_ac_var'}'` = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11871_ACEOF
11872
11873fi
11874done
11875
11876
11877
11878
11879for ac_func in closedir opendir readdir
11880do
11881as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011882{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11883echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11884if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887 cat >conftest.$ac_ext <<_ACEOF
11888/* confdefs.h. */
11889_ACEOF
11890cat confdefs.h >>conftest.$ac_ext
11891cat >>conftest.$ac_ext <<_ACEOF
11892/* end confdefs.h. */
11893/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11895#define $ac_func innocuous_$ac_func
11896
11897/* System header to define __stub macros and hopefully few prototypes,
11898 which can conflict with char $ac_func (); below.
11899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11900 <limits.h> exists even on freestanding compilers. */
11901
11902#ifdef __STDC__
11903# include <limits.h>
11904#else
11905# include <assert.h>
11906#endif
11907
11908#undef $ac_func
11909
Reid Spencera773bd52006-08-04 18:18:08 +000011910/* Override any GCC internal prototype to avoid an error.
11911 Use char because int might match the return type of a GCC
11912 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011913#ifdef __cplusplus
11914extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011915#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011916char $ac_func ();
11917/* The GNU C library defines this for functions which it implements
11918 to always fail with ENOSYS. Some functions are actually named
11919 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011920#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011921choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011922#endif
11923
11924int
11925main ()
11926{
Reid Spencera773bd52006-08-04 18:18:08 +000011927return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011928 ;
11929 return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011933if { (ac_try="$ac_link"
11934case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937esac
11938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11939 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011940 ac_status=$?
11941 grep -v '^ *+' conftest.er1 >conftest.err
11942 rm -f conftest.er1
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11947 { (case "(($ac_try" in
11948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11950esac
11951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011953 ac_status=$?
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); }; } &&
11956 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11960esac
11961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; }; then
11966 eval "$as_ac_var=yes"
11967else
11968 echo "$as_me: failed program was:" >&5
11969sed 's/^/| /' conftest.$ac_ext >&5
11970
Reid Spencera773bd52006-08-04 18:18:08 +000011971 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011972fi
Reid Spencera773bd52006-08-04 18:18:08 +000011973
11974rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011975 conftest$ac_exeext conftest.$ac_ext
11976fi
Reid Spencera773bd52006-08-04 18:18:08 +000011977ac_res=`eval echo '${'$as_ac_var'}'`
11978 { echo "$as_me:$LINENO: result: $ac_res" >&5
11979echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011980if test `eval echo '${'$as_ac_var'}'` = yes; then
11981 cat >>confdefs.h <<_ACEOF
11982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11983_ACEOF
11984
11985fi
11986done
11987
11988
Reid Spencera773bd52006-08-04 18:18:08 +000011989# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011990if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011991 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011992 case $enableval in
11993 yes) enable_shared=yes ;;
11994 no) enable_shared=no ;;
11995 *)
11996 enable_shared=no
11997 # Look at the argument we got. We use all the common list separators.
11998 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11999 for pkg in $enableval; do
12000 IFS="$lt_save_ifs"
12001 if test "X$pkg" = "X$p"; then
12002 enable_shared=yes
12003 fi
12004 done
12005 IFS="$lt_save_ifs"
12006 ;;
12007 esac
12008else
12009 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012010fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012011
Reid Spencera773bd52006-08-04 18:18:08 +000012012
12013# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012014if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012015 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012016 case $enableval in
12017 yes) enable_static=yes ;;
12018 no) enable_static=no ;;
12019 *)
12020 enable_static=no
12021 # Look at the argument we got. We use all the common list separators.
12022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12023 for pkg in $enableval; do
12024 IFS="$lt_save_ifs"
12025 if test "X$pkg" = "X$p"; then
12026 enable_static=yes
12027 fi
12028 done
12029 IFS="$lt_save_ifs"
12030 ;;
12031 esac
12032else
12033 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012034fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035
Reid Spencera773bd52006-08-04 18:18:08 +000012036
12037# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012038if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012039 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012040 case $enableval in
12041 yes) enable_fast_install=yes ;;
12042 no) enable_fast_install=no ;;
12043 *)
12044 enable_fast_install=no
12045 # Look at the argument we got. We use all the common list separators.
12046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12047 for pkg in $enableval; do
12048 IFS="$lt_save_ifs"
12049 if test "X$pkg" = "X$p"; then
12050 enable_fast_install=yes
12051 fi
12052 done
12053 IFS="$lt_save_ifs"
12054 ;;
12055 esac
12056else
12057 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012058fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059
Reid Spencera773bd52006-08-04 18:18:08 +000012060
12061{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12062echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012063if test "${lt_cv_path_SED+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12065else
12066 # Loop through the user's path and test for sed and gsed.
12067# Then use that list of sed's as ones to test for truncation.
12068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069for as_dir in $PATH
12070do
12071 IFS=$as_save_IFS
12072 test -z "$as_dir" && as_dir=.
12073 for lt_ac_prog in sed gsed; do
12074 for ac_exec_ext in '' $ac_executable_extensions; do
12075 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12076 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12077 fi
12078 done
12079 done
12080done
12081lt_ac_max=0
12082lt_ac_count=0
12083# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12084# along with /bin/sed that truncates output.
12085for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012086 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012087 cat /dev/null > conftest.in
12088 lt_ac_count=0
12089 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12090 # Check for GNU sed and select it if it is found.
12091 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12092 lt_cv_path_SED=$lt_ac_sed
12093 break
12094 fi
12095 while true; do
12096 cat conftest.in conftest.in >conftest.tmp
12097 mv conftest.tmp conftest.in
12098 cp conftest.in conftest.nl
12099 echo >>conftest.nl
12100 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12101 cmp -s conftest.out conftest.nl || break
12102 # 10000 chars as input seems more than enough
12103 test $lt_ac_count -gt 10 && break
12104 lt_ac_count=`expr $lt_ac_count + 1`
12105 if test $lt_ac_count -gt $lt_ac_max; then
12106 lt_ac_max=$lt_ac_count
12107 lt_cv_path_SED=$lt_ac_sed
12108 fi
12109 done
12110done
12111
12112fi
12113
12114SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012115{ echo "$as_me:$LINENO: result: $SED" >&5
12116echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012117
12118
Reid Spencera773bd52006-08-04 18:18:08 +000012119# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012120if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012122else
12123 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012124fi
12125
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012126ac_prog=ld
12127if test "$GCC" = yes; then
12128 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012129 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12130echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012131 case $host in
12132 *-*-mingw*)
12133 # gcc leaves a trailing carriage return which upsets mingw
12134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12135 *)
12136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12137 esac
12138 case $ac_prog in
12139 # Accept absolute paths.
12140 [\\/]* | ?:[\\/]*)
12141 re_direlt='/[^/][^/]*/\.\./'
12142 # Canonicalize the pathname of ld
12143 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12144 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12145 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12146 done
12147 test -z "$LD" && LD="$ac_prog"
12148 ;;
12149 "")
12150 # If it fails, then pretend we aren't using GCC.
12151 ac_prog=ld
12152 ;;
12153 *)
12154 # If it is relative, then search for the first ld in PATH.
12155 with_gnu_ld=unknown
12156 ;;
12157 esac
12158elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012159 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12160echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012161else
Reid Spencera773bd52006-08-04 18:18:08 +000012162 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12163echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012164fi
12165if test "${lt_cv_path_LD+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12167else
12168 if test -z "$LD"; then
12169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12170 for ac_dir in $PATH; do
12171 IFS="$lt_save_ifs"
12172 test -z "$ac_dir" && ac_dir=.
12173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12174 lt_cv_path_LD="$ac_dir/$ac_prog"
12175 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012176 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012177 # Break only if it was the GNU/non-GNU ld that we prefer.
12178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12179 *GNU* | *'with BFD'*)
12180 test "$with_gnu_ld" != no && break
12181 ;;
12182 *)
12183 test "$with_gnu_ld" != yes && break
12184 ;;
12185 esac
12186 fi
12187 done
12188 IFS="$lt_save_ifs"
12189else
12190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12191fi
12192fi
12193
12194LD="$lt_cv_path_LD"
12195if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012196 { echo "$as_me:$LINENO: result: $LD" >&5
12197echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012198else
Reid Spencera773bd52006-08-04 18:18:08 +000012199 { echo "$as_me:$LINENO: result: no" >&5
12200echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012201fi
12202test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12203echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12204 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012205{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12206echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012207if test "${lt_cv_prog_gnu_ld+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12209else
Reid Spencera773bd52006-08-04 18:18:08 +000012210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012211case `$LD -v 2>&1 </dev/null` in
12212*GNU* | *'with BFD'*)
12213 lt_cv_prog_gnu_ld=yes
12214 ;;
12215*)
12216 lt_cv_prog_gnu_ld=no
12217 ;;
12218esac
12219fi
Reid Spencera773bd52006-08-04 18:18:08 +000012220{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12221echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012222with_gnu_ld=$lt_cv_prog_gnu_ld
12223
12224
Reid Spencera773bd52006-08-04 18:18:08 +000012225{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12226echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012227if test "${lt_cv_ld_reload_flag+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229else
12230 lt_cv_ld_reload_flag='-r'
12231fi
Reid Spencera773bd52006-08-04 18:18:08 +000012232{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12233echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012234reload_flag=$lt_cv_ld_reload_flag
12235case $reload_flag in
12236"" | " "*) ;;
12237*) reload_flag=" $reload_flag" ;;
12238esac
12239reload_cmds='$LD$reload_flag -o $output$reload_objs'
12240case $host_os in
12241 darwin*)
12242 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012243 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012244 else
12245 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12246 fi
12247 ;;
12248esac
12249
Reid Spencera773bd52006-08-04 18:18:08 +000012250{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12251echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012252if test "${lt_cv_deplibs_check_method+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12254else
12255 lt_cv_file_magic_cmd='$MAGIC_CMD'
12256lt_cv_file_magic_test_file=
12257lt_cv_deplibs_check_method='unknown'
12258# Need to set the preceding variable on all platforms that support
12259# interlibrary dependencies.
12260# 'none' -- dependencies not supported.
12261# `unknown' -- same as none, but documents that we really don't know.
12262# 'pass_all' -- all dependencies passed with no checks.
12263# 'test_compile' -- check by making test program.
12264# 'file_magic [[regex]]' -- check by looking for files in library path
12265# which responds to the $file_magic_cmd with a given extended regex.
12266# If you have `file' or equivalent on your system and you're not sure
12267# whether `pass_all' will *always* work, you probably want this one.
12268
12269case $host_os in
12270aix4* | aix5*)
12271 lt_cv_deplibs_check_method=pass_all
12272 ;;
12273
12274beos*)
12275 lt_cv_deplibs_check_method=pass_all
12276 ;;
12277
12278bsdi[45]*)
12279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12280 lt_cv_file_magic_cmd='/usr/bin/file -L'
12281 lt_cv_file_magic_test_file=/shlib/libc.so
12282 ;;
12283
12284cygwin*)
12285 # func_win32_libid is a shell function defined in ltmain.sh
12286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12287 lt_cv_file_magic_cmd='func_win32_libid'
12288 ;;
12289
12290mingw* | pw32*)
12291 # Base MSYS/MinGW do not provide the 'file' command needed by
12292 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12294 lt_cv_file_magic_cmd='$OBJDUMP -f'
12295 ;;
12296
12297darwin* | rhapsody*)
12298 lt_cv_deplibs_check_method=pass_all
12299 ;;
12300
Reid Spencera773bd52006-08-04 18:18:08 +000012301freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12303 case $host_cpu in
12304 i*86 )
12305 # Not sure whether the presence of OpenBSD here was a mistake.
12306 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012307 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 +000012308 lt_cv_file_magic_cmd=/usr/bin/file
12309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12310 ;;
12311 esac
12312 else
12313 lt_cv_deplibs_check_method=pass_all
12314 fi
12315 ;;
12316
12317gnu*)
12318 lt_cv_deplibs_check_method=pass_all
12319 ;;
12320
12321hpux10.20* | hpux11*)
12322 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012323 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012324 ia64*)
12325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12327 ;;
12328 hppa*64*)
12329 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]'
12330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12331 ;;
12332 *)
12333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12335 ;;
12336 esac
12337 ;;
12338
Reid Spencera773bd52006-08-04 18:18:08 +000012339interix3*)
12340 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12341 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12342 ;;
12343
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012344irix5* | irix6* | nonstopux*)
12345 case $LD in
12346 *-32|*"-32 ") libmagic=32-bit;;
12347 *-n32|*"-n32 ") libmagic=N32;;
12348 *-64|*"-64 ") libmagic=64-bit;;
12349 *) libmagic=never-match;;
12350 esac
12351 lt_cv_deplibs_check_method=pass_all
12352 ;;
12353
12354# This must be Linux ELF.
12355linux*)
12356 lt_cv_deplibs_check_method=pass_all
12357 ;;
12358
12359netbsd*)
12360 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12362 else
12363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12364 fi
12365 ;;
12366
12367newos6*)
12368 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12369 lt_cv_file_magic_cmd=/usr/bin/file
12370 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12371 ;;
12372
12373nto-qnx*)
12374 lt_cv_deplibs_check_method=unknown
12375 ;;
12376
12377openbsd*)
12378 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12380 else
12381 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12382 fi
12383 ;;
12384
12385osf3* | osf4* | osf5*)
12386 lt_cv_deplibs_check_method=pass_all
12387 ;;
12388
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389solaris*)
12390 lt_cv_deplibs_check_method=pass_all
12391 ;;
12392
Reid Spencera773bd52006-08-04 18:18:08 +000012393sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012394 case $host_vendor in
12395 motorola)
12396 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]'
12397 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12398 ;;
12399 ncr)
12400 lt_cv_deplibs_check_method=pass_all
12401 ;;
12402 sequent)
12403 lt_cv_file_magic_cmd='/bin/file'
12404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12405 ;;
12406 sni)
12407 lt_cv_file_magic_cmd='/bin/file'
12408 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12409 lt_cv_file_magic_test_file=/lib/libc.so
12410 ;;
12411 siemens)
12412 lt_cv_deplibs_check_method=pass_all
12413 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012414 pc)
12415 lt_cv_deplibs_check_method=pass_all
12416 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012417 esac
12418 ;;
12419
Reid Spencera773bd52006-08-04 18:18:08 +000012420sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012421 lt_cv_deplibs_check_method=pass_all
12422 ;;
12423esac
12424
12425fi
Reid Spencera773bd52006-08-04 18:18:08 +000012426{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12427echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012428file_magic_cmd=$lt_cv_file_magic_cmd
12429deplibs_check_method=$lt_cv_deplibs_check_method
12430test -z "$deplibs_check_method" && deplibs_check_method=unknown
12431
12432
12433
12434# If no C compiler was specified, use CC.
12435LTCC=${LTCC-"$CC"}
12436
Reid Spencera773bd52006-08-04 18:18:08 +000012437# If no C compiler flags were specified, use CFLAGS.
12438LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12439
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012440# Allow CC to be a program name with arguments.
12441compiler=$CC
12442
Reid Spencera773bd52006-08-04 18:18:08 +000012443# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012444if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012445 enableval=$enable_libtool_lock;
12446fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012448test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12449
12450# Some flags need to be propagated to the compiler or linker for good
12451# libtool support.
12452case $host in
12453ia64-*-hpux*)
12454 # Find out which ABI we are using.
12455 echo 'int i;' > conftest.$ac_ext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12457 (eval $ac_compile) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; then
12461 case `/usr/bin/file conftest.$ac_objext` in
12462 *ELF-32*)
12463 HPUX_IA64_MODE="32"
12464 ;;
12465 *ELF-64*)
12466 HPUX_IA64_MODE="64"
12467 ;;
12468 esac
12469 fi
12470 rm -rf conftest*
12471 ;;
12472*-*-irix6*)
12473 # Find out which ABI we are using.
Reid Spencer282d8c12006-12-21 22:55:41 +000012474 echo '#line 12474 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; then
12480 if test "$lt_cv_prog_gnu_ld" = yes; then
12481 case `/usr/bin/file conftest.$ac_objext` in
12482 *32-bit*)
12483 LD="${LD-ld} -melf32bsmip"
12484 ;;
12485 *N32*)
12486 LD="${LD-ld} -melf32bmipn32"
12487 ;;
12488 *64-bit*)
12489 LD="${LD-ld} -melf64bmip"
12490 ;;
12491 esac
12492 else
12493 case `/usr/bin/file conftest.$ac_objext` in
12494 *32-bit*)
12495 LD="${LD-ld} -32"
12496 ;;
12497 *N32*)
12498 LD="${LD-ld} -n32"
12499 ;;
12500 *64-bit*)
12501 LD="${LD-ld} -64"
12502 ;;
12503 esac
12504 fi
12505 fi
12506 rm -rf conftest*
12507 ;;
12508
12509x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12510 # Find out which ABI we are using.
12511 echo 'int i;' > conftest.$ac_ext
12512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12513 (eval $ac_compile) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012517 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012518 *32-bit*)
12519 case $host in
12520 x86_64-*linux*)
12521 LD="${LD-ld} -m elf_i386"
12522 ;;
12523 ppc64-*linux*|powerpc64-*linux*)
12524 LD="${LD-ld} -m elf32ppclinux"
12525 ;;
12526 s390x-*linux*)
12527 LD="${LD-ld} -m elf_s390"
12528 ;;
12529 sparc64-*linux*)
12530 LD="${LD-ld} -m elf32_sparc"
12531 ;;
12532 esac
12533 ;;
12534 *64-bit*)
12535 case $host in
12536 x86_64-*linux*)
12537 LD="${LD-ld} -m elf_x86_64"
12538 ;;
12539 ppc*-*linux*|powerpc*-*linux*)
12540 LD="${LD-ld} -m elf64ppc"
12541 ;;
12542 s390*-*linux*)
12543 LD="${LD-ld} -m elf64_s390"
12544 ;;
12545 sparc*-*linux*)
12546 LD="${LD-ld} -m elf64_sparc"
12547 ;;
12548 esac
12549 ;;
12550 esac
12551 fi
12552 rm -rf conftest*
12553 ;;
12554
12555*-*-sco3.2v5*)
12556 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12557 SAVE_CFLAGS="$CFLAGS"
12558 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012559 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12560echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012561if test "${lt_cv_cc_needs_belf+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12563else
12564 ac_ext=c
12565ac_cpp='$CPP $CPPFLAGS'
12566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12568ac_compiler_gnu=$ac_cv_c_compiler_gnu
12569
12570 cat >conftest.$ac_ext <<_ACEOF
12571/* confdefs.h. */
12572_ACEOF
12573cat confdefs.h >>conftest.$ac_ext
12574cat >>conftest.$ac_ext <<_ACEOF
12575/* end confdefs.h. */
12576
Reid Spencera773bd52006-08-04 18:18:08 +000012577int
12578main ()
12579{
12580
12581 ;
12582 return 0;
12583}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012584_ACEOF
12585rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012586if { (ac_try="$ac_link"
12587case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
12591eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012593 ac_status=$?
12594 grep -v '^ *+' conftest.er1 >conftest.err
12595 rm -f conftest.er1
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603esac
12604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; } &&
12609 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012610 { (case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12613esac
12614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 lt_cv_cc_needs_belf=yes
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
Reid Spencera773bd52006-08-04 18:18:08 +000012624 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012625fi
Reid Spencera773bd52006-08-04 18:18:08 +000012626
12627rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012628 conftest$ac_exeext conftest.$ac_ext
12629 ac_ext=c
12630ac_cpp='$CPP $CPPFLAGS'
12631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12633ac_compiler_gnu=$ac_cv_c_compiler_gnu
12634
12635fi
Reid Spencera773bd52006-08-04 18:18:08 +000012636{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12637echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012638 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12639 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12640 CFLAGS="$SAVE_CFLAGS"
12641 fi
12642 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012643sparc*-*solaris*)
12644 # Find out which ABI we are using.
12645 echo 'int i;' > conftest.$ac_ext
12646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12647 (eval $ac_compile) 2>&5
12648 ac_status=$?
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; then
12651 case `/usr/bin/file conftest.o` in
12652 *64-bit*)
12653 case $lt_cv_prog_gnu_ld in
12654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12655 *) LD="${LD-ld} -64" ;;
12656 esac
12657 ;;
12658 esac
12659 fi
12660 rm -rf conftest*
12661 ;;
12662
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012663
12664esac
12665
12666need_locks="$enable_libtool_lock"
12667
12668
Reid Spencer2706f8c2004-09-19 23:53:36 +000012669
12670
12671if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12672 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12673 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012674 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012675ac_cpp='$CXXCPP $CPPFLAGS'
12676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012679{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12680echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012681if test -z "$CXXCPP"; then
12682 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012683 echo $ECHO_N "(cached) $ECHO_C" >&6
12684else
John Criswell47fdd832003-07-14 16:52:07 +000012685 # Double quotes because CXXCPP needs to be expanded
12686 for CXXCPP in "$CXX -E" "/lib/cpp"
12687 do
12688 ac_preproc_ok=false
12689for ac_cxx_preproc_warn_flag in '' yes
12690do
12691 # Use a header file that comes with gcc, so configuring glibc
12692 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012693 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12694 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012695 # On the NeXT, cc -E runs the code through the compiler's parser,
12696 # not just through cpp. "Syntax error" is here to catch this case.
12697 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703#ifdef __STDC__
12704# include <limits.h>
12705#else
12706# include <assert.h>
12707#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012708 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012709_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012710if { (ac_try="$ac_cpp conftest.$ac_ext"
12711case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714esac
12715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012717 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012718 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012726 else
John Criswell47fdd832003-07-14 16:52:07 +000012727 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012728 fi
John Criswell47fdd832003-07-14 16:52:07 +000012729else
12730 ac_cpp_err=yes
12731fi
12732if test -z "$ac_cpp_err"; then
12733 :
12734else
12735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012736sed 's/^/| /' conftest.$ac_ext >&5
12737
John Criswell47fdd832003-07-14 16:52:07 +000012738 # Broken: fails on valid input.
12739continue
12740fi
Reid Spencera773bd52006-08-04 18:18:08 +000012741
John Criswell47fdd832003-07-14 16:52:07 +000012742rm -f conftest.err conftest.$ac_ext
12743
Reid Spencera773bd52006-08-04 18:18:08 +000012744 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012745 # can be detected and how.
12746 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012747/* confdefs.h. */
12748_ACEOF
12749cat confdefs.h >>conftest.$ac_ext
12750cat >>conftest.$ac_ext <<_ACEOF
12751/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012752#include <ac_nonexistent.h>
12753_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012754if { (ac_try="$ac_cpp conftest.$ac_ext"
12755case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758esac
12759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012761 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012762 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); } >/dev/null; then
12767 if test -s conftest.err; then
12768 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012770 else
12771 ac_cpp_err=
12772 fi
12773else
12774 ac_cpp_err=yes
12775fi
12776if test -z "$ac_cpp_err"; then
12777 # Broken: success on invalid input.
12778continue
12779else
12780 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012781sed 's/^/| /' conftest.$ac_ext >&5
12782
John Criswell47fdd832003-07-14 16:52:07 +000012783 # Passes both tests.
12784ac_preproc_ok=:
12785break
12786fi
Reid Spencera773bd52006-08-04 18:18:08 +000012787
John Criswell47fdd832003-07-14 16:52:07 +000012788rm -f conftest.err conftest.$ac_ext
12789
12790done
12791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12792rm -f conftest.err conftest.$ac_ext
12793if $ac_preproc_ok; then
12794 break
John Criswell7a73b802003-06-30 21:59:07 +000012795fi
12796
John Criswell47fdd832003-07-14 16:52:07 +000012797 done
12798 ac_cv_prog_CXXCPP=$CXXCPP
12799
12800fi
12801 CXXCPP=$ac_cv_prog_CXXCPP
12802else
12803 ac_cv_prog_CXXCPP=$CXXCPP
12804fi
Reid Spencera773bd52006-08-04 18:18:08 +000012805{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12806echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012807ac_preproc_ok=false
12808for ac_cxx_preproc_warn_flag in '' yes
12809do
12810 # Use a header file that comes with gcc, so configuring glibc
12811 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012812 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12813 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012814 # On the NeXT, cc -E runs the code through the compiler's parser,
12815 # not just through cpp. "Syntax error" is here to catch this case.
12816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012817/* confdefs.h. */
12818_ACEOF
12819cat confdefs.h >>conftest.$ac_ext
12820cat >>conftest.$ac_ext <<_ACEOF
12821/* end confdefs.h. */
12822#ifdef __STDC__
12823# include <limits.h>
12824#else
12825# include <assert.h>
12826#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012827 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012828_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012829if { (ac_try="$ac_cpp conftest.$ac_ext"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012836 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012837 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } >/dev/null; then
12842 if test -s conftest.err; then
12843 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012844 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012845 else
12846 ac_cpp_err=
12847 fi
12848else
12849 ac_cpp_err=yes
12850fi
12851if test -z "$ac_cpp_err"; then
12852 :
12853else
12854 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012855sed 's/^/| /' conftest.$ac_ext >&5
12856
John Criswell47fdd832003-07-14 16:52:07 +000012857 # Broken: fails on valid input.
12858continue
12859fi
Reid Spencera773bd52006-08-04 18:18:08 +000012860
John Criswell47fdd832003-07-14 16:52:07 +000012861rm -f conftest.err conftest.$ac_ext
12862
Reid Spencera773bd52006-08-04 18:18:08 +000012863 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012864 # can be detected and how.
12865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012871#include <ac_nonexistent.h>
12872_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012873if { (ac_try="$ac_cpp conftest.$ac_ext"
12874case "(($ac_try" in
12875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12877esac
12878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012880 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012881 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012882 rm -f conftest.er1
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } >/dev/null; then
12886 if test -s conftest.err; then
12887 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012889 else
12890 ac_cpp_err=
12891 fi
12892else
12893 ac_cpp_err=yes
12894fi
12895if test -z "$ac_cpp_err"; then
12896 # Broken: success on invalid input.
12897continue
12898else
12899 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012900sed 's/^/| /' conftest.$ac_ext >&5
12901
John Criswell47fdd832003-07-14 16:52:07 +000012902 # Passes both tests.
12903ac_preproc_ok=:
12904break
12905fi
Reid Spencera773bd52006-08-04 18:18:08 +000012906
John Criswell47fdd832003-07-14 16:52:07 +000012907rm -f conftest.err conftest.$ac_ext
12908
12909done
12910# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12911rm -f conftest.err conftest.$ac_ext
12912if $ac_preproc_ok; then
12913 :
12914else
John Criswell0c38eaf2003-09-10 15:17:25 +000012915 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12916See \`config.log' for more details." >&5
12917echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12918See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012919 { (exit 1); exit 1; }; }
12920fi
12921
Reid Spencera773bd52006-08-04 18:18:08 +000012922ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012923ac_cpp='$CXXCPP $CPPFLAGS'
12924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12927
Reid Spencer2706f8c2004-09-19 23:53:36 +000012928fi
12929
John Criswell47fdd832003-07-14 16:52:07 +000012930
12931ac_ext=f
12932ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12933ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12935if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012936 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 +000012937 do
12938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012942if test "${ac_cv_prog_F77+set}" = set; then
12943 echo $ECHO_N "(cached) $ECHO_C" >&6
12944else
12945 if test -n "$F77"; then
12946 ac_cv_prog_F77="$F77" # Let the user override the test.
12947else
12948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949for as_dir in $PATH
12950do
12951 IFS=$as_save_IFS
12952 test -z "$as_dir" && as_dir=.
12953 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012954 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 +000012955 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12957 break 2
12958 fi
12959done
12960done
Reid Spencera773bd52006-08-04 18:18:08 +000012961IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012962
12963fi
12964fi
12965F77=$ac_cv_prog_F77
12966if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012967 { echo "$as_me:$LINENO: result: $F77" >&5
12968echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012969else
Reid Spencera773bd52006-08-04 18:18:08 +000012970 { echo "$as_me:$LINENO: result: no" >&5
12971echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012972fi
12973
Reid Spencera773bd52006-08-04 18:18:08 +000012974
John Criswell47fdd832003-07-14 16:52:07 +000012975 test -n "$F77" && break
12976 done
12977fi
12978if test -z "$F77"; then
12979 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012980 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 +000012981do
12982 # Extract the first word of "$ac_prog", so it can be a program name with args.
12983set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012984{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012986if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 if test -n "$ac_ct_F77"; then
12990 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12991else
12992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012998 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 +000012999 ac_cv_prog_ac_ct_F77="$ac_prog"
13000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 break 2
13002 fi
13003done
13004done
Reid Spencera773bd52006-08-04 18:18:08 +000013005IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013006
13007fi
13008fi
13009ac_ct_F77=$ac_cv_prog_ac_ct_F77
13010if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013011 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
13012echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013013else
Reid Spencera773bd52006-08-04 18:18:08 +000013014 { echo "$as_me:$LINENO: result: no" >&5
13015echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013016fi
13017
Reid Spencera773bd52006-08-04 18:18:08 +000013018
John Criswell47fdd832003-07-14 16:52:07 +000013019 test -n "$ac_ct_F77" && break
13020done
13021
Reid Spencera773bd52006-08-04 18:18:08 +000013022 if test "x$ac_ct_F77" = x; then
13023 F77=""
13024 else
13025 case $cross_compiling:$ac_tool_warned in
13026yes:)
13027{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13028whose name does not start with the host triplet. If you think this
13029configuration is useful to you, please write to autoconf@gnu.org." >&5
13030echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13031whose name does not start with the host triplet. If you think this
13032configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13033ac_tool_warned=yes ;;
13034esac
13035 F77=$ac_ct_F77
13036 fi
John Criswell47fdd832003-07-14 16:52:07 +000013037fi
13038
13039
13040# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013041echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013042ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013043{ (ac_try="$ac_compiler --version >&5"
13044case "(($ac_try" in
13045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046 *) ac_try_echo=$ac_try;;
13047esac
13048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013053{ (ac_try="$ac_compiler -v >&5"
13054case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13057esac
13058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013063{ (ac_try="$ac_compiler -V >&5"
13064case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013073rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013074
13075# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013076# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013077ac_save_ext=$ac_ext
13078ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013079{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13080echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013081if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083else
13084 cat >conftest.$ac_ext <<_ACEOF
13085 program main
13086#ifndef __GNUC__
13087 choke me
13088#endif
13089
13090 end
13091_ACEOF
13092rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013093if { (ac_try="$ac_compile"
13094case "(($ac_try" in
13095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13096 *) ac_try_echo=$ac_try;;
13097esac
13098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13099 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013106 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13107 { (case "(($ac_try" in
13108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13109 *) ac_try_echo=$ac_try;;
13110esac
13111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13112 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013113 ac_status=$?
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); }; } &&
13116 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013117 { (case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13120esac
13121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013123 ac_status=$?
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 ac_compiler_gnu=yes
13127else
13128 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013129sed 's/^/| /' conftest.$ac_ext >&5
13130
Reid Spencera773bd52006-08-04 18:18:08 +000013131 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013132fi
Reid Spencera773bd52006-08-04 18:18:08 +000013133
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013135ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13136
13137fi
Reid Spencera773bd52006-08-04 18:18:08 +000013138{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13139echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013140ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013141ac_test_FFLAGS=${FFLAGS+set}
13142ac_save_FFLAGS=$FFLAGS
13143FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013144{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13145echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013146if test "${ac_cv_prog_f77_g+set}" = set; then
13147 echo $ECHO_N "(cached) $ECHO_C" >&6
13148else
13149 FFLAGS=-g
13150cat >conftest.$ac_ext <<_ACEOF
13151 program main
13152
13153 end
13154_ACEOF
13155rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013156if { (ac_try="$ac_compile"
13157case "(($ac_try" in
13158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159 *) ac_try_echo=$ac_try;;
13160esac
13161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013164 grep -v '^ *+' conftest.er1 >conftest.err
13165 rm -f conftest.er1
13166 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013169 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13170 { (case "(($ac_try" in
13171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13172 *) ac_try_echo=$ac_try;;
13173esac
13174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13175 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013176 ac_status=$?
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); }; } &&
13179 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013180 { (case "(($ac_try" in
13181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182 *) ac_try_echo=$ac_try;;
13183esac
13184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13185 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013186 ac_status=$?
13187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); }; }; then
13189 ac_cv_prog_f77_g=yes
13190else
13191 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013192sed 's/^/| /' conftest.$ac_ext >&5
13193
Reid Spencera773bd52006-08-04 18:18:08 +000013194 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013195fi
Reid Spencera773bd52006-08-04 18:18:08 +000013196
13197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013198
13199fi
Reid Spencera773bd52006-08-04 18:18:08 +000013200{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13201echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013202if test "$ac_test_FFLAGS" = set; then
13203 FFLAGS=$ac_save_FFLAGS
13204elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013205 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013206 FFLAGS="-g -O2"
13207 else
13208 FFLAGS="-g"
13209 fi
13210else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013212 FFLAGS="-O2"
13213 else
13214 FFLAGS=
13215 fi
13216fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013217
13218G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013219ac_ext=c
13220ac_cpp='$CPP $CPPFLAGS'
13221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224
13225
13226
13227# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13228
13229# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013230{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13231echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013232if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13234else
13235 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013236 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013237
13238 case $build_os in
13239 msdosdjgpp*)
13240 # On DJGPP, this test can blow up pretty badly due to problems in libc
13241 # (any single argument exceeding 2000 bytes causes a buffer overrun
13242 # during glob expansion). Even if it were fixed, the result of this
13243 # check would be larger than it should be.
13244 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13245 ;;
13246
13247 gnu*)
13248 # Under GNU Hurd, this test is not required because there is
13249 # no limit to the length of command line arguments.
13250 # Libtool will interpret -1 as no limit whatsoever
13251 lt_cv_sys_max_cmd_len=-1;
13252 ;;
13253
13254 cygwin* | mingw*)
13255 # On Win9x/ME, this test blows up -- it succeeds, but takes
13256 # about 5 minutes as the teststring grows exponentially.
13257 # Worse, since 9x/ME are not pre-emptively multitasking,
13258 # you end up with a "frozen" computer, even though with patience
13259 # the test eventually succeeds (with a max line length of 256k).
13260 # Instead, let's just punt: use the minimum linelength reported by
13261 # all of the supported platforms: 8192 (on NT/2K/XP).
13262 lt_cv_sys_max_cmd_len=8192;
13263 ;;
13264
Reid Spencer2706f8c2004-09-19 23:53:36 +000013265 amigaos*)
13266 # On AmigaOS with pdksh, this test takes hours, literally.
13267 # So we just punt and use a minimum line length of 8192.
13268 lt_cv_sys_max_cmd_len=8192;
13269 ;;
13270
Reid Spencera773bd52006-08-04 18:18:08 +000013271 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013272 # This has been around since 386BSD, at least. Likely further.
13273 if test -x /sbin/sysctl; then
13274 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13275 elif test -x /usr/sbin/sysctl; then
13276 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13277 else
Reid Spencera773bd52006-08-04 18:18:08 +000013278 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013279 fi
13280 # And add a safety zone
13281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013283 ;;
13284
Reid Spencera773bd52006-08-04 18:18:08 +000013285 interix*)
13286 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13287 lt_cv_sys_max_cmd_len=196608
13288 ;;
13289
13290 osf*)
13291 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13292 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13293 # nice to cause kernel panics so lets avoid the loop below.
13294 # First set a reasonable default.
13295 lt_cv_sys_max_cmd_len=16384
13296 #
13297 if test -x /sbin/sysconfig; then
13298 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13299 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13300 esac
13301 fi
13302 ;;
13303 sco3.2v5*)
13304 lt_cv_sys_max_cmd_len=102400
13305 ;;
13306 sysv5* | sco5v6* | sysv4.2uw2*)
13307 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13308 if test -n "$kargmax"; then
13309 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13310 else
13311 lt_cv_sys_max_cmd_len=32768
13312 fi
13313 ;;
13314 *)
John Criswell47fdd832003-07-14 16:52:07 +000013315 # If test is not a shell built-in, we'll probably end up computing a
13316 # maximum length that is only half of the actual maximum length, but
13317 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013318 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13319 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13320 = "XX$teststring") >/dev/null 2>&1 &&
13321 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013322 lt_cv_sys_max_cmd_len=$new_result &&
13323 test $i != 17 # 1/2 MB should be enough
13324 do
13325 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013326 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013327 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013328 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013329 # Add a significant safety factor because C++ compilers can tack on massive
13330 # amounts of additional arguments before passing them to the linker.
13331 # It appears as though 1/2 is a usable value.
13332 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13333 ;;
13334 esac
13335
13336fi
13337
13338if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013339 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13340echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013341else
Reid Spencera773bd52006-08-04 18:18:08 +000013342 { echo "$as_me:$LINENO: result: none" >&5
13343echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013344fi
13345
13346
13347
13348
13349# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013350{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13351echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013352if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354else
13355
13356# These are sane defaults that work on at least a few old systems.
13357# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13358
13359# Character class describing NM global symbol codes.
13360symcode='[BCDEGRST]'
13361
13362# Regexp to match symbols that can be accessed directly from C.
13363sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13364
John Criswell47fdd832003-07-14 16:52:07 +000013365# Transform an extracted symbol line into a proper C declaration
13366lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13367
13368# Transform an extracted symbol line into symbol name and symbol address
13369lt_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'"
13370
13371# Define system-specific variables.
13372case $host_os in
13373aix*)
13374 symcode='[BCDT]'
13375 ;;
13376cygwin* | mingw* | pw32*)
13377 symcode='[ABCDGISTW]'
13378 ;;
13379hpux*) # Its linker distinguishes data from code symbols
13380 if test "$host_cpu" = ia64; then
13381 symcode='[ABCDEGRST]'
13382 fi
13383 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13384 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'"
13385 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013386linux*)
13387 if test "$host_cpu" = ia64; then
13388 symcode='[ABCDGIRSTW]'
13389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13390 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'"
13391 fi
13392 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013393irix* | nonstopux*)
13394 symcode='[BCDEGRST]'
13395 ;;
13396osf*)
13397 symcode='[BCDEGQRST]'
13398 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013399solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013400 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013401 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013402sco3.2v5*)
13403 symcode='[DT]'
13404 ;;
13405sysv4.2uw2*)
13406 symcode='[DT]'
13407 ;;
13408sysv5* | sco5v6* | unixware* | OpenUNIX*)
13409 symcode='[ABDT]'
13410 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013411sysv4)
13412 symcode='[DFNSTU]'
13413 ;;
13414esac
13415
13416# Handle CRLF in mingw tool chain
13417opt_cr=
13418case $build_os in
13419mingw*)
13420 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13421 ;;
13422esac
13423
13424# If we're using GNU nm, then use its standard symbol codes.
13425case `$NM -V 2>&1` in
13426*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013427 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013428esac
13429
13430# Try without a prefix undercore, then with it.
13431for ac_symprfx in "" "_"; do
13432
Reid Spencera773bd52006-08-04 18:18:08 +000013433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13434 symxfrm="\\1 $ac_symprfx\\2 \\2"
13435
John Criswell47fdd832003-07-14 16:52:07 +000013436 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013437 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 +000013438
13439 # Check to see that the pipe works correctly.
13440 pipe_works=no
13441
13442 rm -f conftest*
13443 cat > conftest.$ac_ext <<EOF
13444#ifdef __cplusplus
13445extern "C" {
13446#endif
13447char nm_test_var;
13448void nm_test_func(){}
13449#ifdef __cplusplus
13450}
13451#endif
13452int main(){nm_test_var='a';nm_test_func();return(0);}
13453EOF
13454
13455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13456 (eval $ac_compile) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; then
13460 # Now try to grab the symbols.
13461 nlist=conftest.nm
13462 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13463 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13464 ac_status=$?
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && test -s "$nlist"; then
13467 # Try sorting and uniquifying the output.
13468 if sort "$nlist" | uniq > "$nlist"T; then
13469 mv -f "$nlist"T "$nlist"
13470 else
13471 rm -f "$nlist"T
13472 fi
13473
13474 # Make sure that we snagged all the symbols we need.
13475 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13476 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13477 cat <<EOF > conftest.$ac_ext
13478#ifdef __cplusplus
13479extern "C" {
13480#endif
13481
13482EOF
13483 # Now generate the symbol file.
13484 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13485
13486 cat <<EOF >> conftest.$ac_ext
13487#if defined (__STDC__) && __STDC__
13488# define lt_ptr_t void *
13489#else
13490# define lt_ptr_t char *
13491# define const
13492#endif
13493
13494/* The mapping between symbol names and symbols. */
13495const struct {
13496 const char *name;
13497 lt_ptr_t address;
13498}
13499lt_preloaded_symbols[] =
13500{
13501EOF
13502 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13503 cat <<\EOF >> conftest.$ac_ext
13504 {0, (lt_ptr_t) 0}
13505};
13506
13507#ifdef __cplusplus
13508}
13509#endif
13510EOF
13511 # Now try linking the two files.
13512 mv conftest.$ac_objext conftstm.$ac_objext
13513 lt_save_LIBS="$LIBS"
13514 lt_save_CFLAGS="$CFLAGS"
13515 LIBS="conftstm.$ac_objext"
13516 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13518 (eval $ac_link) 2>&5
13519 ac_status=$?
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13522 pipe_works=yes
13523 fi
13524 LIBS="$lt_save_LIBS"
13525 CFLAGS="$lt_save_CFLAGS"
13526 else
13527 echo "cannot find nm_test_func in $nlist" >&5
13528 fi
13529 else
13530 echo "cannot find nm_test_var in $nlist" >&5
13531 fi
13532 else
13533 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13534 fi
13535 else
13536 echo "$progname: failed program was:" >&5
13537 cat conftest.$ac_ext >&5
13538 fi
13539 rm -f conftest* conftst*
13540
13541 # Do not use the global_symbol_pipe unless it works.
13542 if test "$pipe_works" = yes; then
13543 break
13544 else
13545 lt_cv_sys_global_symbol_pipe=
13546 fi
13547done
13548
13549fi
13550
13551if test -z "$lt_cv_sys_global_symbol_pipe"; then
13552 lt_cv_sys_global_symbol_to_cdecl=
13553fi
13554if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013555 { echo "$as_me:$LINENO: result: failed" >&5
13556echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013557else
Reid Spencera773bd52006-08-04 18:18:08 +000013558 { echo "$as_me:$LINENO: result: ok" >&5
13559echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013560fi
13561
Reid Spencera773bd52006-08-04 18:18:08 +000013562{ echo "$as_me:$LINENO: checking for objdir" >&5
13563echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013564if test "${lt_cv_objdir+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567 rm -f .libs 2>/dev/null
13568mkdir .libs 2>/dev/null
13569if test -d .libs; then
13570 lt_cv_objdir=.libs
13571else
13572 # MS-DOS does not allow filenames that begin with a dot.
13573 lt_cv_objdir=_libs
13574fi
13575rmdir .libs 2>/dev/null
13576fi
Reid Spencera773bd52006-08-04 18:18:08 +000013577{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13578echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013579objdir=$lt_cv_objdir
13580
13581
13582
13583
13584
13585case $host_os in
13586aix3*)
13587 # AIX sometimes has problems with the GCC collect2 program. For some
13588 # reason, if we set the COLLECT_NAMES environment variable, the problems
13589 # vanish in a puff of smoke.
13590 if test "X${COLLECT_NAMES+set}" != Xset; then
13591 COLLECT_NAMES=
13592 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013593 fi
13594 ;;
13595esac
13596
John Criswell47fdd832003-07-14 16:52:07 +000013597# Sed substitution that helps us do robust quoting. It backslashifies
13598# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013599Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013600sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13601
13602# Same as above, but do not quote variable references.
13603double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13604
13605# Sed substitution to delay expansion of an escaped shell variable in a
13606# double_quote_subst'ed string.
13607delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13608
13609# Sed substitution to avoid accidental globbing in evaled expressions
13610no_glob_subst='s/\*/\\\*/g'
13611
13612# Constants:
13613rm="rm -f"
13614
13615# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013616default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013617can_build_shared=yes
13618
Reid Spencera773bd52006-08-04 18:18:08 +000013619# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013620# which needs '.lib').
13621libext=a
13622ltmain="$ac_aux_dir/ltmain.sh"
13623ofile="$default_ofile"
13624with_gnu_ld="$lt_cv_prog_gnu_ld"
13625
13626if test -n "$ac_tool_prefix"; then
13627 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13628set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013631if test "${ac_cv_prog_AR+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633else
13634 if test -n "$AR"; then
13635 ac_cv_prog_AR="$AR" # Let the user override the test.
13636else
13637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13638for as_dir in $PATH
13639do
13640 IFS=$as_save_IFS
13641 test -z "$as_dir" && as_dir=.
13642 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013643 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 +000013644 ac_cv_prog_AR="${ac_tool_prefix}ar"
13645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13646 break 2
13647 fi
13648done
13649done
Reid Spencera773bd52006-08-04 18:18:08 +000013650IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013651
13652fi
13653fi
13654AR=$ac_cv_prog_AR
13655if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013656 { echo "$as_me:$LINENO: result: $AR" >&5
13657echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013658else
Reid Spencera773bd52006-08-04 18:18:08 +000013659 { echo "$as_me:$LINENO: result: no" >&5
13660echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013661fi
13662
Reid Spencera773bd52006-08-04 18:18:08 +000013663
John Criswell47fdd832003-07-14 16:52:07 +000013664fi
13665if test -z "$ac_cv_prog_AR"; then
13666 ac_ct_AR=$AR
13667 # Extract the first word of "ar", so it can be a program name with args.
13668set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013669{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013671if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13672 echo $ECHO_N "(cached) $ECHO_C" >&6
13673else
13674 if test -n "$ac_ct_AR"; then
13675 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13676else
13677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678for as_dir in $PATH
13679do
13680 IFS=$as_save_IFS
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013683 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 +000013684 ac_cv_prog_ac_ct_AR="ar"
13685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13686 break 2
13687 fi
13688done
13689done
Reid Spencera773bd52006-08-04 18:18:08 +000013690IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013691
John Criswell47fdd832003-07-14 16:52:07 +000013692fi
13693fi
13694ac_ct_AR=$ac_cv_prog_ac_ct_AR
13695if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013696 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13697echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013698else
Reid Spencera773bd52006-08-04 18:18:08 +000013699 { echo "$as_me:$LINENO: result: no" >&5
13700echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013701fi
13702
Reid Spencera773bd52006-08-04 18:18:08 +000013703 if test "x$ac_ct_AR" = x; then
13704 AR="false"
13705 else
13706 case $cross_compiling:$ac_tool_warned in
13707yes:)
13708{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13709whose name does not start with the host triplet. If you think this
13710configuration is useful to you, please write to autoconf@gnu.org." >&5
13711echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13712whose name does not start with the host triplet. If you think this
13713configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13714ac_tool_warned=yes ;;
13715esac
13716 AR=$ac_ct_AR
13717 fi
John Criswell47fdd832003-07-14 16:52:07 +000013718else
13719 AR="$ac_cv_prog_AR"
13720fi
13721
John Criswell7a73b802003-06-30 21:59:07 +000013722if test -n "$ac_tool_prefix"; then
13723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13724set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013725{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013727if test "${ac_cv_prog_RANLIB+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729else
13730 if test -n "$RANLIB"; then
13731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13732else
13733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13734for as_dir in $PATH
13735do
13736 IFS=$as_save_IFS
13737 test -z "$as_dir" && as_dir=.
13738 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013739 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 +000013740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13742 break 2
13743 fi
13744done
13745done
Reid Spencera773bd52006-08-04 18:18:08 +000013746IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013747
13748fi
13749fi
13750RANLIB=$ac_cv_prog_RANLIB
13751if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013752 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13753echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013754else
Reid Spencera773bd52006-08-04 18:18:08 +000013755 { echo "$as_me:$LINENO: result: no" >&5
13756echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013757fi
13758
Reid Spencera773bd52006-08-04 18:18:08 +000013759
John Criswell7a73b802003-06-30 21:59:07 +000013760fi
13761if test -z "$ac_cv_prog_RANLIB"; then
13762 ac_ct_RANLIB=$RANLIB
13763 # Extract the first word of "ranlib", so it can be a program name with args.
13764set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013765{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013767if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13769else
13770 if test -n "$ac_ct_RANLIB"; then
13771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13772else
13773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13774for as_dir in $PATH
13775do
13776 IFS=$as_save_IFS
13777 test -z "$as_dir" && as_dir=.
13778 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013779 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 +000013780 ac_cv_prog_ac_ct_RANLIB="ranlib"
13781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13782 break 2
13783 fi
13784done
13785done
Reid Spencera773bd52006-08-04 18:18:08 +000013786IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013787
John Criswell7a73b802003-06-30 21:59:07 +000013788fi
13789fi
13790ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13791if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013792 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13793echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013794else
Reid Spencera773bd52006-08-04 18:18:08 +000013795 { echo "$as_me:$LINENO: result: no" >&5
13796echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013797fi
13798
Reid Spencera773bd52006-08-04 18:18:08 +000013799 if test "x$ac_ct_RANLIB" = x; then
13800 RANLIB=":"
13801 else
13802 case $cross_compiling:$ac_tool_warned in
13803yes:)
13804{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13805whose name does not start with the host triplet. If you think this
13806configuration is useful to you, please write to autoconf@gnu.org." >&5
13807echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13808whose name does not start with the host triplet. If you think this
13809configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13810ac_tool_warned=yes ;;
13811esac
13812 RANLIB=$ac_ct_RANLIB
13813 fi
John Criswell7a73b802003-06-30 21:59:07 +000013814else
13815 RANLIB="$ac_cv_prog_RANLIB"
13816fi
13817
13818if test -n "$ac_tool_prefix"; then
13819 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13820set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013821{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013823if test "${ac_cv_prog_STRIP+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
13826 if test -n "$STRIP"; then
13827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13828else
13829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13830for as_dir in $PATH
13831do
13832 IFS=$as_save_IFS
13833 test -z "$as_dir" && as_dir=.
13834 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013835 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 +000013836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13838 break 2
13839 fi
13840done
13841done
Reid Spencera773bd52006-08-04 18:18:08 +000013842IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013843
13844fi
13845fi
13846STRIP=$ac_cv_prog_STRIP
13847if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013848 { echo "$as_me:$LINENO: result: $STRIP" >&5
13849echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013850else
Reid Spencera773bd52006-08-04 18:18:08 +000013851 { echo "$as_me:$LINENO: result: no" >&5
13852echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013853fi
13854
Reid Spencera773bd52006-08-04 18:18:08 +000013855
John Criswell7a73b802003-06-30 21:59:07 +000013856fi
13857if test -z "$ac_cv_prog_STRIP"; then
13858 ac_ct_STRIP=$STRIP
13859 # Extract the first word of "strip", so it can be a program name with args.
13860set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013861{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013863if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865else
13866 if test -n "$ac_ct_STRIP"; then
13867 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13868else
13869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13870for as_dir in $PATH
13871do
13872 IFS=$as_save_IFS
13873 test -z "$as_dir" && as_dir=.
13874 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013875 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 +000013876 ac_cv_prog_ac_ct_STRIP="strip"
13877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13878 break 2
13879 fi
13880done
13881done
Reid Spencera773bd52006-08-04 18:18:08 +000013882IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013883
John Criswell7a73b802003-06-30 21:59:07 +000013884fi
13885fi
13886ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13887if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013888 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13889echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013890else
Reid Spencera773bd52006-08-04 18:18:08 +000013891 { echo "$as_me:$LINENO: result: no" >&5
13892echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013893fi
13894
Reid Spencera773bd52006-08-04 18:18:08 +000013895 if test "x$ac_ct_STRIP" = x; then
13896 STRIP=":"
13897 else
13898 case $cross_compiling:$ac_tool_warned in
13899yes:)
13900{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13901whose name does not start with the host triplet. If you think this
13902configuration is useful to you, please write to autoconf@gnu.org." >&5
13903echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13904whose name does not start with the host triplet. If you think this
13905configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13906ac_tool_warned=yes ;;
13907esac
13908 STRIP=$ac_ct_STRIP
13909 fi
John Criswell7a73b802003-06-30 21:59:07 +000013910else
13911 STRIP="$ac_cv_prog_STRIP"
13912fi
13913
13914
John Criswell7a73b802003-06-30 21:59:07 +000013915old_CC="$CC"
13916old_CFLAGS="$CFLAGS"
13917
13918# Set sane defaults for various variables
13919test -z "$AR" && AR=ar
13920test -z "$AR_FLAGS" && AR_FLAGS=cru
13921test -z "$AS" && AS=as
13922test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013923test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013924test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013925test -z "$DLLTOOL" && DLLTOOL=dlltool
13926test -z "$LD" && LD=ld
13927test -z "$LN_S" && LN_S="ln -s"
13928test -z "$MAGIC_CMD" && MAGIC_CMD=file
13929test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013930test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013931test -z "$OBJDUMP" && OBJDUMP=objdump
13932test -z "$RANLIB" && RANLIB=:
13933test -z "$STRIP" && STRIP=:
13934test -z "$ac_objext" && ac_objext=o
13935
John Criswell7a73b802003-06-30 21:59:07 +000013936# Determine commands to create old-style static archives.
13937old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13938old_postinstall_cmds='chmod 644 $oldlib'
13939old_postuninstall_cmds=
13940
13941if test -n "$RANLIB"; then
13942 case $host_os in
13943 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013944 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013945 ;;
13946 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013947 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013948 ;;
13949 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013950 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013951fi
13952
Reid Spencera773bd52006-08-04 18:18:08 +000013953for cc_temp in $compiler""; do
13954 case $cc_temp in
13955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13957 \-*) ;;
13958 *) break;;
13959 esac
13960done
13961cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13962
Reid Spencer2706f8c2004-09-19 23:53:36 +000013963
John Criswell47fdd832003-07-14 16:52:07 +000013964# Only perform the check for file, if the check method requires it
13965case $deplibs_check_method in
13966file_magic*)
13967 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013968 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13969echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013970if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13971 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013972else
John Criswell47fdd832003-07-14 16:52:07 +000013973 case $MAGIC_CMD in
13974[\\/*] | ?:[\\/]*)
13975 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13976 ;;
13977*)
13978 lt_save_MAGIC_CMD="$MAGIC_CMD"
13979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13981 for ac_dir in $ac_dummy; do
13982 IFS="$lt_save_ifs"
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f $ac_dir/${ac_tool_prefix}file; then
13985 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13986 if test -n "$file_magic_test_file"; then
13987 case $deplibs_check_method in
13988 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013989 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013990 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13991 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13992 $EGREP "$file_magic_regex" > /dev/null; then
13993 :
13994 else
13995 cat <<EOF 1>&2
13996
13997*** Warning: the command libtool uses to detect shared libraries,
13998*** $file_magic_cmd, produces output that libtool cannot recognize.
13999*** The result is that libtool may fail to recognize shared libraries
14000*** as such. This will affect the creation of libtool libraries that
14001*** depend on shared libraries, but programs linked with such libtool
14002*** libraries will work regardless of this problem. Nevertheless, you
14003*** may want to report the problem to your system manager and/or to
14004*** bug-libtool@gnu.org
14005
14006EOF
14007 fi ;;
14008 esac
14009 fi
14010 break
14011 fi
14012 done
14013 IFS="$lt_save_ifs"
14014 MAGIC_CMD="$lt_save_MAGIC_CMD"
14015 ;;
14016esac
John Criswell7a73b802003-06-30 21:59:07 +000014017fi
John Criswell7a73b802003-06-30 21:59:07 +000014018
John Criswell47fdd832003-07-14 16:52:07 +000014019MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14020if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014021 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14022echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014023else
Reid Spencera773bd52006-08-04 18:18:08 +000014024 { echo "$as_me:$LINENO: result: no" >&5
14025echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014026fi
John Criswell7a73b802003-06-30 21:59:07 +000014027
John Criswell47fdd832003-07-14 16:52:07 +000014028if test -z "$lt_cv_path_MAGIC_CMD"; then
14029 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014030 { echo "$as_me:$LINENO: checking for file" >&5
14031echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014032if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14033 echo $ECHO_N "(cached) $ECHO_C" >&6
14034else
14035 case $MAGIC_CMD in
14036[\\/*] | ?:[\\/]*)
14037 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14038 ;;
14039*)
14040 lt_save_MAGIC_CMD="$MAGIC_CMD"
14041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14042 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14043 for ac_dir in $ac_dummy; do
14044 IFS="$lt_save_ifs"
14045 test -z "$ac_dir" && ac_dir=.
14046 if test -f $ac_dir/file; then
14047 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14048 if test -n "$file_magic_test_file"; then
14049 case $deplibs_check_method in
14050 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014051 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014052 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14053 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14054 $EGREP "$file_magic_regex" > /dev/null; then
14055 :
14056 else
14057 cat <<EOF 1>&2
14058
14059*** Warning: the command libtool uses to detect shared libraries,
14060*** $file_magic_cmd, produces output that libtool cannot recognize.
14061*** The result is that libtool may fail to recognize shared libraries
14062*** as such. This will affect the creation of libtool libraries that
14063*** depend on shared libraries, but programs linked with such libtool
14064*** libraries will work regardless of this problem. Nevertheless, you
14065*** may want to report the problem to your system manager and/or to
14066*** bug-libtool@gnu.org
14067
14068EOF
14069 fi ;;
14070 esac
14071 fi
14072 break
14073 fi
14074 done
14075 IFS="$lt_save_ifs"
14076 MAGIC_CMD="$lt_save_MAGIC_CMD"
14077 ;;
14078esac
14079fi
14080
14081MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14082if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014083 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14084echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014085else
Reid Spencera773bd52006-08-04 18:18:08 +000014086 { echo "$as_me:$LINENO: result: no" >&5
14087echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014088fi
14089
14090 else
14091 MAGIC_CMD=:
14092 fi
14093fi
14094
14095 fi
14096 ;;
14097esac
14098
Reid Spencer17795972004-11-18 09:47:37 +000014099enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014100enable_win32_dll=no
14101
Reid Spencera773bd52006-08-04 18:18:08 +000014102# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014103if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014104 enableval=$enable_libtool_lock;
14105fi
John Criswell47fdd832003-07-14 16:52:07 +000014106
John Criswell47fdd832003-07-14 16:52:07 +000014107test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14108
John Criswell7a73b802003-06-30 21:59:07 +000014109
Reid Spencera773bd52006-08-04 18:18:08 +000014110# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014111if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014112 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014113else
14114 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014115fi
14116
John Criswell7a73b802003-06-30 21:59:07 +000014117test -z "$pic_mode" && pic_mode=default
14118
John Criswell47fdd832003-07-14 16:52:07 +000014119# Use C for the default configuration in the libtool script
14120tagname=
14121lt_save_CC="$CC"
14122ac_ext=c
14123ac_cpp='$CPP $CPPFLAGS'
14124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14126ac_compiler_gnu=$ac_cv_c_compiler_gnu
14127
14128
14129# Source file extension for C test sources.
14130ac_ext=c
14131
14132# Object file extension for compiled C test sources.
14133objext=o
14134objext=$objext
14135
14136# Code to be used in simple compile tests
14137lt_simple_compile_test_code="int some_variable = 0;\n"
14138
14139# Code to be used in simple link tests
14140lt_simple_link_test_code='int main(){return(0);}\n'
14141
14142
14143# If no C compiler was specified, use CC.
14144LTCC=${LTCC-"$CC"}
14145
Reid Spencera773bd52006-08-04 18:18:08 +000014146# If no C compiler flags were specified, use CFLAGS.
14147LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14148
John Criswell47fdd832003-07-14 16:52:07 +000014149# Allow CC to be a program name with arguments.
14150compiler=$CC
14151
14152
Reid Spencera773bd52006-08-04 18:18:08 +000014153# save warnings/boilerplate of simple test code
14154ac_outfile=conftest.$ac_objext
14155printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14156eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14157_lt_compiler_boilerplate=`cat conftest.err`
14158$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014159
Reid Spencera773bd52006-08-04 18:18:08 +000014160ac_outfile=conftest.$ac_objext
14161printf "$lt_simple_link_test_code" >conftest.$ac_ext
14162eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14163_lt_linker_boilerplate=`cat conftest.err`
14164$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014165
14166
John Criswell47fdd832003-07-14 16:52:07 +000014167
14168lt_prog_compiler_no_builtin_flag=
14169
14170if test "$GCC" = yes; then
14171 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14172
Reid Spencer2706f8c2004-09-19 23:53:36 +000014173
Reid Spencera773bd52006-08-04 18:18:08 +000014174{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14175echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014176if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14177 echo $ECHO_N "(cached) $ECHO_C" >&6
14178else
14179 lt_cv_prog_compiler_rtti_exceptions=no
14180 ac_outfile=conftest.$ac_objext
14181 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14182 lt_compiler_flag="-fno-rtti -fno-exceptions"
14183 # Insert the option either (1) after the last *FLAGS variable, or
14184 # (2) before a word containing "conftest.", or (3) at the end.
14185 # Note that $ac_compile itself does not contain backslashes and begins
14186 # with a dollar sign (not a hyphen), so the echo should work correctly.
14187 # The option is referenced via a variable to avoid confusing sed.
14188 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014189 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014190 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14191 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000014192 (eval echo "\"\$as_me:14192: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014193 (eval "$lt_compile" 2>conftest.err)
14194 ac_status=$?
14195 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000014196 echo "$as_me:14196: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014197 if (exit $ac_status) && test -s "$ac_outfile"; then
14198 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014199 # So say no if there are warnings other than the usual output.
14200 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14202 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014203 lt_cv_prog_compiler_rtti_exceptions=yes
14204 fi
14205 fi
14206 $rm conftest*
14207
14208fi
Reid Spencera773bd52006-08-04 18:18:08 +000014209{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14210echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014211
14212if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14213 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14214else
14215 :
14216fi
14217
14218fi
14219
14220lt_prog_compiler_wl=
14221lt_prog_compiler_pic=
14222lt_prog_compiler_static=
14223
Reid Spencera773bd52006-08-04 18:18:08 +000014224{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14225echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014226
14227 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014228 lt_prog_compiler_wl='-Wl,'
14229 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014230
14231 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014232 aix*)
14233 # All AIX code is PIC.
14234 if test "$host_cpu" = ia64; then
14235 # AIX 5 now supports IA64 processor
14236 lt_prog_compiler_static='-Bstatic'
14237 fi
John Criswell7a73b802003-06-30 21:59:07 +000014238 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014239
John Criswell7a73b802003-06-30 21:59:07 +000014240 amigaos*)
14241 # FIXME: we need at least 68020 code to build shared libraries, but
14242 # adding the `-m68020' flag to GCC prevents building anything better,
14243 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014244 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014246
14247 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014248 # PIC is the default for these OSes.
14249 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014250
14251 mingw* | pw32* | os2*)
14252 # This hack is so that the source file can tell whether it is being
14253 # built for inclusion in a dll (and should export symbols for example).
14254 lt_prog_compiler_pic='-DDLL_EXPORT'
14255 ;;
14256
John Criswell7a73b802003-06-30 21:59:07 +000014257 darwin* | rhapsody*)
14258 # PIC is the default on this platform
14259 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014260 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014261 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014262
Reid Spencera773bd52006-08-04 18:18:08 +000014263 interix3*)
14264 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14265 # Instead, we relocate shared libraries at runtime.
14266 ;;
14267
John Criswell47fdd832003-07-14 16:52:07 +000014268 msdosdjgpp*)
14269 # Just because we use GCC doesn't mean we suddenly get shared libraries
14270 # on systems that don't support them.
14271 lt_prog_compiler_can_build_shared=no
14272 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014273 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014274
John Criswell7a73b802003-06-30 21:59:07 +000014275 sysv4*MP*)
14276 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014277 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014278 fi
14279 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014280
14281 hpux*)
14282 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14283 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014284 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014285 hppa*64*|ia64*)
14286 # +Z the default
14287 ;;
14288 *)
14289 lt_prog_compiler_pic='-fPIC'
14290 ;;
14291 esac
14292 ;;
14293
John Criswell7a73b802003-06-30 21:59:07 +000014294 *)
John Criswell47fdd832003-07-14 16:52:07 +000014295 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014296 ;;
14297 esac
14298 else
John Criswell47fdd832003-07-14 16:52:07 +000014299 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014300 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014301 aix*)
14302 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014303 if test "$host_cpu" = ia64; then
14304 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014305 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014306 else
John Criswell47fdd832003-07-14 16:52:07 +000014307 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014308 fi
14309 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014310 darwin*)
14311 # PIC is the default on this platform
14312 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014313 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014314 xlc*)
14315 lt_prog_compiler_pic='-qnocommon'
14316 lt_prog_compiler_wl='-Wl,'
14317 ;;
14318 esac
14319 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014320
John Criswell47fdd832003-07-14 16:52:07 +000014321 mingw* | pw32* | os2*)
14322 # This hack is so that the source file can tell whether it is being
14323 # built for inclusion in a dll (and should export symbols for example).
14324 lt_prog_compiler_pic='-DDLL_EXPORT'
14325 ;;
14326
John Criswell7a73b802003-06-30 21:59:07 +000014327 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014328 lt_prog_compiler_wl='-Wl,'
14329 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14330 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014331 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014332 hppa*64*|ia64*)
14333 # +Z the default
14334 ;;
14335 *)
14336 lt_prog_compiler_pic='+Z'
14337 ;;
14338 esac
14339 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14340 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014341 ;;
14342
John Criswell47fdd832003-07-14 16:52:07 +000014343 irix5* | irix6* | nonstopux*)
14344 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014345 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014346 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014347 ;;
14348
14349 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014350 lt_prog_compiler_pic='-KPIC'
14351 lt_prog_compiler_static='-Bstatic'
14352 ;;
14353
14354 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014355 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014356 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014357 lt_prog_compiler_wl='-Wl,'
14358 lt_prog_compiler_pic='-KPIC'
14359 lt_prog_compiler_static='-static'
14360 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014361 pgcc* | pgf77* | pgf90* | pgf95*)
14362 # Portland Group compilers (*not* the Pentium gcc compiler,
14363 # which looks to be a dead project)
14364 lt_prog_compiler_wl='-Wl,'
14365 lt_prog_compiler_pic='-fpic'
14366 lt_prog_compiler_static='-Bstatic'
14367 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014368 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014369 lt_prog_compiler_wl='-Wl,'
14370 # All Alpha code is PIC.
14371 lt_prog_compiler_static='-non_shared'
14372 ;;
14373 esac
John Criswell7a73b802003-06-30 21:59:07 +000014374 ;;
14375
14376 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014377 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014378 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014379 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014380 ;;
14381
John Criswell7a73b802003-06-30 21:59:07 +000014382 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014383 lt_prog_compiler_pic='-KPIC'
14384 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014385 case $cc_basename in
14386 f77* | f90* | f95*)
14387 lt_prog_compiler_wl='-Qoption ld ';;
14388 *)
14389 lt_prog_compiler_wl='-Wl,';;
14390 esac
John Criswell7a73b802003-06-30 21:59:07 +000014391 ;;
14392
14393 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014394 lt_prog_compiler_wl='-Qoption ld '
14395 lt_prog_compiler_pic='-PIC'
14396 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014397 ;;
14398
Reid Spencera773bd52006-08-04 18:18:08 +000014399 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014400 lt_prog_compiler_wl='-Wl,'
14401 lt_prog_compiler_pic='-KPIC'
14402 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014403 ;;
14404
14405 sysv4*MP*)
14406 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014407 lt_prog_compiler_pic='-Kconform_pic'
14408 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014409 fi
14410 ;;
14411
Reid Spencera773bd52006-08-04 18:18:08 +000014412 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14413 lt_prog_compiler_wl='-Wl,'
14414 lt_prog_compiler_pic='-KPIC'
14415 lt_prog_compiler_static='-Bstatic'
14416 ;;
14417
14418 unicos*)
14419 lt_prog_compiler_wl='-Wl,'
14420 lt_prog_compiler_can_build_shared=no
14421 ;;
14422
John Criswell47fdd832003-07-14 16:52:07 +000014423 uts4*)
14424 lt_prog_compiler_pic='-pic'
14425 lt_prog_compiler_static='-Bstatic'
14426 ;;
14427
John Criswell7a73b802003-06-30 21:59:07 +000014428 *)
John Criswell47fdd832003-07-14 16:52:07 +000014429 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014430 ;;
14431 esac
14432 fi
14433
Reid Spencera773bd52006-08-04 18:18:08 +000014434{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14435echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014436
John Criswell47fdd832003-07-14 16:52:07 +000014437#
14438# Check to make sure the PIC flag actually works.
14439#
14440if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014441
Reid Spencera773bd52006-08-04 18:18:08 +000014442{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14443echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014444if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
John Criswell47fdd832003-07-14 16:52:07 +000014447 lt_prog_compiler_pic_works=no
14448 ac_outfile=conftest.$ac_objext
14449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14450 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14451 # Insert the option either (1) after the last *FLAGS variable, or
14452 # (2) before a word containing "conftest.", or (3) at the end.
14453 # Note that $ac_compile itself does not contain backslashes and begins
14454 # with a dollar sign (not a hyphen), so the echo should work correctly.
14455 # The option is referenced via a variable to avoid confusing sed.
14456 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014457 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14459 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000014460 (eval echo "\"\$as_me:14460: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014461 (eval "$lt_compile" 2>conftest.err)
14462 ac_status=$?
14463 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000014464 echo "$as_me:14464: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014465 if (exit $ac_status) && test -s "$ac_outfile"; then
14466 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014467 # So say no if there are warnings other than the usual output.
14468 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14469 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14470 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014471 lt_prog_compiler_pic_works=yes
14472 fi
14473 fi
14474 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014475
John Criswell47fdd832003-07-14 16:52:07 +000014476fi
Reid Spencera773bd52006-08-04 18:18:08 +000014477{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14478echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014479
John Criswell47fdd832003-07-14 16:52:07 +000014480if test x"$lt_prog_compiler_pic_works" = xyes; then
14481 case $lt_prog_compiler_pic in
14482 "" | " "*) ;;
14483 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14484 esac
John Criswell7a73b802003-06-30 21:59:07 +000014485else
John Criswell47fdd832003-07-14 16:52:07 +000014486 lt_prog_compiler_pic=
14487 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014488fi
14489
John Criswell7a73b802003-06-30 21:59:07 +000014490fi
Reid Spencera773bd52006-08-04 18:18:08 +000014491case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014492 # For platforms which do not support PIC, -DPIC is meaningless:
14493 *djgpp*)
14494 lt_prog_compiler_pic=
14495 ;;
14496 *)
14497 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14498 ;;
14499esac
John Criswell7a73b802003-06-30 21:59:07 +000014500
Reid Spencera773bd52006-08-04 18:18:08 +000014501#
14502# Check to make sure the static flag actually works.
14503#
14504wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14505{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14506echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14507if test "${lt_prog_compiler_static_works+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14509else
14510 lt_prog_compiler_static_works=no
14511 save_LDFLAGS="$LDFLAGS"
14512 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14513 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14514 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14515 # The linker can only warn and ignore the option if not recognized
14516 # So say no if there are warnings
14517 if test -s conftest.err; then
14518 # Append any errors to the config.log.
14519 cat conftest.err 1>&5
14520 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14521 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14522 if diff conftest.exp conftest.er2 >/dev/null; then
14523 lt_prog_compiler_static_works=yes
14524 fi
14525 else
14526 lt_prog_compiler_static_works=yes
14527 fi
14528 fi
14529 $rm conftest*
14530 LDFLAGS="$save_LDFLAGS"
14531
14532fi
14533{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14534echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14535
14536if test x"$lt_prog_compiler_static_works" = xyes; then
14537 :
14538else
14539 lt_prog_compiler_static=
14540fi
14541
14542
14543{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14544echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014545if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014546 echo $ECHO_N "(cached) $ECHO_C" >&6
14547else
John Criswell47fdd832003-07-14 16:52:07 +000014548 lt_cv_prog_compiler_c_o=no
14549 $rm -r conftest 2>/dev/null
14550 mkdir conftest
14551 cd conftest
14552 mkdir out
14553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014554
John Criswell47fdd832003-07-14 16:52:07 +000014555 lt_compiler_flag="-o out/conftest2.$ac_objext"
14556 # Insert the option either (1) after the last *FLAGS variable, or
14557 # (2) before a word containing "conftest.", or (3) at the end.
14558 # Note that $ac_compile itself does not contain backslashes and begins
14559 # with a dollar sign (not a hyphen), so the echo should work correctly.
14560 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14563 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000014564 (eval echo "\"\$as_me:14564: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014565 (eval "$lt_compile" 2>out/conftest.err)
14566 ac_status=$?
14567 cat out/conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000014568 echo "$as_me:14568: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014569 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14570 then
14571 # The compiler can only warn and ignore the option if not recognized
14572 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014573 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014576 lt_cv_prog_compiler_c_o=yes
14577 fi
14578 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014579 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014580 $rm conftest*
14581 # SGI C++ compiler will create directory out/ii_files/ for
14582 # template instantiation
14583 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14584 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014585 cd ..
14586 rmdir conftest
14587 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014588
14589fi
Reid Spencera773bd52006-08-04 18:18:08 +000014590{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14591echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014592
John Criswell7a73b802003-06-30 21:59:07 +000014593
John Criswell7a73b802003-06-30 21:59:07 +000014594hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014595if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014596 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014597 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14598echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014599 hard_links=yes
14600 $rm conftest*
14601 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14602 touch conftest.a
14603 ln conftest.a conftest.b 2>&5 || hard_links=no
14604 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014605 { echo "$as_me:$LINENO: result: $hard_links" >&5
14606echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014607 if test "$hard_links" = no; then
14608 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14609echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14610 need_locks=warn
14611 fi
14612else
14613 need_locks=no
14614fi
John Criswell7a73b802003-06-30 21:59:07 +000014615
Reid Spencera773bd52006-08-04 18:18:08 +000014616{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14617echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014618
14619 runpath_var=
14620 allow_undefined_flag=
14621 enable_shared_with_static_runtimes=no
14622 archive_cmds=
14623 archive_expsym_cmds=
14624 old_archive_From_new_cmds=
14625 old_archive_from_expsyms_cmds=
14626 export_dynamic_flag_spec=
14627 whole_archive_flag_spec=
14628 thread_safe_flag_spec=
14629 hardcode_libdir_flag_spec=
14630 hardcode_libdir_flag_spec_ld=
14631 hardcode_libdir_separator=
14632 hardcode_direct=no
14633 hardcode_minus_L=no
14634 hardcode_shlibpath_var=unsupported
14635 link_all_deplibs=unknown
14636 hardcode_automatic=no
14637 module_cmds=
14638 module_expsym_cmds=
14639 always_export_symbols=no
14640 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14641 # include_expsyms should be a list of space-separated symbols to be *always*
14642 # included in the symbol list
14643 include_expsyms=
14644 # exclude_expsyms can be an extended regexp of symbols to exclude
14645 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14646 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14647 # as well as any symbol that contains `d'.
14648 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14649 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14650 # platforms (ab)use it in PIC code, but their linkers get confused if
14651 # the symbol is explicitly referenced. Since portable code cannot
14652 # rely on this symbol name, it's probably fine to never include it in
14653 # preloaded symbol tables.
14654 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014655 # Just being paranoid about ensuring that cc_basename is set.
14656 for cc_temp in $compiler""; do
14657 case $cc_temp in
14658 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14659 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14660 \-*) ;;
14661 *) break;;
14662 esac
14663done
14664cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014665
14666 case $host_os in
14667 cygwin* | mingw* | pw32*)
14668 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14669 # When not using gcc, we currently assume that we are using
14670 # Microsoft Visual C++.
14671 if test "$GCC" != yes; then
14672 with_gnu_ld=no
14673 fi
14674 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014675 interix*)
14676 # we just hope/assume this is gcc and not c89 (= MSVC++)
14677 with_gnu_ld=yes
14678 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014679 openbsd*)
14680 with_gnu_ld=no
14681 ;;
14682 esac
14683
14684 ld_shlibs=yes
14685 if test "$with_gnu_ld" = yes; then
14686 # If archive_cmds runs LD, not CC, wlarc should be empty
14687 wlarc='${wl}'
14688
Reid Spencera773bd52006-08-04 18:18:08 +000014689 # Set some defaults for GNU ld with shared library support. These
14690 # are reset later if shared libraries are not supported. Putting them
14691 # here allows them to be overridden if necessary.
14692 runpath_var=LD_RUN_PATH
14693 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14694 export_dynamic_flag_spec='${wl}--export-dynamic'
14695 # ancient GNU ld didn't support --whole-archive et. al.
14696 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14697 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14698 else
14699 whole_archive_flag_spec=
14700 fi
14701 supports_anon_versioning=no
14702 case `$LD -v 2>/dev/null` in
14703 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14704 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14705 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14706 *\ 2.11.*) ;; # other 2.11 versions
14707 *) supports_anon_versioning=yes ;;
14708 esac
14709
John Criswell47fdd832003-07-14 16:52:07 +000014710 # See if GNU ld supports shared libraries.
14711 case $host_os in
14712 aix3* | aix4* | aix5*)
14713 # On AIX/PPC, the GNU linker is very broken
14714 if test "$host_cpu" != ia64; then
14715 ld_shlibs=no
14716 cat <<EOF 1>&2
14717
14718*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14719*** to be unable to reliably create shared libraries on AIX.
14720*** Therefore, libtool is disabling shared libraries support. If you
14721*** really care for shared libraries, you may want to modify your PATH
14722*** so that a non-GNU linker is found, and then restart.
14723
14724EOF
14725 fi
14726 ;;
14727
14728 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014729 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 +000014730 hardcode_libdir_flag_spec='-L$libdir'
14731 hardcode_minus_L=yes
14732
14733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14734 # that the semantics of dynamic libraries on AmigaOS, at least up
14735 # to version 4, is to share data among multiple programs linked
14736 # with the same dynamic library. Since this doesn't match the
14737 # behavior of shared libraries on other platforms, we can't use
14738 # them.
14739 ld_shlibs=no
14740 ;;
14741
14742 beos*)
14743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14744 allow_undefined_flag=unsupported
14745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14746 # support --undefined. This deserves some investigation. FIXME
14747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14748 else
14749 ld_shlibs=no
14750 fi
14751 ;;
14752
14753 cygwin* | mingw* | pw32*)
14754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14755 # as there is no search path for DLLs.
14756 hardcode_libdir_flag_spec='-L$libdir'
14757 allow_undefined_flag=unsupported
14758 always_export_symbols=no
14759 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014760 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 +000014761
14762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014763 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 +000014764 # If the export-symbols file already is a .def file (1st line
14765 # is EXPORTS), use it as is; otherwise, prepend...
14766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14767 cp $export_symbols $output_objdir/$soname.def;
14768 else
14769 echo EXPORTS > $output_objdir/$soname.def;
14770 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014771 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14773 else
14774 ld_shlibs=no
14775 fi
14776 ;;
14777
14778 interix3*)
14779 hardcode_direct=no
14780 hardcode_shlibpath_var=no
14781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14782 export_dynamic_flag_spec='${wl}-E'
14783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14784 # Instead, shared libraries are loaded at an image base (0x10000000 by
14785 # default) and relocated if they conflict, which is a slow very memory
14786 # consuming and fragmenting process. To avoid this, we pick a random,
14787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14790 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'
14791 ;;
14792
14793 linux*)
14794 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14795 tmp_addflag=
14796 case $cc_basename,$host_cpu in
14797 pgcc*) # Portland Group C compiler
14798 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'
14799 tmp_addflag=' $pic_flag'
14800 ;;
14801 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14802 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'
14803 tmp_addflag=' $pic_flag -Mnomain' ;;
14804 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14805 tmp_addflag=' -i_dynamic' ;;
14806 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14807 tmp_addflag=' -i_dynamic -nofor_main' ;;
14808 ifc* | ifort*) # Intel Fortran compiler
14809 tmp_addflag=' -nofor_main' ;;
14810 esac
14811 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14812
14813 if test $supports_anon_versioning = yes; then
14814 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14815 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14816 $echo "local: *; };" >> $output_objdir/$libname.ver~
14817 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14818 fi
John Criswell47fdd832003-07-14 16:52:07 +000014819 else
14820 ld_shlibs=no
14821 fi
14822 ;;
14823
14824 netbsd*)
14825 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14826 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14827 wlarc=
14828 else
14829 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14830 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14831 fi
14832 ;;
14833
Reid Spencera773bd52006-08-04 18:18:08 +000014834 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014835 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14836 ld_shlibs=no
14837 cat <<EOF 1>&2
14838
14839*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14840*** create shared libraries on Solaris systems. Therefore, libtool
14841*** is disabling shared libraries support. We urge you to upgrade GNU
14842*** binutils to release 2.9.1 or newer. Another option is to modify
14843*** your PATH or compiler configuration so that the native linker is
14844*** used, and then restart.
14845
14846EOF
14847 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14849 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14850 else
14851 ld_shlibs=no
14852 fi
14853 ;;
14854
Reid Spencera773bd52006-08-04 18:18:08 +000014855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14856 case `$LD -v 2>&1` in
14857 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14858 ld_shlibs=no
14859 cat <<_LT_EOF 1>&2
14860
14861*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14862*** reliably create shared libraries on SCO systems. Therefore, libtool
14863*** is disabling shared libraries support. We urge you to upgrade GNU
14864*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14865*** your PATH or compiler configuration so that the native linker is
14866*** used, and then restart.
14867
14868_LT_EOF
14869 ;;
14870 *)
14871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14872 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14873 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14874 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14875 else
14876 ld_shlibs=no
14877 fi
14878 ;;
14879 esac
14880 ;;
14881
John Criswell47fdd832003-07-14 16:52:07 +000014882 sunos4*)
14883 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14884 wlarc=
14885 hardcode_direct=yes
14886 hardcode_shlibpath_var=no
14887 ;;
14888
14889 *)
14890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14891 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14892 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14893 else
14894 ld_shlibs=no
14895 fi
14896 ;;
14897 esac
14898
Reid Spencera773bd52006-08-04 18:18:08 +000014899 if test "$ld_shlibs" = no; then
14900 runpath_var=
14901 hardcode_libdir_flag_spec=
14902 export_dynamic_flag_spec=
14903 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014904 fi
14905 else
14906 # PORTME fill in a description of your system's linker (not GNU ld)
14907 case $host_os in
14908 aix3*)
14909 allow_undefined_flag=unsupported
14910 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014911 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 +000014912 # Note: this linker hardcodes the directories in LIBPATH if there
14913 # are no directories specified by -L.
14914 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014915 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014916 # Neither direct hardcoding nor static linking is supported with a
14917 # broken collect2.
14918 hardcode_direct=unsupported
14919 fi
14920 ;;
14921
14922 aix4* | aix5*)
14923 if test "$host_cpu" = ia64; then
14924 # On IA64, the linker does run time linking by default, so we don't
14925 # have to do anything special.
14926 aix_use_runtimelinking=no
14927 exp_sym_flag='-Bexport'
14928 no_entry_flag=""
14929 else
14930 # If we're using GNU nm, then we don't want the "-C" option.
14931 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14932 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14933 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'
14934 else
14935 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'
14936 fi
14937 aix_use_runtimelinking=no
14938
14939 # Test if we are trying to use run time linking or normal
14940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14941 # need to do runtime linking.
14942 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14943 for ld_flag in $LDFLAGS; do
14944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14945 aix_use_runtimelinking=yes
14946 break
14947 fi
14948 done
Reid Spencera773bd52006-08-04 18:18:08 +000014949 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014950 esac
14951
14952 exp_sym_flag='-bexport'
14953 no_entry_flag='-bnoentry'
14954 fi
14955
14956 # When large executables or shared objects are built, AIX ld can
14957 # have problems creating the table of contents. If linking a library
14958 # or program results in "error TOC overflow" add -mminimal-toc to
14959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14961
14962 archive_cmds=''
14963 hardcode_direct=yes
14964 hardcode_libdir_separator=':'
14965 link_all_deplibs=yes
14966
14967 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014968 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014969 # We only want to do this on AIX 4.2 and lower, the check
14970 # below for broken collect2 doesn't work under 4.3+
14971 collect2name=`${CC} -print-prog-name=collect2`
14972 if test -f "$collect2name" && \
14973 strings "$collect2name" | grep resolve_lib_name >/dev/null
14974 then
14975 # We have reworked collect2
14976 hardcode_direct=yes
14977 else
14978 # We have old collect2
14979 hardcode_direct=unsupported
14980 # It fails to find uninstalled libraries when the uninstalled
14981 # path is not listed in the libpath. Setting hardcode_minus_L
14982 # to unsupported forces relinking
14983 hardcode_minus_L=yes
14984 hardcode_libdir_flag_spec='-L$libdir'
14985 hardcode_libdir_separator=
14986 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014988 esac
14989 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014990 if test "$aix_use_runtimelinking" = yes; then
14991 shared_flag="$shared_flag "'${wl}-G'
14992 fi
John Criswell47fdd832003-07-14 16:52:07 +000014993 else
14994 # not using gcc
14995 if test "$host_cpu" = ia64; then
14996 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14997 # chokes on -Wl,-G. The following line is correct:
14998 shared_flag='-G'
14999 else
Reid Spencera773bd52006-08-04 18:18:08 +000015000 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000015001 shared_flag='${wl}-G'
15002 else
15003 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000015004 fi
John Criswell47fdd832003-07-14 16:52:07 +000015005 fi
15006 fi
15007
15008 # It seems that -bexpall does not export symbols beginning with
15009 # underscore (_), so it is better to generate a list of symbols to export.
15010 always_export_symbols=yes
15011 if test "$aix_use_runtimelinking" = yes; then
15012 # Warning - without using the other runtime loading flags (-brtl),
15013 # -berok will link without error, but may produce a broken library.
15014 allow_undefined_flag='-berok'
15015 # Determine the default libpath from the value encoded in an empty executable.
15016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015017/* confdefs.h. */
15018_ACEOF
15019cat confdefs.h >>conftest.$ac_ext
15020cat >>conftest.$ac_ext <<_ACEOF
15021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015022
John Criswell7a73b802003-06-30 21:59:07 +000015023int
15024main ()
15025{
John Criswell47fdd832003-07-14 16:52:07 +000015026
John Criswell7a73b802003-06-30 21:59:07 +000015027 ;
15028 return 0;
15029}
15030_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015031rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015032if { (ac_try="$ac_link"
15033case "(($ac_try" in
15034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15035 *) ac_try_echo=$ac_try;;
15036esac
15037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15038 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15046 { (case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049esac
15050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015056 { (case "(($ac_try" in
15057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15058 *) ac_try_echo=$ac_try;;
15059esac
15060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15061 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015062 ac_status=$?
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015065
John Criswell47fdd832003-07-14 16:52:07 +000015066aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15067}'`
15068# Check for a 64-bit object if we didn't find anything.
15069if 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; }
15070}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015071else
15072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015073sed 's/^/| /' conftest.$ac_ext >&5
15074
Reid Spencera773bd52006-08-04 18:18:08 +000015075
John Criswell7a73b802003-06-30 21:59:07 +000015076fi
Reid Spencera773bd52006-08-04 18:18:08 +000015077
15078rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015079 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015081
John Criswell47fdd832003-07-14 16:52:07 +000015082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015083 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 +000015084 else
15085 if test "$host_cpu" = ia64; then
15086 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15087 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015088 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 +000015089 else
15090 # Determine the default libpath from the value encoded in an empty executable.
15091 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015092/* confdefs.h. */
15093_ACEOF
15094cat confdefs.h >>conftest.$ac_ext
15095cat >>conftest.$ac_ext <<_ACEOF
15096/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015097
John Criswell47fdd832003-07-14 16:52:07 +000015098int
15099main ()
15100{
John Criswell7a73b802003-06-30 21:59:07 +000015101
John Criswell47fdd832003-07-14 16:52:07 +000015102 ;
15103 return 0;
15104}
15105_ACEOF
15106rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015107if { (ac_try="$ac_link"
15108case "(($ac_try" in
15109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15110 *) ac_try_echo=$ac_try;;
15111esac
15112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15113 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015114 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015115 grep -v '^ *+' conftest.er1 >conftest.err
15116 rm -f conftest.er1
15117 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15119 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15121 { (case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15124esac
15125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015131 { (case "(($ac_try" in
15132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15133 *) ac_try_echo=$ac_try;;
15134esac
15135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15136 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015137 ac_status=$?
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015140
John Criswell47fdd832003-07-14 16:52:07 +000015141aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15142}'`
15143# Check for a 64-bit object if we didn't find anything.
15144if 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; }
15145}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015146else
John Criswell47fdd832003-07-14 16:52:07 +000015147 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015148sed 's/^/| /' conftest.$ac_ext >&5
15149
Reid Spencera773bd52006-08-04 18:18:08 +000015150
John Criswell47fdd832003-07-14 16:52:07 +000015151fi
Reid Spencera773bd52006-08-04 18:18:08 +000015152
15153rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015154 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015155if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015156
John Criswell47fdd832003-07-14 16:52:07 +000015157 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15158 # Warning - without using the other run time loading flags,
15159 # -berok will link without error, but may produce a broken library.
15160 no_undefined_flag=' ${wl}-bernotok'
15161 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015162 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015163 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015164 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015165 # This is similar to how AIX traditionally builds its shared libraries.
15166 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 +000015167 fi
15168 fi
John Criswell7a73b802003-06-30 21:59:07 +000015169 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015170
15171 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015172 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 +000015173 hardcode_libdir_flag_spec='-L$libdir'
15174 hardcode_minus_L=yes
15175 # see comment about different semantics on the GNU ld section
15176 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015177 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015178
Reid Spencer2706f8c2004-09-19 23:53:36 +000015179 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015180 export_dynamic_flag_spec=-rdynamic
15181 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015182
John Criswell47fdd832003-07-14 16:52:07 +000015183 cygwin* | mingw* | pw32*)
15184 # When not using gcc, we currently assume that we are using
15185 # Microsoft Visual C++.
15186 # hardcode_libdir_flag_spec is actually meaningless, as there is
15187 # no search path for DLLs.
15188 hardcode_libdir_flag_spec=' '
15189 allow_undefined_flag=unsupported
15190 # Tell ltmain to make .lib files, not .a files.
15191 libext=lib
15192 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015193 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015194 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015195 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015196 # The linker will automatically build a .lib file if we build a DLL.
15197 old_archive_From_new_cmds='true'
15198 # FIXME: Should let the user specify the lib program.
15199 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15200 fix_srcfile_path='`cygpath -w "$srcfile"`'
15201 enable_shared_with_static_runtimes=yes
15202 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015203
John Criswell47fdd832003-07-14 16:52:07 +000015204 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015205 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015206 rhapsody* | darwin1.[012])
15207 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15208 ;;
15209 *) # Darwin 1.3 on
15210 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15211 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15212 else
15213 case ${MACOSX_DEPLOYMENT_TARGET} in
15214 10.[012])
15215 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15216 ;;
15217 10.*)
15218 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15219 ;;
15220 esac
15221 fi
15222 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015223 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015224 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015225 hardcode_direct=no
15226 hardcode_automatic=yes
15227 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015228 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015229 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015230 if test "$GCC" = yes ; then
15231 output_verbose_link_cmd='echo'
15232 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15233 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015234 # 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 +000015235 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}'
15236 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 +000015237 else
Reid Spencera773bd52006-08-04 18:18:08 +000015238 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015239 xlc*)
15240 output_verbose_link_cmd='echo'
15241 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15242 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015243 # 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 +000015244 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}'
15245 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 +000015246 ;;
15247 *)
15248 ld_shlibs=no
15249 ;;
15250 esac
John Criswell7a73b802003-06-30 21:59:07 +000015251 fi
John Criswell47fdd832003-07-14 16:52:07 +000015252 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015253
John Criswell47fdd832003-07-14 16:52:07 +000015254 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015256 hardcode_libdir_flag_spec='-L$libdir'
15257 hardcode_shlibpath_var=no
15258 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015259
John Criswell47fdd832003-07-14 16:52:07 +000015260 freebsd1*)
15261 ld_shlibs=no
15262 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015263
John Criswell47fdd832003-07-14 16:52:07 +000015264 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15265 # support. Future versions do this automatically, but an explicit c++rt0.o
15266 # does not break anything, and helps significantly (at the cost of a little
15267 # extra space).
15268 freebsd2.2*)
15269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15270 hardcode_libdir_flag_spec='-R$libdir'
15271 hardcode_direct=yes
15272 hardcode_shlibpath_var=no
15273 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015274
John Criswell47fdd832003-07-14 16:52:07 +000015275 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15276 freebsd2*)
15277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15278 hardcode_direct=yes
15279 hardcode_minus_L=yes
15280 hardcode_shlibpath_var=no
15281 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015282
John Criswell47fdd832003-07-14 16:52:07 +000015283 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015284 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015285 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15286 hardcode_libdir_flag_spec='-R$libdir'
15287 hardcode_direct=yes
15288 hardcode_shlibpath_var=no
15289 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015290
John Criswell47fdd832003-07-14 16:52:07 +000015291 hpux9*)
15292 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015293 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 +000015294 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015295 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 +000015296 fi
15297 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15298 hardcode_libdir_separator=:
15299 hardcode_direct=yes
15300
15301 # hardcode_minus_L: Not really in the search PATH,
15302 # but as the default location of the library.
15303 hardcode_minus_L=yes
15304 export_dynamic_flag_spec='${wl}-E'
15305 ;;
15306
Reid Spencera773bd52006-08-04 18:18:08 +000015307 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015308 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015309 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15310 else
15311 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15312 fi
15313 if test "$with_gnu_ld" = no; then
15314 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15315 hardcode_libdir_separator=:
15316
15317 hardcode_direct=yes
15318 export_dynamic_flag_spec='${wl}-E'
15319
15320 # hardcode_minus_L: Not really in the search PATH,
15321 # but as the default location of the library.
15322 hardcode_minus_L=yes
15323 fi
15324 ;;
15325
15326 hpux11*)
15327 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15328 case $host_cpu in
15329 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015330 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15331 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015332 ia64*)
15333 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015335 *)
15336 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15337 ;;
15338 esac
15339 else
Reid Spencera773bd52006-08-04 18:18:08 +000015340 case $host_cpu in
15341 hppa*64*)
15342 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15343 ;;
15344 ia64*)
15345 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015346 ;;
15347 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015348 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 +000015349 ;;
15350 esac
15351 fi
15352 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015353 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15354 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015355
Reid Spencera773bd52006-08-04 18:18:08 +000015356 case $host_cpu in
15357 hppa*64*|ia64*)
15358 hardcode_libdir_flag_spec_ld='+b $libdir'
15359 hardcode_direct=no
15360 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015361 ;;
15362 *)
John Criswell47fdd832003-07-14 16:52:07 +000015363 hardcode_direct=yes
15364 export_dynamic_flag_spec='${wl}-E'
15365
15366 # hardcode_minus_L: Not really in the search PATH,
15367 # but as the default location of the library.
15368 hardcode_minus_L=yes
15369 ;;
15370 esac
15371 fi
15372 ;;
15373
15374 irix5* | irix6* | nonstopux*)
15375 if test "$GCC" = yes; then
15376 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'
15377 else
15378 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'
15379 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15380 fi
15381 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15382 hardcode_libdir_separator=:
15383 link_all_deplibs=yes
15384 ;;
15385
15386 netbsd*)
15387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15389 else
15390 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15391 fi
15392 hardcode_libdir_flag_spec='-R$libdir'
15393 hardcode_direct=yes
15394 hardcode_shlibpath_var=no
15395 ;;
15396
15397 newsos6)
15398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 hardcode_direct=yes
15400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15401 hardcode_libdir_separator=:
15402 hardcode_shlibpath_var=no
15403 ;;
15404
15405 openbsd*)
15406 hardcode_direct=yes
15407 hardcode_shlibpath_var=no
15408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15409 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015410 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 +000015411 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15412 export_dynamic_flag_spec='${wl}-E'
15413 else
15414 case $host_os in
15415 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15416 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_libdir_flag_spec='-R$libdir'
15418 ;;
15419 *)
15420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15421 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15422 ;;
15423 esac
15424 fi
15425 ;;
15426
15427 os2*)
15428 hardcode_libdir_flag_spec='-L$libdir'
15429 hardcode_minus_L=yes
15430 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015431 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 +000015432 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15433 ;;
15434
15435 osf3*)
15436 if test "$GCC" = yes; then
15437 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15438 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'
15439 else
15440 allow_undefined_flag=' -expect_unresolved \*'
15441 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'
15442 fi
15443 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15444 hardcode_libdir_separator=:
15445 ;;
15446
15447 osf4* | osf5*) # as osf3* with the addition of -msym flag
15448 if test "$GCC" = yes; then
15449 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15450 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'
15451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15452 else
15453 allow_undefined_flag=' -expect_unresolved \*'
15454 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 +000015455 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 +000015456 $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 +000015457
John Criswell47fdd832003-07-14 16:52:07 +000015458 # Both c and cxx compiler support -rpath directly
15459 hardcode_libdir_flag_spec='-rpath $libdir'
15460 fi
15461 hardcode_libdir_separator=:
15462 ;;
15463
John Criswell47fdd832003-07-14 16:52:07 +000015464 solaris*)
15465 no_undefined_flag=' -z text'
15466 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015467 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015468 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015469 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15470 $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 +000015471 else
Reid Spencera773bd52006-08-04 18:18:08 +000015472 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015473 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015474 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15475 $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 +000015476 fi
15477 hardcode_libdir_flag_spec='-R$libdir'
15478 hardcode_shlibpath_var=no
15479 case $host_os in
15480 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015481 *)
15482 # The compiler driver will combine linker options so we
15483 # cannot just pass the convience library names through
15484 # without $wl, iff we do not link with $LD.
15485 # Luckily, gcc supports the same syntax we need for Sun Studio.
15486 # Supported since Solaris 2.6 (maybe 2.5.1?)
15487 case $wlarc in
15488 '')
15489 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15490 *)
15491 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' ;;
15492 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015493 esac
15494 link_all_deplibs=yes
15495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015496
John Criswell47fdd832003-07-14 16:52:07 +000015497 sunos4*)
15498 if test "x$host_vendor" = xsequent; then
15499 # Use $CC to link under sequent, because it throws in some extra .o
15500 # files that make .init and .fini sections work.
15501 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15502 else
15503 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15504 fi
15505 hardcode_libdir_flag_spec='-L$libdir'
15506 hardcode_direct=yes
15507 hardcode_minus_L=yes
15508 hardcode_shlibpath_var=no
15509 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015510
John Criswell47fdd832003-07-14 16:52:07 +000015511 sysv4)
15512 case $host_vendor in
15513 sni)
15514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15515 hardcode_direct=yes # is this really true???
15516 ;;
15517 siemens)
15518 ## LD is ld it makes a PLAMLIB
15519 ## CC just makes a GrossModule.
15520 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15521 reload_cmds='$CC -r -o $output$reload_objs'
15522 hardcode_direct=no
15523 ;;
15524 motorola)
15525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15527 ;;
15528 esac
15529 runpath_var='LD_RUN_PATH'
15530 hardcode_shlibpath_var=no
15531 ;;
15532
15533 sysv4.3*)
15534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15535 hardcode_shlibpath_var=no
15536 export_dynamic_flag_spec='-Bexport'
15537 ;;
15538
15539 sysv4*MP*)
15540 if test -d /usr/nec; then
15541 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15542 hardcode_shlibpath_var=no
15543 runpath_var=LD_RUN_PATH
15544 hardcode_runpath_var=yes
15545 ld_shlibs=yes
15546 fi
15547 ;;
15548
Reid Spencera773bd52006-08-04 18:18:08 +000015549 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15550 no_undefined_flag='${wl}-z,text'
15551 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015552 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015553 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015554
John Criswell47fdd832003-07-14 16:52:07 +000015555 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015556 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15557 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 +000015558 else
Reid Spencera773bd52006-08-04 18:18:08 +000015559 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15560 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 +000015561 fi
John Criswell47fdd832003-07-14 16:52:07 +000015562 ;;
15563
Reid Spencera773bd52006-08-04 18:18:08 +000015564 sysv5* | sco3.2v5* | sco5v6*)
15565 # Note: We can NOT use -z defs as we might desire, because we do not
15566 # link with -lc, and that would cause any symbols used from libc to
15567 # always be unresolved, which means just about no library would
15568 # ever link correctly. If we're not using GNU ld we use -z text
15569 # though, which does catch some bad symbols but isn't as heavy-handed
15570 # as -z defs.
15571 no_undefined_flag='${wl}-z,text'
15572 allow_undefined_flag='${wl}-z,nodefs'
15573 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015574 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015575 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15576 hardcode_libdir_separator=':'
15577 link_all_deplibs=yes
15578 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015579 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015580
15581 if test "$GCC" = yes; then
15582 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15583 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15584 else
15585 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15586 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587 fi
John Criswell47fdd832003-07-14 16:52:07 +000015588 ;;
15589
15590 uts4*)
15591 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15592 hardcode_libdir_flag_spec='-L$libdir'
15593 hardcode_shlibpath_var=no
15594 ;;
15595
15596 *)
15597 ld_shlibs=no
15598 ;;
15599 esac
15600 fi
15601
Reid Spencera773bd52006-08-04 18:18:08 +000015602{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15603echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015604test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015605
John Criswell47fdd832003-07-14 16:52:07 +000015606#
15607# Do we need to explicitly link libc?
15608#
15609case "x$archive_cmds_need_lc" in
15610x|xyes)
15611 # Assume -lc should be added
15612 archive_cmds_need_lc=yes
15613
15614 if test "$enable_shared" = yes && test "$GCC" = yes; then
15615 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015616 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015617 # FIXME: we may have to deal with multi-command sequences.
15618 ;;
15619 '$CC '*)
15620 # Test whether the compiler implicitly links with -lc since on some
15621 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15622 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015623 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15624echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015625 $rm conftest*
15626 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15627
15628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15629 (eval $ac_compile) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } 2>conftest.err; then
15633 soname=conftest
15634 lib=conftest
15635 libobjs=conftest.$ac_objext
15636 deplibs=
15637 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015638 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015639 compiler_flags=-v
15640 linker_flags=-v
15641 verstring=
15642 output_objdir=.
15643 libname=conftest
15644 lt_save_allow_undefined_flag=$allow_undefined_flag
15645 allow_undefined_flag=
15646 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15647 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }
15651 then
15652 archive_cmds_need_lc=no
15653 else
15654 archive_cmds_need_lc=yes
15655 fi
15656 allow_undefined_flag=$lt_save_allow_undefined_flag
15657 else
15658 cat conftest.err 1>&5
15659 fi
15660 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015661 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15662echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015663 ;;
15664 esac
15665 fi
15666 ;;
15667esac
15668
Reid Spencera773bd52006-08-04 18:18:08 +000015669{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15670echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015671library_names_spec=
15672libname_spec='lib$name'
15673soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015674shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015675postinstall_cmds=
15676postuninstall_cmds=
15677finish_cmds=
15678finish_eval=
15679shlibpath_var=
15680shlibpath_overrides_runpath=unknown
15681version_type=none
15682dynamic_linker="$host_os ld.so"
15683sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015684if test "$GCC" = yes; then
15685 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15686 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15687 # if the path contains ";" then we assume it to be the separator
15688 # otherwise default to the standard path separator (i.e. ":") - it is
15689 # assumed that no part of a normal pathname contains ";" but that should
15690 # okay in the real world where ";" in dirpaths is itself problematic.
15691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15692 else
15693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15694 fi
15695else
15696 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15697fi
15698need_lib_prefix=unknown
15699hardcode_into_libs=no
15700
15701# when you set need_version to no, make sure it does not cause -set_version
15702# flags to be left without arguments
15703need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015704
15705case $host_os in
15706aix3*)
15707 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015708 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015709 shlibpath_var=LIBPATH
15710
John Criswell47fdd832003-07-14 16:52:07 +000015711 # AIX 3 has no versioning support, so we append a major version to the name.
15712 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015713 ;;
15714
15715aix4* | aix5*)
15716 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015717 need_lib_prefix=no
15718 need_version=no
15719 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015720 if test "$host_cpu" = ia64; then
15721 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015722 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015723 shlibpath_var=LD_LIBRARY_PATH
15724 else
15725 # With GCC up to 2.95.x, collect2 would create an import file
15726 # for dependence libraries. The import file would start with
15727 # the line `#! .'. This would cause the generated library to
15728 # depend on `.', always an invalid library. This was fixed in
15729 # development snapshots of GCC prior to 3.0.
15730 case $host_os in
15731 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015732 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15733 echo ' yes '
15734 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15735 :
15736 else
15737 can_build_shared=no
15738 fi
15739 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015740 esac
John Criswell47fdd832003-07-14 16:52:07 +000015741 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15742 # soname into executable. Probably we can add versioning support to
15743 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015744 if test "$aix_use_runtimelinking" = yes; then
15745 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15746 # instead of lib<name>.a to let people know that these are not
15747 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015749 else
15750 # We preserve .a as extension for shared libraries through AIX4.2
15751 # and later when we are not doing run time linking.
15752 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015753 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015754 fi
15755 shlibpath_var=LIBPATH
15756 fi
15757 ;;
15758
15759amigaos*)
15760 library_names_spec='$libname.ixlibrary $libname.a'
15761 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015762 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 +000015763 ;;
15764
15765beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015766 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015767 dynamic_linker="$host_os ld.so"
15768 shlibpath_var=LIBRARY_PATH
15769 ;;
15770
Reid Spencer2706f8c2004-09-19 23:53:36 +000015771bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015772 version_type=linux
15773 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015776 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15777 shlibpath_var=LD_LIBRARY_PATH
15778 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15779 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015780 # the default ld.so.conf also contains /usr/contrib/lib and
15781 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15782 # libtool to hard-code these into programs
15783 ;;
15784
15785cygwin* | mingw* | pw32*)
15786 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015787 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015788 need_version=no
15789 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015790
John Criswell7a73b802003-06-30 21:59:07 +000015791 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015792 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015793 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015794 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015795 postinstall_cmds='base_file=`basename \${file}`~
15796 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15797 dldir=$destdir/`dirname \$dlpath`~
15798 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015799 $install_prog $dir/$dlname \$dldir/$dlname~
15800 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015801 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15802 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015803 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015804 shlibpath_overrides_runpath=yes
15805
15806 case $host_os in
15807 cygwin*)
15808 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15809 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 +000015810 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015811 ;;
15812 mingw*)
15813 # MinGW DLLs use traditional 'lib' prefix
15814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15815 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15816 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15817 # It is most probably a Windows format PATH printed by
15818 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15819 # path with ; separators, and with drive letters. We can handle the
15820 # drive letters (cygwin fileutils understands them), so leave them,
15821 # especially as we might pass files found there to a mingw objdump,
15822 # which wouldn't understand a cygwinified path. Ahh.
15823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15824 else
15825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15826 fi
15827 ;;
15828 pw32*)
15829 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015830 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 +000015831 ;;
15832 esac
John Criswell7a73b802003-06-30 21:59:07 +000015833 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015834
John Criswell7a73b802003-06-30 21:59:07 +000015835 *)
John Criswell47fdd832003-07-14 16:52:07 +000015836 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015837 ;;
15838 esac
15839 dynamic_linker='Win32 ld.exe'
15840 # FIXME: first we should search . and the directory the executable is in
15841 shlibpath_var=PATH
15842 ;;
15843
15844darwin* | rhapsody*)
15845 dynamic_linker="$host_os dyld"
15846 version_type=darwin
15847 need_lib_prefix=no
15848 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015849 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015850 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015851 shlibpath_overrides_runpath=yes
15852 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015853 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015854 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015855 if test "$GCC" = yes; then
15856 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"`
15857 else
15858 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015859 fi
15860 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15861 ;;
15862
15863dgux*)
15864 version_type=linux
15865 need_lib_prefix=no
15866 need_version=no
15867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15868 soname_spec='${libname}${release}${shared_ext}$major'
15869 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015870 ;;
15871
15872freebsd1*)
15873 dynamic_linker=no
15874 ;;
15875
Reid Spencer2706f8c2004-09-19 23:53:36 +000015876kfreebsd*-gnu)
15877 version_type=linux
15878 need_lib_prefix=no
15879 need_version=no
15880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15881 soname_spec='${libname}${release}${shared_ext}$major'
15882 shlibpath_var=LD_LIBRARY_PATH
15883 shlibpath_overrides_runpath=no
15884 hardcode_into_libs=yes
15885 dynamic_linker='GNU ld.so'
15886 ;;
15887
Reid Spencera773bd52006-08-04 18:18:08 +000015888freebsd* | dragonfly*)
15889 # DragonFly does not have aout. When/if they implement a new
15890 # versioning mechanism, adjust this.
15891 if test -x /usr/bin/objformat; then
15892 objformat=`/usr/bin/objformat`
15893 else
15894 case $host_os in
15895 freebsd[123]*) objformat=aout ;;
15896 *) objformat=elf ;;
15897 esac
15898 fi
John Criswell7a73b802003-06-30 21:59:07 +000015899 version_type=freebsd-$objformat
15900 case $version_type in
15901 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015903 need_version=no
15904 need_lib_prefix=no
15905 ;;
15906 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015908 need_version=yes
15909 ;;
15910 esac
15911 shlibpath_var=LD_LIBRARY_PATH
15912 case $host_os in
15913 freebsd2*)
15914 shlibpath_overrides_runpath=yes
15915 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015916 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015917 shlibpath_overrides_runpath=yes
15918 hardcode_into_libs=yes
15919 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15924 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015925 freebsd*) # from 4.6 on
15926 shlibpath_overrides_runpath=yes
15927 hardcode_into_libs=yes
15928 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015929 esac
15930 ;;
15931
15932gnu*)
15933 version_type=linux
15934 need_lib_prefix=no
15935 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015938 shlibpath_var=LD_LIBRARY_PATH
15939 hardcode_into_libs=yes
15940 ;;
15941
15942hpux9* | hpux10* | hpux11*)
15943 # Give a soname corresponding to the major version so that dld.sl refuses to
15944 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015945 version_type=sunos
15946 need_lib_prefix=no
15947 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015948 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015949 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015950 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015951 hardcode_into_libs=yes
15952 dynamic_linker="$host_os dld.so"
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 if test "X$HPUX_IA64_MODE" = X32; then
15958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15959 else
15960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15961 fi
15962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15963 ;;
15964 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015965 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015966 hardcode_into_libs=yes
15967 dynamic_linker="$host_os dld.sl"
15968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15974 ;;
15975 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015976 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015977 dynamic_linker="$host_os dld.sl"
15978 shlibpath_var=SHLIB_PATH
15979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981 soname_spec='${libname}${release}${shared_ext}$major'
15982 ;;
15983 esac
John Criswell7a73b802003-06-30 21:59:07 +000015984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15985 postinstall_cmds='chmod 555 $lib'
15986 ;;
15987
Reid Spencera773bd52006-08-04 18:18:08 +000015988interix3*)
15989 version_type=linux
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=no
15997 hardcode_into_libs=yes
15998 ;;
15999
John Criswell47fdd832003-07-14 16:52:07 +000016000irix5* | irix6* | nonstopux*)
16001 case $host_os in
16002 nonstopux*) version_type=nonstopux ;;
16003 *)
16004 if test "$lt_cv_prog_gnu_ld" = yes; then
16005 version_type=linux
16006 else
16007 version_type=irix
16008 fi ;;
16009 esac
John Criswell7a73b802003-06-30 21:59:07 +000016010 need_lib_prefix=no
16011 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016012 soname_spec='${libname}${release}${shared_ext}$major'
16013 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 +000016014 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000016015 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000016016 libsuff= shlibsuff=
16017 ;;
16018 *)
16019 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000016020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16021 libsuff= shlibsuff= libmagic=32-bit;;
16022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16023 libsuff=32 shlibsuff=N32 libmagic=N32;;
16024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000016026 *) libsuff= shlibsuff= libmagic=never-match;;
16027 esac
16028 ;;
16029 esac
16030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16031 shlibpath_overrides_runpath=no
16032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016034 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016035 ;;
16036
16037# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016038linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016039 dynamic_linker=no
16040 ;;
16041
16042# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016043linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 # This implies no fast_install, which is unacceptable.
16053 # Some rework will be needed to allow for fast_install
16054 # before this can be enabled.
16055 hardcode_into_libs=yes
16056
Reid Spencer2706f8c2004-09-19 23:53:36 +000016057 # Append ld.so.conf contents to the search path
16058 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016059 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 +000016060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16061 fi
16062
John Criswell7a73b802003-06-30 21:59:07 +000016063 # We used to test for /lib/ld.so.1 and disable shared libraries on
16064 # powerpc, because MkLinux only supported shared libraries with the
16065 # GNU dynamic linker. Since this was broken with cross compilers,
16066 # most powerpc-linux boxes support dynamic linking these days and
16067 # people can always --disable-shared, the test was removed, and we
16068 # assume the GNU/Linux dynamic linker is in use.
16069 dynamic_linker='GNU/Linux ld.so'
16070 ;;
16071
Reid Spencer2706f8c2004-09-19 23:53:36 +000016072knetbsd*-gnu)
16073 version_type=linux
16074 need_lib_prefix=no
16075 need_version=no
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=no
16080 hardcode_into_libs=yes
16081 dynamic_linker='GNU ld.so'
16082 ;;
16083
John Criswell7a73b802003-06-30 21:59:07 +000016084netbsd*)
16085 version_type=sunos
16086 need_lib_prefix=no
16087 need_version=no
16088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091 dynamic_linker='NetBSD (a.out) ld.so'
16092 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016094 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016095 dynamic_linker='NetBSD ld.elf_so'
16096 fi
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16100 ;;
16101
16102newsos6)
16103 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=yes
16107 ;;
16108
Reid Spencer2706f8c2004-09-19 23:53:36 +000016109nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 ;;
16118
16119openbsd*)
16120 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016121 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016122 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124 case $host_os in
16125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126 *) need_version=no ;;
16127 esac
John Criswell47fdd832003-07-14 16:52:07 +000016128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016131 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 +000016132 case $host_os in
16133 openbsd2.[89] | openbsd2.[89].*)
16134 shlibpath_overrides_runpath=no
16135 ;;
16136 *)
16137 shlibpath_overrides_runpath=yes
16138 ;;
16139 esac
John Criswell7a73b802003-06-30 21:59:07 +000016140 else
16141 shlibpath_overrides_runpath=yes
16142 fi
John Criswell7a73b802003-06-30 21:59:07 +000016143 ;;
16144
16145os2*)
16146 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016147 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016148 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016149 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016150 dynamic_linker='OS/2 ld.exe'
16151 shlibpath_var=LIBPATH
16152 ;;
16153
16154osf3* | osf4* | osf5*)
16155 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016156 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016157 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016158 soname_spec='${libname}${release}${shared_ext}$major'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016160 shlibpath_var=LD_LIBRARY_PATH
16161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16163 ;;
16164
John Criswell7a73b802003-06-30 21:59:07 +000016165solaris*)
16166 version_type=linux
16167 need_lib_prefix=no
16168 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016171 shlibpath_var=LD_LIBRARY_PATH
16172 shlibpath_overrides_runpath=yes
16173 hardcode_into_libs=yes
16174 # ldd complains unless libraries are executable
16175 postinstall_cmds='chmod +x $lib'
16176 ;;
16177
16178sunos4*)
16179 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16182 shlibpath_var=LD_LIBRARY_PATH
16183 shlibpath_overrides_runpath=yes
16184 if test "$with_gnu_ld" = yes; then
16185 need_lib_prefix=no
16186 fi
16187 need_version=yes
16188 ;;
16189
Reid Spencera773bd52006-08-04 18:18:08 +000016190sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016191 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16193 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016194 shlibpath_var=LD_LIBRARY_PATH
16195 case $host_vendor in
16196 sni)
16197 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016198 need_lib_prefix=no
16199 export_dynamic_flag_spec='${wl}-Blargedynsym'
16200 runpath_var=LD_RUN_PATH
16201 ;;
16202 siemens)
16203 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016204 ;;
16205 motorola)
16206 need_lib_prefix=no
16207 need_version=no
16208 shlibpath_overrides_runpath=no
16209 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16210 ;;
16211 esac
16212 ;;
16213
John Criswell7a73b802003-06-30 21:59:07 +000016214sysv4*MP*)
16215 if test -d /usr/nec ;then
16216 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016217 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16218 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016219 shlibpath_var=LD_LIBRARY_PATH
16220 fi
16221 ;;
16222
Reid Spencera773bd52006-08-04 18:18:08 +000016223sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16224 version_type=freebsd-elf
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16231 if test "$with_gnu_ld" = yes; then
16232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16233 shlibpath_overrides_runpath=no
16234 else
16235 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16236 shlibpath_overrides_runpath=yes
16237 case $host_os in
16238 sco3.2v5*)
16239 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16240 ;;
16241 esac
16242 fi
16243 sys_lib_dlsearch_path_spec='/usr/lib'
16244 ;;
16245
John Criswell47fdd832003-07-14 16:52:07 +000016246uts4*)
16247 version_type=linux
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249 soname_spec='${libname}${release}${shared_ext}$major'
16250 shlibpath_var=LD_LIBRARY_PATH
16251 ;;
16252
John Criswell7a73b802003-06-30 21:59:07 +000016253*)
16254 dynamic_linker=no
16255 ;;
16256esac
Reid Spencera773bd52006-08-04 18:18:08 +000016257{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16258echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016259test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016260
Reid Spencera773bd52006-08-04 18:18:08 +000016261variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262if test "$GCC" = yes; then
16263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264fi
16265
16266{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16267echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016268hardcode_action=
16269if test -n "$hardcode_libdir_flag_spec" || \
16270 test -n "$runpath_var" || \
16271 test "X$hardcode_automatic" = "Xyes" ; then
16272
16273 # We can hardcode non-existant directories.
16274 if test "$hardcode_direct" != no &&
16275 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16276 # have to relink, otherwise we might link with an installed library
16277 # when we should be linking with a yet-to-be-installed one
16278 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16279 test "$hardcode_minus_L" != no; then
16280 # Linking always hardcodes the temporary library directory.
16281 hardcode_action=relink
16282 else
16283 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16284 hardcode_action=immediate
16285 fi
16286else
16287 # We cannot hardcode anything, or else we can only hardcode existing
16288 # directories.
16289 hardcode_action=unsupported
16290fi
Reid Spencera773bd52006-08-04 18:18:08 +000016291{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16292echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016293
16294if test "$hardcode_action" = relink; then
16295 # Fast installation is not supported
16296 enable_fast_install=no
16297elif test "$shlibpath_overrides_runpath" = yes ||
16298 test "$enable_shared" = no; then
16299 # Fast installation is not necessary
16300 enable_fast_install=needless
16301fi
16302
16303striplib=
16304old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016305{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16306echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016307if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16308 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16309 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016310 { echo "$as_me:$LINENO: result: yes" >&5
16311echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016312else
16313# FIXME - insert some real tests, host_os isn't really good enough
16314 case $host_os in
16315 darwin*)
16316 if test -n "$STRIP" ; then
16317 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016318 { echo "$as_me:$LINENO: result: yes" >&5
16319echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016320 else
Reid Spencera773bd52006-08-04 18:18:08 +000016321 { echo "$as_me:$LINENO: result: no" >&5
16322echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016323fi
16324 ;;
16325 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016326 { echo "$as_me:$LINENO: result: no" >&5
16327echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016328 ;;
16329 esac
16330fi
16331
John Criswell7a73b802003-06-30 21:59:07 +000016332if test "x$enable_dlopen" != xyes; then
16333 enable_dlopen=unknown
16334 enable_dlopen_self=unknown
16335 enable_dlopen_self_static=unknown
16336else
16337 lt_cv_dlopen=no
16338 lt_cv_dlopen_libs=
16339
16340 case $host_os in
16341 beos*)
16342 lt_cv_dlopen="load_add_on"
16343 lt_cv_dlopen_libs=
16344 lt_cv_dlopen_self=yes
16345 ;;
16346
John Criswell47fdd832003-07-14 16:52:07 +000016347 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016348 lt_cv_dlopen="LoadLibrary"
16349 lt_cv_dlopen_libs=
16350 ;;
16351
John Criswell47fdd832003-07-14 16:52:07 +000016352 cygwin*)
16353 lt_cv_dlopen="dlopen"
16354 lt_cv_dlopen_libs=
16355 ;;
16356
16357 darwin*)
16358 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016359 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16360echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016361if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16363else
16364 ac_check_lib_save_LIBS=$LIBS
16365LIBS="-ldl $LIBS"
16366cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016367/* confdefs.h. */
16368_ACEOF
16369cat confdefs.h >>conftest.$ac_ext
16370cat >>conftest.$ac_ext <<_ACEOF
16371/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016372
Reid Spencera773bd52006-08-04 18:18:08 +000016373/* Override any GCC internal prototype to avoid an error.
16374 Use char because int might match the return type of a GCC
16375 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016376#ifdef __cplusplus
16377extern "C"
16378#endif
John Criswell47fdd832003-07-14 16:52:07 +000016379char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016380int
16381main ()
16382{
Reid Spencera773bd52006-08-04 18:18:08 +000016383return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016384 ;
16385 return 0;
16386}
16387_ACEOF
16388rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016389if { (ac_try="$ac_link"
16390case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393esac
16394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16395 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016397 grep -v '^ *+' conftest.er1 >conftest.err
16398 rm -f conftest.er1
16399 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16403 { (case "(($ac_try" in
16404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16405 *) ac_try_echo=$ac_try;;
16406esac
16407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16408 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016413 { (case "(($ac_try" in
16414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16415 *) ac_try_echo=$ac_try;;
16416esac
16417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16418 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; }; then
16422 ac_cv_lib_dl_dlopen=yes
16423else
16424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016425sed 's/^/| /' conftest.$ac_ext >&5
16426
Reid Spencera773bd52006-08-04 18:18:08 +000016427 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016428fi
Reid Spencera773bd52006-08-04 18:18:08 +000016429
16430rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016431 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016432LIBS=$ac_check_lib_save_LIBS
16433fi
Reid Spencera773bd52006-08-04 18:18:08 +000016434{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16435echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016436if test $ac_cv_lib_dl_dlopen = yes; then
16437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16438else
16439
16440 lt_cv_dlopen="dyld"
16441 lt_cv_dlopen_libs=
16442 lt_cv_dlopen_self=yes
16443
16444fi
16445
16446 ;;
16447
John Criswell7a73b802003-06-30 21:59:07 +000016448 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016449 { echo "$as_me:$LINENO: checking for shl_load" >&5
16450echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016451if test "${ac_cv_func_shl_load+set}" = set; then
16452 echo $ECHO_N "(cached) $ECHO_C" >&6
16453else
16454 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016460/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16462#define shl_load innocuous_shl_load
16463
John Criswell7a73b802003-06-30 21:59:07 +000016464/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016465 which can conflict with char shl_load (); below.
16466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16467 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016468
John Criswell0c38eaf2003-09-10 15:17:25 +000016469#ifdef __STDC__
16470# include <limits.h>
16471#else
16472# include <assert.h>
16473#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016474
16475#undef shl_load
16476
Reid Spencera773bd52006-08-04 18:18:08 +000016477/* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016480#ifdef __cplusplus
16481extern "C"
16482#endif
John Criswell7a73b802003-06-30 21:59:07 +000016483char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016484/* The GNU C library defines this for functions which it implements
16485 to always fail with ENOSYS. Some functions are actually named
16486 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016487#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016488choke me
John Criswell7a73b802003-06-30 21:59:07 +000016489#endif
16490
John Criswell0c38eaf2003-09-10 15:17:25 +000016491int
16492main ()
16493{
Reid Spencera773bd52006-08-04 18:18:08 +000016494return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016500if { (ac_try="$ac_link"
16501case "(($ac_try" in
16502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16503 *) ac_try_echo=$ac_try;;
16504esac
16505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16506 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16514 { (case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16517esac
16518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016520 ac_status=$?
16521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; } &&
16523 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016524 { (case "(($ac_try" in
16525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16526 *) ac_try_echo=$ac_try;;
16527esac
16528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16529 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 ac_cv_func_shl_load=yes
16534else
16535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016536sed 's/^/| /' conftest.$ac_ext >&5
16537
Reid Spencera773bd52006-08-04 18:18:08 +000016538 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016539fi
Reid Spencera773bd52006-08-04 18:18:08 +000016540
16541rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016542 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016543fi
Reid Spencera773bd52006-08-04 18:18:08 +000016544{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16545echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016546if test $ac_cv_func_shl_load = yes; then
16547 lt_cv_dlopen="shl_load"
16548else
Reid Spencera773bd52006-08-04 18:18:08 +000016549 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16550echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016551if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554 ac_check_lib_save_LIBS=$LIBS
16555LIBS="-ldld $LIBS"
16556cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016557/* confdefs.h. */
16558_ACEOF
16559cat confdefs.h >>conftest.$ac_ext
16560cat >>conftest.$ac_ext <<_ACEOF
16561/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016562
Reid Spencera773bd52006-08-04 18:18:08 +000016563/* Override any GCC internal prototype to avoid an error.
16564 Use char because int might match the return type of a GCC
16565 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016566#ifdef __cplusplus
16567extern "C"
16568#endif
John Criswell7a73b802003-06-30 21:59:07 +000016569char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016570int
16571main ()
16572{
Reid Spencera773bd52006-08-04 18:18:08 +000016573return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016574 ;
16575 return 0;
16576}
16577_ACEOF
16578rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016579if { (ac_try="$ac_link"
16580case "(($ac_try" in
16581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16582 *) ac_try_echo=$ac_try;;
16583esac
16584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16585 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (case "(($ac_try" in
16594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16595 *) ac_try_echo=$ac_try;;
16596esac
16597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16598 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016599 ac_status=$?
16600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601 (exit $ac_status); }; } &&
16602 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016603 { (case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606esac
16607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_lib_dld_shl_load=yes
16613else
16614 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016615sed 's/^/| /' conftest.$ac_ext >&5
16616
Reid Spencera773bd52006-08-04 18:18:08 +000016617 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016618fi
Reid Spencera773bd52006-08-04 18:18:08 +000016619
16620rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016621 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016622LIBS=$ac_check_lib_save_LIBS
16623fi
Reid Spencera773bd52006-08-04 18:18:08 +000016624{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16625echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016626if test $ac_cv_lib_dld_shl_load = yes; then
16627 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16628else
Reid Spencera773bd52006-08-04 18:18:08 +000016629 { echo "$as_me:$LINENO: checking for dlopen" >&5
16630echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016631if test "${ac_cv_func_dlopen+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633else
16634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016640/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16642#define dlopen innocuous_dlopen
16643
John Criswell7a73b802003-06-30 21:59:07 +000016644/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016645 which can conflict with char dlopen (); below.
16646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016648
John Criswell0c38eaf2003-09-10 15:17:25 +000016649#ifdef __STDC__
16650# include <limits.h>
16651#else
16652# include <assert.h>
16653#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016654
16655#undef dlopen
16656
Reid Spencera773bd52006-08-04 18:18:08 +000016657/* Override any GCC internal prototype to avoid an error.
16658 Use char because int might match the return type of a GCC
16659 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016660#ifdef __cplusplus
16661extern "C"
16662#endif
John Criswell7a73b802003-06-30 21:59:07 +000016663char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016664/* The GNU C library defines this for functions which it implements
16665 to always fail with ENOSYS. Some functions are actually named
16666 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016667#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016668choke me
John Criswell7a73b802003-06-30 21:59:07 +000016669#endif
16670
John Criswell0c38eaf2003-09-10 15:17:25 +000016671int
16672main ()
16673{
Reid Spencera773bd52006-08-04 18:18:08 +000016674return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016675 ;
16676 return 0;
16677}
16678_ACEOF
16679rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016680if { (ac_try="$ac_link"
16681case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16684esac
16685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016688 grep -v '^ *+' conftest.er1 >conftest.err
16689 rm -f conftest.er1
16690 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016700 ac_status=$?
16701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702 (exit $ac_status); }; } &&
16703 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016704 { (case "(($ac_try" in
16705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706 *) ac_try_echo=$ac_try;;
16707esac
16708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016710 ac_status=$?
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); }; }; then
16713 ac_cv_func_dlopen=yes
16714else
16715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016716sed 's/^/| /' conftest.$ac_ext >&5
16717
Reid Spencera773bd52006-08-04 18:18:08 +000016718 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016719fi
Reid Spencera773bd52006-08-04 18:18:08 +000016720
16721rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016722 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016723fi
Reid Spencera773bd52006-08-04 18:18:08 +000016724{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16725echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016726if test $ac_cv_func_dlopen = yes; then
16727 lt_cv_dlopen="dlopen"
16728else
Reid Spencera773bd52006-08-04 18:18:08 +000016729 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16730echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016731if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16732 echo $ECHO_N "(cached) $ECHO_C" >&6
16733else
16734 ac_check_lib_save_LIBS=$LIBS
16735LIBS="-ldl $LIBS"
16736cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016737/* confdefs.h. */
16738_ACEOF
16739cat confdefs.h >>conftest.$ac_ext
16740cat >>conftest.$ac_ext <<_ACEOF
16741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016742
Reid Spencera773bd52006-08-04 18:18:08 +000016743/* Override any GCC internal prototype to avoid an error.
16744 Use char because int might match the return type of a GCC
16745 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016746#ifdef __cplusplus
16747extern "C"
16748#endif
John Criswell7a73b802003-06-30 21:59:07 +000016749char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016750int
16751main ()
16752{
Reid Spencera773bd52006-08-04 18:18:08 +000016753return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016759if { (ac_try="$ac_link"
16760case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763esac
16764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16765 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016766 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016767 grep -v '^ *+' conftest.er1 >conftest.err
16768 rm -f conftest.er1
16769 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16773 { (case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776esac
16777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; } &&
16782 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16786esac
16787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_cv_lib_dl_dlopen=yes
16793else
16794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016795sed 's/^/| /' conftest.$ac_ext >&5
16796
Reid Spencera773bd52006-08-04 18:18:08 +000016797 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016798fi
Reid Spencera773bd52006-08-04 18:18:08 +000016799
16800rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016801 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016802LIBS=$ac_check_lib_save_LIBS
16803fi
Reid Spencera773bd52006-08-04 18:18:08 +000016804{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16805echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016806if test $ac_cv_lib_dl_dlopen = yes; then
16807 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16808else
Reid Spencera773bd52006-08-04 18:18:08 +000016809 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16810echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016811if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16812 echo $ECHO_N "(cached) $ECHO_C" >&6
16813else
16814 ac_check_lib_save_LIBS=$LIBS
16815LIBS="-lsvld $LIBS"
16816cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016817/* confdefs.h. */
16818_ACEOF
16819cat confdefs.h >>conftest.$ac_ext
16820cat >>conftest.$ac_ext <<_ACEOF
16821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016822
Reid Spencera773bd52006-08-04 18:18:08 +000016823/* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016826#ifdef __cplusplus
16827extern "C"
16828#endif
John Criswell7a73b802003-06-30 21:59:07 +000016829char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016830int
16831main ()
16832{
Reid Spencera773bd52006-08-04 18:18:08 +000016833return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016839if { (ac_try="$ac_link"
16840case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16843esac
16844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016847 grep -v '^ *+' conftest.er1 >conftest.err
16848 rm -f conftest.er1
16849 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16853 { (case "(($ac_try" in
16854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855 *) ac_try_echo=$ac_try;;
16856esac
16857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); }; } &&
16862 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016863 { (case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_cv_lib_svld_dlopen=yes
16873else
16874 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016875sed 's/^/| /' conftest.$ac_ext >&5
16876
Reid Spencera773bd52006-08-04 18:18:08 +000016877 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016878fi
Reid Spencera773bd52006-08-04 18:18:08 +000016879
16880rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016882LIBS=$ac_check_lib_save_LIBS
16883fi
Reid Spencera773bd52006-08-04 18:18:08 +000016884{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16885echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016886if test $ac_cv_lib_svld_dlopen = yes; then
16887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16888else
Reid Spencera773bd52006-08-04 18:18:08 +000016889 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16890echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016891if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16892 echo $ECHO_N "(cached) $ECHO_C" >&6
16893else
16894 ac_check_lib_save_LIBS=$LIBS
16895LIBS="-ldld $LIBS"
16896cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016897/* confdefs.h. */
16898_ACEOF
16899cat confdefs.h >>conftest.$ac_ext
16900cat >>conftest.$ac_ext <<_ACEOF
16901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016902
Reid Spencera773bd52006-08-04 18:18:08 +000016903/* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016906#ifdef __cplusplus
16907extern "C"
16908#endif
John Criswell7a73b802003-06-30 21:59:07 +000016909char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016910int
16911main ()
16912{
Reid Spencera773bd52006-08-04 18:18:08 +000016913return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016919if { (ac_try="$ac_link"
16920case "(($ac_try" in
16921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16922 *) ac_try_echo=$ac_try;;
16923esac
16924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16925 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016927 grep -v '^ *+' conftest.er1 >conftest.err
16928 rm -f conftest.er1
16929 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16933 { (case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936esac
16937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }; } &&
16942 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016943 { (case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_cv_lib_dld_dld_link=yes
16953else
16954 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016955sed 's/^/| /' conftest.$ac_ext >&5
16956
Reid Spencera773bd52006-08-04 18:18:08 +000016957 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016958fi
Reid Spencera773bd52006-08-04 18:18:08 +000016959
16960rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016961 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016962LIBS=$ac_check_lib_save_LIBS
16963fi
Reid Spencera773bd52006-08-04 18:18:08 +000016964{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16965echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016966if test $ac_cv_lib_dld_dld_link = yes; then
16967 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16968fi
16969
16970
16971fi
16972
16973
16974fi
16975
16976
16977fi
16978
16979
16980fi
16981
16982
16983fi
16984
16985 ;;
16986 esac
16987
16988 if test "x$lt_cv_dlopen" != xno; then
16989 enable_dlopen=yes
16990 else
16991 enable_dlopen=no
16992 fi
16993
16994 case $lt_cv_dlopen in
16995 dlopen)
16996 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016997 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016998
16999 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000017000 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000017001
17002 save_LIBS="$LIBS"
17003 LIBS="$lt_cv_dlopen_libs $LIBS"
17004
Reid Spencera773bd52006-08-04 18:18:08 +000017005 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17006echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017007if test "${lt_cv_dlopen_self+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17009else
17010 if test "$cross_compiling" = yes; then :
17011 lt_cv_dlopen_self=cross
17012else
John Criswell47fdd832003-07-14 16:52:07 +000017013 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017014 lt_status=$lt_dlunknown
17015 cat > conftest.$ac_ext <<EOF
Reid Spencer282d8c12006-12-21 22:55:41 +000017016#line 17016 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017017#include "confdefs.h"
17018
17019#if HAVE_DLFCN_H
17020#include <dlfcn.h>
17021#endif
17022
17023#include <stdio.h>
17024
17025#ifdef RTLD_GLOBAL
17026# define LT_DLGLOBAL RTLD_GLOBAL
17027#else
17028# ifdef DL_GLOBAL
17029# define LT_DLGLOBAL DL_GLOBAL
17030# else
17031# define LT_DLGLOBAL 0
17032# endif
17033#endif
17034
17035/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17036 find out it does not work in some platform. */
17037#ifndef LT_DLLAZY_OR_NOW
17038# ifdef RTLD_LAZY
17039# define LT_DLLAZY_OR_NOW RTLD_LAZY
17040# else
17041# ifdef DL_LAZY
17042# define LT_DLLAZY_OR_NOW DL_LAZY
17043# else
17044# ifdef RTLD_NOW
17045# define LT_DLLAZY_OR_NOW RTLD_NOW
17046# else
17047# ifdef DL_NOW
17048# define LT_DLLAZY_OR_NOW DL_NOW
17049# else
17050# define LT_DLLAZY_OR_NOW 0
17051# endif
17052# endif
17053# endif
17054# endif
17055#endif
17056
17057#ifdef __cplusplus
17058extern "C" void exit (int);
17059#endif
17060
17061void fnord() { int i=42;}
17062int main ()
17063{
17064 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17065 int status = $lt_dlunknown;
17066
17067 if (self)
17068 {
17069 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17070 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17071 /* dlclose (self); */
17072 }
Reid Spencera773bd52006-08-04 18:18:08 +000017073 else
17074 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017075
17076 exit (status);
17077}
17078EOF
17079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080 (eval $ac_link) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017084 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017085 lt_status=$?
17086 case x$lt_status in
17087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017089 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017090 esac
17091 else :
17092 # compilation failed
17093 lt_cv_dlopen_self=no
17094 fi
17095fi
17096rm -fr conftest*
17097
17098
17099fi
Reid Spencera773bd52006-08-04 18:18:08 +000017100{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17101echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017102
17103 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017104 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17105 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17106echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017107if test "${lt_cv_dlopen_self_static+set}" = set; then
17108 echo $ECHO_N "(cached) $ECHO_C" >&6
17109else
17110 if test "$cross_compiling" = yes; then :
17111 lt_cv_dlopen_self_static=cross
17112else
John Criswell47fdd832003-07-14 16:52:07 +000017113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017114 lt_status=$lt_dlunknown
17115 cat > conftest.$ac_ext <<EOF
Reid Spencer282d8c12006-12-21 22:55:41 +000017116#line 17116 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017117#include "confdefs.h"
17118
17119#if HAVE_DLFCN_H
17120#include <dlfcn.h>
17121#endif
17122
17123#include <stdio.h>
17124
17125#ifdef RTLD_GLOBAL
17126# define LT_DLGLOBAL RTLD_GLOBAL
17127#else
17128# ifdef DL_GLOBAL
17129# define LT_DLGLOBAL DL_GLOBAL
17130# else
17131# define LT_DLGLOBAL 0
17132# endif
17133#endif
17134
17135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17136 find out it does not work in some platform. */
17137#ifndef LT_DLLAZY_OR_NOW
17138# ifdef RTLD_LAZY
17139# define LT_DLLAZY_OR_NOW RTLD_LAZY
17140# else
17141# ifdef DL_LAZY
17142# define LT_DLLAZY_OR_NOW DL_LAZY
17143# else
17144# ifdef RTLD_NOW
17145# define LT_DLLAZY_OR_NOW RTLD_NOW
17146# else
17147# ifdef DL_NOW
17148# define LT_DLLAZY_OR_NOW DL_NOW
17149# else
17150# define LT_DLLAZY_OR_NOW 0
17151# endif
17152# endif
17153# endif
17154# endif
17155#endif
17156
17157#ifdef __cplusplus
17158extern "C" void exit (int);
17159#endif
17160
17161void fnord() { int i=42;}
17162int main ()
17163{
17164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17165 int status = $lt_dlunknown;
17166
17167 if (self)
17168 {
17169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17171 /* dlclose (self); */
17172 }
Reid Spencera773bd52006-08-04 18:18:08 +000017173 else
17174 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017175
17176 exit (status);
17177}
17178EOF
17179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17180 (eval $ac_link) 2>&5
17181 ac_status=$?
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017184 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017185 lt_status=$?
17186 case x$lt_status in
17187 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17188 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017189 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017190 esac
17191 else :
17192 # compilation failed
17193 lt_cv_dlopen_self_static=no
17194 fi
17195fi
17196rm -fr conftest*
17197
17198
17199fi
Reid Spencera773bd52006-08-04 18:18:08 +000017200{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17201echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017202 fi
17203
17204 CPPFLAGS="$save_CPPFLAGS"
17205 LDFLAGS="$save_LDFLAGS"
17206 LIBS="$save_LIBS"
17207 ;;
17208 esac
17209
17210 case $lt_cv_dlopen_self in
17211 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17212 *) enable_dlopen_self=unknown ;;
17213 esac
17214
17215 case $lt_cv_dlopen_self_static in
17216 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17217 *) enable_dlopen_self_static=unknown ;;
17218 esac
17219fi
17220
17221
Reid Spencera773bd52006-08-04 18:18:08 +000017222# Report which library types will actually be built
17223{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17224echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17225{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17226echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017227
Reid Spencera773bd52006-08-04 18:18:08 +000017228{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17229echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017230test "$can_build_shared" = "no" && enable_shared=no
17231
17232# On AIX, shared libraries and static libraries use the same namespace, and
17233# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017234case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017235aix3*)
17236 test "$enable_shared" = yes && enable_static=no
17237 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017238 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017239 postinstall_cmds='$RANLIB $lib'
17240 fi
17241 ;;
17242
Reid Spencer2706f8c2004-09-19 23:53:36 +000017243aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017244 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17245 test "$enable_shared" = yes && enable_static=no
17246 fi
John Criswell7a73b802003-06-30 21:59:07 +000017247 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017248esac
Reid Spencera773bd52006-08-04 18:18:08 +000017249{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17250echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017251
Reid Spencera773bd52006-08-04 18:18:08 +000017252{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17253echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017254# Make sure either enable_shared or enable_static is yes.
17255test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017256{ echo "$as_me:$LINENO: result: $enable_static" >&5
17257echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017258
17259# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017260# libtool distribution, otherwise you forgot to ship ltmain.sh
17261# with your package, and you will get complaints that there are
17262# no rules to generate ltmain.sh.
17263if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017264 # See if we are running on zsh, and set the options which allow our commands through
17265 # without removal of \ escapes.
17266 if test -n "${ZSH_VERSION+set}" ; then
17267 setopt NO_GLOB_SUBST
17268 fi
John Criswell7a73b802003-06-30 21:59:07 +000017269 # Now quote all the things that may contain metacharacters while being
17270 # careful not to overquote the AC_SUBSTed values. We take copies of the
17271 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017272 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 +000017273 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017274 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17275 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17276 deplibs_check_method reload_flag reload_cmds need_locks \
17277 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17278 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017279 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017280 old_postinstall_cmds old_postuninstall_cmds \
17281 compiler \
17282 CC \
17283 LD \
17284 lt_prog_compiler_wl \
17285 lt_prog_compiler_pic \
17286 lt_prog_compiler_static \
17287 lt_prog_compiler_no_builtin_flag \
17288 export_dynamic_flag_spec \
17289 thread_safe_flag_spec \
17290 whole_archive_flag_spec \
17291 enable_shared_with_static_runtimes \
17292 old_archive_cmds \
17293 old_archive_from_new_cmds \
17294 predep_objects \
17295 postdep_objects \
17296 predeps \
17297 postdeps \
17298 compiler_lib_search_path \
17299 archive_cmds \
17300 archive_expsym_cmds \
17301 postinstall_cmds \
17302 postuninstall_cmds \
17303 old_archive_from_expsyms_cmds \
17304 allow_undefined_flag \
17305 no_undefined_flag \
17306 export_symbols_cmds \
17307 hardcode_libdir_flag_spec \
17308 hardcode_libdir_flag_spec_ld \
17309 hardcode_libdir_separator \
17310 hardcode_automatic \
17311 module_cmds \
17312 module_expsym_cmds \
17313 lt_cv_prog_compiler_c_o \
17314 exclude_expsyms \
17315 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017316
17317 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017318 old_archive_cmds | \
17319 old_archive_from_new_cmds | \
17320 archive_cmds | \
17321 archive_expsym_cmds | \
17322 module_cmds | \
17323 module_expsym_cmds | \
17324 old_archive_from_expsyms_cmds | \
17325 export_symbols_cmds | \
17326 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017327 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017328 old_postinstall_cmds | old_postuninstall_cmds | \
17329 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017330 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017331 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 +000017332 ;;
17333 *)
17334 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17335 ;;
17336 esac
17337 done
17338
John Criswell47fdd832003-07-14 16:52:07 +000017339 case $lt_echo in
17340 *'\$0 --fallback-echo"')
17341 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17342 ;;
17343 esac
17344
17345cfgfile="${ofile}T"
17346 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17347 $rm -f "$cfgfile"
17348 { echo "$as_me:$LINENO: creating $ofile" >&5
17349echo "$as_me: creating $ofile" >&6;}
17350
17351 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017352#! $SHELL
17353
John Criswell47fdd832003-07-14 16:52:07 +000017354# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017355# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17356# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17357#
John Criswell47fdd832003-07-14 16:52:07 +000017358# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17359# Free Software Foundation, Inc.
17360#
17361# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017362# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17363#
17364# This program is free software; you can redistribute it and/or modify
17365# it under the terms of the GNU General Public License as published by
17366# the Free Software Foundation; either version 2 of the License, or
17367# (at your option) any later version.
17368#
17369# This program is distributed in the hope that it will be useful, but
17370# WITHOUT ANY WARRANTY; without even the implied warranty of
17371# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17372# General Public License for more details.
17373#
17374# You should have received a copy of the GNU General Public License
17375# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017376# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017377#
17378# As a special exception to the GNU General Public License, if you
17379# distribute this file as part of a program that contains a
17380# configuration script generated by Autoconf, you may include it under
17381# the same distribution terms that you use for the rest of that program.
17382
John Criswell47fdd832003-07-14 16:52:07 +000017383# A sed program that does not truncate output.
17384SED=$lt_SED
17385
John Criswell7a73b802003-06-30 21:59:07 +000017386# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017387Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017388
17389# The HP-UX ksh and POSIX shell print the target directory to stdout
17390# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017391(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017392
John Criswell47fdd832003-07-14 16:52:07 +000017393# The names of the tagged configurations supported by this script.
17394available_tags=
17395
John Criswell7a73b802003-06-30 21:59:07 +000017396# ### BEGIN LIBTOOL CONFIG
17397
17398# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17399
17400# Shell to use when invoking shell scripts.
17401SHELL=$lt_SHELL
17402
17403# Whether or not to build shared libraries.
17404build_libtool_libs=$enable_shared
17405
17406# Whether or not to build static libraries.
17407build_old_libs=$enable_static
17408
17409# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017410build_libtool_need_lc=$archive_cmds_need_lc
17411
17412# Whether or not to disallow shared libs when runtime libs are static
17413allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017414
17415# Whether or not to optimize for fast installation.
17416fast_install=$enable_fast_install
17417
17418# The host system.
17419host_alias=$host_alias
17420host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017421host_os=$host_os
17422
17423# The build system.
17424build_alias=$build_alias
17425build=$build
17426build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017427
17428# An echo program that does not interpret backslashes.
17429echo=$lt_echo
17430
17431# The archiver.
17432AR=$lt_AR
17433AR_FLAGS=$lt_AR_FLAGS
17434
John Criswell47fdd832003-07-14 16:52:07 +000017435# A C compiler.
17436LTCC=$lt_LTCC
17437
Reid Spencera773bd52006-08-04 18:18:08 +000017438# LTCC compiler flags.
17439LTCFLAGS=$lt_LTCFLAGS
17440
John Criswell47fdd832003-07-14 16:52:07 +000017441# A language-specific compiler.
17442CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017443
17444# Is the compiler the GNU C compiler?
17445with_gcc=$GCC
17446
John Criswell47fdd832003-07-14 16:52:07 +000017447# An ERE matcher.
17448EGREP=$lt_EGREP
17449
John Criswell7a73b802003-06-30 21:59:07 +000017450# The linker used to build libraries.
17451LD=$lt_LD
17452
17453# Whether we need hard or soft links.
17454LN_S=$lt_LN_S
17455
17456# A BSD-compatible nm program.
17457NM=$lt_NM
17458
17459# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017460STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017461
17462# Used to examine libraries when file_magic_cmd begins "file"
17463MAGIC_CMD=$MAGIC_CMD
17464
17465# Used on cygwin: DLL creation program.
17466DLLTOOL="$DLLTOOL"
17467
17468# Used on cygwin: object dumper.
17469OBJDUMP="$OBJDUMP"
17470
17471# Used on cygwin: assembler.
17472AS="$AS"
17473
17474# The name of the directory that contains temporary libtool files.
17475objdir=$objdir
17476
17477# How to create reloadable object files.
17478reload_flag=$lt_reload_flag
17479reload_cmds=$lt_reload_cmds
17480
17481# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017482wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017483
17484# Object file suffix (normally "o").
17485objext="$ac_objext"
17486
17487# Old archive suffix (normally "a").
17488libext="$libext"
17489
John Criswell47fdd832003-07-14 16:52:07 +000017490# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017491shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017492
John Criswell7a73b802003-06-30 21:59:07 +000017493# Executable file suffix (normally "").
17494exeext="$exeext"
17495
17496# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017497pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017498pic_mode=$pic_mode
17499
John Criswell47fdd832003-07-14 16:52:07 +000017500# What is the maximum length of a command?
17501max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017502
John Criswell47fdd832003-07-14 16:52:07 +000017503# Does compiler simultaneously support -c and -o options?
17504compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017505
Reid Spencera773bd52006-08-04 18:18:08 +000017506# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017507need_locks=$lt_need_locks
17508
17509# Do we need the lib prefix for modules?
17510need_lib_prefix=$need_lib_prefix
17511
17512# Do we need a version for libraries?
17513need_version=$need_version
17514
17515# Whether dlopen is supported.
17516dlopen_support=$enable_dlopen
17517
17518# Whether dlopen of programs is supported.
17519dlopen_self=$enable_dlopen_self
17520
17521# Whether dlopen of statically linked programs is supported.
17522dlopen_self_static=$enable_dlopen_self_static
17523
17524# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017525link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017526
17527# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017528no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017529
17530# Compiler flag to allow reflexive dlopens.
17531export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17532
17533# Compiler flag to generate shared objects directly from archives.
17534whole_archive_flag_spec=$lt_whole_archive_flag_spec
17535
17536# Compiler flag to generate thread-safe objects.
17537thread_safe_flag_spec=$lt_thread_safe_flag_spec
17538
17539# Library versioning type.
17540version_type=$version_type
17541
17542# Format of library name prefix.
17543libname_spec=$lt_libname_spec
17544
17545# List of archive names. First name is the real one, the rest are links.
17546# The last name is the one that the linker finds with -lNAME.
17547library_names_spec=$lt_library_names_spec
17548
17549# The coded name of the library, if different from the real name.
17550soname_spec=$lt_soname_spec
17551
17552# Commands used to build and install an old-style archive.
17553RANLIB=$lt_RANLIB
17554old_archive_cmds=$lt_old_archive_cmds
17555old_postinstall_cmds=$lt_old_postinstall_cmds
17556old_postuninstall_cmds=$lt_old_postuninstall_cmds
17557
17558# Create an old-style archive from a shared archive.
17559old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17560
17561# Create a temporary old-style archive to link instead of a shared archive.
17562old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17563
17564# Commands used to build and install a shared archive.
17565archive_cmds=$lt_archive_cmds
17566archive_expsym_cmds=$lt_archive_expsym_cmds
17567postinstall_cmds=$lt_postinstall_cmds
17568postuninstall_cmds=$lt_postuninstall_cmds
17569
John Criswell47fdd832003-07-14 16:52:07 +000017570# Commands used to build a loadable module (assumed same as above if empty)
17571module_cmds=$lt_module_cmds
17572module_expsym_cmds=$lt_module_expsym_cmds
17573
John Criswell7a73b802003-06-30 21:59:07 +000017574# Commands to strip libraries.
17575old_striplib=$lt_old_striplib
17576striplib=$lt_striplib
17577
John Criswell47fdd832003-07-14 16:52:07 +000017578# Dependencies to place before the objects being linked to create a
17579# shared library.
17580predep_objects=$lt_predep_objects
17581
17582# Dependencies to place after the objects being linked to create a
17583# shared library.
17584postdep_objects=$lt_postdep_objects
17585
17586# Dependencies to place before the objects being linked to create a
17587# shared library.
17588predeps=$lt_predeps
17589
17590# Dependencies to place after the objects being linked to create a
17591# shared library.
17592postdeps=$lt_postdeps
17593
17594# The library search path used internally by the compiler when linking
17595# a shared library.
17596compiler_lib_search_path=$lt_compiler_lib_search_path
17597
John Criswell7a73b802003-06-30 21:59:07 +000017598# Method to check whether dependent libraries are shared objects.
17599deplibs_check_method=$lt_deplibs_check_method
17600
17601# Command to use when deplibs_check_method == file_magic.
17602file_magic_cmd=$lt_file_magic_cmd
17603
17604# Flag that allows shared libraries with undefined symbols to be built.
17605allow_undefined_flag=$lt_allow_undefined_flag
17606
17607# Flag that forces no undefined symbols.
17608no_undefined_flag=$lt_no_undefined_flag
17609
17610# Commands used to finish a libtool library installation in a directory.
17611finish_cmds=$lt_finish_cmds
17612
17613# Same as above, but a single script fragment to be evaled but not shown.
17614finish_eval=$lt_finish_eval
17615
17616# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017617global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017618
17619# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017620global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017621
17622# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017623global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017624
17625# This is the shared library runtime path variable.
17626runpath_var=$runpath_var
17627
17628# This is the shared library path variable.
17629shlibpath_var=$shlibpath_var
17630
17631# Is shlibpath searched before the hard-coded library search path?
17632shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17633
17634# How to hardcode a shared library path into an executable.
17635hardcode_action=$hardcode_action
17636
17637# Whether we should hardcode library paths into libraries.
17638hardcode_into_libs=$hardcode_into_libs
17639
17640# Flag to hardcode \$libdir into a binary during linking.
17641# This must work even if \$libdir does not exist.
17642hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17643
John Criswell47fdd832003-07-14 16:52:07 +000017644# If ld is used when linking, flag to hardcode \$libdir into
17645# a binary during linking. This must work even if \$libdir does
17646# not exist.
17647hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17648
John Criswell7a73b802003-06-30 21:59:07 +000017649# Whether we need a single -rpath flag with a separated argument.
17650hardcode_libdir_separator=$lt_hardcode_libdir_separator
17651
John Criswell47fdd832003-07-14 16:52:07 +000017652# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017653# resulting binary.
17654hardcode_direct=$hardcode_direct
17655
17656# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17657# resulting binary.
17658hardcode_minus_L=$hardcode_minus_L
17659
17660# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17661# the resulting binary.
17662hardcode_shlibpath_var=$hardcode_shlibpath_var
17663
John Criswell47fdd832003-07-14 16:52:07 +000017664# Set to yes if building a shared library automatically hardcodes DIR into the library
17665# and all subsequent libraries and executables linked against it.
17666hardcode_automatic=$hardcode_automatic
17667
John Criswell7a73b802003-06-30 21:59:07 +000017668# Variables whose values should be saved in libtool wrapper scripts and
17669# restored at relink time.
17670variables_saved_for_relink="$variables_saved_for_relink"
17671
17672# Whether libtool must link a program against all its dependency libraries.
17673link_all_deplibs=$link_all_deplibs
17674
17675# Compile-time system search path for libraries
17676sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17677
17678# Run-time system search path for libraries
17679sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17680
17681# Fix the shell variable \$srcfile for the compiler.
17682fix_srcfile_path="$fix_srcfile_path"
17683
17684# Set to yes if exported symbols are required.
17685always_export_symbols=$always_export_symbols
17686
17687# The commands to list exported symbols.
17688export_symbols_cmds=$lt_export_symbols_cmds
17689
17690# The commands to extract the exported symbol list from a shared archive.
17691extract_expsyms_cmds=$lt_extract_expsyms_cmds
17692
17693# Symbols that should not be listed in the preloaded symbols.
17694exclude_expsyms=$lt_exclude_expsyms
17695
17696# Symbols that must always be exported.
17697include_expsyms=$lt_include_expsyms
17698
17699# ### END LIBTOOL CONFIG
17700
17701__EOF__
17702
John Criswell47fdd832003-07-14 16:52:07 +000017703
John Criswell7a73b802003-06-30 21:59:07 +000017704 case $host_os in
17705 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017706 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017707
17708# AIX sometimes has problems with the GCC collect2 program. For some
17709# reason, if we set the COLLECT_NAMES environment variable, the problems
17710# vanish in a puff of smoke.
17711if test "X${COLLECT_NAMES+set}" != Xset; then
17712 COLLECT_NAMES=
17713 export COLLECT_NAMES
17714fi
17715EOF
17716 ;;
17717 esac
17718
John Criswell7a73b802003-06-30 21:59:07 +000017719 # We use sed instead of cat because bash on DJGPP gets confused if
17720 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17721 # text mode, it properly converts lines to CR/LF. This bash problem
17722 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017723 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017724
John Criswell47fdd832003-07-14 16:52:07 +000017725 mv -f "$cfgfile" "$ofile" || \
17726 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017727 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017728
17729else
17730 # If there is no Makefile yet, we rely on a make rule to execute
17731 # `config.status --recheck' to rerun these tests and create the
17732 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17734 if test -f "$ltmain_in"; then
17735 test -f Makefile && make "$ltmain"
17736 fi
John Criswell7a73b802003-06-30 21:59:07 +000017737fi
John Criswell7a73b802003-06-30 21:59:07 +000017738
17739
John Criswell47fdd832003-07-14 16:52:07 +000017740ac_ext=c
17741ac_cpp='$CPP $CPPFLAGS'
17742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17744ac_compiler_gnu=$ac_cv_c_compiler_gnu
17745
17746CC="$lt_save_CC"
17747
17748
Reid Spencera773bd52006-08-04 18:18:08 +000017749# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017750if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017751 withval=$with_tags; tagnames="$withval"
17752fi
17753
John Criswell47fdd832003-07-14 16:52:07 +000017754
17755if test -f "$ltmain" && test -n "$tagnames"; then
17756 if test ! -f "${ofile}"; then
17757 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17758echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17759 fi
17760
17761 if test -z "$LTCC"; then
17762 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17763 if test -z "$LTCC"; then
17764 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17765echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17766 else
17767 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17768echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17769 fi
17770 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017771 if test -z "$LTCFLAGS"; then
17772 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17773 fi
John Criswell47fdd832003-07-14 16:52:07 +000017774
17775 # Extract list of available tagged configurations in $ofile.
17776 # Note that this assumes the entire list is on one line.
17777 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17778
17779 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17780 for tagname in $tagnames; do
17781 IFS="$lt_save_ifs"
17782 # Check whether tagname contains only valid characters
17783 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17784 "") ;;
17785 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17786echo "$as_me: error: invalid tag name: $tagname" >&2;}
17787 { (exit 1); exit 1; }; }
17788 ;;
17789 esac
17790
17791 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17792 then
17793 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17794echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17795 { (exit 1); exit 1; }; }
17796 fi
17797
17798 # Update the list of available tags.
17799 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017800 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017801
17802 case $tagname in
17803 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017804 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17805 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17806 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017807 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017808ac_cpp='$CXXCPP $CPPFLAGS'
17809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17812
17813
17814
17815
17816archive_cmds_need_lc_CXX=no
17817allow_undefined_flag_CXX=
17818always_export_symbols_CXX=no
17819archive_expsym_cmds_CXX=
17820export_dynamic_flag_spec_CXX=
17821hardcode_direct_CXX=no
17822hardcode_libdir_flag_spec_CXX=
17823hardcode_libdir_flag_spec_ld_CXX=
17824hardcode_libdir_separator_CXX=
17825hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017826hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017827hardcode_automatic_CXX=no
17828module_cmds_CXX=
17829module_expsym_cmds_CXX=
17830link_all_deplibs_CXX=unknown
17831old_archive_cmds_CXX=$old_archive_cmds
17832no_undefined_flag_CXX=
17833whole_archive_flag_spec_CXX=
17834enable_shared_with_static_runtimes_CXX=no
17835
17836# Dependencies to place before and after the object being linked:
17837predep_objects_CXX=
17838postdep_objects_CXX=
17839predeps_CXX=
17840postdeps_CXX=
17841compiler_lib_search_path_CXX=
17842
17843# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017844ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017845
17846# Object file extension for compiled C++ test sources.
17847objext=o
17848objext_CXX=$objext
17849
17850# Code to be used in simple compile tests
17851lt_simple_compile_test_code="int some_variable = 0;\n"
17852
17853# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017854lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017855
17856# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17857
17858# If no C compiler was specified, use CC.
17859LTCC=${LTCC-"$CC"}
17860
Reid Spencera773bd52006-08-04 18:18:08 +000017861# If no C compiler flags were specified, use CFLAGS.
17862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17863
John Criswell47fdd832003-07-14 16:52:07 +000017864# Allow CC to be a program name with arguments.
17865compiler=$CC
17866
17867
Reid Spencera773bd52006-08-04 18:18:08 +000017868# save warnings/boilerplate of simple test code
17869ac_outfile=conftest.$ac_objext
17870printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17871eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17872_lt_compiler_boilerplate=`cat conftest.err`
17873$rm conftest*
17874
17875ac_outfile=conftest.$ac_objext
17876printf "$lt_simple_link_test_code" >conftest.$ac_ext
17877eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17878_lt_linker_boilerplate=`cat conftest.err`
17879$rm conftest*
17880
17881
John Criswell47fdd832003-07-14 16:52:07 +000017882# Allow CC to be a program name with arguments.
17883lt_save_CC=$CC
17884lt_save_LD=$LD
17885lt_save_GCC=$GCC
17886GCC=$GXX
17887lt_save_with_gnu_ld=$with_gnu_ld
17888lt_save_path_LD=$lt_cv_path_LD
17889if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17890 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17891else
Reid Spencera773bd52006-08-04 18:18:08 +000017892 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017893fi
17894if test -n "${lt_cv_path_LDCXX+set}"; then
17895 lt_cv_path_LD=$lt_cv_path_LDCXX
17896else
Reid Spencera773bd52006-08-04 18:18:08 +000017897 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017898fi
17899test -z "${LDCXX+set}" || LD=$LDCXX
17900CC=${CXX-"c++"}
17901compiler=$CC
17902compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017903for cc_temp in $compiler""; do
17904 case $cc_temp in
17905 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17906 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17907 \-*) ;;
17908 *) break;;
17909 esac
17910done
17911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17912
John Criswell47fdd832003-07-14 16:52:07 +000017913
17914# We don't want -fno-exception wen compiling C++ code, so set the
17915# no_builtin_flag separately
17916if test "$GXX" = yes; then
17917 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17918else
17919 lt_prog_compiler_no_builtin_flag_CXX=
17920fi
17921
17922if test "$GXX" = yes; then
17923 # Set up default GNU C++ configuration
17924
17925
Reid Spencera773bd52006-08-04 18:18:08 +000017926# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017927if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017928 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017929else
17930 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017931fi
17932
John Criswell47fdd832003-07-14 16:52:07 +000017933ac_prog=ld
17934if test "$GCC" = yes; then
17935 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017936 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17937echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017938 case $host in
17939 *-*-mingw*)
17940 # gcc leaves a trailing carriage return which upsets mingw
17941 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17942 *)
17943 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17944 esac
17945 case $ac_prog in
17946 # Accept absolute paths.
17947 [\\/]* | ?:[\\/]*)
17948 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017949 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017950 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17951 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17952 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17953 done
17954 test -z "$LD" && LD="$ac_prog"
17955 ;;
17956 "")
17957 # If it fails, then pretend we aren't using GCC.
17958 ac_prog=ld
17959 ;;
17960 *)
17961 # If it is relative, then search for the first ld in PATH.
17962 with_gnu_ld=unknown
17963 ;;
17964 esac
17965elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017966 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17967echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017968else
Reid Spencera773bd52006-08-04 18:18:08 +000017969 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17970echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017971fi
17972if test "${lt_cv_path_LD+set}" = set; then
17973 echo $ECHO_N "(cached) $ECHO_C" >&6
17974else
17975 if test -z "$LD"; then
17976 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17977 for ac_dir in $PATH; do
17978 IFS="$lt_save_ifs"
17979 test -z "$ac_dir" && ac_dir=.
17980 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17981 lt_cv_path_LD="$ac_dir/$ac_prog"
17982 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017983 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017984 # Break only if it was the GNU/non-GNU ld that we prefer.
17985 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17986 *GNU* | *'with BFD'*)
17987 test "$with_gnu_ld" != no && break
17988 ;;
17989 *)
17990 test "$with_gnu_ld" != yes && break
17991 ;;
17992 esac
17993 fi
17994 done
17995 IFS="$lt_save_ifs"
17996else
17997 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17998fi
17999fi
18000
18001LD="$lt_cv_path_LD"
18002if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000018003 { echo "$as_me:$LINENO: result: $LD" >&5
18004echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018005else
Reid Spencera773bd52006-08-04 18:18:08 +000018006 { echo "$as_me:$LINENO: result: no" >&5
18007echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018008fi
18009test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18010echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18011 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000018012{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18013echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018014if test "${lt_cv_prog_gnu_ld+set}" = set; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18016else
Reid Spencera773bd52006-08-04 18:18:08 +000018017 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018018case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000018019*GNU* | *'with BFD'*)
18020 lt_cv_prog_gnu_ld=yes
18021 ;;
18022*)
18023 lt_cv_prog_gnu_ld=no
18024 ;;
18025esac
18026fi
Reid Spencera773bd52006-08-04 18:18:08 +000018027{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18028echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018029with_gnu_ld=$lt_cv_prog_gnu_ld
18030
18031
18032
18033 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18034 # archiving commands below assume that GNU ld is being used.
18035 if test "$with_gnu_ld" = yes; then
18036 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18037 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'
18038
18039 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18041
18042 # If archive_cmds runs LD, not CC, wlarc should be empty
18043 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18044 # investigate it a little bit more. (MM)
18045 wlarc='${wl}'
18046
18047 # ancient GNU ld didn't support --whole-archive et. al.
18048 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18049 grep 'no-whole-archive' > /dev/null; then
18050 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18051 else
18052 whole_archive_flag_spec_CXX=
18053 fi
18054 else
18055 with_gnu_ld=no
18056 wlarc=
18057
18058 # A generic and very simple default shared library creation
18059 # command for GNU C++ for the case where it uses the native
18060 # linker, instead of GNU ld. If possible, this setting should
18061 # overridden to take advantage of the native linker features on
18062 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018064 fi
18065
18066 # Commands to make compiler produce verbose output that lists
18067 # what "hidden" libraries, object files and flags are used when
18068 # linking a shared library.
18069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18070
18071else
18072 GXX=no
18073 with_gnu_ld=no
18074 wlarc=
18075fi
18076
18077# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018078{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18079echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018080ld_shlibs_CXX=yes
18081case $host_os in
18082 aix3*)
18083 # FIXME: insert proper C++ library support
18084 ld_shlibs_CXX=no
18085 ;;
18086 aix4* | aix5*)
18087 if test "$host_cpu" = ia64; then
18088 # On IA64, the linker does run time linking by default, so we don't
18089 # have to do anything special.
18090 aix_use_runtimelinking=no
18091 exp_sym_flag='-Bexport'
18092 no_entry_flag=""
18093 else
18094 aix_use_runtimelinking=no
18095
18096 # Test if we are trying to use run time linking or normal
18097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18098 # need to do runtime linking.
18099 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18100 for ld_flag in $LDFLAGS; do
18101 case $ld_flag in
18102 *-brtl*)
18103 aix_use_runtimelinking=yes
18104 break
18105 ;;
18106 esac
18107 done
Reid Spencera773bd52006-08-04 18:18:08 +000018108 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018109 esac
18110
18111 exp_sym_flag='-bexport'
18112 no_entry_flag='-bnoentry'
18113 fi
18114
18115 # When large executables or shared objects are built, AIX ld can
18116 # have problems creating the table of contents. If linking a library
18117 # or program results in "error TOC overflow" add -mminimal-toc to
18118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18120
18121 archive_cmds_CXX=''
18122 hardcode_direct_CXX=yes
18123 hardcode_libdir_separator_CXX=':'
18124 link_all_deplibs_CXX=yes
18125
18126 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018127 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018128 # We only want to do this on AIX 4.2 and lower, the check
18129 # below for broken collect2 doesn't work under 4.3+
18130 collect2name=`${CC} -print-prog-name=collect2`
18131 if test -f "$collect2name" && \
18132 strings "$collect2name" | grep resolve_lib_name >/dev/null
18133 then
18134 # We have reworked collect2
18135 hardcode_direct_CXX=yes
18136 else
18137 # We have old collect2
18138 hardcode_direct_CXX=unsupported
18139 # It fails to find uninstalled libraries when the uninstalled
18140 # path is not listed in the libpath. Setting hardcode_minus_L
18141 # to unsupported forces relinking
18142 hardcode_minus_L_CXX=yes
18143 hardcode_libdir_flag_spec_CXX='-L$libdir'
18144 hardcode_libdir_separator_CXX=
18145 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018146 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018147 esac
18148 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018149 if test "$aix_use_runtimelinking" = yes; then
18150 shared_flag="$shared_flag "'${wl}-G'
18151 fi
John Criswell47fdd832003-07-14 16:52:07 +000018152 else
18153 # not using gcc
18154 if test "$host_cpu" = ia64; then
18155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18156 # chokes on -Wl,-G. The following line is correct:
18157 shared_flag='-G'
18158 else
18159 if test "$aix_use_runtimelinking" = yes; then
18160 shared_flag='${wl}-G'
18161 else
18162 shared_flag='${wl}-bM:SRE'
18163 fi
18164 fi
18165 fi
18166
18167 # It seems that -bexpall does not export symbols beginning with
18168 # underscore (_), so it is better to generate a list of symbols to export.
18169 always_export_symbols_CXX=yes
18170 if test "$aix_use_runtimelinking" = yes; then
18171 # Warning - without using the other runtime loading flags (-brtl),
18172 # -berok will link without error, but may produce a broken library.
18173 allow_undefined_flag_CXX='-berok'
18174 # Determine the default libpath from the value encoded in an empty executable.
18175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018176/* confdefs.h. */
18177_ACEOF
18178cat confdefs.h >>conftest.$ac_ext
18179cat >>conftest.$ac_ext <<_ACEOF
18180/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018181
John Criswell47fdd832003-07-14 16:52:07 +000018182int
18183main ()
18184{
18185
18186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018191if { (ac_try="$ac_link"
18192case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195esac
18196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018198 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018204 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018215 { (case "(($ac_try" in
18216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18217 *) ac_try_echo=$ac_try;;
18218esac
18219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18220 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224
18225aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18226}'`
18227# Check for a 64-bit object if we didn't find anything.
18228if 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; }
18229}'`; fi
18230else
18231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018232sed 's/^/| /' conftest.$ac_ext >&5
18233
Reid Spencera773bd52006-08-04 18:18:08 +000018234
John Criswell47fdd832003-07-14 16:52:07 +000018235fi
Reid Spencera773bd52006-08-04 18:18:08 +000018236
18237rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018238 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018239if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18240
18241 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18242
Reid Spencera773bd52006-08-04 18:18:08 +000018243 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 +000018244 else
18245 if test "$host_cpu" = ia64; then
18246 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18247 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018248 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 +000018249 else
18250 # Determine the default libpath from the value encoded in an empty executable.
18251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018252/* confdefs.h. */
18253_ACEOF
18254cat confdefs.h >>conftest.$ac_ext
18255cat >>conftest.$ac_ext <<_ACEOF
18256/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018257
John Criswell47fdd832003-07-14 16:52:07 +000018258int
18259main ()
18260{
18261
18262 ;
18263 return 0;
18264}
18265_ACEOF
18266rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018267if { (ac_try="$ac_link"
18268case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18271esac
18272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018274 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018275 grep -v '^ *+' conftest.er1 >conftest.err
18276 rm -f conftest.er1
18277 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18281 { (case "(($ac_try" in
18282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18283 *) ac_try_echo=$ac_try;;
18284esac
18285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18286 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; } &&
18290 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18294esac
18295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
18300
18301aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18302}'`
18303# Check for a 64-bit object if we didn't find anything.
18304if 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; }
18305}'`; fi
18306else
18307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018308sed 's/^/| /' conftest.$ac_ext >&5
18309
Reid Spencera773bd52006-08-04 18:18:08 +000018310
John Criswell47fdd832003-07-14 16:52:07 +000018311fi
Reid Spencera773bd52006-08-04 18:18:08 +000018312
18313rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018314 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18316
18317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18318 # Warning - without using the other run time loading flags,
18319 # -berok will link without error, but may produce a broken library.
18320 no_undefined_flag_CXX=' ${wl}-bernotok'
18321 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018322 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018323 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018324 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018325 # This is similar to how AIX traditionally builds its shared libraries.
18326 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 +000018327 fi
18328 fi
18329 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018330
18331 beos*)
18332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18333 allow_undefined_flag_CXX=unsupported
18334 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18335 # support --undefined. This deserves some investigation. FIXME
18336 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18337 else
18338 ld_shlibs_CXX=no
18339 fi
18340 ;;
18341
John Criswell47fdd832003-07-14 16:52:07 +000018342 chorus*)
18343 case $cc_basename in
18344 *)
18345 # FIXME: insert proper C++ library support
18346 ld_shlibs_CXX=no
18347 ;;
18348 esac
18349 ;;
18350
18351 cygwin* | mingw* | pw32*)
18352 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18353 # as there is no search path for DLLs.
18354 hardcode_libdir_flag_spec_CXX='-L$libdir'
18355 allow_undefined_flag_CXX=unsupported
18356 always_export_symbols_CXX=no
18357 enable_shared_with_static_runtimes_CXX=yes
18358
18359 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018360 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 +000018361 # If the export-symbols file already is a .def file (1st line
18362 # is EXPORTS), use it as is; otherwise, prepend...
18363 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18364 cp $export_symbols $output_objdir/$soname.def;
18365 else
18366 echo EXPORTS > $output_objdir/$soname.def;
18367 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018368 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018369 $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 +000018370 else
18371 ld_shlibs_CXX=no
18372 fi
18373 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018374 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018375 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018376 rhapsody* | darwin1.[012])
18377 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18378 ;;
18379 *) # Darwin 1.3 on
18380 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18381 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18382 else
18383 case ${MACOSX_DEPLOYMENT_TARGET} in
18384 10.[012])
18385 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18386 ;;
18387 10.*)
18388 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18389 ;;
18390 esac
18391 fi
18392 ;;
18393 esac
18394 archive_cmds_need_lc_CXX=no
18395 hardcode_direct_CXX=no
18396 hardcode_automatic_CXX=yes
18397 hardcode_shlibpath_var_CXX=unsupported
18398 whole_archive_flag_spec_CXX=''
18399 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018400
Reid Spencer2706f8c2004-09-19 23:53:36 +000018401 if test "$GXX" = yes ; then
18402 lt_int_apple_cc_single_mod=no
18403 output_verbose_link_cmd='echo'
18404 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18405 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018406 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018407 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018408 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 +000018409 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018410 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 +000018411 fi
18412 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018413 # 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 +000018414 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018415 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 +000018416 else
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 -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 +000018418 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018419 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 +000018420 else
Reid Spencera773bd52006-08-04 18:18:08 +000018421 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018422 xlc*)
18423 output_verbose_link_cmd='echo'
18424 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'
18425 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018426 # 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 +000018427 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}'
18428 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 +000018429 ;;
18430 *)
18431 ld_shlibs_CXX=no
18432 ;;
18433 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018434 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018435 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018436
18437 dgux*)
18438 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018439 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018440 # FIXME: insert proper C++ library support
18441 ld_shlibs_CXX=no
18442 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018443 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018444 # Green Hills C++ Compiler
18445 # FIXME: insert proper C++ library support
18446 ld_shlibs_CXX=no
18447 ;;
18448 *)
18449 # FIXME: insert proper C++ library support
18450 ld_shlibs_CXX=no
18451 ;;
18452 esac
18453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018454 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018455 # C++ shared libraries reported to be fairly broken before switch to ELF
18456 ld_shlibs_CXX=no
18457 ;;
18458 freebsd-elf*)
18459 archive_cmds_need_lc_CXX=no
18460 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018461 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018462 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18463 # conventions
18464 ld_shlibs_CXX=yes
18465 ;;
18466 gnu*)
18467 ;;
18468 hpux9*)
18469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18470 hardcode_libdir_separator_CXX=:
18471 export_dynamic_flag_spec_CXX='${wl}-E'
18472 hardcode_direct_CXX=yes
18473 hardcode_minus_L_CXX=yes # Not in the search PATH,
18474 # but as the default
18475 # location of the library.
18476
18477 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018478 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018479 # FIXME: insert proper C++ library support
18480 ld_shlibs_CXX=no
18481 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018482 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018483 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 +000018484 # Commands to make compiler produce verbose output that lists
18485 # what "hidden" libraries, object files and flags are used when
18486 # linking a shared library.
18487 #
18488 # There doesn't appear to be a way to prevent this compiler from
18489 # explicitly linking system object files so we need to strip them
18490 # from the output so that they don't get included in the library
18491 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018492 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 +000018493 ;;
18494 *)
18495 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018496 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 +000018497 else
18498 # FIXME: insert proper C++ library support
18499 ld_shlibs_CXX=no
18500 fi
18501 ;;
18502 esac
18503 ;;
18504 hpux10*|hpux11*)
18505 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018506 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18507 hardcode_libdir_separator_CXX=:
18508
18509 case $host_cpu in
18510 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018511 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018512 ;;
18513 *)
John Criswell47fdd832003-07-14 16:52:07 +000018514 export_dynamic_flag_spec_CXX='${wl}-E'
18515 ;;
18516 esac
18517 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018518 case $host_cpu in
18519 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018520 hardcode_direct_CXX=no
18521 hardcode_shlibpath_var_CXX=no
18522 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018523 *)
18524 hardcode_direct_CXX=yes
18525 hardcode_minus_L_CXX=yes # Not in the search PATH,
18526 # but as the default
18527 # location of the library.
18528 ;;
18529 esac
18530
18531 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018532 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018536 aCC*)
18537 case $host_cpu in
18538 hppa*64*)
18539 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18540 ;;
18541 ia64*)
18542 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 +000018543 ;;
18544 *)
18545 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18546 ;;
18547 esac
18548 # Commands to make compiler produce verbose output that lists
18549 # what "hidden" libraries, object files and flags are used when
18550 # linking a shared library.
18551 #
18552 # There doesn't appear to be a way to prevent this compiler from
18553 # explicitly linking system object files so we need to strip them
18554 # from the output so that they don't get included in the library
18555 # dependencies.
18556 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'
18557 ;;
18558 *)
18559 if test "$GXX" = yes; then
18560 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018561 case $host_cpu in
18562 hppa*64*)
18563 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18564 ;;
18565 ia64*)
18566 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 +000018567 ;;
18568 *)
18569 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'
18570 ;;
18571 esac
18572 fi
18573 else
18574 # FIXME: insert proper C++ library support
18575 ld_shlibs_CXX=no
18576 fi
18577 ;;
18578 esac
18579 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018580 interix3*)
18581 hardcode_direct_CXX=no
18582 hardcode_shlibpath_var_CXX=no
18583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18584 export_dynamic_flag_spec_CXX='${wl}-E'
18585 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18586 # Instead, shared libraries are loaded at an image base (0x10000000 by
18587 # default) and relocated if they conflict, which is a slow very memory
18588 # consuming and fragmenting process. To avoid this, we pick a random,
18589 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18590 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18591 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'
18592 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'
18593 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018594 irix5* | irix6*)
18595 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018596 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018597 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018598 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 +000018599
18600 # Archives containing C++ object files must be created using
18601 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18602 # necessary to make sure instantiated templates are included
18603 # in the archive.
18604 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18605 ;;
18606 *)
18607 if test "$GXX" = yes; then
18608 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018609 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 +000018610 else
18611 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'
18612 fi
18613 fi
18614 link_all_deplibs_CXX=yes
18615 ;;
18616 esac
18617 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18618 hardcode_libdir_separator_CXX=:
18619 ;;
18620 linux*)
18621 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018622 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018623 # Kuck and Associates, Inc. (KAI) C++ Compiler
18624
18625 # KCC will only create a shared library if the output file
18626 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18627 # to its proper name (with version) after linking.
18628 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'
18629 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'
18630 # Commands to make compiler produce verbose output that lists
18631 # what "hidden" libraries, object files and flags are used when
18632 # linking a shared library.
18633 #
18634 # There doesn't appear to be a way to prevent this compiler from
18635 # explicitly linking system object files so we need to strip them
18636 # from the output so that they don't get included in the library
18637 # dependencies.
18638 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'
18639
18640 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642
18643 # Archives containing C++ object files must be created using
18644 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18645 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018647 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018648 # Intel C++
18649 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018650 # version 8.0 and above of icpc choke on multiply defined symbols
18651 # if we add $predep_objects and $postdep_objects, however 7.1 and
18652 # earlier do not add the objects themselves.
18653 case `$CC -V 2>&1` in
18654 *"Version 7."*)
18655 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18656 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'
18657 ;;
18658 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018659 tmp_idyn=
18660 case $host_cpu in
18661 ia64*) tmp_idyn=' -i_dynamic';;
18662 esac
18663 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18664 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 +000018665 ;;
18666 esac
John Criswell47fdd832003-07-14 16:52:07 +000018667 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018668 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18669 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18670 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18671 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018672 pgCC*)
18673 # Portland Group C++ compiler
18674 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18675 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'
18676
18677 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18678 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18679 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'
18680 ;;
18681 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018682 # Compaq C++
18683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18684 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'
18685
18686 runpath_var=LD_RUN_PATH
18687 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18688 hardcode_libdir_separator_CXX=:
18689
18690 # Commands to make compiler produce verbose output that lists
18691 # what "hidden" libraries, object files and flags are used when
18692 # linking a shared library.
18693 #
18694 # There doesn't appear to be a way to prevent this compiler from
18695 # explicitly linking system object files so we need to strip them
18696 # from the output so that they don't get included in the library
18697 # dependencies.
18698 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'
18699 ;;
18700 esac
18701 ;;
18702 lynxos*)
18703 # FIXME: insert proper C++ library support
18704 ld_shlibs_CXX=no
18705 ;;
18706 m88k*)
18707 # FIXME: insert proper C++ library support
18708 ld_shlibs_CXX=no
18709 ;;
18710 mvs*)
18711 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018712 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018713 # FIXME: insert proper C++ library support
18714 ld_shlibs_CXX=no
18715 ;;
18716 *)
18717 # FIXME: insert proper C++ library support
18718 ld_shlibs_CXX=no
18719 ;;
18720 esac
18721 ;;
18722 netbsd*)
18723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18724 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18725 wlarc=
18726 hardcode_libdir_flag_spec_CXX='-R$libdir'
18727 hardcode_direct_CXX=yes
18728 hardcode_shlibpath_var_CXX=no
18729 fi
18730 # Workaround some broken pre-1.5 toolchains
18731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18732 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018733 openbsd2*)
18734 # C++ shared libraries are fairly broken
18735 ld_shlibs_CXX=no
18736 ;;
18737 openbsd*)
18738 hardcode_direct_CXX=yes
18739 hardcode_shlibpath_var_CXX=no
18740 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18742 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18743 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18744 export_dynamic_flag_spec_CXX='${wl}-E'
18745 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18746 fi
18747 output_verbose_link_cmd='echo'
18748 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018749 osf3*)
18750 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018751 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018752 # Kuck and Associates, Inc. (KAI) C++ Compiler
18753
18754 # KCC will only create a shared library if the output file
18755 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18756 # to its proper name (with version) after linking.
18757 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'
18758
18759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18760 hardcode_libdir_separator_CXX=:
18761
18762 # Archives containing C++ object files must be created using
18763 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18764 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18765
18766 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018767 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018768 # Rational C++ 2.4.1
18769 # FIXME: insert proper C++ library support
18770 ld_shlibs_CXX=no
18771 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018772 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018773 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018774 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 +000018775
18776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18777 hardcode_libdir_separator_CXX=:
18778
18779 # Commands to make compiler produce verbose output that lists
18780 # what "hidden" libraries, object files and flags are used when
18781 # linking a shared library.
18782 #
18783 # There doesn't appear to be a way to prevent this compiler from
18784 # explicitly linking system object files so we need to strip them
18785 # from the output so that they don't get included in the library
18786 # dependencies.
18787 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'
18788 ;;
18789 *)
18790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018792 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 +000018793
18794 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18795 hardcode_libdir_separator_CXX=:
18796
18797 # Commands to make compiler produce verbose output that lists
18798 # what "hidden" libraries, object files and flags are used when
18799 # linking a shared library.
18800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18801
18802 else
18803 # FIXME: insert proper C++ library support
18804 ld_shlibs_CXX=no
18805 fi
18806 ;;
18807 esac
18808 ;;
18809 osf4* | osf5*)
18810 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018811 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018812 # Kuck and Associates, Inc. (KAI) C++ Compiler
18813
18814 # KCC will only create a shared library if the output file
18815 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18816 # to its proper name (with version) after linking.
18817 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'
18818
18819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18820 hardcode_libdir_separator_CXX=:
18821
18822 # Archives containing C++ object files must be created using
18823 # the KAI C++ compiler.
18824 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18825 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018826 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018827 # Rational C++ 2.4.1
18828 # FIXME: insert proper C++ library support
18829 ld_shlibs_CXX=no
18830 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018831 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018832 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018833 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 +000018834 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18835 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018836 $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 +000018837 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018838
18839 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18840 hardcode_libdir_separator_CXX=:
18841
18842 # Commands to make compiler produce verbose output that lists
18843 # what "hidden" libraries, object files and flags are used when
18844 # linking a shared library.
18845 #
18846 # There doesn't appear to be a way to prevent this compiler from
18847 # explicitly linking system object files so we need to strip them
18848 # from the output so that they don't get included in the library
18849 # dependencies.
18850 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'
18851 ;;
18852 *)
18853 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18854 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018855 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 +000018856
18857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18858 hardcode_libdir_separator_CXX=:
18859
18860 # Commands to make compiler produce verbose output that lists
18861 # what "hidden" libraries, object files and flags are used when
18862 # linking a shared library.
18863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18864
18865 else
18866 # FIXME: insert proper C++ library support
18867 ld_shlibs_CXX=no
18868 fi
18869 ;;
18870 esac
18871 ;;
18872 psos*)
18873 # FIXME: insert proper C++ library support
18874 ld_shlibs_CXX=no
18875 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018876 sunos4*)
18877 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018878 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018879 # Sun C++ 4.x
18880 # FIXME: insert proper C++ library support
18881 ld_shlibs_CXX=no
18882 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018883 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018884 # Lucid
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
18888 *)
18889 # FIXME: insert proper C++ library support
18890 ld_shlibs_CXX=no
18891 ;;
18892 esac
18893 ;;
18894 solaris*)
18895 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018896 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018897 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018898 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018899 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018900 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 +000018901 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 +000018902 $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 +000018903
18904 hardcode_libdir_flag_spec_CXX='-R$libdir'
18905 hardcode_shlibpath_var_CXX=no
18906 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018907 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018908 *)
18909 # The C++ compiler is used as linker so we must use $wl
18910 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018911 # linker. We must also pass each convience library through
18912 # to the system linker between allextract/defaultextract.
18913 # The C++ compiler will combine linker options so we
18914 # cannot just pass the convience library names through
18915 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018916 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018917 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 +000018918 ;;
18919 esac
18920 link_all_deplibs_CXX=yes
18921
Reid Spencera773bd52006-08-04 18:18:08 +000018922 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018923
18924 # Archives containing C++ object files must be created using
18925 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18926 # necessary to make sure instantiated templates are included
18927 # in the archive.
18928 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18929 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018930 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018931 # Green Hills C++ Compiler
18932 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18933
18934 # The C++ compiler must be used to create the archive.
18935 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18936 ;;
18937 *)
18938 # GNU C++ compiler with Solaris linker
18939 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18940 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18941 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018942 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 +000018943 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18944 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18945
John Criswell47fdd832003-07-14 16:52:07 +000018946 # Commands to make compiler produce verbose output that lists
18947 # what "hidden" libraries, object files and flags are used when
18948 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018949 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018950 else
18951 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18952 # platform.
18953 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 +000018954 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18955 $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 +000018956
18957 # Commands to make compiler produce verbose output that lists
18958 # what "hidden" libraries, object files and flags are used when
18959 # linking a shared library.
18960 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18961 fi
18962
18963 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18964 fi
18965 ;;
18966 esac
18967 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18969 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018970 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018971 hardcode_shlibpath_var_CXX=no
18972 runpath_var='LD_RUN_PATH'
18973
18974 case $cc_basename in
18975 CC*)
18976 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18977 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18978 ;;
18979 *)
18980 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18981 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18982 ;;
18983 esac
18984 ;;
18985 sysv5* | sco3.2v5* | sco5v6*)
18986 # Note: We can NOT use -z defs as we might desire, because we do not
18987 # link with -lc, and that would cause any symbols used from libc to
18988 # always be unresolved, which means just about no library would
18989 # ever link correctly. If we're not using GNU ld we use -z text
18990 # though, which does catch some bad symbols but isn't as heavy-handed
18991 # as -z defs.
18992 # For security reasons, it is highly recommended that you always
18993 # use absolute paths for naming shared libraries, and exclude the
18994 # DT_RUNPATH tag from executables and libraries. But doing so
18995 # requires that you compile everything twice, which is a pain.
18996 # So that behaviour is only enabled if SCOABSPATH is set to a
18997 # non-empty value in the environment. Most likely only useful for
18998 # creating official distributions of packages.
18999 # This is a hack until libtool officially supports absolute path
19000 # names for shared libraries.
19001 no_undefined_flag_CXX='${wl}-z,text'
19002 allow_undefined_flag_CXX='${wl}-z,nodefs'
19003 archive_cmds_need_lc_CXX=no
19004 hardcode_shlibpath_var_CXX=no
19005 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
19006 hardcode_libdir_separator_CXX=':'
19007 link_all_deplibs_CXX=yes
19008 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19009 runpath_var='LD_RUN_PATH'
19010
19011 case $cc_basename in
19012 CC*)
19013 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19014 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19015 ;;
19016 *)
19017 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
19019 ;;
19020 esac
John Criswell47fdd832003-07-14 16:52:07 +000019021 ;;
19022 tandem*)
19023 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019024 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 # NonStop-UX NCC 3.20
19026 # FIXME: insert proper C++ library support
19027 ld_shlibs_CXX=no
19028 ;;
19029 *)
19030 # FIXME: insert proper C++ library support
19031 ld_shlibs_CXX=no
19032 ;;
19033 esac
19034 ;;
19035 vxworks*)
19036 # FIXME: insert proper C++ library support
19037 ld_shlibs_CXX=no
19038 ;;
19039 *)
19040 # FIXME: insert proper C++ library support
19041 ld_shlibs_CXX=no
19042 ;;
19043esac
Reid Spencera773bd52006-08-04 18:18:08 +000019044{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19045echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019046test "$ld_shlibs_CXX" = no && can_build_shared=no
19047
19048GCC_CXX="$GXX"
19049LD_CXX="$LD"
19050
John Criswell47fdd832003-07-14 16:52:07 +000019051
19052cat > conftest.$ac_ext <<EOF
19053class Foo
19054{
19055public:
19056 Foo (void) { a = 0; }
19057private:
19058 int a;
19059};
19060EOF
19061
19062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19063 (eval $ac_compile) 2>&5
19064 ac_status=$?
19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); }; then
19067 # Parse the compiler output and extract the necessary
19068 # objects, libraries and library flags.
19069
19070 # Sentinel used to keep track of whether or not we are before
19071 # the conftest object file.
19072 pre_test_object_deps_done=no
19073
19074 # The `*' in the case matches for architectures that use `case' in
19075 # $output_verbose_cmd can trigger glob expansion during the loop
19076 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019077 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019078
19079 for p in `eval $output_verbose_link_cmd`; do
19080 case $p in
19081
19082 -L* | -R* | -l*)
19083 # Some compilers place space between "-{L,R}" and the path.
19084 # Remove the space.
19085 if test $p = "-L" \
19086 || test $p = "-R"; then
19087 prev=$p
19088 continue
19089 else
19090 prev=
19091 fi
19092
19093 if test "$pre_test_object_deps_done" = no; then
19094 case $p in
19095 -L* | -R*)
19096 # Internal compiler library paths should come after those
19097 # provided the user. The postdeps already come after the
19098 # user supplied libs so there is no need to process them.
19099 if test -z "$compiler_lib_search_path_CXX"; then
19100 compiler_lib_search_path_CXX="${prev}${p}"
19101 else
19102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19103 fi
19104 ;;
19105 # The "-l" case would never come before the object being
19106 # linked, so don't bother handling this case.
19107 esac
19108 else
19109 if test -z "$postdeps_CXX"; then
19110 postdeps_CXX="${prev}${p}"
19111 else
19112 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19113 fi
19114 fi
19115 ;;
19116
19117 *.$objext)
19118 # This assumes that the test object file only shows up
19119 # once in the compiler output.
19120 if test "$p" = "conftest.$objext"; then
19121 pre_test_object_deps_done=yes
19122 continue
19123 fi
19124
19125 if test "$pre_test_object_deps_done" = no; then
19126 if test -z "$predep_objects_CXX"; then
19127 predep_objects_CXX="$p"
19128 else
19129 predep_objects_CXX="$predep_objects_CXX $p"
19130 fi
19131 else
19132 if test -z "$postdep_objects_CXX"; then
19133 postdep_objects_CXX="$p"
19134 else
19135 postdep_objects_CXX="$postdep_objects_CXX $p"
19136 fi
19137 fi
19138 ;;
19139
19140 *) ;; # Ignore the rest.
19141
19142 esac
19143 done
19144
19145 # Clean up.
19146 rm -f a.out a.exe
19147else
19148 echo "libtool.m4: error: problem compiling CXX test program"
19149fi
19150
19151$rm -f confest.$objext
19152
Reid Spencera773bd52006-08-04 18:18:08 +000019153# PORTME: override above test on systems where it is broken
19154case $host_os in
19155interix3*)
19156 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19157 # hack all around it, let's just trust "g++" to DTRT.
19158 predep_objects_CXX=
19159 postdep_objects_CXX=
19160 postdeps_CXX=
19161 ;;
19162
19163solaris*)
19164 case $cc_basename in
19165 CC*)
19166 # Adding this requires a known-good setup of shared libraries for
19167 # Sun compiler versions before 5.6, else PIC objects from an old
19168 # archive will be linked into the output, leading to subtle bugs.
19169 postdeps_CXX='-lCstd -lCrun'
19170 ;;
19171 esac
19172 ;;
19173esac
19174
19175
John Criswell47fdd832003-07-14 16:52:07 +000019176case " $postdeps_CXX " in
19177*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19178esac
19179
19180lt_prog_compiler_wl_CXX=
19181lt_prog_compiler_pic_CXX=
19182lt_prog_compiler_static_CXX=
19183
Reid Spencera773bd52006-08-04 18:18:08 +000019184{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19185echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019186
19187 # C++ specific cases for pic, static, wl, etc.
19188 if test "$GXX" = yes; then
19189 lt_prog_compiler_wl_CXX='-Wl,'
19190 lt_prog_compiler_static_CXX='-static'
19191
19192 case $host_os in
19193 aix*)
19194 # All AIX code is PIC.
19195 if test "$host_cpu" = ia64; then
19196 # AIX 5 now supports IA64 processor
19197 lt_prog_compiler_static_CXX='-Bstatic'
19198 fi
19199 ;;
19200 amigaos*)
19201 # FIXME: we need at least 68020 code to build shared libraries, but
19202 # adding the `-m68020' flag to GCC prevents building anything better,
19203 # like `-m68040'.
19204 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19205 ;;
19206 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19207 # PIC is the default for these OSes.
19208 ;;
19209 mingw* | os2* | pw32*)
19210 # This hack is so that the source file can tell whether it is being
19211 # built for inclusion in a dll (and should export symbols for example).
19212 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19213 ;;
19214 darwin* | rhapsody*)
19215 # PIC is the default on this platform
19216 # Common symbols not allowed in MH_DYLIB files
19217 lt_prog_compiler_pic_CXX='-fno-common'
19218 ;;
19219 *djgpp*)
19220 # DJGPP does not support shared libraries at all
19221 lt_prog_compiler_pic_CXX=
19222 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019223 interix3*)
19224 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19225 # Instead, we relocate shared libraries at runtime.
19226 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019227 sysv4*MP*)
19228 if test -d /usr/nec; then
19229 lt_prog_compiler_pic_CXX=-Kconform_pic
19230 fi
19231 ;;
19232 hpux*)
19233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19234 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019235 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019236 hppa*64*|ia64*)
19237 ;;
19238 *)
19239 lt_prog_compiler_pic_CXX='-fPIC'
19240 ;;
19241 esac
19242 ;;
19243 *)
19244 lt_prog_compiler_pic_CXX='-fPIC'
19245 ;;
19246 esac
19247 else
19248 case $host_os in
19249 aix4* | aix5*)
19250 # All AIX code is PIC.
19251 if test "$host_cpu" = ia64; then
19252 # AIX 5 now supports IA64 processor
19253 lt_prog_compiler_static_CXX='-Bstatic'
19254 else
19255 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19256 fi
19257 ;;
19258 chorus*)
19259 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019260 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019261 # Green Hills C++ Compiler
19262 # _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"
19263 ;;
19264 esac
19265 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019266 darwin*)
19267 # PIC is the default on this platform
19268 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019269 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019270 xlc*)
19271 lt_prog_compiler_pic_CXX='-qnocommon'
19272 lt_prog_compiler_wl_CXX='-Wl,'
19273 ;;
19274 esac
19275 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019276 dgux*)
19277 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019278 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019279 lt_prog_compiler_pic_CXX='-KPIC'
19280 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019281 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019282 # Green Hills C++ Compiler
19283 lt_prog_compiler_pic_CXX='-pic'
19284 ;;
19285 *)
19286 ;;
19287 esac
19288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019289 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019290 # FreeBSD uses GNU C++
19291 ;;
19292 hpux9* | hpux10* | hpux11*)
19293 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019294 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019295 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019296 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019297 if test "$host_cpu" != ia64; then
19298 lt_prog_compiler_pic_CXX='+Z'
19299 fi
19300 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019301 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019302 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019303 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19304 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019305 hppa*64*|ia64*)
19306 # +Z the default
19307 ;;
19308 *)
19309 lt_prog_compiler_pic_CXX='+Z'
19310 ;;
19311 esac
19312 ;;
19313 *)
19314 ;;
19315 esac
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 interix*)
19318 # This is c89, which is MS Visual C++ (no shared libs)
19319 # Anyone wants to do a port?
19320 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019321 irix5* | irix6* | nonstopux*)
19322 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019323 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019324 lt_prog_compiler_wl_CXX='-Wl,'
19325 lt_prog_compiler_static_CXX='-non_shared'
19326 # CC pic flag -KPIC is the default.
19327 ;;
19328 *)
19329 ;;
19330 esac
19331 ;;
19332 linux*)
19333 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019334 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019335 # KAI C++ Compiler
19336 lt_prog_compiler_wl_CXX='--backend -Wl,'
19337 lt_prog_compiler_pic_CXX='-fPIC'
19338 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019339 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019340 # Intel C++
19341 lt_prog_compiler_wl_CXX='-Wl,'
19342 lt_prog_compiler_pic_CXX='-KPIC'
19343 lt_prog_compiler_static_CXX='-static'
19344 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019345 pgCC*)
19346 # Portland Group C++ compiler.
19347 lt_prog_compiler_wl_CXX='-Wl,'
19348 lt_prog_compiler_pic_CXX='-fpic'
19349 lt_prog_compiler_static_CXX='-Bstatic'
19350 ;;
19351 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019352 # Compaq C++
19353 # Make sure the PIC flag is empty. It appears that all Alpha
19354 # Linux and Compaq Tru64 Unix objects are PIC.
19355 lt_prog_compiler_pic_CXX=
19356 lt_prog_compiler_static_CXX='-non_shared'
19357 ;;
19358 *)
19359 ;;
19360 esac
19361 ;;
19362 lynxos*)
19363 ;;
19364 m88k*)
19365 ;;
19366 mvs*)
19367 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019368 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019369 lt_prog_compiler_pic_CXX='-W c,exportall'
19370 ;;
19371 *)
19372 ;;
19373 esac
19374 ;;
19375 netbsd*)
19376 ;;
19377 osf3* | osf4* | osf5*)
19378 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019379 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019380 lt_prog_compiler_wl_CXX='--backend -Wl,'
19381 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019382 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019383 # Rational C++ 2.4.1
19384 lt_prog_compiler_pic_CXX='-pic'
19385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019386 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019387 # Digital/Compaq C++
19388 lt_prog_compiler_wl_CXX='-Wl,'
19389 # Make sure the PIC flag is empty. It appears that all Alpha
19390 # Linux and Compaq Tru64 Unix objects are PIC.
19391 lt_prog_compiler_pic_CXX=
19392 lt_prog_compiler_static_CXX='-non_shared'
19393 ;;
19394 *)
19395 ;;
19396 esac
19397 ;;
19398 psos*)
19399 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019400 solaris*)
19401 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019402 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019403 # Sun C++ 4.2, 5.x and Centerline C++
19404 lt_prog_compiler_pic_CXX='-KPIC'
19405 lt_prog_compiler_static_CXX='-Bstatic'
19406 lt_prog_compiler_wl_CXX='-Qoption ld '
19407 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019408 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019409 # Green Hills C++ Compiler
19410 lt_prog_compiler_pic_CXX='-PIC'
19411 ;;
19412 *)
19413 ;;
19414 esac
19415 ;;
19416 sunos4*)
19417 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019418 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019419 # Sun C++ 4.x
19420 lt_prog_compiler_pic_CXX='-pic'
19421 lt_prog_compiler_static_CXX='-Bstatic'
19422 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019423 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019424 # Lucid
19425 lt_prog_compiler_pic_CXX='-pic'
19426 ;;
19427 *)
19428 ;;
19429 esac
19430 ;;
19431 tandem*)
19432 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019433 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019434 # NonStop-UX NCC 3.20
19435 lt_prog_compiler_pic_CXX='-KPIC'
19436 ;;
19437 *)
19438 ;;
19439 esac
19440 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19442 case $cc_basename in
19443 CC*)
19444 lt_prog_compiler_wl_CXX='-Wl,'
19445 lt_prog_compiler_pic_CXX='-KPIC'
19446 lt_prog_compiler_static_CXX='-Bstatic'
19447 ;;
19448 esac
John Criswell47fdd832003-07-14 16:52:07 +000019449 ;;
19450 vxworks*)
19451 ;;
19452 *)
19453 lt_prog_compiler_can_build_shared_CXX=no
19454 ;;
19455 esac
19456 fi
19457
Reid Spencera773bd52006-08-04 18:18:08 +000019458{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19459echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019460
19461#
19462# Check to make sure the PIC flag actually works.
19463#
19464if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019465
Reid Spencera773bd52006-08-04 18:18:08 +000019466{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19467echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019468if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470else
19471 lt_prog_compiler_pic_works_CXX=no
19472 ac_outfile=conftest.$ac_objext
19473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19474 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19475 # Insert the option either (1) after the last *FLAGS variable, or
19476 # (2) before a word containing "conftest.", or (3) at the end.
19477 # Note that $ac_compile itself does not contain backslashes and begins
19478 # with a dollar sign (not a hyphen), so the echo should work correctly.
19479 # The option is referenced via a variable to avoid confusing sed.
19480 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019481 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19483 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000019484 (eval echo "\"\$as_me:19484: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019485 (eval "$lt_compile" 2>conftest.err)
19486 ac_status=$?
19487 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000019488 echo "$as_me:19488: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019489 if (exit $ac_status) && test -s "$ac_outfile"; then
19490 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019491 # So say no if there are warnings other than the usual output.
19492 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19494 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019495 lt_prog_compiler_pic_works_CXX=yes
19496 fi
19497 fi
19498 $rm conftest*
19499
19500fi
Reid Spencera773bd52006-08-04 18:18:08 +000019501{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19502echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019503
19504if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19505 case $lt_prog_compiler_pic_CXX in
19506 "" | " "*) ;;
19507 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19508 esac
19509else
19510 lt_prog_compiler_pic_CXX=
19511 lt_prog_compiler_can_build_shared_CXX=no
19512fi
19513
19514fi
Reid Spencera773bd52006-08-04 18:18:08 +000019515case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019516 # For platforms which do not support PIC, -DPIC is meaningless:
19517 *djgpp*)
19518 lt_prog_compiler_pic_CXX=
19519 ;;
19520 *)
19521 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19522 ;;
19523esac
19524
Reid Spencera773bd52006-08-04 18:18:08 +000019525#
19526# Check to make sure the static flag actually works.
19527#
19528wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19529{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19530echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19531if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19533else
19534 lt_prog_compiler_static_works_CXX=no
19535 save_LDFLAGS="$LDFLAGS"
19536 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19537 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19538 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19539 # The linker can only warn and ignore the option if not recognized
19540 # So say no if there are warnings
19541 if test -s conftest.err; then
19542 # Append any errors to the config.log.
19543 cat conftest.err 1>&5
19544 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19545 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19546 if diff conftest.exp conftest.er2 >/dev/null; then
19547 lt_prog_compiler_static_works_CXX=yes
19548 fi
19549 else
19550 lt_prog_compiler_static_works_CXX=yes
19551 fi
19552 fi
19553 $rm conftest*
19554 LDFLAGS="$save_LDFLAGS"
19555
19556fi
19557{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19558echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19559
19560if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19561 :
19562else
19563 lt_prog_compiler_static_CXX=
19564fi
19565
19566
19567{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19568echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019569if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19570 echo $ECHO_N "(cached) $ECHO_C" >&6
19571else
19572 lt_cv_prog_compiler_c_o_CXX=no
19573 $rm -r conftest 2>/dev/null
19574 mkdir conftest
19575 cd conftest
19576 mkdir out
19577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19578
John Criswell47fdd832003-07-14 16:52:07 +000019579 lt_compiler_flag="-o out/conftest2.$ac_objext"
19580 # Insert the option either (1) after the last *FLAGS variable, or
19581 # (2) before a word containing "conftest.", or (3) at the end.
19582 # Note that $ac_compile itself does not contain backslashes and begins
19583 # with a dollar sign (not a hyphen), so the echo should work correctly.
19584 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019585 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019586 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19587 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000019588 (eval echo "\"\$as_me:19588: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019589 (eval "$lt_compile" 2>out/conftest.err)
19590 ac_status=$?
19591 cat out/conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000019592 echo "$as_me:19592: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019593 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19594 then
19595 # The compiler can only warn and ignore the option if not recognized
19596 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019597 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19598 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19599 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019600 lt_cv_prog_compiler_c_o_CXX=yes
19601 fi
19602 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019603 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019604 $rm conftest*
19605 # SGI C++ compiler will create directory out/ii_files/ for
19606 # template instantiation
19607 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19608 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019609 cd ..
19610 rmdir conftest
19611 $rm conftest*
19612
19613fi
Reid Spencera773bd52006-08-04 18:18:08 +000019614{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19615echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019616
19617
19618hard_links="nottested"
19619if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19620 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019621 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19622echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019623 hard_links=yes
19624 $rm conftest*
19625 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19626 touch conftest.a
19627 ln conftest.a conftest.b 2>&5 || hard_links=no
19628 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019629 { echo "$as_me:$LINENO: result: $hard_links" >&5
19630echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019631 if test "$hard_links" = no; then
19632 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19633echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19634 need_locks=warn
19635 fi
19636else
19637 need_locks=no
19638fi
19639
Reid Spencera773bd52006-08-04 18:18:08 +000019640{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19641echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019642
19643 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19644 case $host_os in
19645 aix4* | aix5*)
19646 # If we're using GNU nm, then we don't want the "-C" option.
19647 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19648 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19649 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'
19650 else
19651 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'
19652 fi
19653 ;;
19654 pw32*)
19655 export_symbols_cmds_CXX="$ltdll_cmds"
19656 ;;
19657 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019658 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 +000019659 ;;
19660 *)
19661 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19662 ;;
19663 esac
19664
Reid Spencera773bd52006-08-04 18:18:08 +000019665{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19666echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019667test "$ld_shlibs_CXX" = no && can_build_shared=no
19668
John Criswell47fdd832003-07-14 16:52:07 +000019669#
19670# Do we need to explicitly link libc?
19671#
19672case "x$archive_cmds_need_lc_CXX" in
19673x|xyes)
19674 # Assume -lc should be added
19675 archive_cmds_need_lc_CXX=yes
19676
19677 if test "$enable_shared" = yes && test "$GCC" = yes; then
19678 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019679 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019680 # FIXME: we may have to deal with multi-command sequences.
19681 ;;
19682 '$CC '*)
19683 # Test whether the compiler implicitly links with -lc since on some
19684 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019686 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19687echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019688 $rm conftest*
19689 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19690
19691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19692 (eval $ac_compile) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } 2>conftest.err; then
19696 soname=conftest
19697 lib=conftest
19698 libobjs=conftest.$ac_objext
19699 deplibs=
19700 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019701 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019702 compiler_flags=-v
19703 linker_flags=-v
19704 verstring=
19705 output_objdir=.
19706 libname=conftest
19707 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19708 allow_undefined_flag_CXX=
19709 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19710 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19711 ac_status=$?
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }
19714 then
19715 archive_cmds_need_lc_CXX=no
19716 else
19717 archive_cmds_need_lc_CXX=yes
19718 fi
19719 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19720 else
19721 cat conftest.err 1>&5
19722 fi
19723 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019724 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19725echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019726 ;;
19727 esac
19728 fi
19729 ;;
19730esac
19731
Reid Spencera773bd52006-08-04 18:18:08 +000019732{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19733echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019734library_names_spec=
19735libname_spec='lib$name'
19736soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019737shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019738postinstall_cmds=
19739postuninstall_cmds=
19740finish_cmds=
19741finish_eval=
19742shlibpath_var=
19743shlibpath_overrides_runpath=unknown
19744version_type=none
19745dynamic_linker="$host_os ld.so"
19746sys_lib_dlsearch_path_spec="/lib /usr/lib"
19747if test "$GCC" = yes; then
19748 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19749 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19750 # if the path contains ";" then we assume it to be the separator
19751 # otherwise default to the standard path separator (i.e. ":") - it is
19752 # assumed that no part of a normal pathname contains ";" but that should
19753 # okay in the real world where ";" in dirpaths is itself problematic.
19754 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19755 else
19756 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19757 fi
19758else
19759 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19760fi
19761need_lib_prefix=unknown
19762hardcode_into_libs=no
19763
19764# when you set need_version to no, make sure it does not cause -set_version
19765# flags to be left without arguments
19766need_version=unknown
19767
19768case $host_os in
19769aix3*)
19770 version_type=linux
19771 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19772 shlibpath_var=LIBPATH
19773
19774 # AIX 3 has no versioning support, so we append a major version to the name.
19775 soname_spec='${libname}${release}${shared_ext}$major'
19776 ;;
19777
19778aix4* | aix5*)
19779 version_type=linux
19780 need_lib_prefix=no
19781 need_version=no
19782 hardcode_into_libs=yes
19783 if test "$host_cpu" = ia64; then
19784 # AIX 5 supports IA64
19785 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19786 shlibpath_var=LD_LIBRARY_PATH
19787 else
19788 # With GCC up to 2.95.x, collect2 would create an import file
19789 # for dependence libraries. The import file would start with
19790 # the line `#! .'. This would cause the generated library to
19791 # depend on `.', always an invalid library. This was fixed in
19792 # development snapshots of GCC prior to 3.0.
19793 case $host_os in
19794 aix4 | aix4.[01] | aix4.[01].*)
19795 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19796 echo ' yes '
19797 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19798 :
19799 else
19800 can_build_shared=no
19801 fi
19802 ;;
19803 esac
19804 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19805 # soname into executable. Probably we can add versioning support to
19806 # collect2, so additional links can be useful in future.
19807 if test "$aix_use_runtimelinking" = yes; then
19808 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19809 # instead of lib<name>.a to let people know that these are not
19810 # typical AIX shared libraries.
19811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19812 else
19813 # We preserve .a as extension for shared libraries through AIX4.2
19814 # and later when we are not doing run time linking.
19815 library_names_spec='${libname}${release}.a $libname.a'
19816 soname_spec='${libname}${release}${shared_ext}$major'
19817 fi
19818 shlibpath_var=LIBPATH
19819 fi
19820 ;;
19821
19822amigaos*)
19823 library_names_spec='$libname.ixlibrary $libname.a'
19824 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019825 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 +000019826 ;;
19827
19828beos*)
19829 library_names_spec='${libname}${shared_ext}'
19830 dynamic_linker="$host_os ld.so"
19831 shlibpath_var=LIBRARY_PATH
19832 ;;
19833
Reid Spencer2706f8c2004-09-19 23:53:36 +000019834bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019835 version_type=linux
19836 need_version=no
19837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19838 soname_spec='${libname}${release}${shared_ext}$major'
19839 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19840 shlibpath_var=LD_LIBRARY_PATH
19841 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19842 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19843 # the default ld.so.conf also contains /usr/contrib/lib and
19844 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19845 # libtool to hard-code these into programs
19846 ;;
19847
19848cygwin* | mingw* | pw32*)
19849 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019850 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019851 need_version=no
19852 need_lib_prefix=no
19853
19854 case $GCC,$host_os in
19855 yes,cygwin* | yes,mingw* | yes,pw32*)
19856 library_names_spec='$libname.dll.a'
19857 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019858 postinstall_cmds='base_file=`basename \${file}`~
19859 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19860 dldir=$destdir/`dirname \$dlpath`~
19861 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019862 $install_prog $dir/$dlname \$dldir/$dlname~
19863 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019864 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19865 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019866 $rm \$dlpath'
19867 shlibpath_overrides_runpath=yes
19868
19869 case $host_os in
19870 cygwin*)
19871 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19872 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 +000019873 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019874 ;;
19875 mingw*)
19876 # MinGW DLLs use traditional 'lib' prefix
19877 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19878 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19879 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19880 # It is most probably a Windows format PATH printed by
19881 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19882 # path with ; separators, and with drive letters. We can handle the
19883 # drive letters (cygwin fileutils understands them), so leave them,
19884 # especially as we might pass files found there to a mingw objdump,
19885 # which wouldn't understand a cygwinified path. Ahh.
19886 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19887 else
19888 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19889 fi
19890 ;;
19891 pw32*)
19892 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019893 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 +000019894 ;;
19895 esac
19896 ;;
19897
19898 *)
19899 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19900 ;;
19901 esac
19902 dynamic_linker='Win32 ld.exe'
19903 # FIXME: first we should search . and the directory the executable is in
19904 shlibpath_var=PATH
19905 ;;
19906
19907darwin* | rhapsody*)
19908 dynamic_linker="$host_os dyld"
19909 version_type=darwin
19910 need_lib_prefix=no
19911 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019912 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019913 soname_spec='${libname}${release}${major}$shared_ext'
19914 shlibpath_overrides_runpath=yes
19915 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019916 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019917 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019918 if test "$GCC" = yes; then
19919 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"`
19920 else
19921 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019922 fi
19923 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19924 ;;
19925
19926dgux*)
19927 version_type=linux
19928 need_lib_prefix=no
19929 need_version=no
19930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19931 soname_spec='${libname}${release}${shared_ext}$major'
19932 shlibpath_var=LD_LIBRARY_PATH
19933 ;;
19934
19935freebsd1*)
19936 dynamic_linker=no
19937 ;;
19938
Reid Spencer2706f8c2004-09-19 23:53:36 +000019939kfreebsd*-gnu)
19940 version_type=linux
19941 need_lib_prefix=no
19942 need_version=no
19943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 shlibpath_var=LD_LIBRARY_PATH
19946 shlibpath_overrides_runpath=no
19947 hardcode_into_libs=yes
19948 dynamic_linker='GNU ld.so'
19949 ;;
19950
Reid Spencera773bd52006-08-04 18:18:08 +000019951freebsd* | dragonfly*)
19952 # DragonFly does not have aout. When/if they implement a new
19953 # versioning mechanism, adjust this.
19954 if test -x /usr/bin/objformat; then
19955 objformat=`/usr/bin/objformat`
19956 else
19957 case $host_os in
19958 freebsd[123]*) objformat=aout ;;
19959 *) objformat=elf ;;
19960 esac
19961 fi
John Criswell47fdd832003-07-14 16:52:07 +000019962 version_type=freebsd-$objformat
19963 case $version_type in
19964 freebsd-elf*)
19965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19966 need_version=no
19967 need_lib_prefix=no
19968 ;;
19969 freebsd-*)
19970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19971 need_version=yes
19972 ;;
19973 esac
19974 shlibpath_var=LD_LIBRARY_PATH
19975 case $host_os in
19976 freebsd2*)
19977 shlibpath_overrides_runpath=yes
19978 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019979 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019980 shlibpath_overrides_runpath=yes
19981 hardcode_into_libs=yes
19982 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019985 shlibpath_overrides_runpath=no
19986 hardcode_into_libs=yes
19987 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019988 freebsd*) # from 4.6 on
19989 shlibpath_overrides_runpath=yes
19990 hardcode_into_libs=yes
19991 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019992 esac
19993 ;;
19994
19995gnu*)
19996 version_type=linux
19997 need_lib_prefix=no
19998 need_version=no
19999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20000 soname_spec='${libname}${release}${shared_ext}$major'
20001 shlibpath_var=LD_LIBRARY_PATH
20002 hardcode_into_libs=yes
20003 ;;
20004
20005hpux9* | hpux10* | hpux11*)
20006 # Give a soname corresponding to the major version so that dld.sl refuses to
20007 # link against other versions.
20008 version_type=sunos
20009 need_lib_prefix=no
20010 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000020011 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020012 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020013 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020014 hardcode_into_libs=yes
20015 dynamic_linker="$host_os dld.so"
20016 shlibpath_var=LD_LIBRARY_PATH
20017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20019 soname_spec='${libname}${release}${shared_ext}$major'
20020 if test "X$HPUX_IA64_MODE" = X32; then
20021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20022 else
20023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20024 fi
20025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20026 ;;
20027 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020028 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020029 hardcode_into_libs=yes
20030 dynamic_linker="$host_os dld.sl"
20031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20037 ;;
20038 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020039 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020040 dynamic_linker="$host_os dld.sl"
20041 shlibpath_var=SHLIB_PATH
20042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20044 soname_spec='${libname}${release}${shared_ext}$major'
20045 ;;
20046 esac
20047 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20048 postinstall_cmds='chmod 555 $lib'
20049 ;;
20050
Reid Spencera773bd52006-08-04 18:18:08 +000020051interix3*)
20052 version_type=linux
20053 need_lib_prefix=no
20054 need_version=no
20055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20056 soname_spec='${libname}${release}${shared_ext}$major'
20057 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20058 shlibpath_var=LD_LIBRARY_PATH
20059 shlibpath_overrides_runpath=no
20060 hardcode_into_libs=yes
20061 ;;
20062
John Criswell47fdd832003-07-14 16:52:07 +000020063irix5* | irix6* | nonstopux*)
20064 case $host_os in
20065 nonstopux*) version_type=nonstopux ;;
20066 *)
20067 if test "$lt_cv_prog_gnu_ld" = yes; then
20068 version_type=linux
20069 else
20070 version_type=irix
20071 fi ;;
20072 esac
20073 need_lib_prefix=no
20074 need_version=no
20075 soname_spec='${libname}${release}${shared_ext}$major'
20076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20077 case $host_os in
20078 irix5* | nonstopux*)
20079 libsuff= shlibsuff=
20080 ;;
20081 *)
20082 case $LD in # libtool.m4 will add one of these switches to LD
20083 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20084 libsuff= shlibsuff= libmagic=32-bit;;
20085 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20086 libsuff=32 shlibsuff=N32 libmagic=N32;;
20087 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20088 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20089 *) libsuff= shlibsuff= libmagic=never-match;;
20090 esac
20091 ;;
20092 esac
20093 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20094 shlibpath_overrides_runpath=no
20095 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20096 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20097 hardcode_into_libs=yes
20098 ;;
20099
20100# No shared lib support for Linux oldld, aout, or coff.
20101linux*oldld* | linux*aout* | linux*coff*)
20102 dynamic_linker=no
20103 ;;
20104
20105# This must be Linux ELF.
20106linux*)
20107 version_type=linux
20108 need_lib_prefix=no
20109 need_version=no
20110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20111 soname_spec='${libname}${release}${shared_ext}$major'
20112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 # This implies no fast_install, which is unacceptable.
20116 # Some rework will be needed to allow for fast_install
20117 # before this can be enabled.
20118 hardcode_into_libs=yes
20119
Reid Spencer2706f8c2004-09-19 23:53:36 +000020120 # Append ld.so.conf contents to the search path
20121 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020122 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 +000020123 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20124 fi
20125
John Criswell47fdd832003-07-14 16:52:07 +000020126 # We used to test for /lib/ld.so.1 and disable shared libraries on
20127 # powerpc, because MkLinux only supported shared libraries with the
20128 # GNU dynamic linker. Since this was broken with cross compilers,
20129 # most powerpc-linux boxes support dynamic linking these days and
20130 # people can always --disable-shared, the test was removed, and we
20131 # assume the GNU/Linux dynamic linker is in use.
20132 dynamic_linker='GNU/Linux ld.so'
20133 ;;
20134
Reid Spencer2706f8c2004-09-19 23:53:36 +000020135knetbsd*-gnu)
20136 version_type=linux
20137 need_lib_prefix=no
20138 need_version=no
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20140 soname_spec='${libname}${release}${shared_ext}$major'
20141 shlibpath_var=LD_LIBRARY_PATH
20142 shlibpath_overrides_runpath=no
20143 hardcode_into_libs=yes
20144 dynamic_linker='GNU ld.so'
20145 ;;
20146
John Criswell47fdd832003-07-14 16:52:07 +000020147netbsd*)
20148 version_type=sunos
20149 need_lib_prefix=no
20150 need_version=no
20151 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20154 dynamic_linker='NetBSD (a.out) ld.so'
20155 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020157 soname_spec='${libname}${release}${shared_ext}$major'
20158 dynamic_linker='NetBSD ld.elf_so'
20159 fi
20160 shlibpath_var=LD_LIBRARY_PATH
20161 shlibpath_overrides_runpath=yes
20162 hardcode_into_libs=yes
20163 ;;
20164
20165newsos6)
20166 version_type=linux
20167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20168 shlibpath_var=LD_LIBRARY_PATH
20169 shlibpath_overrides_runpath=yes
20170 ;;
20171
Reid Spencer2706f8c2004-09-19 23:53:36 +000020172nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020173 version_type=linux
20174 need_lib_prefix=no
20175 need_version=no
20176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20177 soname_spec='${libname}${release}${shared_ext}$major'
20178 shlibpath_var=LD_LIBRARY_PATH
20179 shlibpath_overrides_runpath=yes
20180 ;;
20181
20182openbsd*)
20183 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020184 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020185 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020186 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20187 case $host_os in
20188 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20189 *) need_version=no ;;
20190 esac
John Criswell47fdd832003-07-14 16:52:07 +000020191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20192 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20193 shlibpath_var=LD_LIBRARY_PATH
20194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20195 case $host_os in
20196 openbsd2.[89] | openbsd2.[89].*)
20197 shlibpath_overrides_runpath=no
20198 ;;
20199 *)
20200 shlibpath_overrides_runpath=yes
20201 ;;
20202 esac
20203 else
20204 shlibpath_overrides_runpath=yes
20205 fi
20206 ;;
20207
20208os2*)
20209 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020210 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020211 need_lib_prefix=no
20212 library_names_spec='$libname${shared_ext} $libname.a'
20213 dynamic_linker='OS/2 ld.exe'
20214 shlibpath_var=LIBPATH
20215 ;;
20216
20217osf3* | osf4* | osf5*)
20218 version_type=osf
20219 need_lib_prefix=no
20220 need_version=no
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223 shlibpath_var=LD_LIBRARY_PATH
20224 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20225 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20226 ;;
20227
John Criswell47fdd832003-07-14 16:52:07 +000020228solaris*)
20229 version_type=linux
20230 need_lib_prefix=no
20231 need_version=no
20232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20233 soname_spec='${libname}${release}${shared_ext}$major'
20234 shlibpath_var=LD_LIBRARY_PATH
20235 shlibpath_overrides_runpath=yes
20236 hardcode_into_libs=yes
20237 # ldd complains unless libraries are executable
20238 postinstall_cmds='chmod +x $lib'
20239 ;;
20240
20241sunos4*)
20242 version_type=sunos
20243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20244 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20245 shlibpath_var=LD_LIBRARY_PATH
20246 shlibpath_overrides_runpath=yes
20247 if test "$with_gnu_ld" = yes; then
20248 need_lib_prefix=no
20249 fi
20250 need_version=yes
20251 ;;
20252
Reid Spencera773bd52006-08-04 18:18:08 +000020253sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020254 version_type=linux
20255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20256 soname_spec='${libname}${release}${shared_ext}$major'
20257 shlibpath_var=LD_LIBRARY_PATH
20258 case $host_vendor in
20259 sni)
20260 shlibpath_overrides_runpath=no
20261 need_lib_prefix=no
20262 export_dynamic_flag_spec='${wl}-Blargedynsym'
20263 runpath_var=LD_RUN_PATH
20264 ;;
20265 siemens)
20266 need_lib_prefix=no
20267 ;;
20268 motorola)
20269 need_lib_prefix=no
20270 need_version=no
20271 shlibpath_overrides_runpath=no
20272 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20273 ;;
20274 esac
20275 ;;
20276
20277sysv4*MP*)
20278 if test -d /usr/nec ;then
20279 version_type=linux
20280 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20281 soname_spec='$libname${shared_ext}.$major'
20282 shlibpath_var=LD_LIBRARY_PATH
20283 fi
20284 ;;
20285
Reid Spencera773bd52006-08-04 18:18:08 +000020286sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20287 version_type=freebsd-elf
20288 need_lib_prefix=no
20289 need_version=no
20290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20291 soname_spec='${libname}${release}${shared_ext}$major'
20292 shlibpath_var=LD_LIBRARY_PATH
20293 hardcode_into_libs=yes
20294 if test "$with_gnu_ld" = yes; then
20295 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20296 shlibpath_overrides_runpath=no
20297 else
20298 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20299 shlibpath_overrides_runpath=yes
20300 case $host_os in
20301 sco3.2v5*)
20302 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20303 ;;
20304 esac
20305 fi
20306 sys_lib_dlsearch_path_spec='/usr/lib'
20307 ;;
20308
John Criswell47fdd832003-07-14 16:52:07 +000020309uts4*)
20310 version_type=linux
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 ;;
20315
20316*)
20317 dynamic_linker=no
20318 ;;
20319esac
Reid Spencera773bd52006-08-04 18:18:08 +000020320{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20321echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020322test "$dynamic_linker" = no && can_build_shared=no
20323
Reid Spencera773bd52006-08-04 18:18:08 +000020324variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20325if test "$GCC" = yes; then
20326 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20327fi
20328
20329{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20330echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331hardcode_action_CXX=
20332if test -n "$hardcode_libdir_flag_spec_CXX" || \
20333 test -n "$runpath_var_CXX" || \
20334 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20335
20336 # We can hardcode non-existant directories.
20337 if test "$hardcode_direct_CXX" != no &&
20338 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20339 # have to relink, otherwise we might link with an installed library
20340 # when we should be linking with a yet-to-be-installed one
20341 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20342 test "$hardcode_minus_L_CXX" != no; then
20343 # Linking always hardcodes the temporary library directory.
20344 hardcode_action_CXX=relink
20345 else
20346 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20347 hardcode_action_CXX=immediate
20348 fi
20349else
20350 # We cannot hardcode anything, or else we can only hardcode existing
20351 # directories.
20352 hardcode_action_CXX=unsupported
20353fi
Reid Spencera773bd52006-08-04 18:18:08 +000020354{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20355echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020356
20357if test "$hardcode_action_CXX" = relink; then
20358 # Fast installation is not supported
20359 enable_fast_install=no
20360elif test "$shlibpath_overrides_runpath" = yes ||
20361 test "$enable_shared" = no; then
20362 # Fast installation is not necessary
20363 enable_fast_install=needless
20364fi
20365
John Criswell47fdd832003-07-14 16:52:07 +000020366
20367# The else clause should only fire when bootstrapping the
20368# libtool distribution, otherwise you forgot to ship ltmain.sh
20369# with your package, and you will get complaints that there are
20370# no rules to generate ltmain.sh.
20371if test -f "$ltmain"; then
20372 # See if we are running on zsh, and set the options which allow our commands through
20373 # without removal of \ escapes.
20374 if test -n "${ZSH_VERSION+set}" ; then
20375 setopt NO_GLOB_SUBST
20376 fi
20377 # Now quote all the things that may contain metacharacters while being
20378 # careful not to overquote the AC_SUBSTed values. We take copies of the
20379 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020380 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 +000020381 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020382 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20383 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20384 deplibs_check_method reload_flag reload_cmds need_locks \
20385 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20386 lt_cv_sys_global_symbol_to_c_name_address \
20387 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20388 old_postinstall_cmds old_postuninstall_cmds \
20389 compiler_CXX \
20390 CC_CXX \
20391 LD_CXX \
20392 lt_prog_compiler_wl_CXX \
20393 lt_prog_compiler_pic_CXX \
20394 lt_prog_compiler_static_CXX \
20395 lt_prog_compiler_no_builtin_flag_CXX \
20396 export_dynamic_flag_spec_CXX \
20397 thread_safe_flag_spec_CXX \
20398 whole_archive_flag_spec_CXX \
20399 enable_shared_with_static_runtimes_CXX \
20400 old_archive_cmds_CXX \
20401 old_archive_from_new_cmds_CXX \
20402 predep_objects_CXX \
20403 postdep_objects_CXX \
20404 predeps_CXX \
20405 postdeps_CXX \
20406 compiler_lib_search_path_CXX \
20407 archive_cmds_CXX \
20408 archive_expsym_cmds_CXX \
20409 postinstall_cmds_CXX \
20410 postuninstall_cmds_CXX \
20411 old_archive_from_expsyms_cmds_CXX \
20412 allow_undefined_flag_CXX \
20413 no_undefined_flag_CXX \
20414 export_symbols_cmds_CXX \
20415 hardcode_libdir_flag_spec_CXX \
20416 hardcode_libdir_flag_spec_ld_CXX \
20417 hardcode_libdir_separator_CXX \
20418 hardcode_automatic_CXX \
20419 module_cmds_CXX \
20420 module_expsym_cmds_CXX \
20421 lt_cv_prog_compiler_c_o_CXX \
20422 exclude_expsyms_CXX \
20423 include_expsyms_CXX; do
20424
20425 case $var in
20426 old_archive_cmds_CXX | \
20427 old_archive_from_new_cmds_CXX | \
20428 archive_cmds_CXX | \
20429 archive_expsym_cmds_CXX | \
20430 module_cmds_CXX | \
20431 module_expsym_cmds_CXX | \
20432 old_archive_from_expsyms_cmds_CXX | \
20433 export_symbols_cmds_CXX | \
20434 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20435 postinstall_cmds | postuninstall_cmds | \
20436 old_postinstall_cmds | old_postuninstall_cmds | \
20437 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20438 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020439 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 +000020440 ;;
20441 *)
20442 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20443 ;;
20444 esac
20445 done
20446
20447 case $lt_echo in
20448 *'\$0 --fallback-echo"')
20449 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20450 ;;
20451 esac
20452
20453cfgfile="$ofile"
20454
20455 cat <<__EOF__ >> "$cfgfile"
20456# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20457
20458# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20459
20460# Shell to use when invoking shell scripts.
20461SHELL=$lt_SHELL
20462
20463# Whether or not to build shared libraries.
20464build_libtool_libs=$enable_shared
20465
20466# Whether or not to build static libraries.
20467build_old_libs=$enable_static
20468
20469# Whether or not to add -lc for building shared libraries.
20470build_libtool_need_lc=$archive_cmds_need_lc_CXX
20471
20472# Whether or not to disallow shared libs when runtime libs are static
20473allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20474
20475# Whether or not to optimize for fast installation.
20476fast_install=$enable_fast_install
20477
20478# The host system.
20479host_alias=$host_alias
20480host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020481host_os=$host_os
20482
20483# The build system.
20484build_alias=$build_alias
20485build=$build
20486build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020487
20488# An echo program that does not interpret backslashes.
20489echo=$lt_echo
20490
20491# The archiver.
20492AR=$lt_AR
20493AR_FLAGS=$lt_AR_FLAGS
20494
20495# A C compiler.
20496LTCC=$lt_LTCC
20497
Reid Spencera773bd52006-08-04 18:18:08 +000020498# LTCC compiler flags.
20499LTCFLAGS=$lt_LTCFLAGS
20500
John Criswell47fdd832003-07-14 16:52:07 +000020501# A language-specific compiler.
20502CC=$lt_compiler_CXX
20503
20504# Is the compiler the GNU C compiler?
20505with_gcc=$GCC_CXX
20506
20507# An ERE matcher.
20508EGREP=$lt_EGREP
20509
20510# The linker used to build libraries.
20511LD=$lt_LD_CXX
20512
20513# Whether we need hard or soft links.
20514LN_S=$lt_LN_S
20515
20516# A BSD-compatible nm program.
20517NM=$lt_NM
20518
20519# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020520STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020521
20522# Used to examine libraries when file_magic_cmd begins "file"
20523MAGIC_CMD=$MAGIC_CMD
20524
20525# Used on cygwin: DLL creation program.
20526DLLTOOL="$DLLTOOL"
20527
20528# Used on cygwin: object dumper.
20529OBJDUMP="$OBJDUMP"
20530
20531# Used on cygwin: assembler.
20532AS="$AS"
20533
20534# The name of the directory that contains temporary libtool files.
20535objdir=$objdir
20536
20537# How to create reloadable object files.
20538reload_flag=$lt_reload_flag
20539reload_cmds=$lt_reload_cmds
20540
20541# How to pass a linker flag through the compiler.
20542wl=$lt_lt_prog_compiler_wl_CXX
20543
20544# Object file suffix (normally "o").
20545objext="$ac_objext"
20546
20547# Old archive suffix (normally "a").
20548libext="$libext"
20549
20550# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020551shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020552
20553# Executable file suffix (normally "").
20554exeext="$exeext"
20555
20556# Additional compiler flags for building library objects.
20557pic_flag=$lt_lt_prog_compiler_pic_CXX
20558pic_mode=$pic_mode
20559
20560# What is the maximum length of a command?
20561max_cmd_len=$lt_cv_sys_max_cmd_len
20562
20563# Does compiler simultaneously support -c and -o options?
20564compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20565
Reid Spencera773bd52006-08-04 18:18:08 +000020566# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020567need_locks=$lt_need_locks
20568
20569# Do we need the lib prefix for modules?
20570need_lib_prefix=$need_lib_prefix
20571
20572# Do we need a version for libraries?
20573need_version=$need_version
20574
20575# Whether dlopen is supported.
20576dlopen_support=$enable_dlopen
20577
20578# Whether dlopen of programs is supported.
20579dlopen_self=$enable_dlopen_self
20580
20581# Whether dlopen of statically linked programs is supported.
20582dlopen_self_static=$enable_dlopen_self_static
20583
20584# Compiler flag to prevent dynamic linking.
20585link_static_flag=$lt_lt_prog_compiler_static_CXX
20586
20587# Compiler flag to turn off builtin functions.
20588no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20589
20590# Compiler flag to allow reflexive dlopens.
20591export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20592
20593# Compiler flag to generate shared objects directly from archives.
20594whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20595
20596# Compiler flag to generate thread-safe objects.
20597thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20598
20599# Library versioning type.
20600version_type=$version_type
20601
20602# Format of library name prefix.
20603libname_spec=$lt_libname_spec
20604
20605# List of archive names. First name is the real one, the rest are links.
20606# The last name is the one that the linker finds with -lNAME.
20607library_names_spec=$lt_library_names_spec
20608
20609# The coded name of the library, if different from the real name.
20610soname_spec=$lt_soname_spec
20611
20612# Commands used to build and install an old-style archive.
20613RANLIB=$lt_RANLIB
20614old_archive_cmds=$lt_old_archive_cmds_CXX
20615old_postinstall_cmds=$lt_old_postinstall_cmds
20616old_postuninstall_cmds=$lt_old_postuninstall_cmds
20617
20618# Create an old-style archive from a shared archive.
20619old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20620
20621# Create a temporary old-style archive to link instead of a shared archive.
20622old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20623
20624# Commands used to build and install a shared archive.
20625archive_cmds=$lt_archive_cmds_CXX
20626archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20627postinstall_cmds=$lt_postinstall_cmds
20628postuninstall_cmds=$lt_postuninstall_cmds
20629
20630# Commands used to build a loadable module (assumed same as above if empty)
20631module_cmds=$lt_module_cmds_CXX
20632module_expsym_cmds=$lt_module_expsym_cmds_CXX
20633
20634# Commands to strip libraries.
20635old_striplib=$lt_old_striplib
20636striplib=$lt_striplib
20637
20638# Dependencies to place before the objects being linked to create a
20639# shared library.
20640predep_objects=$lt_predep_objects_CXX
20641
20642# Dependencies to place after the objects being linked to create a
20643# shared library.
20644postdep_objects=$lt_postdep_objects_CXX
20645
20646# Dependencies to place before the objects being linked to create a
20647# shared library.
20648predeps=$lt_predeps_CXX
20649
20650# Dependencies to place after the objects being linked to create a
20651# shared library.
20652postdeps=$lt_postdeps_CXX
20653
20654# The library search path used internally by the compiler when linking
20655# a shared library.
20656compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20657
20658# Method to check whether dependent libraries are shared objects.
20659deplibs_check_method=$lt_deplibs_check_method
20660
20661# Command to use when deplibs_check_method == file_magic.
20662file_magic_cmd=$lt_file_magic_cmd
20663
20664# Flag that allows shared libraries with undefined symbols to be built.
20665allow_undefined_flag=$lt_allow_undefined_flag_CXX
20666
20667# Flag that forces no undefined symbols.
20668no_undefined_flag=$lt_no_undefined_flag_CXX
20669
20670# Commands used to finish a libtool library installation in a directory.
20671finish_cmds=$lt_finish_cmds
20672
20673# Same as above, but a single script fragment to be evaled but not shown.
20674finish_eval=$lt_finish_eval
20675
20676# Take the output of nm and produce a listing of raw symbols and C names.
20677global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20678
20679# Transform the output of nm in a proper C declaration
20680global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20681
20682# Transform the output of nm in a C name address pair
20683global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20684
20685# This is the shared library runtime path variable.
20686runpath_var=$runpath_var
20687
20688# This is the shared library path variable.
20689shlibpath_var=$shlibpath_var
20690
20691# Is shlibpath searched before the hard-coded library search path?
20692shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20693
20694# How to hardcode a shared library path into an executable.
20695hardcode_action=$hardcode_action_CXX
20696
20697# Whether we should hardcode library paths into libraries.
20698hardcode_into_libs=$hardcode_into_libs
20699
20700# Flag to hardcode \$libdir into a binary during linking.
20701# This must work even if \$libdir does not exist.
20702hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20703
20704# If ld is used when linking, flag to hardcode \$libdir into
20705# a binary during linking. This must work even if \$libdir does
20706# not exist.
20707hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20708
20709# Whether we need a single -rpath flag with a separated argument.
20710hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20711
20712# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20713# resulting binary.
20714hardcode_direct=$hardcode_direct_CXX
20715
20716# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20717# resulting binary.
20718hardcode_minus_L=$hardcode_minus_L_CXX
20719
20720# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20721# the resulting binary.
20722hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20723
20724# Set to yes if building a shared library automatically hardcodes DIR into the library
20725# and all subsequent libraries and executables linked against it.
20726hardcode_automatic=$hardcode_automatic_CXX
20727
20728# Variables whose values should be saved in libtool wrapper scripts and
20729# restored at relink time.
20730variables_saved_for_relink="$variables_saved_for_relink"
20731
20732# Whether libtool must link a program against all its dependency libraries.
20733link_all_deplibs=$link_all_deplibs_CXX
20734
20735# Compile-time system search path for libraries
20736sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20737
20738# Run-time system search path for libraries
20739sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20740
20741# Fix the shell variable \$srcfile for the compiler.
20742fix_srcfile_path="$fix_srcfile_path_CXX"
20743
20744# Set to yes if exported symbols are required.
20745always_export_symbols=$always_export_symbols_CXX
20746
20747# The commands to list exported symbols.
20748export_symbols_cmds=$lt_export_symbols_cmds_CXX
20749
20750# The commands to extract the exported symbol list from a shared archive.
20751extract_expsyms_cmds=$lt_extract_expsyms_cmds
20752
20753# Symbols that should not be listed in the preloaded symbols.
20754exclude_expsyms=$lt_exclude_expsyms_CXX
20755
20756# Symbols that must always be exported.
20757include_expsyms=$lt_include_expsyms_CXX
20758
20759# ### END LIBTOOL TAG CONFIG: $tagname
20760
20761__EOF__
20762
20763
20764else
20765 # If there is no Makefile yet, we rely on a make rule to execute
20766 # `config.status --recheck' to rerun these tests and create the
20767 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20769 if test -f "$ltmain_in"; then
20770 test -f Makefile && make "$ltmain"
20771 fi
John Criswell47fdd832003-07-14 16:52:07 +000020772fi
20773
20774
20775ac_ext=c
20776ac_cpp='$CPP $CPPFLAGS'
20777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
20781CC=$lt_save_CC
20782LDCXX=$LD
20783LD=$lt_save_LD
20784GCC=$lt_save_GCC
20785with_gnu_ldcxx=$with_gnu_ld
20786with_gnu_ld=$lt_save_with_gnu_ld
20787lt_cv_path_LDCXX=$lt_cv_path_LD
20788lt_cv_path_LD=$lt_save_path_LD
20789lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20790lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20791
20792 else
20793 tagname=""
20794 fi
20795 ;;
20796
20797 F77)
20798 if test -n "$F77" && test "X$F77" != "Xno"; then
20799
20800ac_ext=f
20801ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20802ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20804
20805
20806archive_cmds_need_lc_F77=no
20807allow_undefined_flag_F77=
20808always_export_symbols_F77=no
20809archive_expsym_cmds_F77=
20810export_dynamic_flag_spec_F77=
20811hardcode_direct_F77=no
20812hardcode_libdir_flag_spec_F77=
20813hardcode_libdir_flag_spec_ld_F77=
20814hardcode_libdir_separator_F77=
20815hardcode_minus_L_F77=no
20816hardcode_automatic_F77=no
20817module_cmds_F77=
20818module_expsym_cmds_F77=
20819link_all_deplibs_F77=unknown
20820old_archive_cmds_F77=$old_archive_cmds
20821no_undefined_flag_F77=
20822whole_archive_flag_spec_F77=
20823enable_shared_with_static_runtimes_F77=no
20824
20825# Source file extension for f77 test sources.
20826ac_ext=f
20827
20828# Object file extension for compiled f77 test sources.
20829objext=o
20830objext_F77=$objext
20831
20832# Code to be used in simple compile tests
20833lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20834
20835# Code to be used in simple link tests
20836lt_simple_link_test_code=" program t\n end\n"
20837
20838# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20839
20840# If no C compiler was specified, use CC.
20841LTCC=${LTCC-"$CC"}
20842
Reid Spencera773bd52006-08-04 18:18:08 +000020843# If no C compiler flags were specified, use CFLAGS.
20844LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20845
John Criswell47fdd832003-07-14 16:52:07 +000020846# Allow CC to be a program name with arguments.
20847compiler=$CC
20848
20849
Reid Spencera773bd52006-08-04 18:18:08 +000020850# save warnings/boilerplate of simple test code
20851ac_outfile=conftest.$ac_objext
20852printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20853eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20854_lt_compiler_boilerplate=`cat conftest.err`
20855$rm conftest*
20856
20857ac_outfile=conftest.$ac_objext
20858printf "$lt_simple_link_test_code" >conftest.$ac_ext
20859eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20860_lt_linker_boilerplate=`cat conftest.err`
20861$rm conftest*
20862
20863
John Criswell47fdd832003-07-14 16:52:07 +000020864# Allow CC to be a program name with arguments.
20865lt_save_CC="$CC"
20866CC=${F77-"f77"}
20867compiler=$CC
20868compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020869for cc_temp in $compiler""; do
20870 case $cc_temp in
20871 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20872 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20873 \-*) ;;
20874 *) break;;
20875 esac
20876done
20877cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020878
John Criswell47fdd832003-07-14 16:52:07 +000020879
Reid Spencera773bd52006-08-04 18:18:08 +000020880{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20881echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20882{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20883echo "${ECHO_T}$can_build_shared" >&6; }
20884
20885{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20886echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020887test "$can_build_shared" = "no" && enable_shared=no
20888
20889# On AIX, shared libraries and static libraries use the same namespace, and
20890# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020891case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020892aix3*)
20893 test "$enable_shared" = yes && enable_static=no
20894 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020895 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020896 postinstall_cmds='$RANLIB $lib'
20897 fi
20898 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020899aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020900 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20901 test "$enable_shared" = yes && enable_static=no
20902 fi
John Criswell47fdd832003-07-14 16:52:07 +000020903 ;;
20904esac
Reid Spencera773bd52006-08-04 18:18:08 +000020905{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20906echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020907
Reid Spencera773bd52006-08-04 18:18:08 +000020908{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20909echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020910# Make sure either enable_shared or enable_static is yes.
20911test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020912{ echo "$as_me:$LINENO: result: $enable_static" >&5
20913echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020914
20915GCC_F77="$G77"
20916LD_F77="$LD"
20917
20918lt_prog_compiler_wl_F77=
20919lt_prog_compiler_pic_F77=
20920lt_prog_compiler_static_F77=
20921
Reid Spencera773bd52006-08-04 18:18:08 +000020922{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20923echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020924
20925 if test "$GCC" = yes; then
20926 lt_prog_compiler_wl_F77='-Wl,'
20927 lt_prog_compiler_static_F77='-static'
20928
20929 case $host_os in
20930 aix*)
20931 # All AIX code is PIC.
20932 if test "$host_cpu" = ia64; then
20933 # AIX 5 now supports IA64 processor
20934 lt_prog_compiler_static_F77='-Bstatic'
20935 fi
20936 ;;
20937
20938 amigaos*)
20939 # FIXME: we need at least 68020 code to build shared libraries, but
20940 # adding the `-m68020' flag to GCC prevents building anything better,
20941 # like `-m68040'.
20942 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20943 ;;
20944
20945 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20946 # PIC is the default for these OSes.
20947 ;;
20948
20949 mingw* | pw32* | os2*)
20950 # This hack is so that the source file can tell whether it is being
20951 # built for inclusion in a dll (and should export symbols for example).
20952 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20953 ;;
20954
20955 darwin* | rhapsody*)
20956 # PIC is the default on this platform
20957 # Common symbols not allowed in MH_DYLIB files
20958 lt_prog_compiler_pic_F77='-fno-common'
20959 ;;
20960
Reid Spencera773bd52006-08-04 18:18:08 +000020961 interix3*)
20962 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20963 # Instead, we relocate shared libraries at runtime.
20964 ;;
20965
John Criswell47fdd832003-07-14 16:52:07 +000020966 msdosdjgpp*)
20967 # Just because we use GCC doesn't mean we suddenly get shared libraries
20968 # on systems that don't support them.
20969 lt_prog_compiler_can_build_shared_F77=no
20970 enable_shared=no
20971 ;;
20972
20973 sysv4*MP*)
20974 if test -d /usr/nec; then
20975 lt_prog_compiler_pic_F77=-Kconform_pic
20976 fi
20977 ;;
20978
20979 hpux*)
20980 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20981 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020982 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020983 hppa*64*|ia64*)
20984 # +Z the default
20985 ;;
20986 *)
20987 lt_prog_compiler_pic_F77='-fPIC'
20988 ;;
20989 esac
20990 ;;
20991
20992 *)
20993 lt_prog_compiler_pic_F77='-fPIC'
20994 ;;
20995 esac
20996 else
20997 # PORTME Check for flag to pass linker flags through the system compiler.
20998 case $host_os in
20999 aix*)
21000 lt_prog_compiler_wl_F77='-Wl,'
21001 if test "$host_cpu" = ia64; then
21002 # AIX 5 now supports IA64 processor
21003 lt_prog_compiler_static_F77='-Bstatic'
21004 else
21005 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21006 fi
21007 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021008 darwin*)
21009 # PIC is the default on this platform
21010 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000021011 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021012 xlc*)
21013 lt_prog_compiler_pic_F77='-qnocommon'
21014 lt_prog_compiler_wl_F77='-Wl,'
21015 ;;
21016 esac
21017 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021018
21019 mingw* | pw32* | os2*)
21020 # This hack is so that the source file can tell whether it is being
21021 # built for inclusion in a dll (and should export symbols for example).
21022 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21023 ;;
21024
21025 hpux9* | hpux10* | hpux11*)
21026 lt_prog_compiler_wl_F77='-Wl,'
21027 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21028 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021029 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021030 hppa*64*|ia64*)
21031 # +Z the default
21032 ;;
21033 *)
21034 lt_prog_compiler_pic_F77='+Z'
21035 ;;
21036 esac
21037 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21038 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21039 ;;
21040
21041 irix5* | irix6* | nonstopux*)
21042 lt_prog_compiler_wl_F77='-Wl,'
21043 # PIC (with -KPIC) is the default.
21044 lt_prog_compiler_static_F77='-non_shared'
21045 ;;
21046
21047 newsos6)
21048 lt_prog_compiler_pic_F77='-KPIC'
21049 lt_prog_compiler_static_F77='-Bstatic'
21050 ;;
21051
21052 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021053 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021054 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021055 lt_prog_compiler_wl_F77='-Wl,'
21056 lt_prog_compiler_pic_F77='-KPIC'
21057 lt_prog_compiler_static_F77='-static'
21058 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021059 pgcc* | pgf77* | pgf90* | pgf95*)
21060 # Portland Group compilers (*not* the Pentium gcc compiler,
21061 # which looks to be a dead project)
21062 lt_prog_compiler_wl_F77='-Wl,'
21063 lt_prog_compiler_pic_F77='-fpic'
21064 lt_prog_compiler_static_F77='-Bstatic'
21065 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021066 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021067 lt_prog_compiler_wl_F77='-Wl,'
21068 # All Alpha code is PIC.
21069 lt_prog_compiler_static_F77='-non_shared'
21070 ;;
21071 esac
21072 ;;
21073
21074 osf3* | osf4* | osf5*)
21075 lt_prog_compiler_wl_F77='-Wl,'
21076 # All OSF/1 code is PIC.
21077 lt_prog_compiler_static_F77='-non_shared'
21078 ;;
21079
John Criswell47fdd832003-07-14 16:52:07 +000021080 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021081 lt_prog_compiler_pic_F77='-KPIC'
21082 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021083 case $cc_basename in
21084 f77* | f90* | f95*)
21085 lt_prog_compiler_wl_F77='-Qoption ld ';;
21086 *)
21087 lt_prog_compiler_wl_F77='-Wl,';;
21088 esac
John Criswell47fdd832003-07-14 16:52:07 +000021089 ;;
21090
21091 sunos4*)
21092 lt_prog_compiler_wl_F77='-Qoption ld '
21093 lt_prog_compiler_pic_F77='-PIC'
21094 lt_prog_compiler_static_F77='-Bstatic'
21095 ;;
21096
Reid Spencera773bd52006-08-04 18:18:08 +000021097 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021098 lt_prog_compiler_wl_F77='-Wl,'
21099 lt_prog_compiler_pic_F77='-KPIC'
21100 lt_prog_compiler_static_F77='-Bstatic'
21101 ;;
21102
21103 sysv4*MP*)
21104 if test -d /usr/nec ;then
21105 lt_prog_compiler_pic_F77='-Kconform_pic'
21106 lt_prog_compiler_static_F77='-Bstatic'
21107 fi
21108 ;;
21109
Reid Spencera773bd52006-08-04 18:18:08 +000021110 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21111 lt_prog_compiler_wl_F77='-Wl,'
21112 lt_prog_compiler_pic_F77='-KPIC'
21113 lt_prog_compiler_static_F77='-Bstatic'
21114 ;;
21115
21116 unicos*)
21117 lt_prog_compiler_wl_F77='-Wl,'
21118 lt_prog_compiler_can_build_shared_F77=no
21119 ;;
21120
John Criswell47fdd832003-07-14 16:52:07 +000021121 uts4*)
21122 lt_prog_compiler_pic_F77='-pic'
21123 lt_prog_compiler_static_F77='-Bstatic'
21124 ;;
21125
21126 *)
21127 lt_prog_compiler_can_build_shared_F77=no
21128 ;;
21129 esac
21130 fi
21131
Reid Spencera773bd52006-08-04 18:18:08 +000021132{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21133echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021134
21135#
21136# Check to make sure the PIC flag actually works.
21137#
21138if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021139
Reid Spencera773bd52006-08-04 18:18:08 +000021140{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21141echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021142if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21143 echo $ECHO_N "(cached) $ECHO_C" >&6
21144else
21145 lt_prog_compiler_pic_works_F77=no
21146 ac_outfile=conftest.$ac_objext
21147 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21148 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21149 # Insert the option either (1) after the last *FLAGS variable, or
21150 # (2) before a word containing "conftest.", or (3) at the end.
21151 # Note that $ac_compile itself does not contain backslashes and begins
21152 # with a dollar sign (not a hyphen), so the echo should work correctly.
21153 # The option is referenced via a variable to avoid confusing sed.
21154 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021155 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021156 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21157 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000021158 (eval echo "\"\$as_me:21158: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021159 (eval "$lt_compile" 2>conftest.err)
21160 ac_status=$?
21161 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000021162 echo "$as_me:21162: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021163 if (exit $ac_status) && test -s "$ac_outfile"; then
21164 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021165 # So say no if there are warnings other than the usual output.
21166 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21167 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21168 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021169 lt_prog_compiler_pic_works_F77=yes
21170 fi
21171 fi
21172 $rm conftest*
21173
21174fi
Reid Spencera773bd52006-08-04 18:18:08 +000021175{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21176echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021177
21178if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21179 case $lt_prog_compiler_pic_F77 in
21180 "" | " "*) ;;
21181 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21182 esac
21183else
21184 lt_prog_compiler_pic_F77=
21185 lt_prog_compiler_can_build_shared_F77=no
21186fi
21187
21188fi
Reid Spencera773bd52006-08-04 18:18:08 +000021189case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021190 # For platforms which do not support PIC, -DPIC is meaningless:
21191 *djgpp*)
21192 lt_prog_compiler_pic_F77=
21193 ;;
21194 *)
21195 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21196 ;;
21197esac
21198
Reid Spencera773bd52006-08-04 18:18:08 +000021199#
21200# Check to make sure the static flag actually works.
21201#
21202wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21203{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21204echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21205if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21207else
21208 lt_prog_compiler_static_works_F77=no
21209 save_LDFLAGS="$LDFLAGS"
21210 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21211 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21212 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21213 # The linker can only warn and ignore the option if not recognized
21214 # So say no if there are warnings
21215 if test -s conftest.err; then
21216 # Append any errors to the config.log.
21217 cat conftest.err 1>&5
21218 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21219 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21220 if diff conftest.exp conftest.er2 >/dev/null; then
21221 lt_prog_compiler_static_works_F77=yes
21222 fi
21223 else
21224 lt_prog_compiler_static_works_F77=yes
21225 fi
21226 fi
21227 $rm conftest*
21228 LDFLAGS="$save_LDFLAGS"
21229
21230fi
21231{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21232echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21233
21234if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21235 :
21236else
21237 lt_prog_compiler_static_F77=
21238fi
21239
21240
21241{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21242echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021243if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21244 echo $ECHO_N "(cached) $ECHO_C" >&6
21245else
21246 lt_cv_prog_compiler_c_o_F77=no
21247 $rm -r conftest 2>/dev/null
21248 mkdir conftest
21249 cd conftest
21250 mkdir out
21251 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21252
John Criswell47fdd832003-07-14 16:52:07 +000021253 lt_compiler_flag="-o out/conftest2.$ac_objext"
21254 # Insert the option either (1) after the last *FLAGS variable, or
21255 # (2) before a word containing "conftest.", or (3) at the end.
21256 # Note that $ac_compile itself does not contain backslashes and begins
21257 # with a dollar sign (not a hyphen), so the echo should work correctly.
21258 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021259 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021260 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21261 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000021262 (eval echo "\"\$as_me:21262: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021263 (eval "$lt_compile" 2>out/conftest.err)
21264 ac_status=$?
21265 cat out/conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000021266 echo "$as_me:21266: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021267 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21268 then
21269 # The compiler can only warn and ignore the option if not recognized
21270 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021271 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21272 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21273 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021274 lt_cv_prog_compiler_c_o_F77=yes
21275 fi
21276 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021277 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021278 $rm conftest*
21279 # SGI C++ compiler will create directory out/ii_files/ for
21280 # template instantiation
21281 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21282 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021283 cd ..
21284 rmdir conftest
21285 $rm conftest*
21286
21287fi
Reid Spencera773bd52006-08-04 18:18:08 +000021288{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21289echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021290
21291
21292hard_links="nottested"
21293if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21294 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021295 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21296echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021297 hard_links=yes
21298 $rm conftest*
21299 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21300 touch conftest.a
21301 ln conftest.a conftest.b 2>&5 || hard_links=no
21302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021303 { echo "$as_me:$LINENO: result: $hard_links" >&5
21304echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021305 if test "$hard_links" = no; then
21306 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21307echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21308 need_locks=warn
21309 fi
21310else
21311 need_locks=no
21312fi
21313
Reid Spencera773bd52006-08-04 18:18:08 +000021314{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021316
21317 runpath_var=
21318 allow_undefined_flag_F77=
21319 enable_shared_with_static_runtimes_F77=no
21320 archive_cmds_F77=
21321 archive_expsym_cmds_F77=
21322 old_archive_From_new_cmds_F77=
21323 old_archive_from_expsyms_cmds_F77=
21324 export_dynamic_flag_spec_F77=
21325 whole_archive_flag_spec_F77=
21326 thread_safe_flag_spec_F77=
21327 hardcode_libdir_flag_spec_F77=
21328 hardcode_libdir_flag_spec_ld_F77=
21329 hardcode_libdir_separator_F77=
21330 hardcode_direct_F77=no
21331 hardcode_minus_L_F77=no
21332 hardcode_shlibpath_var_F77=unsupported
21333 link_all_deplibs_F77=unknown
21334 hardcode_automatic_F77=no
21335 module_cmds_F77=
21336 module_expsym_cmds_F77=
21337 always_export_symbols_F77=no
21338 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21339 # include_expsyms should be a list of space-separated symbols to be *always*
21340 # included in the symbol list
21341 include_expsyms_F77=
21342 # exclude_expsyms can be an extended regexp of symbols to exclude
21343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21345 # as well as any symbol that contains `d'.
21346 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21348 # platforms (ab)use it in PIC code, but their linkers get confused if
21349 # the symbol is explicitly referenced. Since portable code cannot
21350 # rely on this symbol name, it's probably fine to never include it in
21351 # preloaded symbol tables.
21352 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021353 # Just being paranoid about ensuring that cc_basename is set.
21354 for cc_temp in $compiler""; do
21355 case $cc_temp in
21356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21358 \-*) ;;
21359 *) break;;
21360 esac
21361done
21362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021363
21364 case $host_os in
21365 cygwin* | mingw* | pw32*)
21366 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21367 # When not using gcc, we currently assume that we are using
21368 # Microsoft Visual C++.
21369 if test "$GCC" != yes; then
21370 with_gnu_ld=no
21371 fi
21372 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021373 interix*)
21374 # we just hope/assume this is gcc and not c89 (= MSVC++)
21375 with_gnu_ld=yes
21376 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021377 openbsd*)
21378 with_gnu_ld=no
21379 ;;
21380 esac
21381
21382 ld_shlibs_F77=yes
21383 if test "$with_gnu_ld" = yes; then
21384 # If archive_cmds runs LD, not CC, wlarc should be empty
21385 wlarc='${wl}'
21386
Reid Spencera773bd52006-08-04 18:18:08 +000021387 # Set some defaults for GNU ld with shared library support. These
21388 # are reset later if shared libraries are not supported. Putting them
21389 # here allows them to be overridden if necessary.
21390 runpath_var=LD_RUN_PATH
21391 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21392 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21393 # ancient GNU ld didn't support --whole-archive et. al.
21394 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21395 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21396 else
21397 whole_archive_flag_spec_F77=
21398 fi
21399 supports_anon_versioning=no
21400 case `$LD -v 2>/dev/null` in
21401 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21402 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21403 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21404 *\ 2.11.*) ;; # other 2.11 versions
21405 *) supports_anon_versioning=yes ;;
21406 esac
21407
John Criswell47fdd832003-07-14 16:52:07 +000021408 # See if GNU ld supports shared libraries.
21409 case $host_os in
21410 aix3* | aix4* | aix5*)
21411 # On AIX/PPC, the GNU linker is very broken
21412 if test "$host_cpu" != ia64; then
21413 ld_shlibs_F77=no
21414 cat <<EOF 1>&2
21415
21416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21417*** to be unable to reliably create shared libraries on AIX.
21418*** Therefore, libtool is disabling shared libraries support. If you
21419*** really care for shared libraries, you may want to modify your PATH
21420*** so that a non-GNU linker is found, and then restart.
21421
21422EOF
21423 fi
21424 ;;
21425
21426 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021427 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 +000021428 hardcode_libdir_flag_spec_F77='-L$libdir'
21429 hardcode_minus_L_F77=yes
21430
21431 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21432 # that the semantics of dynamic libraries on AmigaOS, at least up
21433 # to version 4, is to share data among multiple programs linked
21434 # with the same dynamic library. Since this doesn't match the
21435 # behavior of shared libraries on other platforms, we can't use
21436 # them.
21437 ld_shlibs_F77=no
21438 ;;
21439
21440 beos*)
21441 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21442 allow_undefined_flag_F77=unsupported
21443 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21444 # support --undefined. This deserves some investigation. FIXME
21445 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21446 else
21447 ld_shlibs_F77=no
21448 fi
21449 ;;
21450
21451 cygwin* | mingw* | pw32*)
21452 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21453 # as there is no search path for DLLs.
21454 hardcode_libdir_flag_spec_F77='-L$libdir'
21455 allow_undefined_flag_F77=unsupported
21456 always_export_symbols_F77=no
21457 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021458 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 +000021459
21460 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021461 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 +000021462 # If the export-symbols file already is a .def file (1st line
21463 # is EXPORTS), use it as is; otherwise, prepend...
21464 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21465 cp $export_symbols $output_objdir/$soname.def;
21466 else
21467 echo EXPORTS > $output_objdir/$soname.def;
21468 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021469 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021470 $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 +000021471 else
Reid Spencera773bd52006-08-04 18:18:08 +000021472 ld_shlibs_F77=no
21473 fi
21474 ;;
21475
21476 interix3*)
21477 hardcode_direct_F77=no
21478 hardcode_shlibpath_var_F77=no
21479 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21480 export_dynamic_flag_spec_F77='${wl}-E'
21481 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21482 # Instead, shared libraries are loaded at an image base (0x10000000 by
21483 # default) and relocated if they conflict, which is a slow very memory
21484 # consuming and fragmenting process. To avoid this, we pick a random,
21485 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21486 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21487 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'
21488 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'
21489 ;;
21490
21491 linux*)
21492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21493 tmp_addflag=
21494 case $cc_basename,$host_cpu in
21495 pgcc*) # Portland Group C compiler
21496 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'
21497 tmp_addflag=' $pic_flag'
21498 ;;
21499 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21500 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'
21501 tmp_addflag=' $pic_flag -Mnomain' ;;
21502 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21503 tmp_addflag=' -i_dynamic' ;;
21504 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21505 tmp_addflag=' -i_dynamic -nofor_main' ;;
21506 ifc* | ifort*) # Intel Fortran compiler
21507 tmp_addflag=' -nofor_main' ;;
21508 esac
21509 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21510
21511 if test $supports_anon_versioning = yes; then
21512 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21513 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21514 $echo "local: *; };" >> $output_objdir/$libname.ver~
21515 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21516 fi
21517 else
21518 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021519 fi
21520 ;;
21521
21522 netbsd*)
21523 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21524 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21525 wlarc=
21526 else
21527 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21528 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21529 fi
21530 ;;
21531
Reid Spencera773bd52006-08-04 18:18:08 +000021532 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021533 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21534 ld_shlibs_F77=no
21535 cat <<EOF 1>&2
21536
21537*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21538*** create shared libraries on Solaris systems. Therefore, libtool
21539*** is disabling shared libraries support. We urge you to upgrade GNU
21540*** binutils to release 2.9.1 or newer. Another option is to modify
21541*** your PATH or compiler configuration so that the native linker is
21542*** used, and then restart.
21543
21544EOF
21545 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21546 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21547 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21548 else
21549 ld_shlibs_F77=no
21550 fi
21551 ;;
21552
Reid Spencera773bd52006-08-04 18:18:08 +000021553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21554 case `$LD -v 2>&1` in
21555 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21556 ld_shlibs_F77=no
21557 cat <<_LT_EOF 1>&2
21558
21559*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21560*** reliably create shared libraries on SCO systems. Therefore, libtool
21561*** is disabling shared libraries support. We urge you to upgrade GNU
21562*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21563*** your PATH or compiler configuration so that the native linker is
21564*** used, and then restart.
21565
21566_LT_EOF
21567 ;;
21568 *)
21569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21570 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21571 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21572 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21573 else
21574 ld_shlibs_F77=no
21575 fi
21576 ;;
21577 esac
21578 ;;
21579
John Criswell47fdd832003-07-14 16:52:07 +000021580 sunos4*)
21581 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21582 wlarc=
21583 hardcode_direct_F77=yes
21584 hardcode_shlibpath_var_F77=no
21585 ;;
21586
21587 *)
21588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21589 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21590 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21591 else
21592 ld_shlibs_F77=no
21593 fi
21594 ;;
21595 esac
21596
Reid Spencera773bd52006-08-04 18:18:08 +000021597 if test "$ld_shlibs_F77" = no; then
21598 runpath_var=
21599 hardcode_libdir_flag_spec_F77=
21600 export_dynamic_flag_spec_F77=
21601 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021602 fi
21603 else
21604 # PORTME fill in a description of your system's linker (not GNU ld)
21605 case $host_os in
21606 aix3*)
21607 allow_undefined_flag_F77=unsupported
21608 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021609 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 +000021610 # Note: this linker hardcodes the directories in LIBPATH if there
21611 # are no directories specified by -L.
21612 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021613 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021614 # Neither direct hardcoding nor static linking is supported with a
21615 # broken collect2.
21616 hardcode_direct_F77=unsupported
21617 fi
21618 ;;
21619
21620 aix4* | aix5*)
21621 if test "$host_cpu" = ia64; then
21622 # On IA64, the linker does run time linking by default, so we don't
21623 # have to do anything special.
21624 aix_use_runtimelinking=no
21625 exp_sym_flag='-Bexport'
21626 no_entry_flag=""
21627 else
21628 # If we're using GNU nm, then we don't want the "-C" option.
21629 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21630 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21631 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'
21632 else
21633 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'
21634 fi
21635 aix_use_runtimelinking=no
21636
21637 # Test if we are trying to use run time linking or normal
21638 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21639 # need to do runtime linking.
21640 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21641 for ld_flag in $LDFLAGS; do
21642 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21643 aix_use_runtimelinking=yes
21644 break
21645 fi
21646 done
Reid Spencera773bd52006-08-04 18:18:08 +000021647 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021648 esac
21649
21650 exp_sym_flag='-bexport'
21651 no_entry_flag='-bnoentry'
21652 fi
21653
21654 # When large executables or shared objects are built, AIX ld can
21655 # have problems creating the table of contents. If linking a library
21656 # or program results in "error TOC overflow" add -mminimal-toc to
21657 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21658 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21659
21660 archive_cmds_F77=''
21661 hardcode_direct_F77=yes
21662 hardcode_libdir_separator_F77=':'
21663 link_all_deplibs_F77=yes
21664
21665 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021666 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021667 # We only want to do this on AIX 4.2 and lower, the check
21668 # below for broken collect2 doesn't work under 4.3+
21669 collect2name=`${CC} -print-prog-name=collect2`
21670 if test -f "$collect2name" && \
21671 strings "$collect2name" | grep resolve_lib_name >/dev/null
21672 then
21673 # We have reworked collect2
21674 hardcode_direct_F77=yes
21675 else
21676 # We have old collect2
21677 hardcode_direct_F77=unsupported
21678 # It fails to find uninstalled libraries when the uninstalled
21679 # path is not listed in the libpath. Setting hardcode_minus_L
21680 # to unsupported forces relinking
21681 hardcode_minus_L_F77=yes
21682 hardcode_libdir_flag_spec_F77='-L$libdir'
21683 hardcode_libdir_separator_F77=
21684 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021685 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021686 esac
21687 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021688 if test "$aix_use_runtimelinking" = yes; then
21689 shared_flag="$shared_flag "'${wl}-G'
21690 fi
John Criswell47fdd832003-07-14 16:52:07 +000021691 else
21692 # not using gcc
21693 if test "$host_cpu" = ia64; then
21694 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21695 # chokes on -Wl,-G. The following line is correct:
21696 shared_flag='-G'
21697 else
Reid Spencera773bd52006-08-04 18:18:08 +000021698 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021699 shared_flag='${wl}-G'
21700 else
21701 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021702 fi
John Criswell47fdd832003-07-14 16:52:07 +000021703 fi
21704 fi
21705
21706 # It seems that -bexpall does not export symbols beginning with
21707 # underscore (_), so it is better to generate a list of symbols to export.
21708 always_export_symbols_F77=yes
21709 if test "$aix_use_runtimelinking" = yes; then
21710 # Warning - without using the other runtime loading flags (-brtl),
21711 # -berok will link without error, but may produce a broken library.
21712 allow_undefined_flag_F77='-berok'
21713 # Determine the default libpath from the value encoded in an empty executable.
21714 cat >conftest.$ac_ext <<_ACEOF
21715 program main
21716
21717 end
21718_ACEOF
21719rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021720if { (ac_try="$ac_link"
21721case "(($ac_try" in
21722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723 *) ac_try_echo=$ac_try;;
21724esac
21725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021727 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021728 grep -v '^ *+' conftest.er1 >conftest.err
21729 rm -f conftest.er1
21730 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021733 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21734 { (case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737esac
21738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021744 { (case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21747esac
21748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; }; then
21753
21754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21755}'`
21756# Check for a 64-bit object if we didn't find anything.
21757if 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; }
21758}'`; fi
21759else
21760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021761sed 's/^/| /' conftest.$ac_ext >&5
21762
Reid Spencera773bd52006-08-04 18:18:08 +000021763
John Criswell47fdd832003-07-14 16:52:07 +000021764fi
Reid Spencera773bd52006-08-04 18:18:08 +000021765
21766rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021767 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021768if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21769
21770 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021771 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 +000021772 else
21773 if test "$host_cpu" = ia64; then
21774 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21775 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021776 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 +000021777 else
21778 # Determine the default libpath from the value encoded in an empty executable.
21779 cat >conftest.$ac_ext <<_ACEOF
21780 program main
21781
21782 end
21783_ACEOF
21784rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021785if { (ac_try="$ac_link"
21786case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789esac
21790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021798 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21799 { (case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802esac
21803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021805 ac_status=$?
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); }; } &&
21808 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812esac
21813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818
21819aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21820}'`
21821# Check for a 64-bit object if we didn't find anything.
21822if 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; }
21823}'`; fi
21824else
21825 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021826sed 's/^/| /' conftest.$ac_ext >&5
21827
Reid Spencera773bd52006-08-04 18:18:08 +000021828
John Criswell47fdd832003-07-14 16:52:07 +000021829fi
Reid Spencera773bd52006-08-04 18:18:08 +000021830
21831rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21834
21835 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21836 # Warning - without using the other run time loading flags,
21837 # -berok will link without error, but may produce a broken library.
21838 no_undefined_flag_F77=' ${wl}-bernotok'
21839 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021840 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021841 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021842 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021843 # This is similar to how AIX traditionally builds its shared libraries.
21844 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 +000021845 fi
21846 fi
21847 ;;
21848
21849 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021850 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 +000021851 hardcode_libdir_flag_spec_F77='-L$libdir'
21852 hardcode_minus_L_F77=yes
21853 # see comment about different semantics on the GNU ld section
21854 ld_shlibs_F77=no
21855 ;;
21856
Reid Spencer2706f8c2004-09-19 23:53:36 +000021857 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021858 export_dynamic_flag_spec_F77=-rdynamic
21859 ;;
21860
21861 cygwin* | mingw* | pw32*)
21862 # When not using gcc, we currently assume that we are using
21863 # Microsoft Visual C++.
21864 # hardcode_libdir_flag_spec is actually meaningless, as there is
21865 # no search path for DLLs.
21866 hardcode_libdir_flag_spec_F77=' '
21867 allow_undefined_flag_F77=unsupported
21868 # Tell ltmain to make .lib files, not .a files.
21869 libext=lib
21870 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021871 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021872 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021873 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 +000021874 # The linker will automatically build a .lib file if we build a DLL.
21875 old_archive_From_new_cmds_F77='true'
21876 # FIXME: Should let the user specify the lib program.
21877 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021878 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021879 enable_shared_with_static_runtimes_F77=yes
21880 ;;
21881
21882 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021883 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021884 rhapsody* | darwin1.[012])
21885 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21886 ;;
21887 *) # Darwin 1.3 on
21888 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21889 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21890 else
21891 case ${MACOSX_DEPLOYMENT_TARGET} in
21892 10.[012])
21893 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21894 ;;
21895 10.*)
21896 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21897 ;;
21898 esac
21899 fi
21900 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021901 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021903 hardcode_direct_F77=no
21904 hardcode_automatic_F77=yes
21905 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021906 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021907 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021908 if test "$GCC" = yes ; then
21909 output_verbose_link_cmd='echo'
21910 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21911 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021912 # 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 +000021913 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}'
21914 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 +000021915 else
Reid Spencera773bd52006-08-04 18:18:08 +000021916 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021917 xlc*)
21918 output_verbose_link_cmd='echo'
21919 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21920 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021921 # 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 +000021922 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}'
21923 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 +000021924 ;;
21925 *)
21926 ld_shlibs_F77=no
21927 ;;
21928 esac
John Criswell47fdd832003-07-14 16:52:07 +000021929 fi
21930 ;;
21931
21932 dgux*)
21933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21934 hardcode_libdir_flag_spec_F77='-L$libdir'
21935 hardcode_shlibpath_var_F77=no
21936 ;;
21937
21938 freebsd1*)
21939 ld_shlibs_F77=no
21940 ;;
21941
21942 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21943 # support. Future versions do this automatically, but an explicit c++rt0.o
21944 # does not break anything, and helps significantly (at the cost of a little
21945 # extra space).
21946 freebsd2.2*)
21947 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21948 hardcode_libdir_flag_spec_F77='-R$libdir'
21949 hardcode_direct_F77=yes
21950 hardcode_shlibpath_var_F77=no
21951 ;;
21952
21953 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21954 freebsd2*)
21955 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21956 hardcode_direct_F77=yes
21957 hardcode_minus_L_F77=yes
21958 hardcode_shlibpath_var_F77=no
21959 ;;
21960
21961 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021962 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021963 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21964 hardcode_libdir_flag_spec_F77='-R$libdir'
21965 hardcode_direct_F77=yes
21966 hardcode_shlibpath_var_F77=no
21967 ;;
21968
21969 hpux9*)
21970 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021971 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 +000021972 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021973 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 +000021974 fi
21975 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21976 hardcode_libdir_separator_F77=:
21977 hardcode_direct_F77=yes
21978
21979 # hardcode_minus_L: Not really in the search PATH,
21980 # but as the default location of the library.
21981 hardcode_minus_L_F77=yes
21982 export_dynamic_flag_spec_F77='${wl}-E'
21983 ;;
21984
Reid Spencera773bd52006-08-04 18:18:08 +000021985 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021986 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021987 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21988 else
21989 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21990 fi
21991 if test "$with_gnu_ld" = no; then
21992 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21993 hardcode_libdir_separator_F77=:
21994
21995 hardcode_direct_F77=yes
21996 export_dynamic_flag_spec_F77='${wl}-E'
21997
21998 # hardcode_minus_L: Not really in the search PATH,
21999 # but as the default location of the library.
22000 hardcode_minus_L_F77=yes
22001 fi
22002 ;;
22003
22004 hpux11*)
22005 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22006 case $host_cpu in
22007 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000022008 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22009 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022010 ia64*)
22011 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22012 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022013 *)
22014 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22015 ;;
22016 esac
22017 else
Reid Spencera773bd52006-08-04 18:18:08 +000022018 case $host_cpu in
22019 hppa*64*)
22020 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22021 ;;
22022 ia64*)
22023 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000022024 ;;
22025 *)
Reid Spencera773bd52006-08-04 18:18:08 +000022026 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 +000022027 ;;
22028 esac
22029 fi
22030 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022031 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022033
Reid Spencera773bd52006-08-04 18:18:08 +000022034 case $host_cpu in
22035 hppa*64*|ia64*)
22036 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22037 hardcode_direct_F77=no
22038 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022039 ;;
22040 *)
John Criswell47fdd832003-07-14 16:52:07 +000022041 hardcode_direct_F77=yes
22042 export_dynamic_flag_spec_F77='${wl}-E'
22043
22044 # hardcode_minus_L: Not really in the search PATH,
22045 # but as the default location of the library.
22046 hardcode_minus_L_F77=yes
22047 ;;
22048 esac
22049 fi
22050 ;;
22051
22052 irix5* | irix6* | nonstopux*)
22053 if test "$GCC" = yes; then
22054 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'
22055 else
22056 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'
22057 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22058 fi
22059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22060 hardcode_libdir_separator_F77=:
22061 link_all_deplibs_F77=yes
22062 ;;
22063
22064 netbsd*)
22065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22067 else
22068 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22069 fi
22070 hardcode_libdir_flag_spec_F77='-R$libdir'
22071 hardcode_direct_F77=yes
22072 hardcode_shlibpath_var_F77=no
22073 ;;
22074
22075 newsos6)
22076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22077 hardcode_direct_F77=yes
22078 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22079 hardcode_libdir_separator_F77=:
22080 hardcode_shlibpath_var_F77=no
22081 ;;
22082
22083 openbsd*)
22084 hardcode_direct_F77=yes
22085 hardcode_shlibpath_var_F77=no
22086 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22087 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022088 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 +000022089 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22090 export_dynamic_flag_spec_F77='${wl}-E'
22091 else
22092 case $host_os in
22093 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22094 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22095 hardcode_libdir_flag_spec_F77='-R$libdir'
22096 ;;
22097 *)
22098 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22099 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22100 ;;
22101 esac
22102 fi
22103 ;;
22104
22105 os2*)
22106 hardcode_libdir_flag_spec_F77='-L$libdir'
22107 hardcode_minus_L_F77=yes
22108 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022109 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 +000022110 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22111 ;;
22112
22113 osf3*)
22114 if test "$GCC" = yes; then
22115 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22116 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'
22117 else
22118 allow_undefined_flag_F77=' -expect_unresolved \*'
22119 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'
22120 fi
22121 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22122 hardcode_libdir_separator_F77=:
22123 ;;
22124
22125 osf4* | osf5*) # as osf3* with the addition of -msym flag
22126 if test "$GCC" = yes; then
22127 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22128 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'
22129 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22130 else
22131 allow_undefined_flag_F77=' -expect_unresolved \*'
22132 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 +000022133 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 +000022134 $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 +000022135
John Criswell47fdd832003-07-14 16:52:07 +000022136 # Both c and cxx compiler support -rpath directly
22137 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22138 fi
22139 hardcode_libdir_separator_F77=:
22140 ;;
22141
John Criswell47fdd832003-07-14 16:52:07 +000022142 solaris*)
22143 no_undefined_flag_F77=' -z text'
22144 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022145 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022146 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022147 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22148 $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 +000022149 else
Reid Spencera773bd52006-08-04 18:18:08 +000022150 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022151 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022152 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22153 $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 +000022154 fi
22155 hardcode_libdir_flag_spec_F77='-R$libdir'
22156 hardcode_shlibpath_var_F77=no
22157 case $host_os in
22158 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022159 *)
22160 # The compiler driver will combine linker options so we
22161 # cannot just pass the convience library names through
22162 # without $wl, iff we do not link with $LD.
22163 # Luckily, gcc supports the same syntax we need for Sun Studio.
22164 # Supported since Solaris 2.6 (maybe 2.5.1?)
22165 case $wlarc in
22166 '')
22167 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22168 *)
22169 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' ;;
22170 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022171 esac
22172 link_all_deplibs_F77=yes
22173 ;;
22174
22175 sunos4*)
22176 if test "x$host_vendor" = xsequent; then
22177 # Use $CC to link under sequent, because it throws in some extra .o
22178 # files that make .init and .fini sections work.
22179 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22180 else
22181 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22182 fi
22183 hardcode_libdir_flag_spec_F77='-L$libdir'
22184 hardcode_direct_F77=yes
22185 hardcode_minus_L_F77=yes
22186 hardcode_shlibpath_var_F77=no
22187 ;;
22188
22189 sysv4)
22190 case $host_vendor in
22191 sni)
22192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22193 hardcode_direct_F77=yes # is this really true???
22194 ;;
22195 siemens)
22196 ## LD is ld it makes a PLAMLIB
22197 ## CC just makes a GrossModule.
22198 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22199 reload_cmds_F77='$CC -r -o $output$reload_objs'
22200 hardcode_direct_F77=no
22201 ;;
22202 motorola)
22203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22204 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22205 ;;
22206 esac
22207 runpath_var='LD_RUN_PATH'
22208 hardcode_shlibpath_var_F77=no
22209 ;;
22210
22211 sysv4.3*)
22212 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22213 hardcode_shlibpath_var_F77=no
22214 export_dynamic_flag_spec_F77='-Bexport'
22215 ;;
22216
22217 sysv4*MP*)
22218 if test -d /usr/nec; then
22219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22220 hardcode_shlibpath_var_F77=no
22221 runpath_var=LD_RUN_PATH
22222 hardcode_runpath_var=yes
22223 ld_shlibs_F77=yes
22224 fi
22225 ;;
22226
Reid Spencera773bd52006-08-04 18:18:08 +000022227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22228 no_undefined_flag_F77='${wl}-z,text'
22229 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022230 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022231 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022232
John Criswell47fdd832003-07-14 16:52:07 +000022233 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022234 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22235 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 +000022236 else
Reid Spencera773bd52006-08-04 18:18:08 +000022237 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22238 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 +000022239 fi
John Criswell47fdd832003-07-14 16:52:07 +000022240 ;;
22241
Reid Spencera773bd52006-08-04 18:18:08 +000022242 sysv5* | sco3.2v5* | sco5v6*)
22243 # Note: We can NOT use -z defs as we might desire, because we do not
22244 # link with -lc, and that would cause any symbols used from libc to
22245 # always be unresolved, which means just about no library would
22246 # ever link correctly. If we're not using GNU ld we use -z text
22247 # though, which does catch some bad symbols but isn't as heavy-handed
22248 # as -z defs.
22249 no_undefined_flag_F77='${wl}-z,text'
22250 allow_undefined_flag_F77='${wl}-z,nodefs'
22251 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022252 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022253 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22254 hardcode_libdir_separator_F77=':'
22255 link_all_deplibs_F77=yes
22256 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022257 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022258
22259 if test "$GCC" = yes; then
22260 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22261 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22262 else
22263 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22264 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22265 fi
John Criswell47fdd832003-07-14 16:52:07 +000022266 ;;
22267
22268 uts4*)
22269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_libdir_flag_spec_F77='-L$libdir'
22271 hardcode_shlibpath_var_F77=no
22272 ;;
22273
22274 *)
22275 ld_shlibs_F77=no
22276 ;;
22277 esac
22278 fi
22279
Reid Spencera773bd52006-08-04 18:18:08 +000022280{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22281echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022282test "$ld_shlibs_F77" = no && can_build_shared=no
22283
John Criswell47fdd832003-07-14 16:52:07 +000022284#
22285# Do we need to explicitly link libc?
22286#
22287case "x$archive_cmds_need_lc_F77" in
22288x|xyes)
22289 # Assume -lc should be added
22290 archive_cmds_need_lc_F77=yes
22291
22292 if test "$enable_shared" = yes && test "$GCC" = yes; then
22293 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022294 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022295 # FIXME: we may have to deal with multi-command sequences.
22296 ;;
22297 '$CC '*)
22298 # Test whether the compiler implicitly links with -lc since on some
22299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22300 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022301 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22302echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022303 $rm conftest*
22304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22305
22306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22307 (eval $ac_compile) 2>&5
22308 ac_status=$?
22309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310 (exit $ac_status); } 2>conftest.err; then
22311 soname=conftest
22312 lib=conftest
22313 libobjs=conftest.$ac_objext
22314 deplibs=
22315 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022316 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022317 compiler_flags=-v
22318 linker_flags=-v
22319 verstring=
22320 output_objdir=.
22321 libname=conftest
22322 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22323 allow_undefined_flag_F77=
22324 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22325 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22326 ac_status=$?
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); }
22329 then
22330 archive_cmds_need_lc_F77=no
22331 else
22332 archive_cmds_need_lc_F77=yes
22333 fi
22334 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22335 else
22336 cat conftest.err 1>&5
22337 fi
22338 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022339 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22340echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022341 ;;
22342 esac
22343 fi
22344 ;;
22345esac
22346
Reid Spencera773bd52006-08-04 18:18:08 +000022347{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22348echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022349library_names_spec=
22350libname_spec='lib$name'
22351soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022352shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022353postinstall_cmds=
22354postuninstall_cmds=
22355finish_cmds=
22356finish_eval=
22357shlibpath_var=
22358shlibpath_overrides_runpath=unknown
22359version_type=none
22360dynamic_linker="$host_os ld.so"
22361sys_lib_dlsearch_path_spec="/lib /usr/lib"
22362if test "$GCC" = yes; then
22363 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22364 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22365 # if the path contains ";" then we assume it to be the separator
22366 # otherwise default to the standard path separator (i.e. ":") - it is
22367 # assumed that no part of a normal pathname contains ";" but that should
22368 # okay in the real world where ";" in dirpaths is itself problematic.
22369 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22370 else
22371 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22372 fi
22373else
22374 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22375fi
22376need_lib_prefix=unknown
22377hardcode_into_libs=no
22378
22379# when you set need_version to no, make sure it does not cause -set_version
22380# flags to be left without arguments
22381need_version=unknown
22382
22383case $host_os in
22384aix3*)
22385 version_type=linux
22386 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22387 shlibpath_var=LIBPATH
22388
22389 # AIX 3 has no versioning support, so we append a major version to the name.
22390 soname_spec='${libname}${release}${shared_ext}$major'
22391 ;;
22392
22393aix4* | aix5*)
22394 version_type=linux
22395 need_lib_prefix=no
22396 need_version=no
22397 hardcode_into_libs=yes
22398 if test "$host_cpu" = ia64; then
22399 # AIX 5 supports IA64
22400 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22401 shlibpath_var=LD_LIBRARY_PATH
22402 else
22403 # With GCC up to 2.95.x, collect2 would create an import file
22404 # for dependence libraries. The import file would start with
22405 # the line `#! .'. This would cause the generated library to
22406 # depend on `.', always an invalid library. This was fixed in
22407 # development snapshots of GCC prior to 3.0.
22408 case $host_os in
22409 aix4 | aix4.[01] | aix4.[01].*)
22410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22411 echo ' yes '
22412 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22413 :
22414 else
22415 can_build_shared=no
22416 fi
22417 ;;
22418 esac
22419 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22420 # soname into executable. Probably we can add versioning support to
22421 # collect2, so additional links can be useful in future.
22422 if test "$aix_use_runtimelinking" = yes; then
22423 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22424 # instead of lib<name>.a to let people know that these are not
22425 # typical AIX shared libraries.
22426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22427 else
22428 # We preserve .a as extension for shared libraries through AIX4.2
22429 # and later when we are not doing run time linking.
22430 library_names_spec='${libname}${release}.a $libname.a'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22432 fi
22433 shlibpath_var=LIBPATH
22434 fi
22435 ;;
22436
22437amigaos*)
22438 library_names_spec='$libname.ixlibrary $libname.a'
22439 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022440 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 +000022441 ;;
22442
22443beos*)
22444 library_names_spec='${libname}${shared_ext}'
22445 dynamic_linker="$host_os ld.so"
22446 shlibpath_var=LIBRARY_PATH
22447 ;;
22448
Reid Spencer2706f8c2004-09-19 23:53:36 +000022449bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022450 version_type=linux
22451 need_version=no
22452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22453 soname_spec='${libname}${release}${shared_ext}$major'
22454 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22455 shlibpath_var=LD_LIBRARY_PATH
22456 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22457 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22458 # the default ld.so.conf also contains /usr/contrib/lib and
22459 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22460 # libtool to hard-code these into programs
22461 ;;
22462
22463cygwin* | mingw* | pw32*)
22464 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022465 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022466 need_version=no
22467 need_lib_prefix=no
22468
22469 case $GCC,$host_os in
22470 yes,cygwin* | yes,mingw* | yes,pw32*)
22471 library_names_spec='$libname.dll.a'
22472 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022473 postinstall_cmds='base_file=`basename \${file}`~
22474 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22475 dldir=$destdir/`dirname \$dlpath`~
22476 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022477 $install_prog $dir/$dlname \$dldir/$dlname~
22478 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022479 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22480 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022481 $rm \$dlpath'
22482 shlibpath_overrides_runpath=yes
22483
22484 case $host_os in
22485 cygwin*)
22486 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22487 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 +000022488 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022489 ;;
22490 mingw*)
22491 # MinGW DLLs use traditional 'lib' prefix
22492 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22493 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22494 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22495 # It is most probably a Windows format PATH printed by
22496 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22497 # path with ; separators, and with drive letters. We can handle the
22498 # drive letters (cygwin fileutils understands them), so leave them,
22499 # especially as we might pass files found there to a mingw objdump,
22500 # which wouldn't understand a cygwinified path. Ahh.
22501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22502 else
22503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22504 fi
22505 ;;
22506 pw32*)
22507 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022508 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 +000022509 ;;
22510 esac
22511 ;;
22512
22513 *)
22514 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22515 ;;
22516 esac
22517 dynamic_linker='Win32 ld.exe'
22518 # FIXME: first we should search . and the directory the executable is in
22519 shlibpath_var=PATH
22520 ;;
22521
22522darwin* | rhapsody*)
22523 dynamic_linker="$host_os dyld"
22524 version_type=darwin
22525 need_lib_prefix=no
22526 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022527 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022528 soname_spec='${libname}${release}${major}$shared_ext'
22529 shlibpath_overrides_runpath=yes
22530 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022531 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022532 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022533 if test "$GCC" = yes; then
22534 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"`
22535 else
22536 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022537 fi
22538 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22539 ;;
22540
22541dgux*)
22542 version_type=linux
22543 need_lib_prefix=no
22544 need_version=no
22545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22546 soname_spec='${libname}${release}${shared_ext}$major'
22547 shlibpath_var=LD_LIBRARY_PATH
22548 ;;
22549
22550freebsd1*)
22551 dynamic_linker=no
22552 ;;
22553
Reid Spencer2706f8c2004-09-19 23:53:36 +000022554kfreebsd*-gnu)
22555 version_type=linux
22556 need_lib_prefix=no
22557 need_version=no
22558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22559 soname_spec='${libname}${release}${shared_ext}$major'
22560 shlibpath_var=LD_LIBRARY_PATH
22561 shlibpath_overrides_runpath=no
22562 hardcode_into_libs=yes
22563 dynamic_linker='GNU ld.so'
22564 ;;
22565
Reid Spencera773bd52006-08-04 18:18:08 +000022566freebsd* | dragonfly*)
22567 # DragonFly does not have aout. When/if they implement a new
22568 # versioning mechanism, adjust this.
22569 if test -x /usr/bin/objformat; then
22570 objformat=`/usr/bin/objformat`
22571 else
22572 case $host_os in
22573 freebsd[123]*) objformat=aout ;;
22574 *) objformat=elf ;;
22575 esac
22576 fi
John Criswell47fdd832003-07-14 16:52:07 +000022577 version_type=freebsd-$objformat
22578 case $version_type in
22579 freebsd-elf*)
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22581 need_version=no
22582 need_lib_prefix=no
22583 ;;
22584 freebsd-*)
22585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22586 need_version=yes
22587 ;;
22588 esac
22589 shlibpath_var=LD_LIBRARY_PATH
22590 case $host_os in
22591 freebsd2*)
22592 shlibpath_overrides_runpath=yes
22593 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022594 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022595 shlibpath_overrides_runpath=yes
22596 hardcode_into_libs=yes
22597 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022598 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22599 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022600 shlibpath_overrides_runpath=no
22601 hardcode_into_libs=yes
22602 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022603 freebsd*) # from 4.6 on
22604 shlibpath_overrides_runpath=yes
22605 hardcode_into_libs=yes
22606 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022607 esac
22608 ;;
22609
22610gnu*)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22615 soname_spec='${libname}${release}${shared_ext}$major'
22616 shlibpath_var=LD_LIBRARY_PATH
22617 hardcode_into_libs=yes
22618 ;;
22619
22620hpux9* | hpux10* | hpux11*)
22621 # Give a soname corresponding to the major version so that dld.sl refuses to
22622 # link against other versions.
22623 version_type=sunos
22624 need_lib_prefix=no
22625 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022626 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022627 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022628 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022629 hardcode_into_libs=yes
22630 dynamic_linker="$host_os dld.so"
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22634 soname_spec='${libname}${release}${shared_ext}$major'
22635 if test "X$HPUX_IA64_MODE" = X32; then
22636 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22637 else
22638 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22639 fi
22640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22641 ;;
22642 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022643 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022644 hardcode_into_libs=yes
22645 dynamic_linker="$host_os dld.sl"
22646 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22651 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22652 ;;
22653 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022654 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022655 dynamic_linker="$host_os dld.sl"
22656 shlibpath_var=SHLIB_PATH
22657 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 ;;
22661 esac
22662 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22663 postinstall_cmds='chmod 555 $lib'
22664 ;;
22665
Reid Spencera773bd52006-08-04 18:18:08 +000022666interix3*)
22667 version_type=linux
22668 need_lib_prefix=no
22669 need_version=no
22670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22671 soname_spec='${libname}${release}${shared_ext}$major'
22672 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 shlibpath_overrides_runpath=no
22675 hardcode_into_libs=yes
22676 ;;
22677
John Criswell47fdd832003-07-14 16:52:07 +000022678irix5* | irix6* | nonstopux*)
22679 case $host_os in
22680 nonstopux*) version_type=nonstopux ;;
22681 *)
22682 if test "$lt_cv_prog_gnu_ld" = yes; then
22683 version_type=linux
22684 else
22685 version_type=irix
22686 fi ;;
22687 esac
22688 need_lib_prefix=no
22689 need_version=no
22690 soname_spec='${libname}${release}${shared_ext}$major'
22691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22692 case $host_os in
22693 irix5* | nonstopux*)
22694 libsuff= shlibsuff=
22695 ;;
22696 *)
22697 case $LD in # libtool.m4 will add one of these switches to LD
22698 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22699 libsuff= shlibsuff= libmagic=32-bit;;
22700 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22701 libsuff=32 shlibsuff=N32 libmagic=N32;;
22702 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22703 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22704 *) libsuff= shlibsuff= libmagic=never-match;;
22705 esac
22706 ;;
22707 esac
22708 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22709 shlibpath_overrides_runpath=no
22710 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22711 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22712 hardcode_into_libs=yes
22713 ;;
22714
22715# No shared lib support for Linux oldld, aout, or coff.
22716linux*oldld* | linux*aout* | linux*coff*)
22717 dynamic_linker=no
22718 ;;
22719
22720# This must be Linux ELF.
22721linux*)
22722 version_type=linux
22723 need_lib_prefix=no
22724 need_version=no
22725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22726 soname_spec='${libname}${release}${shared_ext}$major'
22727 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=no
22730 # This implies no fast_install, which is unacceptable.
22731 # Some rework will be needed to allow for fast_install
22732 # before this can be enabled.
22733 hardcode_into_libs=yes
22734
Reid Spencer2706f8c2004-09-19 23:53:36 +000022735 # Append ld.so.conf contents to the search path
22736 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022737 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 +000022738 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22739 fi
22740
John Criswell47fdd832003-07-14 16:52:07 +000022741 # We used to test for /lib/ld.so.1 and disable shared libraries on
22742 # powerpc, because MkLinux only supported shared libraries with the
22743 # GNU dynamic linker. Since this was broken with cross compilers,
22744 # most powerpc-linux boxes support dynamic linking these days and
22745 # people can always --disable-shared, the test was removed, and we
22746 # assume the GNU/Linux dynamic linker is in use.
22747 dynamic_linker='GNU/Linux ld.so'
22748 ;;
22749
Reid Spencer2706f8c2004-09-19 23:53:36 +000022750knetbsd*-gnu)
22751 version_type=linux
22752 need_lib_prefix=no
22753 need_version=no
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22755 soname_spec='${libname}${release}${shared_ext}$major'
22756 shlibpath_var=LD_LIBRARY_PATH
22757 shlibpath_overrides_runpath=no
22758 hardcode_into_libs=yes
22759 dynamic_linker='GNU ld.so'
22760 ;;
22761
John Criswell47fdd832003-07-14 16:52:07 +000022762netbsd*)
22763 version_type=sunos
22764 need_lib_prefix=no
22765 need_version=no
22766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22768 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22769 dynamic_linker='NetBSD (a.out) ld.so'
22770 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022772 soname_spec='${libname}${release}${shared_ext}$major'
22773 dynamic_linker='NetBSD ld.elf_so'
22774 fi
22775 shlibpath_var=LD_LIBRARY_PATH
22776 shlibpath_overrides_runpath=yes
22777 hardcode_into_libs=yes
22778 ;;
22779
22780newsos6)
22781 version_type=linux
22782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22783 shlibpath_var=LD_LIBRARY_PATH
22784 shlibpath_overrides_runpath=yes
22785 ;;
22786
Reid Spencer2706f8c2004-09-19 23:53:36 +000022787nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022788 version_type=linux
22789 need_lib_prefix=no
22790 need_version=no
22791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22792 soname_spec='${libname}${release}${shared_ext}$major'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 shlibpath_overrides_runpath=yes
22795 ;;
22796
22797openbsd*)
22798 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022799 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022800 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22802 case $host_os in
22803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22804 *) need_version=no ;;
22805 esac
John Criswell47fdd832003-07-14 16:52:07 +000022806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22808 shlibpath_var=LD_LIBRARY_PATH
22809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22810 case $host_os in
22811 openbsd2.[89] | openbsd2.[89].*)
22812 shlibpath_overrides_runpath=no
22813 ;;
22814 *)
22815 shlibpath_overrides_runpath=yes
22816 ;;
22817 esac
22818 else
22819 shlibpath_overrides_runpath=yes
22820 fi
22821 ;;
22822
22823os2*)
22824 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022825 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022826 need_lib_prefix=no
22827 library_names_spec='$libname${shared_ext} $libname.a'
22828 dynamic_linker='OS/2 ld.exe'
22829 shlibpath_var=LIBPATH
22830 ;;
22831
22832osf3* | osf4* | osf5*)
22833 version_type=osf
22834 need_lib_prefix=no
22835 need_version=no
22836 soname_spec='${libname}${release}${shared_ext}$major'
22837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22841 ;;
22842
John Criswell47fdd832003-07-14 16:52:07 +000022843solaris*)
22844 version_type=linux
22845 need_lib_prefix=no
22846 need_version=no
22847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22848 soname_spec='${libname}${release}${shared_ext}$major'
22849 shlibpath_var=LD_LIBRARY_PATH
22850 shlibpath_overrides_runpath=yes
22851 hardcode_into_libs=yes
22852 # ldd complains unless libraries are executable
22853 postinstall_cmds='chmod +x $lib'
22854 ;;
22855
22856sunos4*)
22857 version_type=sunos
22858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22859 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22860 shlibpath_var=LD_LIBRARY_PATH
22861 shlibpath_overrides_runpath=yes
22862 if test "$with_gnu_ld" = yes; then
22863 need_lib_prefix=no
22864 fi
22865 need_version=yes
22866 ;;
22867
Reid Spencera773bd52006-08-04 18:18:08 +000022868sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022869 version_type=linux
22870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22871 soname_spec='${libname}${release}${shared_ext}$major'
22872 shlibpath_var=LD_LIBRARY_PATH
22873 case $host_vendor in
22874 sni)
22875 shlibpath_overrides_runpath=no
22876 need_lib_prefix=no
22877 export_dynamic_flag_spec='${wl}-Blargedynsym'
22878 runpath_var=LD_RUN_PATH
22879 ;;
22880 siemens)
22881 need_lib_prefix=no
22882 ;;
22883 motorola)
22884 need_lib_prefix=no
22885 need_version=no
22886 shlibpath_overrides_runpath=no
22887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22888 ;;
22889 esac
22890 ;;
22891
22892sysv4*MP*)
22893 if test -d /usr/nec ;then
22894 version_type=linux
22895 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22896 soname_spec='$libname${shared_ext}.$major'
22897 shlibpath_var=LD_LIBRARY_PATH
22898 fi
22899 ;;
22900
Reid Spencera773bd52006-08-04 18:18:08 +000022901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22902 version_type=freebsd-elf
22903 need_lib_prefix=no
22904 need_version=no
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22906 soname_spec='${libname}${release}${shared_ext}$major'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 hardcode_into_libs=yes
22909 if test "$with_gnu_ld" = yes; then
22910 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22911 shlibpath_overrides_runpath=no
22912 else
22913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22914 shlibpath_overrides_runpath=yes
22915 case $host_os in
22916 sco3.2v5*)
22917 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22918 ;;
22919 esac
22920 fi
22921 sys_lib_dlsearch_path_spec='/usr/lib'
22922 ;;
22923
John Criswell47fdd832003-07-14 16:52:07 +000022924uts4*)
22925 version_type=linux
22926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22927 soname_spec='${libname}${release}${shared_ext}$major'
22928 shlibpath_var=LD_LIBRARY_PATH
22929 ;;
22930
22931*)
22932 dynamic_linker=no
22933 ;;
22934esac
Reid Spencera773bd52006-08-04 18:18:08 +000022935{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22936echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022937test "$dynamic_linker" = no && can_build_shared=no
22938
Reid Spencera773bd52006-08-04 18:18:08 +000022939variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22940if test "$GCC" = yes; then
22941 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22942fi
22943
22944{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22945echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022946hardcode_action_F77=
22947if test -n "$hardcode_libdir_flag_spec_F77" || \
22948 test -n "$runpath_var_F77" || \
22949 test "X$hardcode_automatic_F77" = "Xyes" ; then
22950
22951 # We can hardcode non-existant directories.
22952 if test "$hardcode_direct_F77" != no &&
22953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22954 # have to relink, otherwise we might link with an installed library
22955 # when we should be linking with a yet-to-be-installed one
22956 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22957 test "$hardcode_minus_L_F77" != no; then
22958 # Linking always hardcodes the temporary library directory.
22959 hardcode_action_F77=relink
22960 else
22961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22962 hardcode_action_F77=immediate
22963 fi
22964else
22965 # We cannot hardcode anything, or else we can only hardcode existing
22966 # directories.
22967 hardcode_action_F77=unsupported
22968fi
Reid Spencera773bd52006-08-04 18:18:08 +000022969{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22970echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022971
22972if test "$hardcode_action_F77" = relink; then
22973 # Fast installation is not supported
22974 enable_fast_install=no
22975elif test "$shlibpath_overrides_runpath" = yes ||
22976 test "$enable_shared" = no; then
22977 # Fast installation is not necessary
22978 enable_fast_install=needless
22979fi
22980
John Criswell47fdd832003-07-14 16:52:07 +000022981
22982# The else clause should only fire when bootstrapping the
22983# libtool distribution, otherwise you forgot to ship ltmain.sh
22984# with your package, and you will get complaints that there are
22985# no rules to generate ltmain.sh.
22986if test -f "$ltmain"; then
22987 # See if we are running on zsh, and set the options which allow our commands through
22988 # without removal of \ escapes.
22989 if test -n "${ZSH_VERSION+set}" ; then
22990 setopt NO_GLOB_SUBST
22991 fi
22992 # Now quote all the things that may contain metacharacters while being
22993 # careful not to overquote the AC_SUBSTed values. We take copies of the
22994 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022995 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 +000022996 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022997 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22998 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22999 deplibs_check_method reload_flag reload_cmds need_locks \
23000 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23001 lt_cv_sys_global_symbol_to_c_name_address \
23002 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23003 old_postinstall_cmds old_postuninstall_cmds \
23004 compiler_F77 \
23005 CC_F77 \
23006 LD_F77 \
23007 lt_prog_compiler_wl_F77 \
23008 lt_prog_compiler_pic_F77 \
23009 lt_prog_compiler_static_F77 \
23010 lt_prog_compiler_no_builtin_flag_F77 \
23011 export_dynamic_flag_spec_F77 \
23012 thread_safe_flag_spec_F77 \
23013 whole_archive_flag_spec_F77 \
23014 enable_shared_with_static_runtimes_F77 \
23015 old_archive_cmds_F77 \
23016 old_archive_from_new_cmds_F77 \
23017 predep_objects_F77 \
23018 postdep_objects_F77 \
23019 predeps_F77 \
23020 postdeps_F77 \
23021 compiler_lib_search_path_F77 \
23022 archive_cmds_F77 \
23023 archive_expsym_cmds_F77 \
23024 postinstall_cmds_F77 \
23025 postuninstall_cmds_F77 \
23026 old_archive_from_expsyms_cmds_F77 \
23027 allow_undefined_flag_F77 \
23028 no_undefined_flag_F77 \
23029 export_symbols_cmds_F77 \
23030 hardcode_libdir_flag_spec_F77 \
23031 hardcode_libdir_flag_spec_ld_F77 \
23032 hardcode_libdir_separator_F77 \
23033 hardcode_automatic_F77 \
23034 module_cmds_F77 \
23035 module_expsym_cmds_F77 \
23036 lt_cv_prog_compiler_c_o_F77 \
23037 exclude_expsyms_F77 \
23038 include_expsyms_F77; do
23039
23040 case $var in
23041 old_archive_cmds_F77 | \
23042 old_archive_from_new_cmds_F77 | \
23043 archive_cmds_F77 | \
23044 archive_expsym_cmds_F77 | \
23045 module_cmds_F77 | \
23046 module_expsym_cmds_F77 | \
23047 old_archive_from_expsyms_cmds_F77 | \
23048 export_symbols_cmds_F77 | \
23049 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23050 postinstall_cmds | postuninstall_cmds | \
23051 old_postinstall_cmds | old_postuninstall_cmds | \
23052 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23053 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023054 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 +000023055 ;;
23056 *)
23057 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23058 ;;
23059 esac
23060 done
23061
23062 case $lt_echo in
23063 *'\$0 --fallback-echo"')
23064 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23065 ;;
23066 esac
23067
23068cfgfile="$ofile"
23069
23070 cat <<__EOF__ >> "$cfgfile"
23071# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23072
23073# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23074
23075# Shell to use when invoking shell scripts.
23076SHELL=$lt_SHELL
23077
23078# Whether or not to build shared libraries.
23079build_libtool_libs=$enable_shared
23080
23081# Whether or not to build static libraries.
23082build_old_libs=$enable_static
23083
23084# Whether or not to add -lc for building shared libraries.
23085build_libtool_need_lc=$archive_cmds_need_lc_F77
23086
23087# Whether or not to disallow shared libs when runtime libs are static
23088allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23089
23090# Whether or not to optimize for fast installation.
23091fast_install=$enable_fast_install
23092
23093# The host system.
23094host_alias=$host_alias
23095host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023096host_os=$host_os
23097
23098# The build system.
23099build_alias=$build_alias
23100build=$build
23101build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023102
23103# An echo program that does not interpret backslashes.
23104echo=$lt_echo
23105
23106# The archiver.
23107AR=$lt_AR
23108AR_FLAGS=$lt_AR_FLAGS
23109
23110# A C compiler.
23111LTCC=$lt_LTCC
23112
Reid Spencera773bd52006-08-04 18:18:08 +000023113# LTCC compiler flags.
23114LTCFLAGS=$lt_LTCFLAGS
23115
John Criswell47fdd832003-07-14 16:52:07 +000023116# A language-specific compiler.
23117CC=$lt_compiler_F77
23118
23119# Is the compiler the GNU C compiler?
23120with_gcc=$GCC_F77
23121
23122# An ERE matcher.
23123EGREP=$lt_EGREP
23124
23125# The linker used to build libraries.
23126LD=$lt_LD_F77
23127
23128# Whether we need hard or soft links.
23129LN_S=$lt_LN_S
23130
23131# A BSD-compatible nm program.
23132NM=$lt_NM
23133
23134# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023135STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023136
23137# Used to examine libraries when file_magic_cmd begins "file"
23138MAGIC_CMD=$MAGIC_CMD
23139
23140# Used on cygwin: DLL creation program.
23141DLLTOOL="$DLLTOOL"
23142
23143# Used on cygwin: object dumper.
23144OBJDUMP="$OBJDUMP"
23145
23146# Used on cygwin: assembler.
23147AS="$AS"
23148
23149# The name of the directory that contains temporary libtool files.
23150objdir=$objdir
23151
23152# How to create reloadable object files.
23153reload_flag=$lt_reload_flag
23154reload_cmds=$lt_reload_cmds
23155
23156# How to pass a linker flag through the compiler.
23157wl=$lt_lt_prog_compiler_wl_F77
23158
23159# Object file suffix (normally "o").
23160objext="$ac_objext"
23161
23162# Old archive suffix (normally "a").
23163libext="$libext"
23164
23165# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023166shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023167
23168# Executable file suffix (normally "").
23169exeext="$exeext"
23170
23171# Additional compiler flags for building library objects.
23172pic_flag=$lt_lt_prog_compiler_pic_F77
23173pic_mode=$pic_mode
23174
23175# What is the maximum length of a command?
23176max_cmd_len=$lt_cv_sys_max_cmd_len
23177
23178# Does compiler simultaneously support -c and -o options?
23179compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23180
Reid Spencera773bd52006-08-04 18:18:08 +000023181# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023182need_locks=$lt_need_locks
23183
23184# Do we need the lib prefix for modules?
23185need_lib_prefix=$need_lib_prefix
23186
23187# Do we need a version for libraries?
23188need_version=$need_version
23189
23190# Whether dlopen is supported.
23191dlopen_support=$enable_dlopen
23192
23193# Whether dlopen of programs is supported.
23194dlopen_self=$enable_dlopen_self
23195
23196# Whether dlopen of statically linked programs is supported.
23197dlopen_self_static=$enable_dlopen_self_static
23198
23199# Compiler flag to prevent dynamic linking.
23200link_static_flag=$lt_lt_prog_compiler_static_F77
23201
23202# Compiler flag to turn off builtin functions.
23203no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23204
23205# Compiler flag to allow reflexive dlopens.
23206export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23207
23208# Compiler flag to generate shared objects directly from archives.
23209whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23210
23211# Compiler flag to generate thread-safe objects.
23212thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23213
23214# Library versioning type.
23215version_type=$version_type
23216
23217# Format of library name prefix.
23218libname_spec=$lt_libname_spec
23219
23220# List of archive names. First name is the real one, the rest are links.
23221# The last name is the one that the linker finds with -lNAME.
23222library_names_spec=$lt_library_names_spec
23223
23224# The coded name of the library, if different from the real name.
23225soname_spec=$lt_soname_spec
23226
23227# Commands used to build and install an old-style archive.
23228RANLIB=$lt_RANLIB
23229old_archive_cmds=$lt_old_archive_cmds_F77
23230old_postinstall_cmds=$lt_old_postinstall_cmds
23231old_postuninstall_cmds=$lt_old_postuninstall_cmds
23232
23233# Create an old-style archive from a shared archive.
23234old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23235
23236# Create a temporary old-style archive to link instead of a shared archive.
23237old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23238
23239# Commands used to build and install a shared archive.
23240archive_cmds=$lt_archive_cmds_F77
23241archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23242postinstall_cmds=$lt_postinstall_cmds
23243postuninstall_cmds=$lt_postuninstall_cmds
23244
23245# Commands used to build a loadable module (assumed same as above if empty)
23246module_cmds=$lt_module_cmds_F77
23247module_expsym_cmds=$lt_module_expsym_cmds_F77
23248
23249# Commands to strip libraries.
23250old_striplib=$lt_old_striplib
23251striplib=$lt_striplib
23252
23253# Dependencies to place before the objects being linked to create a
23254# shared library.
23255predep_objects=$lt_predep_objects_F77
23256
23257# Dependencies to place after the objects being linked to create a
23258# shared library.
23259postdep_objects=$lt_postdep_objects_F77
23260
23261# Dependencies to place before the objects being linked to create a
23262# shared library.
23263predeps=$lt_predeps_F77
23264
23265# Dependencies to place after the objects being linked to create a
23266# shared library.
23267postdeps=$lt_postdeps_F77
23268
23269# The library search path used internally by the compiler when linking
23270# a shared library.
23271compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23272
23273# Method to check whether dependent libraries are shared objects.
23274deplibs_check_method=$lt_deplibs_check_method
23275
23276# Command to use when deplibs_check_method == file_magic.
23277file_magic_cmd=$lt_file_magic_cmd
23278
23279# Flag that allows shared libraries with undefined symbols to be built.
23280allow_undefined_flag=$lt_allow_undefined_flag_F77
23281
23282# Flag that forces no undefined symbols.
23283no_undefined_flag=$lt_no_undefined_flag_F77
23284
23285# Commands used to finish a libtool library installation in a directory.
23286finish_cmds=$lt_finish_cmds
23287
23288# Same as above, but a single script fragment to be evaled but not shown.
23289finish_eval=$lt_finish_eval
23290
23291# Take the output of nm and produce a listing of raw symbols and C names.
23292global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23293
23294# Transform the output of nm in a proper C declaration
23295global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23296
23297# Transform the output of nm in a C name address pair
23298global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23299
23300# This is the shared library runtime path variable.
23301runpath_var=$runpath_var
23302
23303# This is the shared library path variable.
23304shlibpath_var=$shlibpath_var
23305
23306# Is shlibpath searched before the hard-coded library search path?
23307shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23308
23309# How to hardcode a shared library path into an executable.
23310hardcode_action=$hardcode_action_F77
23311
23312# Whether we should hardcode library paths into libraries.
23313hardcode_into_libs=$hardcode_into_libs
23314
23315# Flag to hardcode \$libdir into a binary during linking.
23316# This must work even if \$libdir does not exist.
23317hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23318
23319# If ld is used when linking, flag to hardcode \$libdir into
23320# a binary during linking. This must work even if \$libdir does
23321# not exist.
23322hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23323
23324# Whether we need a single -rpath flag with a separated argument.
23325hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23326
23327# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23328# resulting binary.
23329hardcode_direct=$hardcode_direct_F77
23330
23331# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23332# resulting binary.
23333hardcode_minus_L=$hardcode_minus_L_F77
23334
23335# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23336# the resulting binary.
23337hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23338
23339# Set to yes if building a shared library automatically hardcodes DIR into the library
23340# and all subsequent libraries and executables linked against it.
23341hardcode_automatic=$hardcode_automatic_F77
23342
23343# Variables whose values should be saved in libtool wrapper scripts and
23344# restored at relink time.
23345variables_saved_for_relink="$variables_saved_for_relink"
23346
23347# Whether libtool must link a program against all its dependency libraries.
23348link_all_deplibs=$link_all_deplibs_F77
23349
23350# Compile-time system search path for libraries
23351sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23352
23353# Run-time system search path for libraries
23354sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23355
23356# Fix the shell variable \$srcfile for the compiler.
23357fix_srcfile_path="$fix_srcfile_path_F77"
23358
23359# Set to yes if exported symbols are required.
23360always_export_symbols=$always_export_symbols_F77
23361
23362# The commands to list exported symbols.
23363export_symbols_cmds=$lt_export_symbols_cmds_F77
23364
23365# The commands to extract the exported symbol list from a shared archive.
23366extract_expsyms_cmds=$lt_extract_expsyms_cmds
23367
23368# Symbols that should not be listed in the preloaded symbols.
23369exclude_expsyms=$lt_exclude_expsyms_F77
23370
23371# Symbols that must always be exported.
23372include_expsyms=$lt_include_expsyms_F77
23373
23374# ### END LIBTOOL TAG CONFIG: $tagname
23375
23376__EOF__
23377
23378
23379else
23380 # If there is no Makefile yet, we rely on a make rule to execute
23381 # `config.status --recheck' to rerun these tests and create the
23382 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023383 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23384 if test -f "$ltmain_in"; then
23385 test -f Makefile && make "$ltmain"
23386 fi
John Criswell47fdd832003-07-14 16:52:07 +000023387fi
23388
23389
23390ac_ext=c
23391ac_cpp='$CPP $CPPFLAGS'
23392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23394ac_compiler_gnu=$ac_cv_c_compiler_gnu
23395
23396CC="$lt_save_CC"
23397
23398 else
23399 tagname=""
23400 fi
23401 ;;
23402
23403 GCJ)
23404 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023405 ac_ext=c
23406ac_cpp='$CPP $CPPFLAGS'
23407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023410
23411
23412# Source file extension for Java test sources.
23413ac_ext=java
23414
23415# Object file extension for compiled Java test sources.
23416objext=o
23417objext_GCJ=$objext
23418
23419# Code to be used in simple compile tests
23420lt_simple_compile_test_code="class foo {}\n"
23421
23422# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023423lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023424
23425# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23426
23427# If no C compiler was specified, use CC.
23428LTCC=${LTCC-"$CC"}
23429
Reid Spencera773bd52006-08-04 18:18:08 +000023430# If no C compiler flags were specified, use CFLAGS.
23431LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23432
John Criswell47fdd832003-07-14 16:52:07 +000023433# Allow CC to be a program name with arguments.
23434compiler=$CC
23435
23436
Reid Spencera773bd52006-08-04 18:18:08 +000023437# save warnings/boilerplate of simple test code
23438ac_outfile=conftest.$ac_objext
23439printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23440eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23441_lt_compiler_boilerplate=`cat conftest.err`
23442$rm conftest*
23443
23444ac_outfile=conftest.$ac_objext
23445printf "$lt_simple_link_test_code" >conftest.$ac_ext
23446eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23447_lt_linker_boilerplate=`cat conftest.err`
23448$rm conftest*
23449
23450
John Criswell47fdd832003-07-14 16:52:07 +000023451# Allow CC to be a program name with arguments.
23452lt_save_CC="$CC"
23453CC=${GCJ-"gcj"}
23454compiler=$CC
23455compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023456for cc_temp in $compiler""; do
23457 case $cc_temp in
23458 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23459 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23460 \-*) ;;
23461 *) break;;
23462 esac
23463done
23464cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23465
John Criswell47fdd832003-07-14 16:52:07 +000023466
23467# GCJ did not exist at the time GCC didn't implicitly link libc in.
23468archive_cmds_need_lc_GCJ=no
23469
Reid Spencera773bd52006-08-04 18:18:08 +000023470old_archive_cmds_GCJ=$old_archive_cmds
23471
John Criswell47fdd832003-07-14 16:52:07 +000023472
23473lt_prog_compiler_no_builtin_flag_GCJ=
23474
23475if test "$GCC" = yes; then
23476 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23477
Reid Spencer2706f8c2004-09-19 23:53:36 +000023478
Reid Spencera773bd52006-08-04 18:18:08 +000023479{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23480echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023481if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23483else
23484 lt_cv_prog_compiler_rtti_exceptions=no
23485 ac_outfile=conftest.$ac_objext
23486 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23487 lt_compiler_flag="-fno-rtti -fno-exceptions"
23488 # Insert the option either (1) after the last *FLAGS variable, or
23489 # (2) before a word containing "conftest.", or (3) at the end.
23490 # Note that $ac_compile itself does not contain backslashes and begins
23491 # with a dollar sign (not a hyphen), so the echo should work correctly.
23492 # The option is referenced via a variable to avoid confusing sed.
23493 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23496 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000023497 (eval echo "\"\$as_me:23497: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023498 (eval "$lt_compile" 2>conftest.err)
23499 ac_status=$?
23500 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000023501 echo "$as_me:23501: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023502 if (exit $ac_status) && test -s "$ac_outfile"; then
23503 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023504 # So say no if there are warnings other than the usual output.
23505 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23506 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23507 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023508 lt_cv_prog_compiler_rtti_exceptions=yes
23509 fi
23510 fi
23511 $rm conftest*
23512
23513fi
Reid Spencera773bd52006-08-04 18:18:08 +000023514{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23515echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023516
23517if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23518 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23519else
23520 :
23521fi
23522
23523fi
23524
23525lt_prog_compiler_wl_GCJ=
23526lt_prog_compiler_pic_GCJ=
23527lt_prog_compiler_static_GCJ=
23528
Reid Spencera773bd52006-08-04 18:18:08 +000023529{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23530echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023531
23532 if test "$GCC" = yes; then
23533 lt_prog_compiler_wl_GCJ='-Wl,'
23534 lt_prog_compiler_static_GCJ='-static'
23535
23536 case $host_os in
23537 aix*)
23538 # All AIX code is PIC.
23539 if test "$host_cpu" = ia64; then
23540 # AIX 5 now supports IA64 processor
23541 lt_prog_compiler_static_GCJ='-Bstatic'
23542 fi
23543 ;;
23544
23545 amigaos*)
23546 # FIXME: we need at least 68020 code to build shared libraries, but
23547 # adding the `-m68020' flag to GCC prevents building anything better,
23548 # like `-m68040'.
23549 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23550 ;;
23551
23552 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23553 # PIC is the default for these OSes.
23554 ;;
23555
23556 mingw* | pw32* | os2*)
23557 # This hack is so that the source file can tell whether it is being
23558 # built for inclusion in a dll (and should export symbols for example).
23559 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23560 ;;
23561
23562 darwin* | rhapsody*)
23563 # PIC is the default on this platform
23564 # Common symbols not allowed in MH_DYLIB files
23565 lt_prog_compiler_pic_GCJ='-fno-common'
23566 ;;
23567
Reid Spencera773bd52006-08-04 18:18:08 +000023568 interix3*)
23569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23570 # Instead, we relocate shared libraries at runtime.
23571 ;;
23572
John Criswell47fdd832003-07-14 16:52:07 +000023573 msdosdjgpp*)
23574 # Just because we use GCC doesn't mean we suddenly get shared libraries
23575 # on systems that don't support them.
23576 lt_prog_compiler_can_build_shared_GCJ=no
23577 enable_shared=no
23578 ;;
23579
23580 sysv4*MP*)
23581 if test -d /usr/nec; then
23582 lt_prog_compiler_pic_GCJ=-Kconform_pic
23583 fi
23584 ;;
23585
23586 hpux*)
23587 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23588 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023589 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023590 hppa*64*|ia64*)
23591 # +Z the default
23592 ;;
23593 *)
23594 lt_prog_compiler_pic_GCJ='-fPIC'
23595 ;;
23596 esac
23597 ;;
23598
23599 *)
23600 lt_prog_compiler_pic_GCJ='-fPIC'
23601 ;;
23602 esac
23603 else
23604 # PORTME Check for flag to pass linker flags through the system compiler.
23605 case $host_os in
23606 aix*)
23607 lt_prog_compiler_wl_GCJ='-Wl,'
23608 if test "$host_cpu" = ia64; then
23609 # AIX 5 now supports IA64 processor
23610 lt_prog_compiler_static_GCJ='-Bstatic'
23611 else
23612 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23613 fi
23614 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023615 darwin*)
23616 # PIC is the default on this platform
23617 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023618 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023619 xlc*)
23620 lt_prog_compiler_pic_GCJ='-qnocommon'
23621 lt_prog_compiler_wl_GCJ='-Wl,'
23622 ;;
23623 esac
23624 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023625
23626 mingw* | pw32* | os2*)
23627 # This hack is so that the source file can tell whether it is being
23628 # built for inclusion in a dll (and should export symbols for example).
23629 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23630 ;;
23631
23632 hpux9* | hpux10* | hpux11*)
23633 lt_prog_compiler_wl_GCJ='-Wl,'
23634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23635 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023636 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023637 hppa*64*|ia64*)
23638 # +Z the default
23639 ;;
23640 *)
23641 lt_prog_compiler_pic_GCJ='+Z'
23642 ;;
23643 esac
23644 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23645 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23646 ;;
23647
23648 irix5* | irix6* | nonstopux*)
23649 lt_prog_compiler_wl_GCJ='-Wl,'
23650 # PIC (with -KPIC) is the default.
23651 lt_prog_compiler_static_GCJ='-non_shared'
23652 ;;
23653
23654 newsos6)
23655 lt_prog_compiler_pic_GCJ='-KPIC'
23656 lt_prog_compiler_static_GCJ='-Bstatic'
23657 ;;
23658
23659 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023660 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023661 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023662 lt_prog_compiler_wl_GCJ='-Wl,'
23663 lt_prog_compiler_pic_GCJ='-KPIC'
23664 lt_prog_compiler_static_GCJ='-static'
23665 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023666 pgcc* | pgf77* | pgf90* | pgf95*)
23667 # Portland Group compilers (*not* the Pentium gcc compiler,
23668 # which looks to be a dead project)
23669 lt_prog_compiler_wl_GCJ='-Wl,'
23670 lt_prog_compiler_pic_GCJ='-fpic'
23671 lt_prog_compiler_static_GCJ='-Bstatic'
23672 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023673 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023674 lt_prog_compiler_wl_GCJ='-Wl,'
23675 # All Alpha code is PIC.
23676 lt_prog_compiler_static_GCJ='-non_shared'
23677 ;;
23678 esac
23679 ;;
23680
23681 osf3* | osf4* | osf5*)
23682 lt_prog_compiler_wl_GCJ='-Wl,'
23683 # All OSF/1 code is PIC.
23684 lt_prog_compiler_static_GCJ='-non_shared'
23685 ;;
23686
John Criswell47fdd832003-07-14 16:52:07 +000023687 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023688 lt_prog_compiler_pic_GCJ='-KPIC'
23689 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023690 case $cc_basename in
23691 f77* | f90* | f95*)
23692 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23693 *)
23694 lt_prog_compiler_wl_GCJ='-Wl,';;
23695 esac
John Criswell47fdd832003-07-14 16:52:07 +000023696 ;;
23697
23698 sunos4*)
23699 lt_prog_compiler_wl_GCJ='-Qoption ld '
23700 lt_prog_compiler_pic_GCJ='-PIC'
23701 lt_prog_compiler_static_GCJ='-Bstatic'
23702 ;;
23703
Reid Spencera773bd52006-08-04 18:18:08 +000023704 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023705 lt_prog_compiler_wl_GCJ='-Wl,'
23706 lt_prog_compiler_pic_GCJ='-KPIC'
23707 lt_prog_compiler_static_GCJ='-Bstatic'
23708 ;;
23709
23710 sysv4*MP*)
23711 if test -d /usr/nec ;then
23712 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23713 lt_prog_compiler_static_GCJ='-Bstatic'
23714 fi
23715 ;;
23716
Reid Spencera773bd52006-08-04 18:18:08 +000023717 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23718 lt_prog_compiler_wl_GCJ='-Wl,'
23719 lt_prog_compiler_pic_GCJ='-KPIC'
23720 lt_prog_compiler_static_GCJ='-Bstatic'
23721 ;;
23722
23723 unicos*)
23724 lt_prog_compiler_wl_GCJ='-Wl,'
23725 lt_prog_compiler_can_build_shared_GCJ=no
23726 ;;
23727
John Criswell47fdd832003-07-14 16:52:07 +000023728 uts4*)
23729 lt_prog_compiler_pic_GCJ='-pic'
23730 lt_prog_compiler_static_GCJ='-Bstatic'
23731 ;;
23732
23733 *)
23734 lt_prog_compiler_can_build_shared_GCJ=no
23735 ;;
23736 esac
23737 fi
23738
Reid Spencera773bd52006-08-04 18:18:08 +000023739{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23740echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023741
23742#
23743# Check to make sure the PIC flag actually works.
23744#
23745if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023746
Reid Spencera773bd52006-08-04 18:18:08 +000023747{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23748echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023749if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23750 echo $ECHO_N "(cached) $ECHO_C" >&6
23751else
23752 lt_prog_compiler_pic_works_GCJ=no
23753 ac_outfile=conftest.$ac_objext
23754 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23755 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23756 # Insert the option either (1) after the last *FLAGS variable, or
23757 # (2) before a word containing "conftest.", or (3) at the end.
23758 # Note that $ac_compile itself does not contain backslashes and begins
23759 # with a dollar sign (not a hyphen), so the echo should work correctly.
23760 # The option is referenced via a variable to avoid confusing sed.
23761 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23764 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000023765 (eval echo "\"\$as_me:23765: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023766 (eval "$lt_compile" 2>conftest.err)
23767 ac_status=$?
23768 cat conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000023769 echo "$as_me:23769: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023770 if (exit $ac_status) && test -s "$ac_outfile"; then
23771 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023772 # So say no if there are warnings other than the usual output.
23773 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23774 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23775 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023776 lt_prog_compiler_pic_works_GCJ=yes
23777 fi
23778 fi
23779 $rm conftest*
23780
23781fi
Reid Spencera773bd52006-08-04 18:18:08 +000023782{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23783echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023784
23785if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23786 case $lt_prog_compiler_pic_GCJ in
23787 "" | " "*) ;;
23788 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23789 esac
23790else
23791 lt_prog_compiler_pic_GCJ=
23792 lt_prog_compiler_can_build_shared_GCJ=no
23793fi
23794
23795fi
Reid Spencera773bd52006-08-04 18:18:08 +000023796case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023797 # For platforms which do not support PIC, -DPIC is meaningless:
23798 *djgpp*)
23799 lt_prog_compiler_pic_GCJ=
23800 ;;
23801 *)
23802 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23803 ;;
23804esac
23805
Reid Spencera773bd52006-08-04 18:18:08 +000023806#
23807# Check to make sure the static flag actually works.
23808#
23809wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23810{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23811echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23812if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23813 echo $ECHO_N "(cached) $ECHO_C" >&6
23814else
23815 lt_prog_compiler_static_works_GCJ=no
23816 save_LDFLAGS="$LDFLAGS"
23817 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23818 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23819 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23820 # The linker can only warn and ignore the option if not recognized
23821 # So say no if there are warnings
23822 if test -s conftest.err; then
23823 # Append any errors to the config.log.
23824 cat conftest.err 1>&5
23825 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23826 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23827 if diff conftest.exp conftest.er2 >/dev/null; then
23828 lt_prog_compiler_static_works_GCJ=yes
23829 fi
23830 else
23831 lt_prog_compiler_static_works_GCJ=yes
23832 fi
23833 fi
23834 $rm conftest*
23835 LDFLAGS="$save_LDFLAGS"
23836
23837fi
23838{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23839echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23840
23841if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23842 :
23843else
23844 lt_prog_compiler_static_GCJ=
23845fi
23846
23847
23848{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23849echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023850if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23851 echo $ECHO_N "(cached) $ECHO_C" >&6
23852else
23853 lt_cv_prog_compiler_c_o_GCJ=no
23854 $rm -r conftest 2>/dev/null
23855 mkdir conftest
23856 cd conftest
23857 mkdir out
23858 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23859
John Criswell47fdd832003-07-14 16:52:07 +000023860 lt_compiler_flag="-o out/conftest2.$ac_objext"
23861 # Insert the option either (1) after the last *FLAGS variable, or
23862 # (2) before a word containing "conftest.", or (3) at the end.
23863 # Note that $ac_compile itself does not contain backslashes and begins
23864 # with a dollar sign (not a hyphen), so the echo should work correctly.
23865 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023866 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023867 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23868 -e 's:$: $lt_compiler_flag:'`
Reid Spencer282d8c12006-12-21 22:55:41 +000023869 (eval echo "\"\$as_me:23869: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023870 (eval "$lt_compile" 2>out/conftest.err)
23871 ac_status=$?
23872 cat out/conftest.err >&5
Reid Spencer282d8c12006-12-21 22:55:41 +000023873 echo "$as_me:23873: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023874 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23875 then
23876 # The compiler can only warn and ignore the option if not recognized
23877 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023878 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23879 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23880 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023881 lt_cv_prog_compiler_c_o_GCJ=yes
23882 fi
23883 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023884 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023885 $rm conftest*
23886 # SGI C++ compiler will create directory out/ii_files/ for
23887 # template instantiation
23888 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23889 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023890 cd ..
23891 rmdir conftest
23892 $rm conftest*
23893
23894fi
Reid Spencera773bd52006-08-04 18:18:08 +000023895{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23896echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023897
23898
23899hard_links="nottested"
23900if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23901 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023902 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023904 hard_links=yes
23905 $rm conftest*
23906 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23907 touch conftest.a
23908 ln conftest.a conftest.b 2>&5 || hard_links=no
23909 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023910 { echo "$as_me:$LINENO: result: $hard_links" >&5
23911echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023912 if test "$hard_links" = no; then
23913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23915 need_locks=warn
23916 fi
23917else
23918 need_locks=no
23919fi
23920
Reid Spencera773bd52006-08-04 18:18:08 +000023921{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23922echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023923
23924 runpath_var=
23925 allow_undefined_flag_GCJ=
23926 enable_shared_with_static_runtimes_GCJ=no
23927 archive_cmds_GCJ=
23928 archive_expsym_cmds_GCJ=
23929 old_archive_From_new_cmds_GCJ=
23930 old_archive_from_expsyms_cmds_GCJ=
23931 export_dynamic_flag_spec_GCJ=
23932 whole_archive_flag_spec_GCJ=
23933 thread_safe_flag_spec_GCJ=
23934 hardcode_libdir_flag_spec_GCJ=
23935 hardcode_libdir_flag_spec_ld_GCJ=
23936 hardcode_libdir_separator_GCJ=
23937 hardcode_direct_GCJ=no
23938 hardcode_minus_L_GCJ=no
23939 hardcode_shlibpath_var_GCJ=unsupported
23940 link_all_deplibs_GCJ=unknown
23941 hardcode_automatic_GCJ=no
23942 module_cmds_GCJ=
23943 module_expsym_cmds_GCJ=
23944 always_export_symbols_GCJ=no
23945 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23946 # include_expsyms should be a list of space-separated symbols to be *always*
23947 # included in the symbol list
23948 include_expsyms_GCJ=
23949 # exclude_expsyms can be an extended regexp of symbols to exclude
23950 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23951 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23952 # as well as any symbol that contains `d'.
23953 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23954 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23955 # platforms (ab)use it in PIC code, but their linkers get confused if
23956 # the symbol is explicitly referenced. Since portable code cannot
23957 # rely on this symbol name, it's probably fine to never include it in
23958 # preloaded symbol tables.
23959 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023960 # Just being paranoid about ensuring that cc_basename is set.
23961 for cc_temp in $compiler""; do
23962 case $cc_temp in
23963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23965 \-*) ;;
23966 *) break;;
23967 esac
23968done
23969cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023970
23971 case $host_os in
23972 cygwin* | mingw* | pw32*)
23973 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23974 # When not using gcc, we currently assume that we are using
23975 # Microsoft Visual C++.
23976 if test "$GCC" != yes; then
23977 with_gnu_ld=no
23978 fi
23979 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023980 interix*)
23981 # we just hope/assume this is gcc and not c89 (= MSVC++)
23982 with_gnu_ld=yes
23983 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023984 openbsd*)
23985 with_gnu_ld=no
23986 ;;
23987 esac
23988
23989 ld_shlibs_GCJ=yes
23990 if test "$with_gnu_ld" = yes; then
23991 # If archive_cmds runs LD, not CC, wlarc should be empty
23992 wlarc='${wl}'
23993
Reid Spencera773bd52006-08-04 18:18:08 +000023994 # Set some defaults for GNU ld with shared library support. These
23995 # are reset later if shared libraries are not supported. Putting them
23996 # here allows them to be overridden if necessary.
23997 runpath_var=LD_RUN_PATH
23998 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23999 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
24000 # ancient GNU ld didn't support --whole-archive et. al.
24001 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
24002 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
24003 else
24004 whole_archive_flag_spec_GCJ=
24005 fi
24006 supports_anon_versioning=no
24007 case `$LD -v 2>/dev/null` in
24008 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
24009 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
24010 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
24011 *\ 2.11.*) ;; # other 2.11 versions
24012 *) supports_anon_versioning=yes ;;
24013 esac
24014
John Criswell47fdd832003-07-14 16:52:07 +000024015 # See if GNU ld supports shared libraries.
24016 case $host_os in
24017 aix3* | aix4* | aix5*)
24018 # On AIX/PPC, the GNU linker is very broken
24019 if test "$host_cpu" != ia64; then
24020 ld_shlibs_GCJ=no
24021 cat <<EOF 1>&2
24022
24023*** Warning: the GNU linker, at least up to release 2.9.1, is reported
24024*** to be unable to reliably create shared libraries on AIX.
24025*** Therefore, libtool is disabling shared libraries support. If you
24026*** really care for shared libraries, you may want to modify your PATH
24027*** so that a non-GNU linker is found, and then restart.
24028
24029EOF
24030 fi
24031 ;;
24032
24033 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024034 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 +000024035 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24036 hardcode_minus_L_GCJ=yes
24037
24038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24039 # that the semantics of dynamic libraries on AmigaOS, at least up
24040 # to version 4, is to share data among multiple programs linked
24041 # with the same dynamic library. Since this doesn't match the
24042 # behavior of shared libraries on other platforms, we can't use
24043 # them.
24044 ld_shlibs_GCJ=no
24045 ;;
24046
24047 beos*)
24048 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24049 allow_undefined_flag_GCJ=unsupported
24050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24051 # support --undefined. This deserves some investigation. FIXME
24052 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24053 else
24054 ld_shlibs_GCJ=no
24055 fi
24056 ;;
24057
24058 cygwin* | mingw* | pw32*)
24059 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24060 # as there is no search path for DLLs.
24061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24062 allow_undefined_flag_GCJ=unsupported
24063 always_export_symbols_GCJ=no
24064 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024065 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 +000024066
24067 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024068 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 +000024069 # If the export-symbols file already is a .def file (1st line
24070 # is EXPORTS), use it as is; otherwise, prepend...
24071 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24072 cp $export_symbols $output_objdir/$soname.def;
24073 else
24074 echo EXPORTS > $output_objdir/$soname.def;
24075 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024076 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024077 $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 +000024078 else
Reid Spencera773bd52006-08-04 18:18:08 +000024079 ld_shlibs_GCJ=no
24080 fi
24081 ;;
24082
24083 interix3*)
24084 hardcode_direct_GCJ=no
24085 hardcode_shlibpath_var_GCJ=no
24086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24087 export_dynamic_flag_spec_GCJ='${wl}-E'
24088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24089 # Instead, shared libraries are loaded at an image base (0x10000000 by
24090 # default) and relocated if they conflict, which is a slow very memory
24091 # consuming and fragmenting process. To avoid this, we pick a random,
24092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24093 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24094 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'
24095 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'
24096 ;;
24097
24098 linux*)
24099 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24100 tmp_addflag=
24101 case $cc_basename,$host_cpu in
24102 pgcc*) # Portland Group C compiler
24103 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'
24104 tmp_addflag=' $pic_flag'
24105 ;;
24106 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24107 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'
24108 tmp_addflag=' $pic_flag -Mnomain' ;;
24109 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24110 tmp_addflag=' -i_dynamic' ;;
24111 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24112 tmp_addflag=' -i_dynamic -nofor_main' ;;
24113 ifc* | ifort*) # Intel Fortran compiler
24114 tmp_addflag=' -nofor_main' ;;
24115 esac
24116 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24117
24118 if test $supports_anon_versioning = yes; then
24119 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24121 $echo "local: *; };" >> $output_objdir/$libname.ver~
24122 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24123 fi
24124 else
24125 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024126 fi
24127 ;;
24128
24129 netbsd*)
24130 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24131 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24132 wlarc=
24133 else
24134 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24135 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24136 fi
24137 ;;
24138
Reid Spencera773bd52006-08-04 18:18:08 +000024139 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024140 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24141 ld_shlibs_GCJ=no
24142 cat <<EOF 1>&2
24143
24144*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24145*** create shared libraries on Solaris systems. Therefore, libtool
24146*** is disabling shared libraries support. We urge you to upgrade GNU
24147*** binutils to release 2.9.1 or newer. Another option is to modify
24148*** your PATH or compiler configuration so that the native linker is
24149*** used, and then restart.
24150
24151EOF
24152 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24153 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24154 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24155 else
24156 ld_shlibs_GCJ=no
24157 fi
24158 ;;
24159
Reid Spencera773bd52006-08-04 18:18:08 +000024160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24161 case `$LD -v 2>&1` in
24162 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24163 ld_shlibs_GCJ=no
24164 cat <<_LT_EOF 1>&2
24165
24166*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24167*** reliably create shared libraries on SCO systems. Therefore, libtool
24168*** is disabling shared libraries support. We urge you to upgrade GNU
24169*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24170*** your PATH or compiler configuration so that the native linker is
24171*** used, and then restart.
24172
24173_LT_EOF
24174 ;;
24175 *)
24176 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24177 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24178 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24179 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24180 else
24181 ld_shlibs_GCJ=no
24182 fi
24183 ;;
24184 esac
24185 ;;
24186
John Criswell47fdd832003-07-14 16:52:07 +000024187 sunos4*)
24188 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24189 wlarc=
24190 hardcode_direct_GCJ=yes
24191 hardcode_shlibpath_var_GCJ=no
24192 ;;
24193
24194 *)
24195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24196 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24197 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24198 else
24199 ld_shlibs_GCJ=no
24200 fi
24201 ;;
24202 esac
24203
Reid Spencera773bd52006-08-04 18:18:08 +000024204 if test "$ld_shlibs_GCJ" = no; then
24205 runpath_var=
24206 hardcode_libdir_flag_spec_GCJ=
24207 export_dynamic_flag_spec_GCJ=
24208 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024209 fi
24210 else
24211 # PORTME fill in a description of your system's linker (not GNU ld)
24212 case $host_os in
24213 aix3*)
24214 allow_undefined_flag_GCJ=unsupported
24215 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024216 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 +000024217 # Note: this linker hardcodes the directories in LIBPATH if there
24218 # are no directories specified by -L.
24219 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024220 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024221 # Neither direct hardcoding nor static linking is supported with a
24222 # broken collect2.
24223 hardcode_direct_GCJ=unsupported
24224 fi
24225 ;;
24226
24227 aix4* | aix5*)
24228 if test "$host_cpu" = ia64; then
24229 # On IA64, the linker does run time linking by default, so we don't
24230 # have to do anything special.
24231 aix_use_runtimelinking=no
24232 exp_sym_flag='-Bexport'
24233 no_entry_flag=""
24234 else
24235 # If we're using GNU nm, then we don't want the "-C" option.
24236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24237 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24238 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'
24239 else
24240 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'
24241 fi
24242 aix_use_runtimelinking=no
24243
24244 # Test if we are trying to use run time linking or normal
24245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24246 # need to do runtime linking.
24247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24248 for ld_flag in $LDFLAGS; do
24249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24250 aix_use_runtimelinking=yes
24251 break
24252 fi
24253 done
Reid Spencera773bd52006-08-04 18:18:08 +000024254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024255 esac
24256
24257 exp_sym_flag='-bexport'
24258 no_entry_flag='-bnoentry'
24259 fi
24260
24261 # When large executables or shared objects are built, AIX ld can
24262 # have problems creating the table of contents. If linking a library
24263 # or program results in "error TOC overflow" add -mminimal-toc to
24264 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24265 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24266
24267 archive_cmds_GCJ=''
24268 hardcode_direct_GCJ=yes
24269 hardcode_libdir_separator_GCJ=':'
24270 link_all_deplibs_GCJ=yes
24271
24272 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024273 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024274 # We only want to do this on AIX 4.2 and lower, the check
24275 # below for broken collect2 doesn't work under 4.3+
24276 collect2name=`${CC} -print-prog-name=collect2`
24277 if test -f "$collect2name" && \
24278 strings "$collect2name" | grep resolve_lib_name >/dev/null
24279 then
24280 # We have reworked collect2
24281 hardcode_direct_GCJ=yes
24282 else
24283 # We have old collect2
24284 hardcode_direct_GCJ=unsupported
24285 # It fails to find uninstalled libraries when the uninstalled
24286 # path is not listed in the libpath. Setting hardcode_minus_L
24287 # to unsupported forces relinking
24288 hardcode_minus_L_GCJ=yes
24289 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24290 hardcode_libdir_separator_GCJ=
24291 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024293 esac
24294 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024295 if test "$aix_use_runtimelinking" = yes; then
24296 shared_flag="$shared_flag "'${wl}-G'
24297 fi
John Criswell47fdd832003-07-14 16:52:07 +000024298 else
24299 # not using gcc
24300 if test "$host_cpu" = ia64; then
24301 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24302 # chokes on -Wl,-G. The following line is correct:
24303 shared_flag='-G'
24304 else
Reid Spencera773bd52006-08-04 18:18:08 +000024305 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024306 shared_flag='${wl}-G'
24307 else
24308 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024309 fi
John Criswell47fdd832003-07-14 16:52:07 +000024310 fi
24311 fi
24312
24313 # It seems that -bexpall does not export symbols beginning with
24314 # underscore (_), so it is better to generate a list of symbols to export.
24315 always_export_symbols_GCJ=yes
24316 if test "$aix_use_runtimelinking" = yes; then
24317 # Warning - without using the other runtime loading flags (-brtl),
24318 # -berok will link without error, but may produce a broken library.
24319 allow_undefined_flag_GCJ='-berok'
24320 # Determine the default libpath from the value encoded in an empty executable.
24321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024322/* confdefs.h. */
24323_ACEOF
24324cat confdefs.h >>conftest.$ac_ext
24325cat >>conftest.$ac_ext <<_ACEOF
24326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024327
John Criswell47fdd832003-07-14 16:52:07 +000024328int
24329main ()
24330{
24331
24332 ;
24333 return 0;
24334}
24335_ACEOF
24336rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024337if { (ac_try="$ac_link"
24338case "(($ac_try" in
24339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340 *) ac_try_echo=$ac_try;;
24341esac
24342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024345 grep -v '^ *+' conftest.er1 >conftest.err
24346 rm -f conftest.er1
24347 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24351 { (case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354esac
24355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24356 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; } &&
24360 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024361 { (case "(($ac_try" in
24362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24363 *) ac_try_echo=$ac_try;;
24364esac
24365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24366 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; }; then
24370
24371aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24372}'`
24373# Check for a 64-bit object if we didn't find anything.
24374if 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; }
24375}'`; fi
24376else
24377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024378sed 's/^/| /' conftest.$ac_ext >&5
24379
Reid Spencera773bd52006-08-04 18:18:08 +000024380
John Criswell47fdd832003-07-14 16:52:07 +000024381fi
Reid Spencera773bd52006-08-04 18:18:08 +000024382
24383rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024384 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024385if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24386
24387 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024388 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 +000024389 else
24390 if test "$host_cpu" = ia64; then
24391 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24392 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024393 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 +000024394 else
24395 # Determine the default libpath from the value encoded in an empty executable.
24396 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024397/* confdefs.h. */
24398_ACEOF
24399cat confdefs.h >>conftest.$ac_ext
24400cat >>conftest.$ac_ext <<_ACEOF
24401/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024402
John Criswell47fdd832003-07-14 16:52:07 +000024403int
24404main ()
24405{
24406
24407 ;
24408 return 0;
24409}
24410_ACEOF
24411rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024412if { (ac_try="$ac_link"
24413case "(($ac_try" in
24414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415 *) ac_try_echo=$ac_try;;
24416esac
24417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24426 { (case "(($ac_try" in
24427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428 *) ac_try_echo=$ac_try;;
24429esac
24430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024432 ac_status=$?
24433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434 (exit $ac_status); }; } &&
24435 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024436 { (case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439esac
24440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; }; then
24445
24446aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24447}'`
24448# Check for a 64-bit object if we didn't find anything.
24449if 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; }
24450}'`; fi
24451else
24452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024453sed 's/^/| /' conftest.$ac_ext >&5
24454
Reid Spencera773bd52006-08-04 18:18:08 +000024455
John Criswell47fdd832003-07-14 16:52:07 +000024456fi
Reid Spencera773bd52006-08-04 18:18:08 +000024457
24458rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024459 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024460if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24461
24462 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24463 # Warning - without using the other run time loading flags,
24464 # -berok will link without error, but may produce a broken library.
24465 no_undefined_flag_GCJ=' ${wl}-bernotok'
24466 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024467 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024468 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024469 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024470 # This is similar to how AIX traditionally builds its shared libraries.
24471 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 +000024472 fi
24473 fi
24474 ;;
24475
24476 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024477 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 +000024478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24479 hardcode_minus_L_GCJ=yes
24480 # see comment about different semantics on the GNU ld section
24481 ld_shlibs_GCJ=no
24482 ;;
24483
Reid Spencer2706f8c2004-09-19 23:53:36 +000024484 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024485 export_dynamic_flag_spec_GCJ=-rdynamic
24486 ;;
24487
24488 cygwin* | mingw* | pw32*)
24489 # When not using gcc, we currently assume that we are using
24490 # Microsoft Visual C++.
24491 # hardcode_libdir_flag_spec is actually meaningless, as there is
24492 # no search path for DLLs.
24493 hardcode_libdir_flag_spec_GCJ=' '
24494 allow_undefined_flag_GCJ=unsupported
24495 # Tell ltmain to make .lib files, not .a files.
24496 libext=lib
24497 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024498 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024499 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024500 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 +000024501 # The linker will automatically build a .lib file if we build a DLL.
24502 old_archive_From_new_cmds_GCJ='true'
24503 # FIXME: Should let the user specify the lib program.
24504 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024505 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024506 enable_shared_with_static_runtimes_GCJ=yes
24507 ;;
24508
24509 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024510 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024511 rhapsody* | darwin1.[012])
24512 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24513 ;;
24514 *) # Darwin 1.3 on
24515 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24516 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24517 else
24518 case ${MACOSX_DEPLOYMENT_TARGET} in
24519 10.[012])
24520 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24521 ;;
24522 10.*)
24523 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24524 ;;
24525 esac
24526 fi
24527 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024528 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024529 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024530 hardcode_direct_GCJ=no
24531 hardcode_automatic_GCJ=yes
24532 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024533 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024534 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024535 if test "$GCC" = yes ; then
24536 output_verbose_link_cmd='echo'
24537 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24538 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024539 # 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 +000024540 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}'
24541 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 +000024542 else
Reid Spencera773bd52006-08-04 18:18:08 +000024543 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024544 xlc*)
24545 output_verbose_link_cmd='echo'
24546 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24547 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024548 # 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 +000024549 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}'
24550 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 +000024551 ;;
24552 *)
24553 ld_shlibs_GCJ=no
24554 ;;
24555 esac
John Criswell47fdd832003-07-14 16:52:07 +000024556 fi
24557 ;;
24558
24559 dgux*)
24560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24561 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24562 hardcode_shlibpath_var_GCJ=no
24563 ;;
24564
24565 freebsd1*)
24566 ld_shlibs_GCJ=no
24567 ;;
24568
24569 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24570 # support. Future versions do this automatically, but an explicit c++rt0.o
24571 # does not break anything, and helps significantly (at the cost of a little
24572 # extra space).
24573 freebsd2.2*)
24574 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24575 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24576 hardcode_direct_GCJ=yes
24577 hardcode_shlibpath_var_GCJ=no
24578 ;;
24579
24580 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24581 freebsd2*)
24582 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24583 hardcode_direct_GCJ=yes
24584 hardcode_minus_L_GCJ=yes
24585 hardcode_shlibpath_var_GCJ=no
24586 ;;
24587
24588 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024589 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024590 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24591 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24592 hardcode_direct_GCJ=yes
24593 hardcode_shlibpath_var_GCJ=no
24594 ;;
24595
24596 hpux9*)
24597 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024598 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 +000024599 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024600 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 +000024601 fi
24602 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24603 hardcode_libdir_separator_GCJ=:
24604 hardcode_direct_GCJ=yes
24605
24606 # hardcode_minus_L: Not really in the search PATH,
24607 # but as the default location of the library.
24608 hardcode_minus_L_GCJ=yes
24609 export_dynamic_flag_spec_GCJ='${wl}-E'
24610 ;;
24611
Reid Spencera773bd52006-08-04 18:18:08 +000024612 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024613 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024614 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24615 else
24616 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24617 fi
24618 if test "$with_gnu_ld" = no; then
24619 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24620 hardcode_libdir_separator_GCJ=:
24621
24622 hardcode_direct_GCJ=yes
24623 export_dynamic_flag_spec_GCJ='${wl}-E'
24624
24625 # hardcode_minus_L: Not really in the search PATH,
24626 # but as the default location of the library.
24627 hardcode_minus_L_GCJ=yes
24628 fi
24629 ;;
24630
24631 hpux11*)
24632 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24633 case $host_cpu in
24634 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024635 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24636 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024637 ia64*)
24638 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24639 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024640 *)
24641 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24642 ;;
24643 esac
24644 else
Reid Spencera773bd52006-08-04 18:18:08 +000024645 case $host_cpu in
24646 hppa*64*)
24647 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24648 ;;
24649 ia64*)
24650 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024651 ;;
24652 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024653 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 +000024654 ;;
24655 esac
24656 fi
24657 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024658 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024660
Reid Spencera773bd52006-08-04 18:18:08 +000024661 case $host_cpu in
24662 hppa*64*|ia64*)
24663 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24664 hardcode_direct_GCJ=no
24665 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024666 ;;
24667 *)
John Criswell47fdd832003-07-14 16:52:07 +000024668 hardcode_direct_GCJ=yes
24669 export_dynamic_flag_spec_GCJ='${wl}-E'
24670
24671 # hardcode_minus_L: Not really in the search PATH,
24672 # but as the default location of the library.
24673 hardcode_minus_L_GCJ=yes
24674 ;;
24675 esac
24676 fi
24677 ;;
24678
24679 irix5* | irix6* | nonstopux*)
24680 if test "$GCC" = yes; then
24681 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'
24682 else
24683 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'
24684 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24685 fi
24686 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24687 hardcode_libdir_separator_GCJ=:
24688 link_all_deplibs_GCJ=yes
24689 ;;
24690
24691 netbsd*)
24692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24694 else
24695 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24696 fi
24697 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24698 hardcode_direct_GCJ=yes
24699 hardcode_shlibpath_var_GCJ=no
24700 ;;
24701
24702 newsos6)
24703 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24704 hardcode_direct_GCJ=yes
24705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24706 hardcode_libdir_separator_GCJ=:
24707 hardcode_shlibpath_var_GCJ=no
24708 ;;
24709
24710 openbsd*)
24711 hardcode_direct_GCJ=yes
24712 hardcode_shlibpath_var_GCJ=no
24713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24714 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024715 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 +000024716 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24717 export_dynamic_flag_spec_GCJ='${wl}-E'
24718 else
24719 case $host_os in
24720 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24721 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24722 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24723 ;;
24724 *)
24725 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24726 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24727 ;;
24728 esac
24729 fi
24730 ;;
24731
24732 os2*)
24733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24734 hardcode_minus_L_GCJ=yes
24735 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024736 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 +000024737 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24738 ;;
24739
24740 osf3*)
24741 if test "$GCC" = yes; then
24742 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24743 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'
24744 else
24745 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24746 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'
24747 fi
24748 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24749 hardcode_libdir_separator_GCJ=:
24750 ;;
24751
24752 osf4* | osf5*) # as osf3* with the addition of -msym flag
24753 if test "$GCC" = yes; then
24754 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24755 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'
24756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24757 else
24758 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24759 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 +000024760 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 +000024761 $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 +000024762
John Criswell47fdd832003-07-14 16:52:07 +000024763 # Both c and cxx compiler support -rpath directly
24764 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24765 fi
24766 hardcode_libdir_separator_GCJ=:
24767 ;;
24768
John Criswell47fdd832003-07-14 16:52:07 +000024769 solaris*)
24770 no_undefined_flag_GCJ=' -z text'
24771 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024772 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024773 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024774 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24775 $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 +000024776 else
Reid Spencera773bd52006-08-04 18:18:08 +000024777 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024778 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024779 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24780 $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 +000024781 fi
24782 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24783 hardcode_shlibpath_var_GCJ=no
24784 case $host_os in
24785 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024786 *)
24787 # The compiler driver will combine linker options so we
24788 # cannot just pass the convience library names through
24789 # without $wl, iff we do not link with $LD.
24790 # Luckily, gcc supports the same syntax we need for Sun Studio.
24791 # Supported since Solaris 2.6 (maybe 2.5.1?)
24792 case $wlarc in
24793 '')
24794 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24795 *)
24796 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' ;;
24797 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024798 esac
24799 link_all_deplibs_GCJ=yes
24800 ;;
24801
24802 sunos4*)
24803 if test "x$host_vendor" = xsequent; then
24804 # Use $CC to link under sequent, because it throws in some extra .o
24805 # files that make .init and .fini sections work.
24806 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24807 else
24808 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24809 fi
24810 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24811 hardcode_direct_GCJ=yes
24812 hardcode_minus_L_GCJ=yes
24813 hardcode_shlibpath_var_GCJ=no
24814 ;;
24815
24816 sysv4)
24817 case $host_vendor in
24818 sni)
24819 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24820 hardcode_direct_GCJ=yes # is this really true???
24821 ;;
24822 siemens)
24823 ## LD is ld it makes a PLAMLIB
24824 ## CC just makes a GrossModule.
24825 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24826 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24827 hardcode_direct_GCJ=no
24828 ;;
24829 motorola)
24830 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24831 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24832 ;;
24833 esac
24834 runpath_var='LD_RUN_PATH'
24835 hardcode_shlibpath_var_GCJ=no
24836 ;;
24837
24838 sysv4.3*)
24839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24840 hardcode_shlibpath_var_GCJ=no
24841 export_dynamic_flag_spec_GCJ='-Bexport'
24842 ;;
24843
24844 sysv4*MP*)
24845 if test -d /usr/nec; then
24846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24847 hardcode_shlibpath_var_GCJ=no
24848 runpath_var=LD_RUN_PATH
24849 hardcode_runpath_var=yes
24850 ld_shlibs_GCJ=yes
24851 fi
24852 ;;
24853
Reid Spencera773bd52006-08-04 18:18:08 +000024854 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24855 no_undefined_flag_GCJ='${wl}-z,text'
24856 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024857 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024858 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024859
John Criswell47fdd832003-07-14 16:52:07 +000024860 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024861 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24862 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 +000024863 else
Reid Spencera773bd52006-08-04 18:18:08 +000024864 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24865 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 +000024866 fi
John Criswell47fdd832003-07-14 16:52:07 +000024867 ;;
24868
Reid Spencera773bd52006-08-04 18:18:08 +000024869 sysv5* | sco3.2v5* | sco5v6*)
24870 # Note: We can NOT use -z defs as we might desire, because we do not
24871 # link with -lc, and that would cause any symbols used from libc to
24872 # always be unresolved, which means just about no library would
24873 # ever link correctly. If we're not using GNU ld we use -z text
24874 # though, which does catch some bad symbols but isn't as heavy-handed
24875 # as -z defs.
24876 no_undefined_flag_GCJ='${wl}-z,text'
24877 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24878 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024879 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024880 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24881 hardcode_libdir_separator_GCJ=':'
24882 link_all_deplibs_GCJ=yes
24883 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024884 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024885
24886 if test "$GCC" = yes; then
24887 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24888 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24889 else
24890 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24891 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24892 fi
John Criswell47fdd832003-07-14 16:52:07 +000024893 ;;
24894
24895 uts4*)
24896 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24898 hardcode_shlibpath_var_GCJ=no
24899 ;;
24900
24901 *)
24902 ld_shlibs_GCJ=no
24903 ;;
24904 esac
24905 fi
24906
Reid Spencera773bd52006-08-04 18:18:08 +000024907{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24908echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024909test "$ld_shlibs_GCJ" = no && can_build_shared=no
24910
John Criswell47fdd832003-07-14 16:52:07 +000024911#
24912# Do we need to explicitly link libc?
24913#
24914case "x$archive_cmds_need_lc_GCJ" in
24915x|xyes)
24916 # Assume -lc should be added
24917 archive_cmds_need_lc_GCJ=yes
24918
24919 if test "$enable_shared" = yes && test "$GCC" = yes; then
24920 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024921 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024922 # FIXME: we may have to deal with multi-command sequences.
24923 ;;
24924 '$CC '*)
24925 # Test whether the compiler implicitly links with -lc since on some
24926 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24927 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024928 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24929echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024930 $rm conftest*
24931 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24932
24933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24934 (eval $ac_compile) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); } 2>conftest.err; then
24938 soname=conftest
24939 lib=conftest
24940 libobjs=conftest.$ac_objext
24941 deplibs=
24942 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024943 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024944 compiler_flags=-v
24945 linker_flags=-v
24946 verstring=
24947 output_objdir=.
24948 libname=conftest
24949 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24950 allow_undefined_flag_GCJ=
24951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24952 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24953 ac_status=$?
24954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 (exit $ac_status); }
24956 then
24957 archive_cmds_need_lc_GCJ=no
24958 else
24959 archive_cmds_need_lc_GCJ=yes
24960 fi
24961 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24962 else
24963 cat conftest.err 1>&5
24964 fi
24965 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024966 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24967echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024968 ;;
24969 esac
24970 fi
24971 ;;
24972esac
24973
Reid Spencera773bd52006-08-04 18:18:08 +000024974{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24975echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024976library_names_spec=
24977libname_spec='lib$name'
24978soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024979shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024980postinstall_cmds=
24981postuninstall_cmds=
24982finish_cmds=
24983finish_eval=
24984shlibpath_var=
24985shlibpath_overrides_runpath=unknown
24986version_type=none
24987dynamic_linker="$host_os ld.so"
24988sys_lib_dlsearch_path_spec="/lib /usr/lib"
24989if test "$GCC" = yes; then
24990 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24991 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24992 # if the path contains ";" then we assume it to be the separator
24993 # otherwise default to the standard path separator (i.e. ":") - it is
24994 # assumed that no part of a normal pathname contains ";" but that should
24995 # okay in the real world where ";" in dirpaths is itself problematic.
24996 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24997 else
24998 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24999 fi
25000else
25001 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
25002fi
25003need_lib_prefix=unknown
25004hardcode_into_libs=no
25005
25006# when you set need_version to no, make sure it does not cause -set_version
25007# flags to be left without arguments
25008need_version=unknown
25009
25010case $host_os in
25011aix3*)
25012 version_type=linux
25013 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
25014 shlibpath_var=LIBPATH
25015
25016 # AIX 3 has no versioning support, so we append a major version to the name.
25017 soname_spec='${libname}${release}${shared_ext}$major'
25018 ;;
25019
25020aix4* | aix5*)
25021 version_type=linux
25022 need_lib_prefix=no
25023 need_version=no
25024 hardcode_into_libs=yes
25025 if test "$host_cpu" = ia64; then
25026 # AIX 5 supports IA64
25027 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25028 shlibpath_var=LD_LIBRARY_PATH
25029 else
25030 # With GCC up to 2.95.x, collect2 would create an import file
25031 # for dependence libraries. The import file would start with
25032 # the line `#! .'. This would cause the generated library to
25033 # depend on `.', always an invalid library. This was fixed in
25034 # development snapshots of GCC prior to 3.0.
25035 case $host_os in
25036 aix4 | aix4.[01] | aix4.[01].*)
25037 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25038 echo ' yes '
25039 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25040 :
25041 else
25042 can_build_shared=no
25043 fi
25044 ;;
25045 esac
25046 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25047 # soname into executable. Probably we can add versioning support to
25048 # collect2, so additional links can be useful in future.
25049 if test "$aix_use_runtimelinking" = yes; then
25050 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25051 # instead of lib<name>.a to let people know that these are not
25052 # typical AIX shared libraries.
25053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25054 else
25055 # We preserve .a as extension for shared libraries through AIX4.2
25056 # and later when we are not doing run time linking.
25057 library_names_spec='${libname}${release}.a $libname.a'
25058 soname_spec='${libname}${release}${shared_ext}$major'
25059 fi
25060 shlibpath_var=LIBPATH
25061 fi
25062 ;;
25063
25064amigaos*)
25065 library_names_spec='$libname.ixlibrary $libname.a'
25066 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025067 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 +000025068 ;;
25069
25070beos*)
25071 library_names_spec='${libname}${shared_ext}'
25072 dynamic_linker="$host_os ld.so"
25073 shlibpath_var=LIBRARY_PATH
25074 ;;
25075
Reid Spencer2706f8c2004-09-19 23:53:36 +000025076bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025077 version_type=linux
25078 need_version=no
25079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25080 soname_spec='${libname}${release}${shared_ext}$major'
25081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25082 shlibpath_var=LD_LIBRARY_PATH
25083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25085 # the default ld.so.conf also contains /usr/contrib/lib and
25086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25087 # libtool to hard-code these into programs
25088 ;;
25089
25090cygwin* | mingw* | pw32*)
25091 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025093 need_version=no
25094 need_lib_prefix=no
25095
25096 case $GCC,$host_os in
25097 yes,cygwin* | yes,mingw* | yes,pw32*)
25098 library_names_spec='$libname.dll.a'
25099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025100 postinstall_cmds='base_file=`basename \${file}`~
25101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25102 dldir=$destdir/`dirname \$dlpath`~
25103 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025104 $install_prog $dir/$dlname \$dldir/$dlname~
25105 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25107 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025108 $rm \$dlpath'
25109 shlibpath_overrides_runpath=yes
25110
25111 case $host_os in
25112 cygwin*)
25113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25114 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 +000025115 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025116 ;;
25117 mingw*)
25118 # MinGW DLLs use traditional 'lib' prefix
25119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25121 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25122 # It is most probably a Windows format PATH printed by
25123 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25124 # path with ; separators, and with drive letters. We can handle the
25125 # drive letters (cygwin fileutils understands them), so leave them,
25126 # especially as we might pass files found there to a mingw objdump,
25127 # which wouldn't understand a cygwinified path. Ahh.
25128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25129 else
25130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25131 fi
25132 ;;
25133 pw32*)
25134 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025135 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 +000025136 ;;
25137 esac
25138 ;;
25139
25140 *)
25141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25142 ;;
25143 esac
25144 dynamic_linker='Win32 ld.exe'
25145 # FIXME: first we should search . and the directory the executable is in
25146 shlibpath_var=PATH
25147 ;;
25148
25149darwin* | rhapsody*)
25150 dynamic_linker="$host_os dyld"
25151 version_type=darwin
25152 need_lib_prefix=no
25153 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025155 soname_spec='${libname}${release}${major}$shared_ext'
25156 shlibpath_overrides_runpath=yes
25157 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025158 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025160 if test "$GCC" = yes; then
25161 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"`
25162 else
25163 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025164 fi
25165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25166 ;;
25167
25168dgux*)
25169 version_type=linux
25170 need_lib_prefix=no
25171 need_version=no
25172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25173 soname_spec='${libname}${release}${shared_ext}$major'
25174 shlibpath_var=LD_LIBRARY_PATH
25175 ;;
25176
25177freebsd1*)
25178 dynamic_linker=no
25179 ;;
25180
Reid Spencer2706f8c2004-09-19 23:53:36 +000025181kfreebsd*-gnu)
25182 version_type=linux
25183 need_lib_prefix=no
25184 need_version=no
25185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25186 soname_spec='${libname}${release}${shared_ext}$major'
25187 shlibpath_var=LD_LIBRARY_PATH
25188 shlibpath_overrides_runpath=no
25189 hardcode_into_libs=yes
25190 dynamic_linker='GNU ld.so'
25191 ;;
25192
Reid Spencera773bd52006-08-04 18:18:08 +000025193freebsd* | dragonfly*)
25194 # DragonFly does not have aout. When/if they implement a new
25195 # versioning mechanism, adjust this.
25196 if test -x /usr/bin/objformat; then
25197 objformat=`/usr/bin/objformat`
25198 else
25199 case $host_os in
25200 freebsd[123]*) objformat=aout ;;
25201 *) objformat=elf ;;
25202 esac
25203 fi
John Criswell47fdd832003-07-14 16:52:07 +000025204 version_type=freebsd-$objformat
25205 case $version_type in
25206 freebsd-elf*)
25207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25208 need_version=no
25209 need_lib_prefix=no
25210 ;;
25211 freebsd-*)
25212 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25213 need_version=yes
25214 ;;
25215 esac
25216 shlibpath_var=LD_LIBRARY_PATH
25217 case $host_os in
25218 freebsd2*)
25219 shlibpath_overrides_runpath=yes
25220 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025221 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025222 shlibpath_overrides_runpath=yes
25223 hardcode_into_libs=yes
25224 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025225 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25226 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025227 shlibpath_overrides_runpath=no
25228 hardcode_into_libs=yes
25229 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025230 freebsd*) # from 4.6 on
25231 shlibpath_overrides_runpath=yes
25232 hardcode_into_libs=yes
25233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025234 esac
25235 ;;
25236
25237gnu*)
25238 version_type=linux
25239 need_lib_prefix=no
25240 need_version=no
25241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25242 soname_spec='${libname}${release}${shared_ext}$major'
25243 shlibpath_var=LD_LIBRARY_PATH
25244 hardcode_into_libs=yes
25245 ;;
25246
25247hpux9* | hpux10* | hpux11*)
25248 # Give a soname corresponding to the major version so that dld.sl refuses to
25249 # link against other versions.
25250 version_type=sunos
25251 need_lib_prefix=no
25252 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025253 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025254 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025255 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025256 hardcode_into_libs=yes
25257 dynamic_linker="$host_os dld.so"
25258 shlibpath_var=LD_LIBRARY_PATH
25259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25261 soname_spec='${libname}${release}${shared_ext}$major'
25262 if test "X$HPUX_IA64_MODE" = X32; then
25263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25264 else
25265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25266 fi
25267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25268 ;;
25269 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025270 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025271 hardcode_into_libs=yes
25272 dynamic_linker="$host_os dld.sl"
25273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25276 soname_spec='${libname}${release}${shared_ext}$major'
25277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25279 ;;
25280 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025282 dynamic_linker="$host_os dld.sl"
25283 shlibpath_var=SHLIB_PATH
25284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25286 soname_spec='${libname}${release}${shared_ext}$major'
25287 ;;
25288 esac
25289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25290 postinstall_cmds='chmod 555 $lib'
25291 ;;
25292
Reid Spencera773bd52006-08-04 18:18:08 +000025293interix3*)
25294 version_type=linux
25295 need_lib_prefix=no
25296 need_version=no
25297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25298 soname_spec='${libname}${release}${shared_ext}$major'
25299 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25300 shlibpath_var=LD_LIBRARY_PATH
25301 shlibpath_overrides_runpath=no
25302 hardcode_into_libs=yes
25303 ;;
25304
John Criswell47fdd832003-07-14 16:52:07 +000025305irix5* | irix6* | nonstopux*)
25306 case $host_os in
25307 nonstopux*) version_type=nonstopux ;;
25308 *)
25309 if test "$lt_cv_prog_gnu_ld" = yes; then
25310 version_type=linux
25311 else
25312 version_type=irix
25313 fi ;;
25314 esac
25315 need_lib_prefix=no
25316 need_version=no
25317 soname_spec='${libname}${release}${shared_ext}$major'
25318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25319 case $host_os in
25320 irix5* | nonstopux*)
25321 libsuff= shlibsuff=
25322 ;;
25323 *)
25324 case $LD in # libtool.m4 will add one of these switches to LD
25325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25326 libsuff= shlibsuff= libmagic=32-bit;;
25327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25328 libsuff=32 shlibsuff=N32 libmagic=N32;;
25329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25331 *) libsuff= shlibsuff= libmagic=never-match;;
25332 esac
25333 ;;
25334 esac
25335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25336 shlibpath_overrides_runpath=no
25337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25339 hardcode_into_libs=yes
25340 ;;
25341
25342# No shared lib support for Linux oldld, aout, or coff.
25343linux*oldld* | linux*aout* | linux*coff*)
25344 dynamic_linker=no
25345 ;;
25346
25347# This must be Linux ELF.
25348linux*)
25349 version_type=linux
25350 need_lib_prefix=no
25351 need_version=no
25352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25353 soname_spec='${libname}${release}${shared_ext}$major'
25354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25355 shlibpath_var=LD_LIBRARY_PATH
25356 shlibpath_overrides_runpath=no
25357 # This implies no fast_install, which is unacceptable.
25358 # Some rework will be needed to allow for fast_install
25359 # before this can be enabled.
25360 hardcode_into_libs=yes
25361
Reid Spencer2706f8c2004-09-19 23:53:36 +000025362 # Append ld.so.conf contents to the search path
25363 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025364 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 +000025365 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25366 fi
25367
John Criswell47fdd832003-07-14 16:52:07 +000025368 # We used to test for /lib/ld.so.1 and disable shared libraries on
25369 # powerpc, because MkLinux only supported shared libraries with the
25370 # GNU dynamic linker. Since this was broken with cross compilers,
25371 # most powerpc-linux boxes support dynamic linking these days and
25372 # people can always --disable-shared, the test was removed, and we
25373 # assume the GNU/Linux dynamic linker is in use.
25374 dynamic_linker='GNU/Linux ld.so'
25375 ;;
25376
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377knetbsd*-gnu)
25378 version_type=linux
25379 need_lib_prefix=no
25380 need_version=no
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25382 soname_spec='${libname}${release}${shared_ext}$major'
25383 shlibpath_var=LD_LIBRARY_PATH
25384 shlibpath_overrides_runpath=no
25385 hardcode_into_libs=yes
25386 dynamic_linker='GNU ld.so'
25387 ;;
25388
John Criswell47fdd832003-07-14 16:52:07 +000025389netbsd*)
25390 version_type=sunos
25391 need_lib_prefix=no
25392 need_version=no
25393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25395 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25396 dynamic_linker='NetBSD (a.out) ld.so'
25397 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025399 soname_spec='${libname}${release}${shared_ext}$major'
25400 dynamic_linker='NetBSD ld.elf_so'
25401 fi
25402 shlibpath_var=LD_LIBRARY_PATH
25403 shlibpath_overrides_runpath=yes
25404 hardcode_into_libs=yes
25405 ;;
25406
25407newsos6)
25408 version_type=linux
25409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25410 shlibpath_var=LD_LIBRARY_PATH
25411 shlibpath_overrides_runpath=yes
25412 ;;
25413
Reid Spencer2706f8c2004-09-19 23:53:36 +000025414nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025415 version_type=linux
25416 need_lib_prefix=no
25417 need_version=no
25418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25419 soname_spec='${libname}${release}${shared_ext}$major'
25420 shlibpath_var=LD_LIBRARY_PATH
25421 shlibpath_overrides_runpath=yes
25422 ;;
25423
25424openbsd*)
25425 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025426 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025427 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25429 case $host_os in
25430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25431 *) need_version=no ;;
25432 esac
John Criswell47fdd832003-07-14 16:52:07 +000025433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25435 shlibpath_var=LD_LIBRARY_PATH
25436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25437 case $host_os in
25438 openbsd2.[89] | openbsd2.[89].*)
25439 shlibpath_overrides_runpath=no
25440 ;;
25441 *)
25442 shlibpath_overrides_runpath=yes
25443 ;;
25444 esac
25445 else
25446 shlibpath_overrides_runpath=yes
25447 fi
25448 ;;
25449
25450os2*)
25451 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025452 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025453 need_lib_prefix=no
25454 library_names_spec='$libname${shared_ext} $libname.a'
25455 dynamic_linker='OS/2 ld.exe'
25456 shlibpath_var=LIBPATH
25457 ;;
25458
25459osf3* | osf4* | osf5*)
25460 version_type=osf
25461 need_lib_prefix=no
25462 need_version=no
25463 soname_spec='${libname}${release}${shared_ext}$major'
25464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25465 shlibpath_var=LD_LIBRARY_PATH
25466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25468 ;;
25469
John Criswell47fdd832003-07-14 16:52:07 +000025470solaris*)
25471 version_type=linux
25472 need_lib_prefix=no
25473 need_version=no
25474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25475 soname_spec='${libname}${release}${shared_ext}$major'
25476 shlibpath_var=LD_LIBRARY_PATH
25477 shlibpath_overrides_runpath=yes
25478 hardcode_into_libs=yes
25479 # ldd complains unless libraries are executable
25480 postinstall_cmds='chmod +x $lib'
25481 ;;
25482
25483sunos4*)
25484 version_type=sunos
25485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25486 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25487 shlibpath_var=LD_LIBRARY_PATH
25488 shlibpath_overrides_runpath=yes
25489 if test "$with_gnu_ld" = yes; then
25490 need_lib_prefix=no
25491 fi
25492 need_version=yes
25493 ;;
25494
Reid Spencera773bd52006-08-04 18:18:08 +000025495sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025496 version_type=linux
25497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25498 soname_spec='${libname}${release}${shared_ext}$major'
25499 shlibpath_var=LD_LIBRARY_PATH
25500 case $host_vendor in
25501 sni)
25502 shlibpath_overrides_runpath=no
25503 need_lib_prefix=no
25504 export_dynamic_flag_spec='${wl}-Blargedynsym'
25505 runpath_var=LD_RUN_PATH
25506 ;;
25507 siemens)
25508 need_lib_prefix=no
25509 ;;
25510 motorola)
25511 need_lib_prefix=no
25512 need_version=no
25513 shlibpath_overrides_runpath=no
25514 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25515 ;;
25516 esac
25517 ;;
25518
25519sysv4*MP*)
25520 if test -d /usr/nec ;then
25521 version_type=linux
25522 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25523 soname_spec='$libname${shared_ext}.$major'
25524 shlibpath_var=LD_LIBRARY_PATH
25525 fi
25526 ;;
25527
Reid Spencera773bd52006-08-04 18:18:08 +000025528sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25529 version_type=freebsd-elf
25530 need_lib_prefix=no
25531 need_version=no
25532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25533 soname_spec='${libname}${release}${shared_ext}$major'
25534 shlibpath_var=LD_LIBRARY_PATH
25535 hardcode_into_libs=yes
25536 if test "$with_gnu_ld" = yes; then
25537 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25538 shlibpath_overrides_runpath=no
25539 else
25540 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25541 shlibpath_overrides_runpath=yes
25542 case $host_os in
25543 sco3.2v5*)
25544 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25545 ;;
25546 esac
25547 fi
25548 sys_lib_dlsearch_path_spec='/usr/lib'
25549 ;;
25550
John Criswell47fdd832003-07-14 16:52:07 +000025551uts4*)
25552 version_type=linux
25553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25554 soname_spec='${libname}${release}${shared_ext}$major'
25555 shlibpath_var=LD_LIBRARY_PATH
25556 ;;
25557
25558*)
25559 dynamic_linker=no
25560 ;;
25561esac
Reid Spencera773bd52006-08-04 18:18:08 +000025562{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25563echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025564test "$dynamic_linker" = no && can_build_shared=no
25565
Reid Spencera773bd52006-08-04 18:18:08 +000025566variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25567if test "$GCC" = yes; then
25568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25569fi
25570
25571{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25572echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025573hardcode_action_GCJ=
25574if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25575 test -n "$runpath_var_GCJ" || \
25576 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25577
25578 # We can hardcode non-existant directories.
25579 if test "$hardcode_direct_GCJ" != no &&
25580 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25581 # have to relink, otherwise we might link with an installed library
25582 # when we should be linking with a yet-to-be-installed one
25583 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25584 test "$hardcode_minus_L_GCJ" != no; then
25585 # Linking always hardcodes the temporary library directory.
25586 hardcode_action_GCJ=relink
25587 else
25588 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25589 hardcode_action_GCJ=immediate
25590 fi
25591else
25592 # We cannot hardcode anything, or else we can only hardcode existing
25593 # directories.
25594 hardcode_action_GCJ=unsupported
25595fi
Reid Spencera773bd52006-08-04 18:18:08 +000025596{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25597echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025598
25599if test "$hardcode_action_GCJ" = relink; then
25600 # Fast installation is not supported
25601 enable_fast_install=no
25602elif test "$shlibpath_overrides_runpath" = yes ||
25603 test "$enable_shared" = no; then
25604 # Fast installation is not necessary
25605 enable_fast_install=needless
25606fi
25607
John Criswell47fdd832003-07-14 16:52:07 +000025608
25609# The else clause should only fire when bootstrapping the
25610# libtool distribution, otherwise you forgot to ship ltmain.sh
25611# with your package, and you will get complaints that there are
25612# no rules to generate ltmain.sh.
25613if test -f "$ltmain"; then
25614 # See if we are running on zsh, and set the options which allow our commands through
25615 # without removal of \ escapes.
25616 if test -n "${ZSH_VERSION+set}" ; then
25617 setopt NO_GLOB_SUBST
25618 fi
25619 # Now quote all the things that may contain metacharacters while being
25620 # careful not to overquote the AC_SUBSTed values. We take copies of the
25621 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025622 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 +000025623 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025624 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25625 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25626 deplibs_check_method reload_flag reload_cmds need_locks \
25627 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25628 lt_cv_sys_global_symbol_to_c_name_address \
25629 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25630 old_postinstall_cmds old_postuninstall_cmds \
25631 compiler_GCJ \
25632 CC_GCJ \
25633 LD_GCJ \
25634 lt_prog_compiler_wl_GCJ \
25635 lt_prog_compiler_pic_GCJ \
25636 lt_prog_compiler_static_GCJ \
25637 lt_prog_compiler_no_builtin_flag_GCJ \
25638 export_dynamic_flag_spec_GCJ \
25639 thread_safe_flag_spec_GCJ \
25640 whole_archive_flag_spec_GCJ \
25641 enable_shared_with_static_runtimes_GCJ \
25642 old_archive_cmds_GCJ \
25643 old_archive_from_new_cmds_GCJ \
25644 predep_objects_GCJ \
25645 postdep_objects_GCJ \
25646 predeps_GCJ \
25647 postdeps_GCJ \
25648 compiler_lib_search_path_GCJ \
25649 archive_cmds_GCJ \
25650 archive_expsym_cmds_GCJ \
25651 postinstall_cmds_GCJ \
25652 postuninstall_cmds_GCJ \
25653 old_archive_from_expsyms_cmds_GCJ \
25654 allow_undefined_flag_GCJ \
25655 no_undefined_flag_GCJ \
25656 export_symbols_cmds_GCJ \
25657 hardcode_libdir_flag_spec_GCJ \
25658 hardcode_libdir_flag_spec_ld_GCJ \
25659 hardcode_libdir_separator_GCJ \
25660 hardcode_automatic_GCJ \
25661 module_cmds_GCJ \
25662 module_expsym_cmds_GCJ \
25663 lt_cv_prog_compiler_c_o_GCJ \
25664 exclude_expsyms_GCJ \
25665 include_expsyms_GCJ; do
25666
25667 case $var in
25668 old_archive_cmds_GCJ | \
25669 old_archive_from_new_cmds_GCJ | \
25670 archive_cmds_GCJ | \
25671 archive_expsym_cmds_GCJ | \
25672 module_cmds_GCJ | \
25673 module_expsym_cmds_GCJ | \
25674 old_archive_from_expsyms_cmds_GCJ | \
25675 export_symbols_cmds_GCJ | \
25676 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25677 postinstall_cmds | postuninstall_cmds | \
25678 old_postinstall_cmds | old_postuninstall_cmds | \
25679 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25680 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025681 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 +000025682 ;;
25683 *)
25684 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25685 ;;
25686 esac
25687 done
25688
25689 case $lt_echo in
25690 *'\$0 --fallback-echo"')
25691 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25692 ;;
25693 esac
25694
25695cfgfile="$ofile"
25696
25697 cat <<__EOF__ >> "$cfgfile"
25698# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25699
25700# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25701
25702# Shell to use when invoking shell scripts.
25703SHELL=$lt_SHELL
25704
25705# Whether or not to build shared libraries.
25706build_libtool_libs=$enable_shared
25707
25708# Whether or not to build static libraries.
25709build_old_libs=$enable_static
25710
25711# Whether or not to add -lc for building shared libraries.
25712build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25713
25714# Whether or not to disallow shared libs when runtime libs are static
25715allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25716
25717# Whether or not to optimize for fast installation.
25718fast_install=$enable_fast_install
25719
25720# The host system.
25721host_alias=$host_alias
25722host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025723host_os=$host_os
25724
25725# The build system.
25726build_alias=$build_alias
25727build=$build
25728build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025729
25730# An echo program that does not interpret backslashes.
25731echo=$lt_echo
25732
25733# The archiver.
25734AR=$lt_AR
25735AR_FLAGS=$lt_AR_FLAGS
25736
25737# A C compiler.
25738LTCC=$lt_LTCC
25739
Reid Spencera773bd52006-08-04 18:18:08 +000025740# LTCC compiler flags.
25741LTCFLAGS=$lt_LTCFLAGS
25742
John Criswell47fdd832003-07-14 16:52:07 +000025743# A language-specific compiler.
25744CC=$lt_compiler_GCJ
25745
25746# Is the compiler the GNU C compiler?
25747with_gcc=$GCC_GCJ
25748
25749# An ERE matcher.
25750EGREP=$lt_EGREP
25751
25752# The linker used to build libraries.
25753LD=$lt_LD_GCJ
25754
25755# Whether we need hard or soft links.
25756LN_S=$lt_LN_S
25757
25758# A BSD-compatible nm program.
25759NM=$lt_NM
25760
25761# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025762STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025763
25764# Used to examine libraries when file_magic_cmd begins "file"
25765MAGIC_CMD=$MAGIC_CMD
25766
25767# Used on cygwin: DLL creation program.
25768DLLTOOL="$DLLTOOL"
25769
25770# Used on cygwin: object dumper.
25771OBJDUMP="$OBJDUMP"
25772
25773# Used on cygwin: assembler.
25774AS="$AS"
25775
25776# The name of the directory that contains temporary libtool files.
25777objdir=$objdir
25778
25779# How to create reloadable object files.
25780reload_flag=$lt_reload_flag
25781reload_cmds=$lt_reload_cmds
25782
25783# How to pass a linker flag through the compiler.
25784wl=$lt_lt_prog_compiler_wl_GCJ
25785
25786# Object file suffix (normally "o").
25787objext="$ac_objext"
25788
25789# Old archive suffix (normally "a").
25790libext="$libext"
25791
25792# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025793shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025794
25795# Executable file suffix (normally "").
25796exeext="$exeext"
25797
25798# Additional compiler flags for building library objects.
25799pic_flag=$lt_lt_prog_compiler_pic_GCJ
25800pic_mode=$pic_mode
25801
25802# What is the maximum length of a command?
25803max_cmd_len=$lt_cv_sys_max_cmd_len
25804
25805# Does compiler simultaneously support -c and -o options?
25806compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25807
Reid Spencera773bd52006-08-04 18:18:08 +000025808# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025809need_locks=$lt_need_locks
25810
25811# Do we need the lib prefix for modules?
25812need_lib_prefix=$need_lib_prefix
25813
25814# Do we need a version for libraries?
25815need_version=$need_version
25816
25817# Whether dlopen is supported.
25818dlopen_support=$enable_dlopen
25819
25820# Whether dlopen of programs is supported.
25821dlopen_self=$enable_dlopen_self
25822
25823# Whether dlopen of statically linked programs is supported.
25824dlopen_self_static=$enable_dlopen_self_static
25825
25826# Compiler flag to prevent dynamic linking.
25827link_static_flag=$lt_lt_prog_compiler_static_GCJ
25828
25829# Compiler flag to turn off builtin functions.
25830no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25831
25832# Compiler flag to allow reflexive dlopens.
25833export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25834
25835# Compiler flag to generate shared objects directly from archives.
25836whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25837
25838# Compiler flag to generate thread-safe objects.
25839thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25840
25841# Library versioning type.
25842version_type=$version_type
25843
25844# Format of library name prefix.
25845libname_spec=$lt_libname_spec
25846
25847# List of archive names. First name is the real one, the rest are links.
25848# The last name is the one that the linker finds with -lNAME.
25849library_names_spec=$lt_library_names_spec
25850
25851# The coded name of the library, if different from the real name.
25852soname_spec=$lt_soname_spec
25853
25854# Commands used to build and install an old-style archive.
25855RANLIB=$lt_RANLIB
25856old_archive_cmds=$lt_old_archive_cmds_GCJ
25857old_postinstall_cmds=$lt_old_postinstall_cmds
25858old_postuninstall_cmds=$lt_old_postuninstall_cmds
25859
25860# Create an old-style archive from a shared archive.
25861old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25862
25863# Create a temporary old-style archive to link instead of a shared archive.
25864old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25865
25866# Commands used to build and install a shared archive.
25867archive_cmds=$lt_archive_cmds_GCJ
25868archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25869postinstall_cmds=$lt_postinstall_cmds
25870postuninstall_cmds=$lt_postuninstall_cmds
25871
25872# Commands used to build a loadable module (assumed same as above if empty)
25873module_cmds=$lt_module_cmds_GCJ
25874module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25875
25876# Commands to strip libraries.
25877old_striplib=$lt_old_striplib
25878striplib=$lt_striplib
25879
25880# Dependencies to place before the objects being linked to create a
25881# shared library.
25882predep_objects=$lt_predep_objects_GCJ
25883
25884# Dependencies to place after the objects being linked to create a
25885# shared library.
25886postdep_objects=$lt_postdep_objects_GCJ
25887
25888# Dependencies to place before the objects being linked to create a
25889# shared library.
25890predeps=$lt_predeps_GCJ
25891
25892# Dependencies to place after the objects being linked to create a
25893# shared library.
25894postdeps=$lt_postdeps_GCJ
25895
25896# The library search path used internally by the compiler when linking
25897# a shared library.
25898compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25899
25900# Method to check whether dependent libraries are shared objects.
25901deplibs_check_method=$lt_deplibs_check_method
25902
25903# Command to use when deplibs_check_method == file_magic.
25904file_magic_cmd=$lt_file_magic_cmd
25905
25906# Flag that allows shared libraries with undefined symbols to be built.
25907allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25908
25909# Flag that forces no undefined symbols.
25910no_undefined_flag=$lt_no_undefined_flag_GCJ
25911
25912# Commands used to finish a libtool library installation in a directory.
25913finish_cmds=$lt_finish_cmds
25914
25915# Same as above, but a single script fragment to be evaled but not shown.
25916finish_eval=$lt_finish_eval
25917
25918# Take the output of nm and produce a listing of raw symbols and C names.
25919global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25920
25921# Transform the output of nm in a proper C declaration
25922global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25923
25924# Transform the output of nm in a C name address pair
25925global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25926
25927# This is the shared library runtime path variable.
25928runpath_var=$runpath_var
25929
25930# This is the shared library path variable.
25931shlibpath_var=$shlibpath_var
25932
25933# Is shlibpath searched before the hard-coded library search path?
25934shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25935
25936# How to hardcode a shared library path into an executable.
25937hardcode_action=$hardcode_action_GCJ
25938
25939# Whether we should hardcode library paths into libraries.
25940hardcode_into_libs=$hardcode_into_libs
25941
25942# Flag to hardcode \$libdir into a binary during linking.
25943# This must work even if \$libdir does not exist.
25944hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25945
25946# If ld is used when linking, flag to hardcode \$libdir into
25947# a binary during linking. This must work even if \$libdir does
25948# not exist.
25949hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25950
25951# Whether we need a single -rpath flag with a separated argument.
25952hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25953
25954# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25955# resulting binary.
25956hardcode_direct=$hardcode_direct_GCJ
25957
25958# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25959# resulting binary.
25960hardcode_minus_L=$hardcode_minus_L_GCJ
25961
25962# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25963# the resulting binary.
25964hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25965
25966# Set to yes if building a shared library automatically hardcodes DIR into the library
25967# and all subsequent libraries and executables linked against it.
25968hardcode_automatic=$hardcode_automatic_GCJ
25969
25970# Variables whose values should be saved in libtool wrapper scripts and
25971# restored at relink time.
25972variables_saved_for_relink="$variables_saved_for_relink"
25973
25974# Whether libtool must link a program against all its dependency libraries.
25975link_all_deplibs=$link_all_deplibs_GCJ
25976
25977# Compile-time system search path for libraries
25978sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25979
25980# Run-time system search path for libraries
25981sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25982
25983# Fix the shell variable \$srcfile for the compiler.
25984fix_srcfile_path="$fix_srcfile_path_GCJ"
25985
25986# Set to yes if exported symbols are required.
25987always_export_symbols=$always_export_symbols_GCJ
25988
25989# The commands to list exported symbols.
25990export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25991
25992# The commands to extract the exported symbol list from a shared archive.
25993extract_expsyms_cmds=$lt_extract_expsyms_cmds
25994
25995# Symbols that should not be listed in the preloaded symbols.
25996exclude_expsyms=$lt_exclude_expsyms_GCJ
25997
25998# Symbols that must always be exported.
25999include_expsyms=$lt_include_expsyms_GCJ
26000
26001# ### END LIBTOOL TAG CONFIG: $tagname
26002
26003__EOF__
26004
26005
26006else
26007 # If there is no Makefile yet, we rely on a make rule to execute
26008 # `config.status --recheck' to rerun these tests and create the
26009 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26011 if test -f "$ltmain_in"; then
26012 test -f Makefile && make "$ltmain"
26013 fi
John Criswell47fdd832003-07-14 16:52:07 +000026014fi
26015
26016
26017ac_ext=c
26018ac_cpp='$CPP $CPPFLAGS'
26019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26021ac_compiler_gnu=$ac_cv_c_compiler_gnu
26022
26023CC="$lt_save_CC"
26024
26025 else
26026 tagname=""
26027 fi
26028 ;;
26029
26030 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026031 ac_ext=c
26032ac_cpp='$CPP $CPPFLAGS'
26033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26035ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026036
26037
26038# Source file extension for RC test sources.
26039ac_ext=rc
26040
26041# Object file extension for compiled RC test sources.
26042objext=o
26043objext_RC=$objext
26044
26045# Code to be used in simple compile tests
26046lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26047
26048# Code to be used in simple link tests
26049lt_simple_link_test_code="$lt_simple_compile_test_code"
26050
26051# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26052
26053# If no C compiler was specified, use CC.
26054LTCC=${LTCC-"$CC"}
26055
Reid Spencera773bd52006-08-04 18:18:08 +000026056# If no C compiler flags were specified, use CFLAGS.
26057LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26058
John Criswell47fdd832003-07-14 16:52:07 +000026059# Allow CC to be a program name with arguments.
26060compiler=$CC
26061
26062
Reid Spencera773bd52006-08-04 18:18:08 +000026063# save warnings/boilerplate of simple test code
26064ac_outfile=conftest.$ac_objext
26065printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26066eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26067_lt_compiler_boilerplate=`cat conftest.err`
26068$rm conftest*
26069
26070ac_outfile=conftest.$ac_objext
26071printf "$lt_simple_link_test_code" >conftest.$ac_ext
26072eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26073_lt_linker_boilerplate=`cat conftest.err`
26074$rm conftest*
26075
26076
John Criswell47fdd832003-07-14 16:52:07 +000026077# Allow CC to be a program name with arguments.
26078lt_save_CC="$CC"
26079CC=${RC-"windres"}
26080compiler=$CC
26081compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026082for cc_temp in $compiler""; do
26083 case $cc_temp in
26084 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26085 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26086 \-*) ;;
26087 *) break;;
26088 esac
26089done
26090cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26091
John Criswell47fdd832003-07-14 16:52:07 +000026092lt_cv_prog_compiler_c_o_RC=yes
26093
26094# The else clause should only fire when bootstrapping the
26095# libtool distribution, otherwise you forgot to ship ltmain.sh
26096# with your package, and you will get complaints that there are
26097# no rules to generate ltmain.sh.
26098if test -f "$ltmain"; then
26099 # See if we are running on zsh, and set the options which allow our commands through
26100 # without removal of \ escapes.
26101 if test -n "${ZSH_VERSION+set}" ; then
26102 setopt NO_GLOB_SUBST
26103 fi
26104 # Now quote all the things that may contain metacharacters while being
26105 # careful not to overquote the AC_SUBSTed values. We take copies of the
26106 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026107 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 +000026108 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026109 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26110 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26111 deplibs_check_method reload_flag reload_cmds need_locks \
26112 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26113 lt_cv_sys_global_symbol_to_c_name_address \
26114 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26115 old_postinstall_cmds old_postuninstall_cmds \
26116 compiler_RC \
26117 CC_RC \
26118 LD_RC \
26119 lt_prog_compiler_wl_RC \
26120 lt_prog_compiler_pic_RC \
26121 lt_prog_compiler_static_RC \
26122 lt_prog_compiler_no_builtin_flag_RC \
26123 export_dynamic_flag_spec_RC \
26124 thread_safe_flag_spec_RC \
26125 whole_archive_flag_spec_RC \
26126 enable_shared_with_static_runtimes_RC \
26127 old_archive_cmds_RC \
26128 old_archive_from_new_cmds_RC \
26129 predep_objects_RC \
26130 postdep_objects_RC \
26131 predeps_RC \
26132 postdeps_RC \
26133 compiler_lib_search_path_RC \
26134 archive_cmds_RC \
26135 archive_expsym_cmds_RC \
26136 postinstall_cmds_RC \
26137 postuninstall_cmds_RC \
26138 old_archive_from_expsyms_cmds_RC \
26139 allow_undefined_flag_RC \
26140 no_undefined_flag_RC \
26141 export_symbols_cmds_RC \
26142 hardcode_libdir_flag_spec_RC \
26143 hardcode_libdir_flag_spec_ld_RC \
26144 hardcode_libdir_separator_RC \
26145 hardcode_automatic_RC \
26146 module_cmds_RC \
26147 module_expsym_cmds_RC \
26148 lt_cv_prog_compiler_c_o_RC \
26149 exclude_expsyms_RC \
26150 include_expsyms_RC; do
26151
26152 case $var in
26153 old_archive_cmds_RC | \
26154 old_archive_from_new_cmds_RC | \
26155 archive_cmds_RC | \
26156 archive_expsym_cmds_RC | \
26157 module_cmds_RC | \
26158 module_expsym_cmds_RC | \
26159 old_archive_from_expsyms_cmds_RC | \
26160 export_symbols_cmds_RC | \
26161 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26162 postinstall_cmds | postuninstall_cmds | \
26163 old_postinstall_cmds | old_postuninstall_cmds | \
26164 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26165 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026166 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 +000026167 ;;
26168 *)
26169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26170 ;;
26171 esac
26172 done
26173
26174 case $lt_echo in
26175 *'\$0 --fallback-echo"')
26176 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26177 ;;
26178 esac
26179
26180cfgfile="$ofile"
26181
26182 cat <<__EOF__ >> "$cfgfile"
26183# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26184
26185# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26186
26187# Shell to use when invoking shell scripts.
26188SHELL=$lt_SHELL
26189
26190# Whether or not to build shared libraries.
26191build_libtool_libs=$enable_shared
26192
26193# Whether or not to build static libraries.
26194build_old_libs=$enable_static
26195
26196# Whether or not to add -lc for building shared libraries.
26197build_libtool_need_lc=$archive_cmds_need_lc_RC
26198
26199# Whether or not to disallow shared libs when runtime libs are static
26200allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26201
26202# Whether or not to optimize for fast installation.
26203fast_install=$enable_fast_install
26204
26205# The host system.
26206host_alias=$host_alias
26207host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026208host_os=$host_os
26209
26210# The build system.
26211build_alias=$build_alias
26212build=$build
26213build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026214
26215# An echo program that does not interpret backslashes.
26216echo=$lt_echo
26217
26218# The archiver.
26219AR=$lt_AR
26220AR_FLAGS=$lt_AR_FLAGS
26221
26222# A C compiler.
26223LTCC=$lt_LTCC
26224
Reid Spencera773bd52006-08-04 18:18:08 +000026225# LTCC compiler flags.
26226LTCFLAGS=$lt_LTCFLAGS
26227
John Criswell47fdd832003-07-14 16:52:07 +000026228# A language-specific compiler.
26229CC=$lt_compiler_RC
26230
26231# Is the compiler the GNU C compiler?
26232with_gcc=$GCC_RC
26233
26234# An ERE matcher.
26235EGREP=$lt_EGREP
26236
26237# The linker used to build libraries.
26238LD=$lt_LD_RC
26239
26240# Whether we need hard or soft links.
26241LN_S=$lt_LN_S
26242
26243# A BSD-compatible nm program.
26244NM=$lt_NM
26245
26246# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026247STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026248
26249# Used to examine libraries when file_magic_cmd begins "file"
26250MAGIC_CMD=$MAGIC_CMD
26251
26252# Used on cygwin: DLL creation program.
26253DLLTOOL="$DLLTOOL"
26254
26255# Used on cygwin: object dumper.
26256OBJDUMP="$OBJDUMP"
26257
26258# Used on cygwin: assembler.
26259AS="$AS"
26260
26261# The name of the directory that contains temporary libtool files.
26262objdir=$objdir
26263
26264# How to create reloadable object files.
26265reload_flag=$lt_reload_flag
26266reload_cmds=$lt_reload_cmds
26267
26268# How to pass a linker flag through the compiler.
26269wl=$lt_lt_prog_compiler_wl_RC
26270
26271# Object file suffix (normally "o").
26272objext="$ac_objext"
26273
26274# Old archive suffix (normally "a").
26275libext="$libext"
26276
26277# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026278shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026279
26280# Executable file suffix (normally "").
26281exeext="$exeext"
26282
26283# Additional compiler flags for building library objects.
26284pic_flag=$lt_lt_prog_compiler_pic_RC
26285pic_mode=$pic_mode
26286
26287# What is the maximum length of a command?
26288max_cmd_len=$lt_cv_sys_max_cmd_len
26289
26290# Does compiler simultaneously support -c and -o options?
26291compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26292
Reid Spencera773bd52006-08-04 18:18:08 +000026293# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026294need_locks=$lt_need_locks
26295
26296# Do we need the lib prefix for modules?
26297need_lib_prefix=$need_lib_prefix
26298
26299# Do we need a version for libraries?
26300need_version=$need_version
26301
26302# Whether dlopen is supported.
26303dlopen_support=$enable_dlopen
26304
26305# Whether dlopen of programs is supported.
26306dlopen_self=$enable_dlopen_self
26307
26308# Whether dlopen of statically linked programs is supported.
26309dlopen_self_static=$enable_dlopen_self_static
26310
26311# Compiler flag to prevent dynamic linking.
26312link_static_flag=$lt_lt_prog_compiler_static_RC
26313
26314# Compiler flag to turn off builtin functions.
26315no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26316
26317# Compiler flag to allow reflexive dlopens.
26318export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26319
26320# Compiler flag to generate shared objects directly from archives.
26321whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26322
26323# Compiler flag to generate thread-safe objects.
26324thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26325
26326# Library versioning type.
26327version_type=$version_type
26328
26329# Format of library name prefix.
26330libname_spec=$lt_libname_spec
26331
26332# List of archive names. First name is the real one, the rest are links.
26333# The last name is the one that the linker finds with -lNAME.
26334library_names_spec=$lt_library_names_spec
26335
26336# The coded name of the library, if different from the real name.
26337soname_spec=$lt_soname_spec
26338
26339# Commands used to build and install an old-style archive.
26340RANLIB=$lt_RANLIB
26341old_archive_cmds=$lt_old_archive_cmds_RC
26342old_postinstall_cmds=$lt_old_postinstall_cmds
26343old_postuninstall_cmds=$lt_old_postuninstall_cmds
26344
26345# Create an old-style archive from a shared archive.
26346old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26347
26348# Create a temporary old-style archive to link instead of a shared archive.
26349old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26350
26351# Commands used to build and install a shared archive.
26352archive_cmds=$lt_archive_cmds_RC
26353archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26354postinstall_cmds=$lt_postinstall_cmds
26355postuninstall_cmds=$lt_postuninstall_cmds
26356
26357# Commands used to build a loadable module (assumed same as above if empty)
26358module_cmds=$lt_module_cmds_RC
26359module_expsym_cmds=$lt_module_expsym_cmds_RC
26360
26361# Commands to strip libraries.
26362old_striplib=$lt_old_striplib
26363striplib=$lt_striplib
26364
26365# Dependencies to place before the objects being linked to create a
26366# shared library.
26367predep_objects=$lt_predep_objects_RC
26368
26369# Dependencies to place after the objects being linked to create a
26370# shared library.
26371postdep_objects=$lt_postdep_objects_RC
26372
26373# Dependencies to place before the objects being linked to create a
26374# shared library.
26375predeps=$lt_predeps_RC
26376
26377# Dependencies to place after the objects being linked to create a
26378# shared library.
26379postdeps=$lt_postdeps_RC
26380
26381# The library search path used internally by the compiler when linking
26382# a shared library.
26383compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26384
26385# Method to check whether dependent libraries are shared objects.
26386deplibs_check_method=$lt_deplibs_check_method
26387
26388# Command to use when deplibs_check_method == file_magic.
26389file_magic_cmd=$lt_file_magic_cmd
26390
26391# Flag that allows shared libraries with undefined symbols to be built.
26392allow_undefined_flag=$lt_allow_undefined_flag_RC
26393
26394# Flag that forces no undefined symbols.
26395no_undefined_flag=$lt_no_undefined_flag_RC
26396
26397# Commands used to finish a libtool library installation in a directory.
26398finish_cmds=$lt_finish_cmds
26399
26400# Same as above, but a single script fragment to be evaled but not shown.
26401finish_eval=$lt_finish_eval
26402
26403# Take the output of nm and produce a listing of raw symbols and C names.
26404global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26405
26406# Transform the output of nm in a proper C declaration
26407global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26408
26409# Transform the output of nm in a C name address pair
26410global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26411
26412# This is the shared library runtime path variable.
26413runpath_var=$runpath_var
26414
26415# This is the shared library path variable.
26416shlibpath_var=$shlibpath_var
26417
26418# Is shlibpath searched before the hard-coded library search path?
26419shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26420
26421# How to hardcode a shared library path into an executable.
26422hardcode_action=$hardcode_action_RC
26423
26424# Whether we should hardcode library paths into libraries.
26425hardcode_into_libs=$hardcode_into_libs
26426
26427# Flag to hardcode \$libdir into a binary during linking.
26428# This must work even if \$libdir does not exist.
26429hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26430
26431# If ld is used when linking, flag to hardcode \$libdir into
26432# a binary during linking. This must work even if \$libdir does
26433# not exist.
26434hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26435
26436# Whether we need a single -rpath flag with a separated argument.
26437hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26438
26439# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26440# resulting binary.
26441hardcode_direct=$hardcode_direct_RC
26442
26443# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26444# resulting binary.
26445hardcode_minus_L=$hardcode_minus_L_RC
26446
26447# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26448# the resulting binary.
26449hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26450
26451# Set to yes if building a shared library automatically hardcodes DIR into the library
26452# and all subsequent libraries and executables linked against it.
26453hardcode_automatic=$hardcode_automatic_RC
26454
26455# Variables whose values should be saved in libtool wrapper scripts and
26456# restored at relink time.
26457variables_saved_for_relink="$variables_saved_for_relink"
26458
26459# Whether libtool must link a program against all its dependency libraries.
26460link_all_deplibs=$link_all_deplibs_RC
26461
26462# Compile-time system search path for libraries
26463sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26464
26465# Run-time system search path for libraries
26466sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26467
26468# Fix the shell variable \$srcfile for the compiler.
26469fix_srcfile_path="$fix_srcfile_path_RC"
26470
26471# Set to yes if exported symbols are required.
26472always_export_symbols=$always_export_symbols_RC
26473
26474# The commands to list exported symbols.
26475export_symbols_cmds=$lt_export_symbols_cmds_RC
26476
26477# The commands to extract the exported symbol list from a shared archive.
26478extract_expsyms_cmds=$lt_extract_expsyms_cmds
26479
26480# Symbols that should not be listed in the preloaded symbols.
26481exclude_expsyms=$lt_exclude_expsyms_RC
26482
26483# Symbols that must always be exported.
26484include_expsyms=$lt_include_expsyms_RC
26485
26486# ### END LIBTOOL TAG CONFIG: $tagname
26487
26488__EOF__
26489
26490
26491else
26492 # If there is no Makefile yet, we rely on a make rule to execute
26493 # `config.status --recheck' to rerun these tests and create the
26494 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026495 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26496 if test -f "$ltmain_in"; then
26497 test -f Makefile && make "$ltmain"
26498 fi
John Criswell47fdd832003-07-14 16:52:07 +000026499fi
26500
26501
26502ac_ext=c
26503ac_cpp='$CPP $CPPFLAGS'
26504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506ac_compiler_gnu=$ac_cv_c_compiler_gnu
26507
26508CC="$lt_save_CC"
26509
26510 ;;
26511
26512 *)
26513 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26514echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26515 { (exit 1); exit 1; }; }
26516 ;;
26517 esac
26518
26519 # Append the new tag name to the list of available tags.
26520 if test -n "$tagname" ; then
26521 available_tags="$available_tags $tagname"
26522 fi
26523 fi
26524 done
26525 IFS="$lt_save_ifs"
26526
26527 # Now substitute the updated list of available tags.
26528 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26529 mv "${ofile}T" "$ofile"
26530 chmod +x "$ofile"
26531 else
26532 rm -f "${ofile}T"
26533 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26534echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26535 { (exit 1); exit 1; }; }
26536 fi
26537fi
John Criswell7a73b802003-06-30 21:59:07 +000026538
26539
26540
26541# This can be used to rebuild libtool when needed
26542LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26543
26544# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026545LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026546
26547# Prevent multiple expansion
26548
26549
26550
John Criswell47fdd832003-07-14 16:52:07 +000026551
26552
26553
26554
26555
26556
26557
26558
26559
26560
26561
26562
26563
26564
26565
26566
26567
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026568
Reid Spencer582a23c2004-12-29 07:07:57 +000026569if test "$lt_cv_dlopen_self" = "yes" ; then
26570
26571cat >>confdefs.h <<\_ACEOF
26572#define CAN_DLOPEN_SELF 1
26573_ACEOF
26574
26575fi
26576
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026577etags_version=`$ETAGS --version 2>&1`
26578case "$etags_version" in
26579 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26580 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26581 *) ETAGSFLAGS="" ;;
26582esac
26583ETAGSFLAGS=$ETAGSFLAGS
26584
26585
Reid Spencer7931a782004-12-27 06:15:02 +000026586if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026587 LLVMGCC="llvm-gcc${EXEEXT}"
26588 LLVMGXX="llvm-g++${EXEEXT}"
26589 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26590set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026591{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026593if test "${ac_cv_path_LLVMGCC+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26595else
26596 case $LLVMGCC in
26597 [\\/]* | ?:[\\/]*)
26598 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26599 ;;
26600 *)
26601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26602for as_dir in $PATH
26603do
26604 IFS=$as_save_IFS
26605 test -z "$as_dir" && as_dir=.
26606 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026607 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 +000026608 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26610 break 2
26611 fi
26612done
26613done
Reid Spencera773bd52006-08-04 18:18:08 +000026614IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026615
Reid Spencer59473af2004-12-25 07:31:29 +000026616 ;;
26617esac
26618fi
26619LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026620if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026621 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26622echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026623else
Reid Spencera773bd52006-08-04 18:18:08 +000026624 { echo "$as_me:$LINENO: result: no" >&5
26625echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026626fi
26627
Reid Spencera773bd52006-08-04 18:18:08 +000026628
Reid Spencerc84492c2005-06-02 22:34:49 +000026629 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26630set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026631{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026633if test "${ac_cv_path_LLVMGXX+set}" = set; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26635else
26636 case $LLVMGXX in
26637 [\\/]* | ?:[\\/]*)
26638 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26639 ;;
26640 *)
26641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26642for as_dir in $PATH
26643do
26644 IFS=$as_save_IFS
26645 test -z "$as_dir" && as_dir=.
26646 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026647 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 +000026648 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26650 break 2
26651 fi
26652done
26653done
Reid Spencera773bd52006-08-04 18:18:08 +000026654IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026655
Reid Spencer59473af2004-12-25 07:31:29 +000026656 ;;
26657esac
26658fi
26659LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026660if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026661 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26662echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026663else
Reid Spencera773bd52006-08-04 18:18:08 +000026664 { echo "$as_me:$LINENO: result: no" >&5
26665echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026666fi
26667
Reid Spencera773bd52006-08-04 18:18:08 +000026668
Reid Spencer59473af2004-12-25 07:31:29 +000026669else
Reid Spencerc84492c2005-06-02 22:34:49 +000026670 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26671 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026672 LLVMGCC=$LLVMGCC
26673
26674 LLVMGXX=$LLVMGXX
26675
26676fi
26677
Reid Spencera773bd52006-08-04 18:18:08 +000026678{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26679echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026680
Reid Spencer86901802004-12-08 23:07:27 +000026681ICC=no
26682IXX=no
26683case $CC in
26684 icc*|icpc*)
26685 ICC=yes
26686 IXX=yes
26687 ;;
26688 *)
26689 ;;
26690esac
26691
Duraid Madina937c60a2006-02-15 07:57:42 +000026692if test "$GCC" != "yes" && test "$ICC" != "yes"
26693then
26694 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26695echo "$as_me: error: gcc|icc required but not found" >&2;}
26696 { (exit 1); exit 1; }; }
26697fi
26698
26699if test "$GXX" != "yes" && test "$IXX" != "yes"
26700then
26701 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26702echo "$as_me: error: g++|icc required but not found" >&2;}
26703 { (exit 1); exit 1; }; }
26704fi
26705
Reid Spencer86901802004-12-08 23:07:27 +000026706if test "$GCC" = "yes"
26707then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026708 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026709 if test "$gccmajor" -lt "3"
26710 then
26711 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026712echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26713 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026714 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026715fi
26716
26717if test -z "$llvm_cv_gnu_make_command"
26718then
26719 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26720echo "$as_me: error: GNU Make required but not found" >&2;}
26721 { (exit 1); exit 1; }; }
26722fi
26723
Reid Spencera773bd52006-08-04 18:18:08 +000026724{ echo "$as_me:$LINENO: result: ok" >&5
26725echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026726
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026727
John Criswell7a73b802003-06-30 21:59:07 +000026728
Reid Spencera773bd52006-08-04 18:18:08 +000026729{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26730echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026731if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26732 echo $ECHO_N "(cached) $ECHO_C" >&6
26733else
26734 ac_check_lib_save_LIBS=$LIBS
26735LIBS="-lelf $LIBS"
26736cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026737/* confdefs.h. */
26738_ACEOF
26739cat confdefs.h >>conftest.$ac_ext
26740cat >>conftest.$ac_ext <<_ACEOF
26741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026742
Reid Spencera773bd52006-08-04 18:18:08 +000026743/* Override any GCC internal prototype to avoid an error.
26744 Use char because int might match the return type of a GCC
26745 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026746#ifdef __cplusplus
26747extern "C"
26748#endif
John Criswell7a73b802003-06-30 21:59:07 +000026749char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026750int
26751main ()
26752{
Reid Spencera773bd52006-08-04 18:18:08 +000026753return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026754 ;
26755 return 0;
26756}
26757_ACEOF
26758rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026759if { (ac_try="$ac_link"
26760case "(($ac_try" in
26761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762 *) ac_try_echo=$ac_try;;
26763esac
26764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026766 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026767 grep -v '^ *+' conftest.er1 >conftest.err
26768 rm -f conftest.er1
26769 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26773 { (case "(($ac_try" in
26774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26775 *) ac_try_echo=$ac_try;;
26776esac
26777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26778 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026779 ac_status=$?
26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781 (exit $ac_status); }; } &&
26782 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026783 { (case "(($ac_try" in
26784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26785 *) ac_try_echo=$ac_try;;
26786esac
26787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26788 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026789 ac_status=$?
26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791 (exit $ac_status); }; }; then
26792 ac_cv_lib_elf_elf_begin=yes
26793else
26794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026795sed 's/^/| /' conftest.$ac_ext >&5
26796
Reid Spencera773bd52006-08-04 18:18:08 +000026797 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026798fi
Reid Spencera773bd52006-08-04 18:18:08 +000026799
26800rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026801 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026802LIBS=$ac_check_lib_save_LIBS
26803fi
Reid Spencera773bd52006-08-04 18:18:08 +000026804{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26805echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026806if test $ac_cv_lib_elf_elf_begin = yes; then
26807 cat >>confdefs.h <<_ACEOF
26808#define HAVE_LIBELF 1
26809_ACEOF
26810
26811 LIBS="-lelf $LIBS"
26812
26813fi
26814
26815
Reid Spencera773bd52006-08-04 18:18:08 +000026816{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26817echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026818if test "${ac_cv_lib_m_sin+set}" = set; then
26819 echo $ECHO_N "(cached) $ECHO_C" >&6
26820else
26821 ac_check_lib_save_LIBS=$LIBS
26822LIBS="-lm $LIBS"
26823cat >conftest.$ac_ext <<_ACEOF
26824/* confdefs.h. */
26825_ACEOF
26826cat confdefs.h >>conftest.$ac_ext
26827cat >>conftest.$ac_ext <<_ACEOF
26828/* end confdefs.h. */
26829
Reid Spencera773bd52006-08-04 18:18:08 +000026830/* Override any GCC internal prototype to avoid an error.
26831 Use char because int might match the return type of a GCC
26832 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026833#ifdef __cplusplus
26834extern "C"
26835#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026836char sin ();
26837int
26838main ()
26839{
Reid Spencera773bd52006-08-04 18:18:08 +000026840return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026841 ;
26842 return 0;
26843}
26844_ACEOF
26845rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026846if { (ac_try="$ac_link"
26847case "(($ac_try" in
26848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26849 *) ac_try_echo=$ac_try;;
26850esac
26851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26852 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026853 ac_status=$?
26854 grep -v '^ *+' conftest.er1 >conftest.err
26855 rm -f conftest.er1
26856 cat conftest.err >&5
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26860 { (case "(($ac_try" in
26861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862 *) ac_try_echo=$ac_try;;
26863esac
26864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026866 ac_status=$?
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); }; } &&
26869 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026870 { (case "(($ac_try" in
26871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26872 *) ac_try_echo=$ac_try;;
26873esac
26874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26875 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026876 ac_status=$?
26877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26878 (exit $ac_status); }; }; then
26879 ac_cv_lib_m_sin=yes
26880else
26881 echo "$as_me: failed program was:" >&5
26882sed 's/^/| /' conftest.$ac_ext >&5
26883
Reid Spencera773bd52006-08-04 18:18:08 +000026884 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026885fi
Reid Spencera773bd52006-08-04 18:18:08 +000026886
26887rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026888 conftest$ac_exeext conftest.$ac_ext
26889LIBS=$ac_check_lib_save_LIBS
26890fi
Reid Spencera773bd52006-08-04 18:18:08 +000026891{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26892echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026893if test $ac_cv_lib_m_sin = yes; then
26894 cat >>confdefs.h <<_ACEOF
26895#define HAVE_LIBM 1
26896_ACEOF
26897
26898 LIBS="-lm $LIBS"
26899
26900fi
26901
Jeff Cohen28783c32007-01-12 18:22:38 +000026902if test "$llvm_cv_os_type" = "MingW" ; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026903
Reid Spencera773bd52006-08-04 18:18:08 +000026904{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26905echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026906if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026907 echo $ECHO_N "(cached) $ECHO_C" >&6
26908else
26909 ac_check_lib_save_LIBS=$LIBS
26910LIBS="-limagehlp $LIBS"
26911cat >conftest.$ac_ext <<_ACEOF
26912/* confdefs.h. */
26913_ACEOF
26914cat confdefs.h >>conftest.$ac_ext
26915cat >>conftest.$ac_ext <<_ACEOF
26916/* end confdefs.h. */
26917
Reid Spencer48fdf912006-06-01 19:03:21 +000026918
Reid Spencer484fc8e2006-06-01 16:55:59 +000026919int
26920main ()
26921{
Reid Spencera773bd52006-08-04 18:18:08 +000026922return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026923 ;
26924 return 0;
26925}
26926_ACEOF
26927rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026928if { (ac_try="$ac_link"
26929case "(($ac_try" in
26930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26931 *) ac_try_echo=$ac_try;;
26932esac
26933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26934 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026935 ac_status=$?
26936 grep -v '^ *+' conftest.er1 >conftest.err
26937 rm -f conftest.er1
26938 cat conftest.err >&5
26939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26940 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26942 { (case "(($ac_try" in
26943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26944 *) ac_try_echo=$ac_try;;
26945esac
26946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26947 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026948 ac_status=$?
26949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950 (exit $ac_status); }; } &&
26951 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026952 { (case "(($ac_try" in
26953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26954 *) ac_try_echo=$ac_try;;
26955esac
26956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26957 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026961 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026962else
26963 echo "$as_me: failed program was:" >&5
26964sed 's/^/| /' conftest.$ac_ext >&5
26965
Reid Spencera773bd52006-08-04 18:18:08 +000026966 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026967fi
Reid Spencera773bd52006-08-04 18:18:08 +000026968
26969rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026970 conftest$ac_exeext conftest.$ac_ext
26971LIBS=$ac_check_lib_save_LIBS
26972fi
Reid Spencera773bd52006-08-04 18:18:08 +000026973{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26974echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026975if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026976 cat >>confdefs.h <<_ACEOF
26977#define HAVE_LIBIMAGEHLP 1
26978_ACEOF
26979
26980 LIBS="-limagehlp $LIBS"
26981
26982fi
26983
26984
Reid Spencera773bd52006-08-04 18:18:08 +000026985{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26986echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026987if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026988 echo $ECHO_N "(cached) $ECHO_C" >&6
26989else
26990 ac_check_lib_save_LIBS=$LIBS
26991LIBS="-lpsapi $LIBS"
26992cat >conftest.$ac_ext <<_ACEOF
26993/* confdefs.h. */
26994_ACEOF
26995cat confdefs.h >>conftest.$ac_ext
26996cat >>conftest.$ac_ext <<_ACEOF
26997/* end confdefs.h. */
26998
Reid Spencer48fdf912006-06-01 19:03:21 +000026999
Reid Spencer484fc8e2006-06-01 16:55:59 +000027000int
27001main ()
27002{
Reid Spencera773bd52006-08-04 18:18:08 +000027003return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000027004 ;
27005 return 0;
27006}
27007_ACEOF
27008rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027009if { (ac_try="$ac_link"
27010case "(($ac_try" in
27011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27012 *) ac_try_echo=$ac_try;;
27013esac
27014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27015 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000027016 ac_status=$?
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27023 { (case "(($ac_try" in
27024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025 *) ac_try_echo=$ac_try;;
27026esac
27027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027029 ac_status=$?
27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27031 (exit $ac_status); }; } &&
27032 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027033 { (case "(($ac_try" in
27034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27035 *) ac_try_echo=$ac_try;;
27036esac
27037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27038 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027039 ac_status=$?
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027042 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027043else
27044 echo "$as_me: failed program was:" >&5
27045sed 's/^/| /' conftest.$ac_ext >&5
27046
Reid Spencera773bd52006-08-04 18:18:08 +000027047 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027048fi
Reid Spencera773bd52006-08-04 18:18:08 +000027049
27050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027051 conftest$ac_exeext conftest.$ac_ext
27052LIBS=$ac_check_lib_save_LIBS
27053fi
Reid Spencera773bd52006-08-04 18:18:08 +000027054{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27055echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027056if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027057 cat >>confdefs.h <<_ACEOF
27058#define HAVE_LIBPSAPI 1
27059_ACEOF
27060
27061 LIBS="-lpsapi $LIBS"
27062
27063fi
27064
27065fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027066
Reid Spencera773bd52006-08-04 18:18:08 +000027067{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27068echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027069if test "${ac_cv_search_lt_dlopen+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027073cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h. */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h. */
27079
Reid Spencera773bd52006-08-04 18:18:08 +000027080/* Override any GCC internal prototype to avoid an error.
27081 Use char because int might match the return type of a GCC
27082 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027083#ifdef __cplusplus
27084extern "C"
27085#endif
Reid Spencer17795972004-11-18 09:47:37 +000027086char lt_dlopen ();
27087int
27088main ()
27089{
Reid Spencera773bd52006-08-04 18:18:08 +000027090return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027091 ;
27092 return 0;
27093}
27094_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027095for ac_lib in '' ltdl; do
27096 if test -z "$ac_lib"; then
27097 ac_res="none required"
27098 else
27099 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027101 fi
27102 rm -f conftest.$ac_objext conftest$ac_exeext
27103if { (ac_try="$ac_link"
27104case "(($ac_try" in
27105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27106 *) ac_try_echo=$ac_try;;
27107esac
27108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27109 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027110 ac_status=$?
27111 grep -v '^ *+' conftest.er1 >conftest.err
27112 rm -f conftest.er1
27113 cat conftest.err >&5
27114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27115 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27117 { (case "(($ac_try" in
27118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119 *) ac_try_echo=$ac_try;;
27120esac
27121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027123 ac_status=$?
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); }; } &&
27126 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027127 { (case "(($ac_try" in
27128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27129 *) ac_try_echo=$ac_try;;
27130esac
27131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27132 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027136 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
Reid Spencera773bd52006-08-04 18:18:08 +000027141
Reid Spencer17795972004-11-18 09:47:37 +000027142fi
Reid Spencera773bd52006-08-04 18:18:08 +000027143
27144rm -f core conftest.err conftest.$ac_objext \
27145 conftest$ac_exeext
27146 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27147 break
Reid Spencer17795972004-11-18 09:47:37 +000027148fi
Reid Spencera773bd52006-08-04 18:18:08 +000027149done
27150if test "${ac_cv_search_lt_dlopen+set}" = set; then
27151 :
27152else
27153 ac_cv_search_lt_dlopen=no
27154fi
27155rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027156LIBS=$ac_func_search_save_LIBS
27157fi
Reid Spencera773bd52006-08-04 18:18:08 +000027158{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27159echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27160ac_res=$ac_cv_search_lt_dlopen
27161if test "$ac_res" != no; then
27162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027163
27164cat >>confdefs.h <<\_ACEOF
27165#define HAVE_LT_DLOPEN 1
27166_ACEOF
27167
27168else
27169 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27170 not be available" >&5
27171echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27172 not be available" >&2;}
27173fi
27174
27175
Reid Spencera773bd52006-08-04 18:18:08 +000027176{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27177echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027178if test "${ac_cv_search_dlopen+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027182cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027183/* confdefs.h. */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027188
Reid Spencera773bd52006-08-04 18:18:08 +000027189/* Override any GCC internal prototype to avoid an error.
27190 Use char because int might match the return type of a GCC
27191 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027192#ifdef __cplusplus
27193extern "C"
27194#endif
John Criswell7a73b802003-06-30 21:59:07 +000027195char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027196int
27197main ()
27198{
Reid Spencera773bd52006-08-04 18:18:08 +000027199return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027200 ;
27201 return 0;
27202}
27203_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027204for ac_lib in '' dl; do
27205 if test -z "$ac_lib"; then
27206 ac_res="none required"
27207 else
27208 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027210 fi
27211 rm -f conftest.$ac_objext conftest$ac_exeext
27212if { (ac_try="$ac_link"
27213case "(($ac_try" in
27214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27215 *) ac_try_echo=$ac_try;;
27216esac
27217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27218 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027220 grep -v '^ *+' conftest.er1 >conftest.err
27221 rm -f conftest.er1
27222 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27226 { (case "(($ac_try" in
27227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27228 *) ac_try_echo=$ac_try;;
27229esac
27230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27231 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027232 ac_status=$?
27233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27234 (exit $ac_status); }; } &&
27235 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027236 { (case "(($ac_try" in
27237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238 *) ac_try_echo=$ac_try;;
27239esac
27240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27241 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027245 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027246else
27247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027248sed 's/^/| /' conftest.$ac_ext >&5
27249
Reid Spencera773bd52006-08-04 18:18:08 +000027250
John Criswell7a73b802003-06-30 21:59:07 +000027251fi
Reid Spencera773bd52006-08-04 18:18:08 +000027252
27253rm -f core conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext
27255 if test "${ac_cv_search_dlopen+set}" = set; then
27256 break
John Criswell7a73b802003-06-30 21:59:07 +000027257fi
Reid Spencera773bd52006-08-04 18:18:08 +000027258done
27259if test "${ac_cv_search_dlopen+set}" = set; then
27260 :
27261else
27262 ac_cv_search_dlopen=no
27263fi
27264rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027265LIBS=$ac_func_search_save_LIBS
27266fi
Reid Spencera773bd52006-08-04 18:18:08 +000027267{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27268echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27269ac_res=$ac_cv_search_dlopen
27270if test "$ac_res" != no; then
27271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027272
27273cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027274#define HAVE_DLOPEN 1
27275_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027276
27277else
Brian Gaekec45be042003-10-07 06:01:34 +000027278 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27279echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027280fi
27281
27282
Reid Spencera773bd52006-08-04 18:18:08 +000027283{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27284echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027285if test "${ac_cv_search_mallinfo+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287else
27288 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027289cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027290/* confdefs.h. */
27291_ACEOF
27292cat confdefs.h >>conftest.$ac_ext
27293cat >>conftest.$ac_ext <<_ACEOF
27294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027295
Reid Spencera773bd52006-08-04 18:18:08 +000027296/* Override any GCC internal prototype to avoid an error.
27297 Use char because int might match the return type of a GCC
27298 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027299#ifdef __cplusplus
27300extern "C"
27301#endif
John Criswell7a73b802003-06-30 21:59:07 +000027302char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027303int
27304main ()
27305{
Reid Spencera773bd52006-08-04 18:18:08 +000027306return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027307 ;
27308 return 0;
27309}
27310_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027311for ac_lib in '' malloc; do
27312 if test -z "$ac_lib"; then
27313 ac_res="none required"
27314 else
27315 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027317 fi
27318 rm -f conftest.$ac_objext conftest$ac_exeext
27319if { (ac_try="$ac_link"
27320case "(($ac_try" in
27321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27322 *) ac_try_echo=$ac_try;;
27323esac
27324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27325 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027327 grep -v '^ *+' conftest.er1 >conftest.err
27328 rm -f conftest.er1
27329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27333 { (case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27336esac
27337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027339 ac_status=$?
27340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341 (exit $ac_status); }; } &&
27342 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027343 { (case "(($ac_try" in
27344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345 *) ac_try_echo=$ac_try;;
27346esac
27347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027349 ac_status=$?
27350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27351 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027352 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027353else
27354 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027355sed 's/^/| /' conftest.$ac_ext >&5
27356
Reid Spencera773bd52006-08-04 18:18:08 +000027357
John Criswell7a73b802003-06-30 21:59:07 +000027358fi
Reid Spencera773bd52006-08-04 18:18:08 +000027359
27360rm -f core conftest.err conftest.$ac_objext \
27361 conftest$ac_exeext
27362 if test "${ac_cv_search_mallinfo+set}" = set; then
27363 break
John Criswell7a73b802003-06-30 21:59:07 +000027364fi
Reid Spencera773bd52006-08-04 18:18:08 +000027365done
27366if test "${ac_cv_search_mallinfo+set}" = set; then
27367 :
27368else
27369 ac_cv_search_mallinfo=no
27370fi
27371rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027372LIBS=$ac_func_search_save_LIBS
27373fi
Reid Spencera773bd52006-08-04 18:18:08 +000027374{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27375echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27376ac_res=$ac_cv_search_mallinfo
27377if test "$ac_res" != no; then
27378 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027379
27380cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027381#define HAVE_MALLINFO 1
27382_ACEOF
27383
27384fi
27385
27386
Reid Spencer0a262ba2005-08-24 10:07:20 +000027387if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027388
Reid Spencera773bd52006-08-04 18:18:08 +000027389{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27390echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027391if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27392 echo $ECHO_N "(cached) $ECHO_C" >&6
27393else
27394 ac_check_lib_save_LIBS=$LIBS
27395LIBS="-lpthread $LIBS"
27396cat >conftest.$ac_ext <<_ACEOF
27397/* confdefs.h. */
27398_ACEOF
27399cat confdefs.h >>conftest.$ac_ext
27400cat >>conftest.$ac_ext <<_ACEOF
27401/* end confdefs.h. */
27402
Reid Spencera773bd52006-08-04 18:18:08 +000027403/* Override any GCC internal prototype to avoid an error.
27404 Use char because int might match the return type of a GCC
27405 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027406#ifdef __cplusplus
27407extern "C"
27408#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027409char pthread_mutex_init ();
27410int
27411main ()
27412{
Reid Spencera773bd52006-08-04 18:18:08 +000027413return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027414 ;
27415 return 0;
27416}
27417_ACEOF
27418rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027419if { (ac_try="$ac_link"
27420case "(($ac_try" in
27421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422 *) ac_try_echo=$ac_try;;
27423esac
27424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027426 ac_status=$?
27427 grep -v '^ *+' conftest.er1 >conftest.err
27428 rm -f conftest.er1
27429 cat conftest.err >&5
27430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27433 { (case "(($ac_try" in
27434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27435 *) ac_try_echo=$ac_try;;
27436esac
27437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27438 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027443 { (case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446esac
27447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27448 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027449 ac_status=$?
27450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451 (exit $ac_status); }; }; then
27452 ac_cv_lib_pthread_pthread_mutex_init=yes
27453else
27454 echo "$as_me: failed program was:" >&5
27455sed 's/^/| /' conftest.$ac_ext >&5
27456
Reid Spencera773bd52006-08-04 18:18:08 +000027457 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027458fi
Reid Spencera773bd52006-08-04 18:18:08 +000027459
27460rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027461 conftest$ac_exeext conftest.$ac_ext
27462LIBS=$ac_check_lib_save_LIBS
27463fi
Reid Spencera773bd52006-08-04 18:18:08 +000027464{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27465echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027466if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27467 cat >>confdefs.h <<_ACEOF
27468#define HAVE_LIBPTHREAD 1
27469_ACEOF
27470
27471 LIBS="-lpthread $LIBS"
27472
27473fi
27474
Reid Spencera773bd52006-08-04 18:18:08 +000027475 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27476echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027477if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27479else
27480 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027481cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027482/* confdefs.h. */
27483_ACEOF
27484cat confdefs.h >>conftest.$ac_ext
27485cat >>conftest.$ac_ext <<_ACEOF
27486/* end confdefs.h. */
27487
Reid Spencera773bd52006-08-04 18:18:08 +000027488/* Override any GCC internal prototype to avoid an error.
27489 Use char because int might match the return type of a GCC
27490 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027491#ifdef __cplusplus
27492extern "C"
27493#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027494char pthread_mutex_lock ();
27495int
27496main ()
27497{
Reid Spencera773bd52006-08-04 18:18:08 +000027498return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027499 ;
27500 return 0;
27501}
27502_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027503for ac_lib in '' pthread; do
27504 if test -z "$ac_lib"; then
27505 ac_res="none required"
27506 else
27507 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027509 fi
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511if { (ac_try="$ac_link"
27512case "(($ac_try" in
27513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514 *) ac_try_echo=$ac_try;;
27515esac
27516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027518 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027519 grep -v '^ *+' conftest.er1 >conftest.err
27520 rm -f conftest.er1
27521 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27525 { (case "(($ac_try" in
27526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27527 *) ac_try_echo=$ac_try;;
27528esac
27529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27530 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027531 ac_status=$?
27532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533 (exit $ac_status); }; } &&
27534 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027535 { (case "(($ac_try" in
27536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537 *) ac_try_echo=$ac_try;;
27538esac
27539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027541 ac_status=$?
27542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027544 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027545else
27546 echo "$as_me: failed program was:" >&5
27547sed 's/^/| /' conftest.$ac_ext >&5
27548
Reid Spencera773bd52006-08-04 18:18:08 +000027549
Brian Gaeke5f268f72003-12-05 19:29:01 +000027550fi
Reid Spencera773bd52006-08-04 18:18:08 +000027551
27552rm -f core conftest.err conftest.$ac_objext \
27553 conftest$ac_exeext
27554 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27555 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027556fi
Reid Spencera773bd52006-08-04 18:18:08 +000027557done
27558if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27559 :
27560else
27561 ac_cv_search_pthread_mutex_lock=no
27562fi
27563rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027564LIBS=$ac_func_search_save_LIBS
27565fi
Reid Spencera773bd52006-08-04 18:18:08 +000027566{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27567echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27568ac_res=$ac_cv_search_pthread_mutex_lock
27569if test "$ac_res" != no; then
27570 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027571
John Criswell40468462004-09-24 21:19:06 +000027572cat >>confdefs.h <<\_ACEOF
27573#define HAVE_PTHREAD_MUTEX_LOCK 1
27574_ACEOF
27575
27576fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027577
Reid Spencer0a262ba2005-08-24 10:07:20 +000027578fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027579
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027580
Reid Spencer59473af2004-12-25 07:31:29 +000027581
27582
27583
27584
27585
27586ac_header_dirent=no
27587for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27588 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027589{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27590echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027592 echo $ECHO_N "(cached) $ECHO_C" >&6
27593else
27594 cat >conftest.$ac_ext <<_ACEOF
27595/* confdefs.h. */
27596_ACEOF
27597cat confdefs.h >>conftest.$ac_ext
27598cat >>conftest.$ac_ext <<_ACEOF
27599/* end confdefs.h. */
27600#include <sys/types.h>
27601#include <$ac_hdr>
27602
27603int
27604main ()
27605{
27606if ((DIR *) 0)
27607return 0;
27608 ;
27609 return 0;
27610}
27611_ACEOF
27612rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027613if { (ac_try="$ac_compile"
27614case "(($ac_try" in
27615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27616 *) ac_try_echo=$ac_try;;
27617esac
27618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27619 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027620 ac_status=$?
27621 grep -v '^ *+' conftest.er1 >conftest.err
27622 rm -f conftest.er1
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27627 { (case "(($ac_try" in
27628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27629 *) ac_try_echo=$ac_try;;
27630esac
27631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27632 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027637 { (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
Reid Spencer59473af2004-12-25 07:31:29 +000027643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 eval "$as_ac_Header=yes"
27647else
27648 echo "$as_me: failed program was:" >&5
27649sed 's/^/| /' conftest.$ac_ext >&5
27650
Reid Spencera773bd52006-08-04 18:18:08 +000027651 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027652fi
Reid Spencera773bd52006-08-04 18:18:08 +000027653
27654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027655fi
Reid Spencera773bd52006-08-04 18:18:08 +000027656ac_res=`eval echo '${'$as_ac_Header'}'`
27657 { echo "$as_me:$LINENO: result: $ac_res" >&5
27658echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027659if test `eval echo '${'$as_ac_Header'}'` = yes; then
27660 cat >>confdefs.h <<_ACEOF
27661#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27662_ACEOF
27663
27664ac_header_dirent=$ac_hdr; break
27665fi
27666
27667done
27668# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27669if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027670 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27671echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027672if test "${ac_cv_search_opendir+set}" = set; then
27673 echo $ECHO_N "(cached) $ECHO_C" >&6
27674else
27675 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027676cat >conftest.$ac_ext <<_ACEOF
27677/* confdefs.h. */
27678_ACEOF
27679cat confdefs.h >>conftest.$ac_ext
27680cat >>conftest.$ac_ext <<_ACEOF
27681/* end confdefs.h. */
27682
Reid Spencera773bd52006-08-04 18:18:08 +000027683/* Override any GCC internal prototype to avoid an error.
27684 Use char because int might match the return type of a GCC
27685 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027686#ifdef __cplusplus
27687extern "C"
27688#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027689char opendir ();
27690int
27691main ()
27692{
Reid Spencera773bd52006-08-04 18:18:08 +000027693return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027694 ;
27695 return 0;
27696}
27697_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027698for ac_lib in '' dir; do
27699 if test -z "$ac_lib"; then
27700 ac_res="none required"
27701 else
27702 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027704 fi
27705 rm -f conftest.$ac_objext conftest$ac_exeext
27706if { (ac_try="$ac_link"
27707case "(($ac_try" in
27708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709 *) ac_try_echo=$ac_try;;
27710esac
27711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027713 ac_status=$?
27714 grep -v '^ *+' conftest.er1 >conftest.err
27715 rm -f conftest.er1
27716 cat conftest.err >&5
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27720 { (case "(($ac_try" in
27721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27722 *) ac_try_echo=$ac_try;;
27723esac
27724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27725 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; } &&
27729 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027730 { (case "(($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_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027736 ac_status=$?
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027739 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027740else
27741 echo "$as_me: failed program was:" >&5
27742sed 's/^/| /' conftest.$ac_ext >&5
27743
Reid Spencera773bd52006-08-04 18:18:08 +000027744
Reid Spencer59473af2004-12-25 07:31:29 +000027745fi
Reid Spencera773bd52006-08-04 18:18:08 +000027746
27747rm -f core conftest.err conftest.$ac_objext \
27748 conftest$ac_exeext
27749 if test "${ac_cv_search_opendir+set}" = set; then
27750 break
Reid Spencer59473af2004-12-25 07:31:29 +000027751fi
Reid Spencera773bd52006-08-04 18:18:08 +000027752done
27753if test "${ac_cv_search_opendir+set}" = set; then
27754 :
27755else
27756 ac_cv_search_opendir=no
27757fi
27758rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027759LIBS=$ac_func_search_save_LIBS
27760fi
Reid Spencera773bd52006-08-04 18:18:08 +000027761{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27762echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27763ac_res=$ac_cv_search_opendir
27764if test "$ac_res" != no; then
27765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027766
27767fi
27768
27769else
Reid Spencera773bd52006-08-04 18:18:08 +000027770 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27771echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027772if test "${ac_cv_search_opendir+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774else
27775 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027776cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h. */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h. */
27782
Reid Spencera773bd52006-08-04 18:18:08 +000027783/* Override any GCC internal prototype to avoid an error.
27784 Use char because int might match the return type of a GCC
27785 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027786#ifdef __cplusplus
27787extern "C"
27788#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027789char opendir ();
27790int
27791main ()
27792{
Reid Spencera773bd52006-08-04 18:18:08 +000027793return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027794 ;
27795 return 0;
27796}
27797_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027798for ac_lib in '' x; do
27799 if test -z "$ac_lib"; then
27800 ac_res="none required"
27801 else
27802 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027804 fi
27805 rm -f conftest.$ac_objext conftest$ac_exeext
27806if { (ac_try="$ac_link"
27807case "(($ac_try" in
27808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27809 *) ac_try_echo=$ac_try;;
27810esac
27811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27812 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027813 ac_status=$?
27814 grep -v '^ *+' conftest.er1 >conftest.err
27815 rm -f conftest.er1
27816 cat conftest.err >&5
27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27820 { (case "(($ac_try" in
27821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27822 *) ac_try_echo=$ac_try;;
27823esac
27824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27825 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027826 ac_status=$?
27827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27828 (exit $ac_status); }; } &&
27829 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027830 { (case "(($ac_try" in
27831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27832 *) ac_try_echo=$ac_try;;
27833esac
27834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27835 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027836 ac_status=$?
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027839 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027840else
27841 echo "$as_me: failed program was:" >&5
27842sed 's/^/| /' conftest.$ac_ext >&5
27843
Reid Spencera773bd52006-08-04 18:18:08 +000027844
Reid Spencer59473af2004-12-25 07:31:29 +000027845fi
Reid Spencera773bd52006-08-04 18:18:08 +000027846
27847rm -f core conftest.err conftest.$ac_objext \
27848 conftest$ac_exeext
27849 if test "${ac_cv_search_opendir+set}" = set; then
27850 break
Reid Spencer59473af2004-12-25 07:31:29 +000027851fi
Reid Spencera773bd52006-08-04 18:18:08 +000027852done
27853if test "${ac_cv_search_opendir+set}" = set; then
27854 :
27855else
27856 ac_cv_search_opendir=no
27857fi
27858rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027859LIBS=$ac_func_search_save_LIBS
27860fi
Reid Spencera773bd52006-08-04 18:18:08 +000027861{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27862echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27863ac_res=$ac_cv_search_opendir
27864if test "$ac_res" != no; then
27865 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027866
27867fi
27868
27869fi
27870
Reid Spencera773bd52006-08-04 18:18:08 +000027871{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27872echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027873if test "${ac_cv_header_mmap_anon+set}" = set; then
27874 echo $ECHO_N "(cached) $ECHO_C" >&6
27875else
27876 ac_ext=c
27877ac_cpp='$CPP $CPPFLAGS'
27878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27880ac_compiler_gnu=$ac_cv_c_compiler_gnu
27881
27882 cat >conftest.$ac_ext <<_ACEOF
27883/* confdefs.h. */
27884_ACEOF
27885cat confdefs.h >>conftest.$ac_ext
27886cat >>conftest.$ac_ext <<_ACEOF
27887/* end confdefs.h. */
27888#include <sys/mman.h>
27889#include <unistd.h>
27890#include <fcntl.h>
27891int
27892main ()
27893{
27894mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27895 ;
27896 return 0;
27897}
27898_ACEOF
27899rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027900if { (ac_try="$ac_compile"
27901case "(($ac_try" in
27902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27903 *) ac_try_echo=$ac_try;;
27904esac
27905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27906 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027907 ac_status=$?
27908 grep -v '^ *+' conftest.er1 >conftest.err
27909 rm -f conftest.er1
27910 cat conftest.err >&5
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27914 { (case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27917esac
27918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027924 { (case "(($ac_try" in
27925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27926 *) ac_try_echo=$ac_try;;
27927esac
27928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27929 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027930 ac_status=$?
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; }; then
27933 ac_cv_header_mmap_anon=yes
27934else
27935 echo "$as_me: failed program was:" >&5
27936sed 's/^/| /' conftest.$ac_ext >&5
27937
Reid Spencera773bd52006-08-04 18:18:08 +000027938 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027939fi
Reid Spencera773bd52006-08-04 18:18:08 +000027940
27941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027942 ac_ext=c
27943ac_cpp='$CPP $CPPFLAGS'
27944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27946ac_compiler_gnu=$ac_cv_c_compiler_gnu
27947
27948
27949fi
Reid Spencera773bd52006-08-04 18:18:08 +000027950{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27951echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027952if test "$ac_cv_header_mmap_anon" = yes; then
27953
27954cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027955#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027956_ACEOF
27957
27958fi
27959
Reid Spencera773bd52006-08-04 18:18:08 +000027960{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27961echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027962if test "${ac_cv_header_stat_broken+set}" = set; then
27963 echo $ECHO_N "(cached) $ECHO_C" >&6
27964else
27965 cat >conftest.$ac_ext <<_ACEOF
27966/* confdefs.h. */
27967_ACEOF
27968cat confdefs.h >>conftest.$ac_ext
27969cat >>conftest.$ac_ext <<_ACEOF
27970/* end confdefs.h. */
27971#include <sys/types.h>
27972#include <sys/stat.h>
27973
Reid Spencera773bd52006-08-04 18:18:08 +000027974#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027975# if S_ISBLK (S_IFDIR)
27976You lose.
27977# endif
27978#endif
27979
Reid Spencera773bd52006-08-04 18:18:08 +000027980#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027981# if S_ISBLK (S_IFCHR)
27982You lose.
27983# endif
27984#endif
27985
Reid Spencera773bd52006-08-04 18:18:08 +000027986#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027987# if S_ISLNK (S_IFREG)
27988You lose.
27989# endif
27990#endif
27991
Reid Spencera773bd52006-08-04 18:18:08 +000027992#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027993# if S_ISSOCK (S_IFREG)
27994You lose.
27995# endif
27996#endif
27997
27998_ACEOF
27999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28000 $EGREP "You lose" >/dev/null 2>&1; then
28001 ac_cv_header_stat_broken=yes
28002else
28003 ac_cv_header_stat_broken=no
28004fi
28005rm -f conftest*
28006
28007fi
Reid Spencera773bd52006-08-04 18:18:08 +000028008{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
28009echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028010if test $ac_cv_header_stat_broken = yes; then
28011
28012cat >>confdefs.h <<\_ACEOF
28013#define STAT_MACROS_BROKEN 1
28014_ACEOF
28015
28016fi
28017
Reid Spencera773bd52006-08-04 18:18:08 +000028018{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
28019echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028020if test "${ac_cv_header_stdc+set}" = set; then
28021 echo $ECHO_N "(cached) $ECHO_C" >&6
28022else
28023 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028024/* confdefs.h. */
28025_ACEOF
28026cat confdefs.h >>conftest.$ac_ext
28027cat >>conftest.$ac_ext <<_ACEOF
28028/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028029#include <stdlib.h>
28030#include <stdarg.h>
28031#include <string.h>
28032#include <float.h>
28033
John Criswell0c38eaf2003-09-10 15:17:25 +000028034int
28035main ()
28036{
28037
28038 ;
28039 return 0;
28040}
John Criswell7a73b802003-06-30 21:59:07 +000028041_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028042rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028043if { (ac_try="$ac_compile"
28044case "(($ac_try" in
28045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046 *) ac_try_echo=$ac_try;;
28047esac
28048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028050 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028051 grep -v '^ *+' conftest.er1 >conftest.err
28052 rm -f conftest.er1
28053 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028055 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28057 { (case "(($ac_try" in
28058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28059 *) ac_try_echo=$ac_try;;
28060esac
28061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28062 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028063 ac_status=$?
28064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); }; } &&
28066 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028067 { (case "(($ac_try" in
28068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28069 *) ac_try_echo=$ac_try;;
28070esac
28071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28072 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028073 ac_status=$?
28074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028076 ac_cv_header_stdc=yes
28077else
28078 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028079sed 's/^/| /' conftest.$ac_ext >&5
28080
Reid Spencera773bd52006-08-04 18:18:08 +000028081 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028082fi
Reid Spencera773bd52006-08-04 18:18:08 +000028083
28084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028085
28086if test $ac_cv_header_stdc = yes; then
28087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28088 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028089/* confdefs.h. */
28090_ACEOF
28091cat confdefs.h >>conftest.$ac_ext
28092cat >>conftest.$ac_ext <<_ACEOF
28093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028094#include <string.h>
28095
28096_ACEOF
28097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028098 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028099 :
28100else
28101 ac_cv_header_stdc=no
28102fi
28103rm -f conftest*
28104
28105fi
28106
28107if test $ac_cv_header_stdc = yes; then
28108 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028110/* confdefs.h. */
28111_ACEOF
28112cat confdefs.h >>conftest.$ac_ext
28113cat >>conftest.$ac_ext <<_ACEOF
28114/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028115#include <stdlib.h>
28116
28117_ACEOF
28118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028119 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028120 :
28121else
28122 ac_cv_header_stdc=no
28123fi
28124rm -f conftest*
28125
28126fi
28127
28128if test $ac_cv_header_stdc = yes; then
28129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28130 if test "$cross_compiling" = yes; then
28131 :
28132else
28133 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028134/* confdefs.h. */
28135_ACEOF
28136cat confdefs.h >>conftest.$ac_ext
28137cat >>conftest.$ac_ext <<_ACEOF
28138/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028139#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028140#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028141#if ((' ' & 0x0FF) == 0x020)
28142# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28143# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28144#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028145# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028146 (('a' <= (c) && (c) <= 'i') \
28147 || ('j' <= (c) && (c) <= 'r') \
28148 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028149# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28150#endif
28151
28152#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28153int
28154main ()
28155{
28156 int i;
28157 for (i = 0; i < 256; i++)
28158 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028159 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028160 return 2;
28161 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028162}
28163_ACEOF
28164rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028165if { (ac_try="$ac_link"
28166case "(($ac_try" in
28167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28168 *) ac_try_echo=$ac_try;;
28169esac
28170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28171 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028175 { (case "(($ac_try" in
28176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28177 *) ac_try_echo=$ac_try;;
28178esac
28179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28180 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 :
28185else
28186 echo "$as_me: program exited with status $ac_status" >&5
28187echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028188sed 's/^/| /' conftest.$ac_ext >&5
28189
John Criswell7a73b802003-06-30 21:59:07 +000028190( exit $ac_status )
28191ac_cv_header_stdc=no
28192fi
Reid Spencera773bd52006-08-04 18:18:08 +000028193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28194fi
28195
28196
John Criswell7a73b802003-06-30 21:59:07 +000028197fi
28198fi
Reid Spencera773bd52006-08-04 18:18:08 +000028199{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28200echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028201if test $ac_cv_header_stdc = yes; then
28202
28203cat >>confdefs.h <<\_ACEOF
28204#define STDC_HEADERS 1
28205_ACEOF
28206
28207fi
28208
Reid Spencera773bd52006-08-04 18:18:08 +000028209{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28210echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028211if test "${ac_cv_header_sys_wait_h+set}" = set; then
28212 echo $ECHO_N "(cached) $ECHO_C" >&6
28213else
28214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028215/* confdefs.h. */
28216_ACEOF
28217cat confdefs.h >>conftest.$ac_ext
28218cat >>conftest.$ac_ext <<_ACEOF
28219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028220#include <sys/types.h>
28221#include <sys/wait.h>
28222#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028223# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028224#endif
28225#ifndef WIFEXITED
28226# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28227#endif
28228
John Criswell7a73b802003-06-30 21:59:07 +000028229int
28230main ()
28231{
28232 int s;
28233 wait (&s);
28234 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28235 ;
28236 return 0;
28237}
28238_ACEOF
28239rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028240if { (ac_try="$ac_compile"
28241case "(($ac_try" in
28242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28243 *) ac_try_echo=$ac_try;;
28244esac
28245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28246 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28254 { (case "(($ac_try" in
28255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28256 *) ac_try_echo=$ac_try;;
28257esac
28258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28259 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028260 ac_status=$?
28261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 (exit $ac_status); }; } &&
28263 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028264 { (case "(($ac_try" in
28265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266 *) ac_try_echo=$ac_try;;
28267esac
28268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28269 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028270 ac_status=$?
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); }; }; then
28273 ac_cv_header_sys_wait_h=yes
28274else
28275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028276sed 's/^/| /' conftest.$ac_ext >&5
28277
Reid Spencera773bd52006-08-04 18:18:08 +000028278 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028279fi
Reid Spencera773bd52006-08-04 18:18:08 +000028280
28281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028282fi
Reid Spencera773bd52006-08-04 18:18:08 +000028283{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28284echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028285if test $ac_cv_header_sys_wait_h = yes; then
28286
28287cat >>confdefs.h <<\_ACEOF
28288#define HAVE_SYS_WAIT_H 1
28289_ACEOF
28290
28291fi
28292
Reid Spencera773bd52006-08-04 18:18:08 +000028293{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28294echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028295if test "${ac_cv_header_time+set}" = set; then
28296 echo $ECHO_N "(cached) $ECHO_C" >&6
28297else
28298 cat >conftest.$ac_ext <<_ACEOF
28299/* confdefs.h. */
28300_ACEOF
28301cat confdefs.h >>conftest.$ac_ext
28302cat >>conftest.$ac_ext <<_ACEOF
28303/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028304#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028305#include <sys/time.h>
28306#include <time.h>
28307
28308int
28309main ()
28310{
28311if ((struct tm *) 0)
28312return 0;
28313 ;
28314 return 0;
28315}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028316_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028317rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028318if { (ac_try="$ac_compile"
28319case "(($ac_try" in
28320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321 *) ac_try_echo=$ac_try;;
28322esac
28323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028325 ac_status=$?
28326 grep -v '^ *+' conftest.er1 >conftest.err
28327 rm -f conftest.er1
28328 cat conftest.err >&5
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028330 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28332 { (case "(($ac_try" in
28333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28334 *) ac_try_echo=$ac_try;;
28335esac
28336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28337 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028338 ac_status=$?
28339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340 (exit $ac_status); }; } &&
28341 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028342 { (case "(($ac_try" in
28343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28344 *) ac_try_echo=$ac_try;;
28345esac
28346eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28347 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028348 ac_status=$?
28349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28350 (exit $ac_status); }; }; then
28351 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028352else
28353 echo "$as_me: failed program was:" >&5
28354sed 's/^/| /' conftest.$ac_ext >&5
28355
Reid Spencera773bd52006-08-04 18:18:08 +000028356 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028357fi
Reid Spencera773bd52006-08-04 18:18:08 +000028358
28359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028360fi
Reid Spencera773bd52006-08-04 18:18:08 +000028361{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28362echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028363if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028364
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028365cat >>confdefs.h <<\_ACEOF
28366#define TIME_WITH_SYS_TIME 1
28367_ACEOF
28368
28369fi
28370
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028371
Reid Spencer59473af2004-12-25 07:31:29 +000028372
28373
28374
28375
28376
28377
28378for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28379do
28380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028381if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386fi
Reid Spencera773bd52006-08-04 18:18:08 +000028387ac_res=`eval echo '${'$as_ac_Header'}'`
28388 { echo "$as_me:$LINENO: result: $ac_res" >&5
28389echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028390else
28391 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028392{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28393echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028394cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028400$ac_includes_default
28401#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028402_ACEOF
28403rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028404if { (ac_try="$ac_compile"
28405case "(($ac_try" in
28406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28407 *) ac_try_echo=$ac_try;;
28408esac
28409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28410 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028411 ac_status=$?
28412 grep -v '^ *+' conftest.er1 >conftest.err
28413 rm -f conftest.er1
28414 cat conftest.err >&5
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28418 { (case "(($ac_try" in
28419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420 *) ac_try_echo=$ac_try;;
28421esac
28422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028424 ac_status=$?
28425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28426 (exit $ac_status); }; } &&
28427 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028428 { (case "(($ac_try" in
28429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430 *) ac_try_echo=$ac_try;;
28431esac
28432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028437 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028438else
28439 echo "$as_me: failed program was:" >&5
28440sed 's/^/| /' conftest.$ac_ext >&5
28441
Reid Spencera773bd52006-08-04 18:18:08 +000028442 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028443fi
Reid Spencera773bd52006-08-04 18:18:08 +000028444
28445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28447echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028448
Reid Spencer59473af2004-12-25 07:31:29 +000028449# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028450{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028452cat >conftest.$ac_ext <<_ACEOF
28453/* confdefs.h. */
28454_ACEOF
28455cat confdefs.h >>conftest.$ac_ext
28456cat >>conftest.$ac_ext <<_ACEOF
28457/* end confdefs.h. */
28458#include <$ac_header>
28459_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028460if { (ac_try="$ac_cpp conftest.$ac_ext"
28461case "(($ac_try" in
28462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28463 *) ac_try_echo=$ac_try;;
28464esac
28465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028467 ac_status=$?
28468 grep -v '^ *+' conftest.er1 >conftest.err
28469 rm -f conftest.er1
28470 cat conftest.err >&5
28471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28472 (exit $ac_status); } >/dev/null; then
28473 if test -s conftest.err; then
28474 ac_cpp_err=$ac_c_preproc_warn_flag
28475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28476 else
28477 ac_cpp_err=
28478 fi
28479else
28480 ac_cpp_err=yes
28481fi
28482if test -z "$ac_cpp_err"; then
28483 ac_header_preproc=yes
28484else
28485 echo "$as_me: failed program was:" >&5
28486sed 's/^/| /' conftest.$ac_ext >&5
28487
28488 ac_header_preproc=no
28489fi
Reid Spencera773bd52006-08-04 18:18:08 +000028490
Reid Spencer59473af2004-12-25 07:31:29 +000028491rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028492{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28493echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028494
28495# So? What about this header?
28496case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28497 yes:no: )
28498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28499echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28501echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28502 ac_header_preproc=yes
28503 ;;
28504 no:yes:* )
28505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28506echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28508echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28510echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28512echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28516echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028517 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028518## ----------------------------------- ##
28519## Report this to llvmbugs@cs.uiuc.edu ##
28520## ----------------------------------- ##
28521_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028522 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028523 ;;
28524esac
Reid Spencera773bd52006-08-04 18:18:08 +000028525{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028528 echo $ECHO_N "(cached) $ECHO_C" >&6
28529else
28530 eval "$as_ac_Header=\$ac_header_preproc"
28531fi
Reid Spencera773bd52006-08-04 18:18:08 +000028532ac_res=`eval echo '${'$as_ac_Header'}'`
28533 { echo "$as_me:$LINENO: result: $ac_res" >&5
28534echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028535
28536fi
Reid Spencer59473af2004-12-25 07:31:29 +000028537if test `eval echo '${'$as_ac_Header'}'` = yes; then
28538 cat >>confdefs.h <<_ACEOF
28539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028540_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028541
28542fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028543
Reid Spencer59473af2004-12-25 07:31:29 +000028544done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028545
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028546
28547
Reid Spencer59473af2004-12-25 07:31:29 +000028548
28549
28550
28551
Reid Spencercdb08a32006-06-05 16:11:07 +000028552for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028553do
28554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28556 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028559 echo $ECHO_N "(cached) $ECHO_C" >&6
28560fi
Reid Spencera773bd52006-08-04 18:18:08 +000028561ac_res=`eval echo '${'$as_ac_Header'}'`
28562 { echo "$as_me:$LINENO: result: $ac_res" >&5
28563echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028564else
28565 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028566{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28567echo $ECHO_N "checking $ac_header usability... $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$ac_includes_default
28575#include <$ac_header>
28576_ACEOF
28577rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028578if { (ac_try="$ac_compile"
28579case "(($ac_try" in
28580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28581 *) ac_try_echo=$ac_try;;
28582esac
28583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28584 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28592 { (case "(($ac_try" in
28593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594 *) ac_try_echo=$ac_try;;
28595esac
28596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028602 { (case "(($ac_try" in
28603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604 *) ac_try_echo=$ac_try;;
28605esac
28606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 ac_header_compiler=yes
28612else
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
Reid Spencera773bd52006-08-04 18:18:08 +000028616 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028617fi
Reid Spencera773bd52006-08-04 18:18:08 +000028618
28619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28620{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28621echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028622
28623# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028624{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028626cat >conftest.$ac_ext <<_ACEOF
28627/* confdefs.h. */
28628_ACEOF
28629cat confdefs.h >>conftest.$ac_ext
28630cat >>conftest.$ac_ext <<_ACEOF
28631/* end confdefs.h. */
28632#include <$ac_header>
28633_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028634if { (ac_try="$ac_cpp conftest.$ac_ext"
28635case "(($ac_try" in
28636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28637 *) ac_try_echo=$ac_try;;
28638esac
28639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028641 ac_status=$?
28642 grep -v '^ *+' conftest.er1 >conftest.err
28643 rm -f conftest.er1
28644 cat conftest.err >&5
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); } >/dev/null; then
28647 if test -s conftest.err; then
28648 ac_cpp_err=$ac_c_preproc_warn_flag
28649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28650 else
28651 ac_cpp_err=
28652 fi
28653else
28654 ac_cpp_err=yes
28655fi
28656if test -z "$ac_cpp_err"; then
28657 ac_header_preproc=yes
28658else
28659 echo "$as_me: failed program was:" >&5
28660sed 's/^/| /' conftest.$ac_ext >&5
28661
28662 ac_header_preproc=no
28663fi
Reid Spencera773bd52006-08-04 18:18:08 +000028664
Reid Spencer59473af2004-12-25 07:31:29 +000028665rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028666{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28667echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028668
28669# So? What about this header?
28670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28671 yes:no: )
28672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28675echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28676 ac_header_preproc=yes
28677 ;;
28678 no:yes:* )
28679 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28680echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28681 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28682echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28683 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28684echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28685 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28686echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28688echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28689 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28690echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028691 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028692## ----------------------------------- ##
28693## Report this to llvmbugs@cs.uiuc.edu ##
28694## ----------------------------------- ##
28695_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028696 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028697 ;;
28698esac
Reid Spencera773bd52006-08-04 18:18:08 +000028699{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28701if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028702 echo $ECHO_N "(cached) $ECHO_C" >&6
28703else
28704 eval "$as_ac_Header=\$ac_header_preproc"
28705fi
Reid Spencera773bd52006-08-04 18:18:08 +000028706ac_res=`eval echo '${'$as_ac_Header'}'`
28707 { echo "$as_me:$LINENO: result: $ac_res" >&5
28708echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028709
28710fi
28711if test `eval echo '${'$as_ac_Header'}'` = yes; then
28712 cat >>confdefs.h <<_ACEOF
28713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28714_ACEOF
28715
28716fi
28717
28718done
28719
28720
28721
28722
28723
28724
Reid Spencercdb08a32006-06-05 16:11:07 +000028725for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028726do
28727as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028728if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28730echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28731if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028732 echo $ECHO_N "(cached) $ECHO_C" >&6
28733fi
Reid Spencera773bd52006-08-04 18:18:08 +000028734ac_res=`eval echo '${'$as_ac_Header'}'`
28735 { echo "$as_me:$LINENO: result: $ac_res" >&5
28736echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028737else
28738 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028739{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028741cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
28747$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028748#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028749_ACEOF
28750rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028759 grep -v '^ *+' conftest.er1 >conftest.err
28760 rm -f conftest.er1
28761 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28765 { (case "(($ac_try" in
28766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767 *) ac_try_echo=$ac_try;;
28768esac
28769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028771 ac_status=$?
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); }; } &&
28774 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028775 { (case "(($ac_try" in
28776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777 *) ac_try_echo=$ac_try;;
28778esac
28779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28780 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
28784 ac_header_compiler=yes
28785else
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
Reid Spencera773bd52006-08-04 18:18:08 +000028789 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028790fi
Reid Spencera773bd52006-08-04 18:18:08 +000028791
28792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28793{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028795
28796# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028797{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028799cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028800/* confdefs.h. */
28801_ACEOF
28802cat confdefs.h >>conftest.$ac_ext
28803cat >>conftest.$ac_ext <<_ACEOF
28804/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028805#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028806_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028807if { (ac_try="$ac_cpp conftest.$ac_ext"
28808case "(($ac_try" in
28809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810 *) ac_try_echo=$ac_try;;
28811esac
28812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028814 ac_status=$?
28815 grep -v '^ *+' conftest.er1 >conftest.err
28816 rm -f conftest.er1
28817 cat conftest.err >&5
28818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819 (exit $ac_status); } >/dev/null; then
28820 if test -s conftest.err; then
28821 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028823 else
28824 ac_cpp_err=
28825 fi
28826else
28827 ac_cpp_err=yes
28828fi
28829if test -z "$ac_cpp_err"; then
28830 ac_header_preproc=yes
28831else
28832 echo "$as_me: failed program was:" >&5
28833sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ac_header_preproc=no
28836fi
Reid Spencera773bd52006-08-04 18:18:08 +000028837
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028838rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028839{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28840echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028841
28842# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028843case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28844 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28846echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28848echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028849 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028850 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028851 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28853echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28855echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28857echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28859echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28861echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28863echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028864 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028865## ----------------------------------- ##
28866## Report this to llvmbugs@cs.uiuc.edu ##
28867## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028868_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028869 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028870 ;;
28871esac
Reid Spencera773bd52006-08-04 18:18:08 +000028872{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28874if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028875 echo $ECHO_N "(cached) $ECHO_C" >&6
28876else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028877 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028878fi
Reid Spencera773bd52006-08-04 18:18:08 +000028879ac_res=`eval echo '${'$as_ac_Header'}'`
28880 { echo "$as_me:$LINENO: result: $ac_res" >&5
28881echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028882
28883fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028884if test `eval echo '${'$as_ac_Header'}'` = yes; then
28885 cat >>confdefs.h <<_ACEOF
28886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028887_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028888
28889fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028890
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028891done
28892
John Criswell7ed43ad2004-07-19 16:12:29 +000028893
Reid Spencercdb08a32006-06-05 16:11:07 +000028894
Reid Spencera6d990a2006-09-14 06:17:21 +000028895
28896for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028897do
28898as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000028903 echo $ECHO_N "(cached) $ECHO_C" >&6
28904fi
Reid Spencera773bd52006-08-04 18:18:08 +000028905ac_res=`eval echo '${'$as_ac_Header'}'`
28906 { echo "$as_me:$LINENO: result: $ac_res" >&5
28907echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028908else
28909 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028910{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028912cat >conftest.$ac_ext <<_ACEOF
28913/* confdefs.h. */
28914_ACEOF
28915cat confdefs.h >>conftest.$ac_ext
28916cat >>conftest.$ac_ext <<_ACEOF
28917/* end confdefs.h. */
28918$ac_includes_default
28919#include <$ac_header>
28920_ACEOF
28921rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028922if { (ac_try="$ac_compile"
28923case "(($ac_try" in
28924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28925 *) ac_try_echo=$ac_try;;
28926esac
28927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28928 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028929 ac_status=$?
28930 grep -v '^ *+' conftest.er1 >conftest.err
28931 rm -f conftest.er1
28932 cat conftest.err >&5
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28936 { (case "(($ac_try" in
28937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28938 *) ac_try_echo=$ac_try;;
28939esac
28940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28941 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028942 ac_status=$?
28943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28944 (exit $ac_status); }; } &&
28945 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028946 { (case "(($ac_try" in
28947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28948 *) ac_try_echo=$ac_try;;
28949esac
28950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28951 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028952 ac_status=$?
28953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28954 (exit $ac_status); }; }; then
28955 ac_header_compiler=yes
28956else
28957 echo "$as_me: failed program was:" >&5
28958sed 's/^/| /' conftest.$ac_ext >&5
28959
Reid Spencera773bd52006-08-04 18:18:08 +000028960 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028961fi
Reid Spencera773bd52006-08-04 18:18:08 +000028962
28963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28964{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28965echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028966
28967# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028968{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28969echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028970cat >conftest.$ac_ext <<_ACEOF
28971/* confdefs.h. */
28972_ACEOF
28973cat confdefs.h >>conftest.$ac_ext
28974cat >>conftest.$ac_ext <<_ACEOF
28975/* end confdefs.h. */
28976#include <$ac_header>
28977_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028978if { (ac_try="$ac_cpp conftest.$ac_ext"
28979case "(($ac_try" in
28980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981 *) ac_try_echo=$ac_try;;
28982esac
28983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028985 ac_status=$?
28986 grep -v '^ *+' conftest.er1 >conftest.err
28987 rm -f conftest.er1
28988 cat conftest.err >&5
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); } >/dev/null; then
28991 if test -s conftest.err; then
28992 ac_cpp_err=$ac_c_preproc_warn_flag
28993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28994 else
28995 ac_cpp_err=
28996 fi
28997else
28998 ac_cpp_err=yes
28999fi
29000if test -z "$ac_cpp_err"; then
29001 ac_header_preproc=yes
29002else
29003 echo "$as_me: failed program was:" >&5
29004sed 's/^/| /' conftest.$ac_ext >&5
29005
29006 ac_header_preproc=no
29007fi
Reid Spencera773bd52006-08-04 18:18:08 +000029008
Chris Lattner0b142592005-11-14 06:57:34 +000029009rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029010{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29011echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029012
29013# So? What about this header?
29014case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29015 yes:no: )
29016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29017echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29019echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29020 ac_header_preproc=yes
29021 ;;
29022 no:yes:* )
29023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29028echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29030echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29032echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29034echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029035 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029036## ----------------------------------- ##
29037## Report this to llvmbugs@cs.uiuc.edu ##
29038## ----------------------------------- ##
29039_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029040 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029041 ;;
29042esac
Reid Spencera773bd52006-08-04 18:18:08 +000029043{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29045if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029046 echo $ECHO_N "(cached) $ECHO_C" >&6
29047else
29048 eval "$as_ac_Header=\$ac_header_preproc"
29049fi
Reid Spencera773bd52006-08-04 18:18:08 +000029050ac_res=`eval echo '${'$as_ac_Header'}'`
29051 { echo "$as_me:$LINENO: result: $ac_res" >&5
29052echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029053
29054fi
29055if test `eval echo '${'$as_ac_Header'}'` = yes; then
29056 cat >>confdefs.h <<_ACEOF
29057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29058_ACEOF
29059
29060fi
29061
29062done
29063
Reid Spencer0a262ba2005-08-24 10:07:20 +000029064if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029065 if test "${ac_cv_header_pthread_h+set}" = set; then
29066 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29067echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29068if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029069 echo $ECHO_N "(cached) $ECHO_C" >&6
29070fi
Reid Spencer1000b732006-12-01 00:37:14 +000029071{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29072echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029073else
29074 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029075{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29076echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029077cat >conftest.$ac_ext <<_ACEOF
29078/* confdefs.h. */
29079_ACEOF
29080cat confdefs.h >>conftest.$ac_ext
29081cat >>conftest.$ac_ext <<_ACEOF
29082/* end confdefs.h. */
29083$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029084#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029085_ACEOF
29086rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029087if { (ac_try="$ac_compile"
29088case "(($ac_try" in
29089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090 *) ac_try_echo=$ac_try;;
29091esac
29092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029094 ac_status=$?
29095 grep -v '^ *+' conftest.er1 >conftest.err
29096 rm -f conftest.er1
29097 cat conftest.err >&5
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29101 { (case "(($ac_try" in
29102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29103 *) ac_try_echo=$ac_try;;
29104esac
29105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29106 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029107 ac_status=$?
29108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); }; } &&
29110 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029111 { (case "(($ac_try" in
29112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113 *) ac_try_echo=$ac_try;;
29114esac
29115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ac_header_compiler=yes
29121else
29122 echo "$as_me: failed program was:" >&5
29123sed 's/^/| /' conftest.$ac_ext >&5
29124
Reid Spencera773bd52006-08-04 18:18:08 +000029125 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029126fi
Reid Spencera773bd52006-08-04 18:18:08 +000029127
29128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29129{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29130echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029131
29132# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029133{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29134echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029135cat >conftest.$ac_ext <<_ACEOF
29136/* confdefs.h. */
29137_ACEOF
29138cat confdefs.h >>conftest.$ac_ext
29139cat >>conftest.$ac_ext <<_ACEOF
29140/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029141#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029142_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029143if { (ac_try="$ac_cpp conftest.$ac_ext"
29144case "(($ac_try" in
29145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146 *) ac_try_echo=$ac_try;;
29147esac
29148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029150 ac_status=$?
29151 grep -v '^ *+' conftest.er1 >conftest.err
29152 rm -f conftest.er1
29153 cat conftest.err >&5
29154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29155 (exit $ac_status); } >/dev/null; then
29156 if test -s conftest.err; then
29157 ac_cpp_err=$ac_c_preproc_warn_flag
29158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29159 else
29160 ac_cpp_err=
29161 fi
29162else
29163 ac_cpp_err=yes
29164fi
29165if test -z "$ac_cpp_err"; then
29166 ac_header_preproc=yes
29167else
29168 echo "$as_me: failed program was:" >&5
29169sed 's/^/| /' conftest.$ac_ext >&5
29170
29171 ac_header_preproc=no
29172fi
Reid Spencera773bd52006-08-04 18:18:08 +000029173
Reid Spencer0a262ba2005-08-24 10:07:20 +000029174rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029175{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29176echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029177
29178# So? What about this header?
29179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29180 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029181 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29182echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29183 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29184echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029185 ac_header_preproc=yes
29186 ;;
29187 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029188 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29189echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29190 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29191echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29192 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29193echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29194 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29195echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29196 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29197echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29198 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29199echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029200 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029201## ----------------------------------- ##
29202## Report this to llvmbugs@cs.uiuc.edu ##
29203## ----------------------------------- ##
29204_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029205 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029206 ;;
29207esac
Reid Spencer1000b732006-12-01 00:37:14 +000029208{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29209echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29210if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029211 echo $ECHO_N "(cached) $ECHO_C" >&6
29212else
Reid Spencer1000b732006-12-01 00:37:14 +000029213 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029214fi
Reid Spencer1000b732006-12-01 00:37:14 +000029215{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29216echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029217
29218fi
Reid Spencer1000b732006-12-01 00:37:14 +000029219if test $ac_cv_header_pthread_h = yes; then
29220 HAVE_PTHREAD=1
29221
29222else
29223 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029224
29225fi
29226
Reid Spencer1000b732006-12-01 00:37:14 +000029227
29228else
29229 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029230
29231fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029232
29233
Reid Spencerb2ed05262006-11-03 18:04:08 +000029234
29235 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29236echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29237if test "${ac_cv_huge_val_sanity+set}" = set; then
29238 echo $ECHO_N "(cached) $ECHO_C" >&6
29239else
29240
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029241 ac_ext=cpp
29242ac_cpp='$CXXCPP $CPPFLAGS'
29243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029246
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029247 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029248 if test "$cross_compiling" = yes; then
29249 ac_cv_huge_val_sanity=yes
29250else
29251 cat >conftest.$ac_ext <<_ACEOF
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257#include <math.h>
29258int
29259main ()
29260{
29261double x = HUGE_VAL; return x != x;
29262 ;
29263 return 0;
29264}
29265_ACEOF
29266rm -f conftest$ac_exeext
29267if { (ac_try="$ac_link"
29268case "(($ac_try" in
29269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29270 *) ac_try_echo=$ac_try;;
29271esac
29272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29273 (eval "$ac_link") 2>&5
29274 ac_status=$?
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29277 { (case "(($ac_try" in
29278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29279 *) ac_try_echo=$ac_try;;
29280esac
29281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29282 (eval "$ac_try") 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_huge_val_sanity=yes
29287else
29288 echo "$as_me: program exited with status $ac_status" >&5
29289echo "$as_me: failed program was:" >&5
29290sed 's/^/| /' conftest.$ac_ext >&5
29291
29292( exit $ac_status )
29293ac_cv_huge_val_sanity=no
29294fi
29295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29296fi
29297
29298
29299 ac_ext=c
29300ac_cpp='$CPP $CPPFLAGS'
29301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29303ac_compiler_gnu=$ac_cv_c_compiler_gnu
29304
29305
29306fi
29307{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29308echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29309 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29310
29311
Reid Spencera773bd52006-08-04 18:18:08 +000029312{ echo "$as_me:$LINENO: checking for pid_t" >&5
29313echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029314if test "${ac_cv_type_pid_t+set}" = set; then
29315 echo $ECHO_N "(cached) $ECHO_C" >&6
29316else
29317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029318/* confdefs.h. */
29319_ACEOF
29320cat confdefs.h >>conftest.$ac_ext
29321cat >>conftest.$ac_ext <<_ACEOF
29322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029323$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029324typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029325int
29326main ()
29327{
Reid Spencera773bd52006-08-04 18:18:08 +000029328if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029329 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029330if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029331 return 0;
29332 ;
29333 return 0;
29334}
29335_ACEOF
29336rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029337if { (ac_try="$ac_compile"
29338case "(($ac_try" in
29339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29340 *) ac_try_echo=$ac_try;;
29341esac
29342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29343 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029344 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029345 grep -v '^ *+' conftest.er1 >conftest.err
29346 rm -f conftest.er1
29347 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29349 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29351 { (case "(($ac_try" in
29352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29353 *) ac_try_echo=$ac_try;;
29354esac
29355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29356 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029357 ac_status=$?
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; } &&
29360 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029361 { (case "(($ac_try" in
29362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363 *) ac_try_echo=$ac_try;;
29364esac
29365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29370 ac_cv_type_pid_t=yes
29371else
29372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029373sed 's/^/| /' conftest.$ac_ext >&5
29374
Reid Spencera773bd52006-08-04 18:18:08 +000029375 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029376fi
Reid Spencera773bd52006-08-04 18:18:08 +000029377
29378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029379fi
Reid Spencera773bd52006-08-04 18:18:08 +000029380{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29381echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029382if test $ac_cv_type_pid_t = yes; then
29383 :
29384else
29385
29386cat >>confdefs.h <<_ACEOF
29387#define pid_t int
29388_ACEOF
29389
29390fi
29391
Reid Spencera773bd52006-08-04 18:18:08 +000029392{ echo "$as_me:$LINENO: checking for size_t" >&5
29393echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029394if test "${ac_cv_type_size_t+set}" = set; then
29395 echo $ECHO_N "(cached) $ECHO_C" >&6
29396else
29397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029398/* confdefs.h. */
29399_ACEOF
29400cat confdefs.h >>conftest.$ac_ext
29401cat >>conftest.$ac_ext <<_ACEOF
29402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029403$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029404typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029405int
29406main ()
29407{
Reid Spencera773bd52006-08-04 18:18:08 +000029408if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029409 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029410if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029411 return 0;
29412 ;
29413 return 0;
29414}
29415_ACEOF
29416rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029417if { (ac_try="$ac_compile"
29418case "(($ac_try" in
29419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420 *) ac_try_echo=$ac_try;;
29421esac
29422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029425 grep -v '^ *+' conftest.er1 >conftest.err
29426 rm -f conftest.er1
29427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29431 { (case "(($ac_try" in
29432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433 *) ac_try_echo=$ac_try;;
29434esac
29435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029441 { (case "(($ac_try" in
29442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443 *) ac_try_echo=$ac_try;;
29444esac
29445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_type_size_t=yes
29451else
29452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029453sed 's/^/| /' conftest.$ac_ext >&5
29454
Reid Spencera773bd52006-08-04 18:18:08 +000029455 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029456fi
Reid Spencera773bd52006-08-04 18:18:08 +000029457
29458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029459fi
Reid Spencera773bd52006-08-04 18:18:08 +000029460{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29461echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029462if test $ac_cv_type_size_t = yes; then
29463 :
29464else
29465
29466cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029467#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029468_ACEOF
29469
29470fi
29471
Reid Spencera773bd52006-08-04 18:18:08 +000029472{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29473echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029474if test "${ac_cv_type_signal+set}" = set; then
29475 echo $ECHO_N "(cached) $ECHO_C" >&6
29476else
29477 cat >conftest.$ac_ext <<_ACEOF
29478/* confdefs.h. */
29479_ACEOF
29480cat confdefs.h >>conftest.$ac_ext
29481cat >>conftest.$ac_ext <<_ACEOF
29482/* end confdefs.h. */
29483#include <sys/types.h>
29484#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029485
29486int
29487main ()
29488{
Reid Spencera773bd52006-08-04 18:18:08 +000029489return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029490 ;
29491 return 0;
29492}
29493_ACEOF
29494rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029495if { (ac_try="$ac_compile"
29496case "(($ac_try" in
29497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29498 *) ac_try_echo=$ac_try;;
29499esac
29500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29501 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029502 ac_status=$?
29503 grep -v '^ *+' conftest.er1 >conftest.err
29504 rm -f conftest.er1
29505 cat conftest.err >&5
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29509 { (case "(($ac_try" in
29510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29511 *) ac_try_echo=$ac_try;;
29512esac
29513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29514 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; } &&
29518 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029519 { (case "(($ac_try" in
29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521 *) ac_try_echo=$ac_try;;
29522esac
29523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029525 ac_status=$?
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029528 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029529else
29530 echo "$as_me: failed program was:" >&5
29531sed 's/^/| /' conftest.$ac_ext >&5
29532
Reid Spencera773bd52006-08-04 18:18:08 +000029533 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029534fi
Reid Spencera773bd52006-08-04 18:18:08 +000029535
29536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029537fi
Reid Spencera773bd52006-08-04 18:18:08 +000029538{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29539echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029540
29541cat >>confdefs.h <<_ACEOF
29542#define RETSIGTYPE $ac_cv_type_signal
29543_ACEOF
29544
29545
Reid Spencera773bd52006-08-04 18:18:08 +000029546{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29547echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029548if test "${ac_cv_struct_tm+set}" = set; then
29549 echo $ECHO_N "(cached) $ECHO_C" >&6
29550else
29551 cat >conftest.$ac_ext <<_ACEOF
29552/* confdefs.h. */
29553_ACEOF
29554cat confdefs.h >>conftest.$ac_ext
29555cat >>conftest.$ac_ext <<_ACEOF
29556/* end confdefs.h. */
29557#include <sys/types.h>
29558#include <time.h>
29559
29560int
29561main ()
29562{
29563struct tm *tp; tp->tm_sec;
29564 ;
29565 return 0;
29566}
29567_ACEOF
29568rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029569if { (ac_try="$ac_compile"
29570case "(($ac_try" in
29571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29572 *) ac_try_echo=$ac_try;;
29573esac
29574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29575 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029576 ac_status=$?
29577 grep -v '^ *+' conftest.er1 >conftest.err
29578 rm -f conftest.er1
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29583 { (case "(($ac_try" in
29584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29585 *) ac_try_echo=$ac_try;;
29586esac
29587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29588 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029589 ac_status=$?
29590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591 (exit $ac_status); }; } &&
29592 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029593 { (case "(($ac_try" in
29594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29595 *) ac_try_echo=$ac_try;;
29596esac
29597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29598 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029599 ac_status=$?
29600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601 (exit $ac_status); }; }; then
29602 ac_cv_struct_tm=time.h
29603else
29604 echo "$as_me: failed program was:" >&5
29605sed 's/^/| /' conftest.$ac_ext >&5
29606
Reid Spencera773bd52006-08-04 18:18:08 +000029607 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029608fi
Reid Spencera773bd52006-08-04 18:18:08 +000029609
29610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029611fi
Reid Spencera773bd52006-08-04 18:18:08 +000029612{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29613echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029614if test $ac_cv_struct_tm = sys/time.h; then
29615
29616cat >>confdefs.h <<\_ACEOF
29617#define TM_IN_SYS_TIME 1
29618_ACEOF
29619
29620fi
29621
Reid Spencera773bd52006-08-04 18:18:08 +000029622{ echo "$as_me:$LINENO: checking for int64_t" >&5
29623echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029624if test "${ac_cv_type_int64_t+set}" = set; then
29625 echo $ECHO_N "(cached) $ECHO_C" >&6
29626else
29627 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029628/* confdefs.h. */
29629_ACEOF
29630cat confdefs.h >>conftest.$ac_ext
29631cat >>conftest.$ac_ext <<_ACEOF
29632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029633$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029634typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029635int
29636main ()
29637{
Reid Spencera773bd52006-08-04 18:18:08 +000029638if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029639 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029640if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029641 return 0;
29642 ;
29643 return 0;
29644}
29645_ACEOF
29646rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029647if { (ac_try="$ac_compile"
29648case "(($ac_try" in
29649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650 *) ac_try_echo=$ac_try;;
29651esac
29652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029655 grep -v '^ *+' conftest.er1 >conftest.err
29656 rm -f conftest.er1
29657 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29661 { (case "(($ac_try" in
29662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29663 *) ac_try_echo=$ac_try;;
29664esac
29665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29666 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029667 ac_status=$?
29668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29669 (exit $ac_status); }; } &&
29670 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029671 { (case "(($ac_try" in
29672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29673 *) ac_try_echo=$ac_try;;
29674esac
29675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29676 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; }; then
29680 ac_cv_type_int64_t=yes
29681else
29682 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029683sed 's/^/| /' conftest.$ac_ext >&5
29684
Reid Spencera773bd52006-08-04 18:18:08 +000029685 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029686fi
Reid Spencera773bd52006-08-04 18:18:08 +000029687
29688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029689fi
Reid Spencera773bd52006-08-04 18:18:08 +000029690{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29691echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029692if test $ac_cv_type_int64_t = yes; then
29693
29694cat >>confdefs.h <<_ACEOF
29695#define HAVE_INT64_T 1
29696_ACEOF
29697
29698
29699else
29700 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29701echo "$as_me: error: Type int64_t required but not found" >&2;}
29702 { (exit 1); exit 1; }; }
29703fi
29704
Reid Spencera773bd52006-08-04 18:18:08 +000029705{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29706echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029707if test "${ac_cv_type_uint64_t+set}" = set; then
29708 echo $ECHO_N "(cached) $ECHO_C" >&6
29709else
29710 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029711/* confdefs.h. */
29712_ACEOF
29713cat confdefs.h >>conftest.$ac_ext
29714cat >>conftest.$ac_ext <<_ACEOF
29715/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029716$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029717typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029718int
29719main ()
29720{
Reid Spencera773bd52006-08-04 18:18:08 +000029721if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029722 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029723if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029724 return 0;
29725 ;
29726 return 0;
29727}
29728_ACEOF
29729rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029730if { (ac_try="$ac_compile"
29731case "(($ac_try" in
29732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29733 *) ac_try_echo=$ac_try;;
29734esac
29735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29736 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029737 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029738 grep -v '^ *+' conftest.er1 >conftest.err
29739 rm -f conftest.er1
29740 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29744 { (case "(($ac_try" in
29745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746 *) ac_try_echo=$ac_try;;
29747esac
29748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029750 ac_status=$?
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); }; } &&
29753 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029754 { (case "(($ac_try" in
29755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756 *) ac_try_echo=$ac_try;;
29757esac
29758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029760 ac_status=$?
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); }; }; then
29763 ac_cv_type_uint64_t=yes
29764else
29765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029766sed 's/^/| /' conftest.$ac_ext >&5
29767
Reid Spencera773bd52006-08-04 18:18:08 +000029768 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029769fi
Reid Spencera773bd52006-08-04 18:18:08 +000029770
29771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029772fi
Reid Spencera773bd52006-08-04 18:18:08 +000029773{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29774echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029775if test $ac_cv_type_uint64_t = yes; then
29776
29777cat >>confdefs.h <<_ACEOF
29778#define HAVE_UINT64_T 1
29779_ACEOF
29780
29781
29782else
Reid Spencera773bd52006-08-04 18:18:08 +000029783 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29784echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029785if test "${ac_cv_type_u_int64_t+set}" = set; then
29786 echo $ECHO_N "(cached) $ECHO_C" >&6
29787else
29788 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029789/* confdefs.h. */
29790_ACEOF
29791cat confdefs.h >>conftest.$ac_ext
29792cat >>conftest.$ac_ext <<_ACEOF
29793/* end confdefs.h. */
29794$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029795typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029796int
29797main ()
29798{
Reid Spencera773bd52006-08-04 18:18:08 +000029799if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029800 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029801if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029802 return 0;
29803 ;
29804 return 0;
29805}
29806_ACEOF
29807rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029808if { (ac_try="$ac_compile"
29809case "(($ac_try" in
29810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29811 *) ac_try_echo=$ac_try;;
29812esac
29813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29814 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029815 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029816 grep -v '^ *+' conftest.er1 >conftest.err
29817 rm -f conftest.er1
29818 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29822 { (case "(($ac_try" in
29823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29824 *) ac_try_echo=$ac_try;;
29825esac
29826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29827 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; } &&
29831 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029832 { (case "(($ac_try" in
29833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29834 *) ac_try_echo=$ac_try;;
29835esac
29836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29837 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029838 ac_status=$?
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; }; then
29841 ac_cv_type_u_int64_t=yes
29842else
29843 echo "$as_me: failed program was:" >&5
29844sed 's/^/| /' conftest.$ac_ext >&5
29845
Reid Spencera773bd52006-08-04 18:18:08 +000029846 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029847fi
Reid Spencera773bd52006-08-04 18:18:08 +000029848
29849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029850fi
Reid Spencera773bd52006-08-04 18:18:08 +000029851{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29852echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029853if test $ac_cv_type_u_int64_t = yes; then
29854
29855cat >>confdefs.h <<_ACEOF
29856#define HAVE_U_INT64_T 1
29857_ACEOF
29858
29859
Misha Brukmanceca9042004-09-02 23:02:30 +000029860else
29861 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29862echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29863 { (exit 1); exit 1; }; }
29864fi
29865
John Criswell679ff312004-09-02 18:44:44 +000029866fi
29867
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029868
29869
29870
29871
29872
29873
29874
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029875
29876
Reid Spencerdf3be822006-01-23 08:15:53 +000029877for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029878do
29879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029880{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29882if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029886/* confdefs.h. */
29887_ACEOF
29888cat confdefs.h >>conftest.$ac_ext
29889cat >>conftest.$ac_ext <<_ACEOF
29890/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029891/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29893#define $ac_func innocuous_$ac_func
29894
29895/* System header to define __stub macros and hopefully few prototypes,
29896 which can conflict with char $ac_func (); below.
29897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29898 <limits.h> exists even on freestanding compilers. */
29899
29900#ifdef __STDC__
29901# include <limits.h>
29902#else
29903# include <assert.h>
29904#endif
29905
29906#undef $ac_func
29907
Reid Spencera773bd52006-08-04 18:18:08 +000029908/* Override any GCC internal prototype to avoid an error.
29909 Use char because int might match the return type of a GCC
29910 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029911#ifdef __cplusplus
29912extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029913#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029914char $ac_func ();
29915/* The GNU C library defines this for functions which it implements
29916 to always fail with ENOSYS. Some functions are actually named
29917 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029918#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029919choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029920#endif
John Criswell7a73b802003-06-30 21:59:07 +000029921
John Criswell7a73b802003-06-30 21:59:07 +000029922int
29923main ()
29924{
Reid Spencera773bd52006-08-04 18:18:08 +000029925return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029926 ;
29927 return 0;
29928}
29929_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029930rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029931if { (ac_try="$ac_link"
29932case "(($ac_try" in
29933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934 *) ac_try_echo=$ac_try;;
29935esac
29936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029939 grep -v '^ *+' conftest.er1 >conftest.err
29940 rm -f conftest.er1
29941 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29945 { (case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948esac
29949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29950 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029954 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029955 { (case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29958esac
29959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29960 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029961 ac_status=$?
29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29963 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029964 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029965else
29966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029967sed 's/^/| /' conftest.$ac_ext >&5
29968
Reid Spencera773bd52006-08-04 18:18:08 +000029969 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029970fi
Reid Spencera773bd52006-08-04 18:18:08 +000029971
29972rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029973 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029974fi
Reid Spencera773bd52006-08-04 18:18:08 +000029975ac_res=`eval echo '${'$as_ac_var'}'`
29976 { echo "$as_me:$LINENO: result: $ac_res" >&5
29977echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029978if test `eval echo '${'$as_ac_var'}'` = yes; then
29979 cat >>confdefs.h <<_ACEOF
29980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029981_ACEOF
29982
29983fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029984done
John Criswell7a73b802003-06-30 21:59:07 +000029985
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029986
29987
29988
Reid Spencer6af3d262004-12-15 04:01:48 +000029989
29990
Reid Spencer59473af2004-12-25 07:31:29 +000029991
Reid Spencerdf3be822006-01-23 08:15:53 +000029992for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29993do
29994as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029995{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29996echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029998 echo $ECHO_N "(cached) $ECHO_C" >&6
29999else
30000 cat >conftest.$ac_ext <<_ACEOF
30001/* confdefs.h. */
30002_ACEOF
30003cat confdefs.h >>conftest.$ac_ext
30004cat >>conftest.$ac_ext <<_ACEOF
30005/* end confdefs.h. */
30006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30008#define $ac_func innocuous_$ac_func
30009
30010/* System header to define __stub macros and hopefully few prototypes,
30011 which can conflict with char $ac_func (); below.
30012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013 <limits.h> exists even on freestanding compilers. */
30014
30015#ifdef __STDC__
30016# include <limits.h>
30017#else
30018# include <assert.h>
30019#endif
30020
30021#undef $ac_func
30022
Reid Spencera773bd52006-08-04 18:18:08 +000030023/* Override any GCC internal prototype to avoid an error.
30024 Use char because int might match the return type of a GCC
30025 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000030026#ifdef __cplusplus
30027extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030028#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030029char $ac_func ();
30030/* The GNU C library defines this for functions which it implements
30031 to always fail with ENOSYS. Some functions are actually named
30032 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030033#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030034choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030035#endif
30036
30037int
30038main ()
30039{
Reid Spencera773bd52006-08-04 18:18:08 +000030040return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030041 ;
30042 return 0;
30043}
30044_ACEOF
30045rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030046if { (ac_try="$ac_link"
30047case "(($ac_try" in
30048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049 *) ac_try_echo=$ac_try;;
30050esac
30051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030053 ac_status=$?
30054 grep -v '^ *+' conftest.er1 >conftest.err
30055 rm -f conftest.er1
30056 cat conftest.err >&5
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30060 { (case "(($ac_try" in
30061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30062 *) ac_try_echo=$ac_try;;
30063esac
30064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30065 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030066 ac_status=$?
30067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068 (exit $ac_status); }; } &&
30069 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030070 { (case "(($ac_try" in
30071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30072 *) ac_try_echo=$ac_try;;
30073esac
30074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30075 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030076 ac_status=$?
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 eval "$as_ac_var=yes"
30080else
30081 echo "$as_me: failed program was:" >&5
30082sed 's/^/| /' conftest.$ac_ext >&5
30083
Reid Spencera773bd52006-08-04 18:18:08 +000030084 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030085fi
Reid Spencera773bd52006-08-04 18:18:08 +000030086
30087rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030088 conftest$ac_exeext conftest.$ac_ext
30089fi
Reid Spencera773bd52006-08-04 18:18:08 +000030090ac_res=`eval echo '${'$as_ac_var'}'`
30091 { echo "$as_me:$LINENO: result: $ac_res" >&5
30092echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030093if test `eval echo '${'$as_ac_var'}'` = yes; then
30094 cat >>confdefs.h <<_ACEOF
30095#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30096_ACEOF
30097
30098fi
30099done
30100
30101
30102
30103
30104
30105
30106
30107
30108for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030109do
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 Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +000030142#ifdef __cplusplus
30143extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030144#endif
Reid Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +000030150choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030151#endif
30152
30153int
30154main ()
30155{
Reid Spencera773bd52006-08-04 18:18:08 +000030156return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +000030201fi
Reid Spencera773bd52006-08-04 18:18:08 +000030202
30203rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +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 Spencer7931a782004-12-27 06:15:02 +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
Reid Spencerba46ca32004-12-31 05:49:15 +000030218
30219
Chris Lattner0b142592005-11-14 06:57:34 +000030220
Chris Lattner511f11d2005-11-14 07:25:50 +000030221for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030222do
30223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030224{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30226if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030227 echo $ECHO_N "(cached) $ECHO_C" >&6
30228else
30229 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030230/* confdefs.h. */
30231_ACEOF
30232cat confdefs.h >>conftest.$ac_ext
30233cat >>conftest.$ac_ext <<_ACEOF
30234/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30237#define $ac_func innocuous_$ac_func
30238
30239/* System header to define __stub macros and hopefully few prototypes,
30240 which can conflict with char $ac_func (); below.
30241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30242 <limits.h> exists even on freestanding compilers. */
30243
30244#ifdef __STDC__
30245# include <limits.h>
30246#else
30247# include <assert.h>
30248#endif
30249
30250#undef $ac_func
30251
Reid Spencera773bd52006-08-04 18:18:08 +000030252/* Override any GCC internal prototype to avoid an error.
30253 Use char because int might match the return type of a GCC
30254 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030255#ifdef __cplusplus
30256extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030257#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030258char $ac_func ();
30259/* The GNU C library defines this for functions which it implements
30260 to always fail with ENOSYS. Some functions are actually named
30261 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030262#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030263choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030264#endif
John Criswell7a73b802003-06-30 21:59:07 +000030265
John Criswell7a73b802003-06-30 21:59:07 +000030266int
30267main ()
30268{
Reid Spencera773bd52006-08-04 18:18:08 +000030269return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030270 ;
30271 return 0;
30272}
30273_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030274rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030275if { (ac_try="$ac_link"
30276case "(($ac_try" in
30277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30278 *) ac_try_echo=$ac_try;;
30279esac
30280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30281 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030282 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030283 grep -v '^ *+' conftest.er1 >conftest.err
30284 rm -f conftest.er1
30285 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30289 { (case "(($ac_try" in
30290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30291 *) ac_try_echo=$ac_try;;
30292esac
30293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30294 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030295 ac_status=$?
30296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30297 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030298 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030299 { (case "(($ac_try" in
30300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30301 *) ac_try_echo=$ac_try;;
30302esac
30303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30304 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030305 ac_status=$?
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030308 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030309else
30310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030311sed 's/^/| /' conftest.$ac_ext >&5
30312
Reid Spencera773bd52006-08-04 18:18:08 +000030313 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030314fi
Reid Spencera773bd52006-08-04 18:18:08 +000030315
30316rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030317 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030318fi
Reid Spencera773bd52006-08-04 18:18:08 +000030319ac_res=`eval echo '${'$as_ac_var'}'`
30320 { echo "$as_me:$LINENO: result: $ac_res" >&5
30321echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030322if test `eval echo '${'$as_ac_var'}'` = yes; then
30323 cat >>confdefs.h <<_ACEOF
30324#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030325_ACEOF
30326
30327fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030328done
John Criswell7a73b802003-06-30 21:59:07 +000030329
Reid Spencercdb08a32006-06-05 16:11:07 +000030330
30331
30332
30333
Reid Spencerafa22e22006-12-10 23:29:19 +000030334for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030335do
30336as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030337{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30338echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030340 echo $ECHO_N "(cached) $ECHO_C" >&6
30341else
30342 cat >conftest.$ac_ext <<_ACEOF
30343/* confdefs.h. */
30344_ACEOF
30345cat confdefs.h >>conftest.$ac_ext
30346cat >>conftest.$ac_ext <<_ACEOF
30347/* end confdefs.h. */
30348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30350#define $ac_func innocuous_$ac_func
30351
30352/* System header to define __stub macros and hopefully few prototypes,
30353 which can conflict with char $ac_func (); below.
30354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30355 <limits.h> exists even on freestanding compilers. */
30356
30357#ifdef __STDC__
30358# include <limits.h>
30359#else
30360# include <assert.h>
30361#endif
30362
30363#undef $ac_func
30364
Reid Spencera773bd52006-08-04 18:18:08 +000030365/* Override any GCC internal prototype to avoid an error.
30366 Use char because int might match the return type of a GCC
30367 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030368#ifdef __cplusplus
30369extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030370#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030371char $ac_func ();
30372/* The GNU C library defines this for functions which it implements
30373 to always fail with ENOSYS. Some functions are actually named
30374 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030375#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030376choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030377#endif
30378
30379int
30380main ()
30381{
Reid Spencera773bd52006-08-04 18:18:08 +000030382return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030383 ;
30384 return 0;
30385}
30386_ACEOF
30387rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030388if { (ac_try="$ac_link"
30389case "(($ac_try" in
30390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391 *) ac_try_echo=$ac_try;;
30392esac
30393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030395 ac_status=$?
30396 grep -v '^ *+' conftest.er1 >conftest.err
30397 rm -f conftest.er1
30398 cat conftest.err >&5
30399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30402 { (case "(($ac_try" in
30403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30404 *) ac_try_echo=$ac_try;;
30405esac
30406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30407 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030408 ac_status=$?
30409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410 (exit $ac_status); }; } &&
30411 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030412 { (case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30415esac
30416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030418 ac_status=$?
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); }; }; then
30421 eval "$as_ac_var=yes"
30422else
30423 echo "$as_me: failed program was:" >&5
30424sed 's/^/| /' conftest.$ac_ext >&5
30425
Reid Spencera773bd52006-08-04 18:18:08 +000030426 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030427fi
Reid Spencera773bd52006-08-04 18:18:08 +000030428
30429rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030430 conftest$ac_exeext conftest.$ac_ext
30431fi
Reid Spencera773bd52006-08-04 18:18:08 +000030432ac_res=`eval echo '${'$as_ac_var'}'`
30433 { echo "$as_me:$LINENO: result: $ac_res" >&5
30434echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030435if test `eval echo '${'$as_ac_var'}'` = yes; then
30436 cat >>confdefs.h <<_ACEOF
30437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30438_ACEOF
30439
30440fi
30441done
30442
Reid Spencera773bd52006-08-04 18:18:08 +000030443{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30444echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030445if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030446 echo $ECHO_N "(cached) $ECHO_C" >&6
30447else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030448 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030449ac_cpp='$CPP $CPPFLAGS'
30450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30452ac_compiler_gnu=$ac_cv_c_compiler_gnu
30453
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030454 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030455 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030456else
30457 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030458
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030459 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030460_ACEOF
30461cat confdefs.h >>conftest.$ac_ext
30462cat >>conftest.$ac_ext <<_ACEOF
30463/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030464
John Criswella0137d32003-10-13 16:22:01 +000030465#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030466#include <stdlib.h>
30467
John Criswella0137d32003-10-13 16:22:01 +000030468int
30469main ()
30470{
30471
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472volatile double A, B;
30473char Buffer[100];
30474A = 1;
30475A /= 10.0;
30476sprintf(Buffer, "%a", A);
30477B = atof(Buffer);
30478if (A != B)
30479 return (1);
30480if (A != 0x1.999999999999ap-4)
30481 return (1);
30482return (0);
John Criswella0137d32003-10-13 16:22:01 +000030483 ;
30484 return 0;
30485}
30486_ACEOF
30487rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030488if { (ac_try="$ac_link"
30489case "(($ac_try" in
30490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30491 *) ac_try_echo=$ac_try;;
30492esac
30493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30494 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030498 { (case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30501esac
30502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030504 ac_status=$?
30505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30506 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030507 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030508else
30509 echo "$as_me: program exited with status $ac_status" >&5
30510echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
30513( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030514llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030515fi
Reid Spencera773bd52006-08-04 18:18:08 +000030516rm -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 +000030517fi
Reid Spencera773bd52006-08-04 18:18:08 +000030518
30519
Reid Spencer2706f8c2004-09-19 23:53:36 +000030520 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030521ac_cpp='$CPP $CPPFLAGS'
30522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30524ac_compiler_gnu=$ac_cv_c_compiler_gnu
30525
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030526fi
Reid Spencera773bd52006-08-04 18:18:08 +000030527{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30528echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030529 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030530
30531cat >>confdefs.h <<\_ACEOF
30532#define HAVE_PRINTF_A 1
30533_ACEOF
30534
Reid Spencer2706f8c2004-09-19 23:53:36 +000030535 fi
John Criswella0137d32003-10-13 16:22:01 +000030536
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030537# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30538# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030539{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30540echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030541if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
John Criswell0021c312004-02-13 21:57:29 +000030544 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030545/* confdefs.h. */
30546_ACEOF
30547cat confdefs.h >>conftest.$ac_ext
30548cat >>conftest.$ac_ext <<_ACEOF
30549/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030550#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030551int
30552main ()
30553{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030554char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030555 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030556 ;
30557 return 0;
30558}
30559_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030560rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030561if { (ac_try="$ac_link"
30562case "(($ac_try" in
30563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30564 *) ac_try_echo=$ac_try;;
30565esac
30566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30567 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030569 grep -v '^ *+' conftest.er1 >conftest.err
30570 rm -f conftest.er1
30571 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30575 { (case "(($ac_try" in
30576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30577 *) ac_try_echo=$ac_try;;
30578esac
30579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30580 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030581 ac_status=$?
30582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030584 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030585 { (case "(($ac_try" in
30586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30587 *) ac_try_echo=$ac_try;;
30588esac
30589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30590 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030591 ac_status=$?
30592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30593 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030594 ac_cv_working_alloca_h=yes
30595else
30596 echo "$as_me: failed program was:" >&5
30597sed 's/^/| /' conftest.$ac_ext >&5
30598
Reid Spencera773bd52006-08-04 18:18:08 +000030599 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030600fi
Reid Spencera773bd52006-08-04 18:18:08 +000030601
30602rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030603 conftest$ac_exeext conftest.$ac_ext
30604fi
Reid Spencera773bd52006-08-04 18:18:08 +000030605{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30606echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030607if test $ac_cv_working_alloca_h = yes; then
30608
30609cat >>confdefs.h <<\_ACEOF
30610#define HAVE_ALLOCA_H 1
30611_ACEOF
30612
30613fi
30614
Reid Spencera773bd52006-08-04 18:18:08 +000030615{ echo "$as_me:$LINENO: checking for alloca" >&5
30616echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030617if test "${ac_cv_func_alloca_works+set}" = set; then
30618 echo $ECHO_N "(cached) $ECHO_C" >&6
30619else
30620 cat >conftest.$ac_ext <<_ACEOF
30621/* confdefs.h. */
30622_ACEOF
30623cat confdefs.h >>conftest.$ac_ext
30624cat >>conftest.$ac_ext <<_ACEOF
30625/* end confdefs.h. */
30626#ifdef __GNUC__
30627# define alloca __builtin_alloca
30628#else
30629# ifdef _MSC_VER
30630# include <malloc.h>
30631# define alloca _alloca
30632# else
30633# if HAVE_ALLOCA_H
30634# include <alloca.h>
30635# else
30636# ifdef _AIX
30637 #pragma alloca
30638# else
30639# ifndef alloca /* predefined by HP cc +Olibcalls */
30640char *alloca ();
30641# endif
30642# endif
30643# endif
30644# endif
30645#endif
30646
30647int
30648main ()
30649{
30650char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030651 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030652 ;
30653 return 0;
30654}
30655_ACEOF
30656rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030657if { (ac_try="$ac_link"
30658case "(($ac_try" in
30659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30660 *) ac_try_echo=$ac_try;;
30661esac
30662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30663 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030664 ac_status=$?
30665 grep -v '^ *+' conftest.er1 >conftest.err
30666 rm -f conftest.er1
30667 cat conftest.err >&5
30668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30669 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30671 { (case "(($ac_try" in
30672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30673 *) ac_try_echo=$ac_try;;
30674esac
30675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30676 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030677 ac_status=$?
30678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679 (exit $ac_status); }; } &&
30680 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030681 { (case "(($ac_try" in
30682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683 *) ac_try_echo=$ac_try;;
30684esac
30685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030687 ac_status=$?
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); }; }; then
30690 ac_cv_func_alloca_works=yes
30691else
30692 echo "$as_me: failed program was:" >&5
30693sed 's/^/| /' conftest.$ac_ext >&5
30694
Reid Spencera773bd52006-08-04 18:18:08 +000030695 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030696fi
Reid Spencera773bd52006-08-04 18:18:08 +000030697
30698rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030699 conftest$ac_exeext conftest.$ac_ext
30700fi
Reid Spencera773bd52006-08-04 18:18:08 +000030701{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30702echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030703
30704if test $ac_cv_func_alloca_works = yes; then
30705
30706cat >>confdefs.h <<\_ACEOF
30707#define HAVE_ALLOCA 1
30708_ACEOF
30709
30710else
30711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30712# that cause trouble. Some versions do not even contain alloca or
30713# contain a buggy version. If you still want to use their alloca,
30714# use ar to extract alloca.o from them instead of compiling alloca.c.
30715
Reid Spencera773bd52006-08-04 18:18:08 +000030716ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030717
30718cat >>confdefs.h <<\_ACEOF
30719#define C_ALLOCA 1
30720_ACEOF
30721
30722
Reid Spencera773bd52006-08-04 18:18:08 +000030723{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30724echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030725if test "${ac_cv_os_cray+set}" = set; then
30726 echo $ECHO_N "(cached) $ECHO_C" >&6
30727else
30728 cat >conftest.$ac_ext <<_ACEOF
30729/* confdefs.h. */
30730_ACEOF
30731cat confdefs.h >>conftest.$ac_ext
30732cat >>conftest.$ac_ext <<_ACEOF
30733/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030734#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030735webecray
30736#else
30737wenotbecray
30738#endif
30739
30740_ACEOF
30741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30742 $EGREP "webecray" >/dev/null 2>&1; then
30743 ac_cv_os_cray=yes
30744else
30745 ac_cv_os_cray=no
30746fi
30747rm -f conftest*
30748
30749fi
Reid Spencera773bd52006-08-04 18:18:08 +000030750{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30751echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030752if test $ac_cv_os_cray = yes; then
30753 for ac_func in _getb67 GETB67 getb67; do
30754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030755{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030758 echo $ECHO_N "(cached) $ECHO_C" >&6
30759else
30760 cat >conftest.$ac_ext <<_ACEOF
30761/* confdefs.h. */
30762_ACEOF
30763cat confdefs.h >>conftest.$ac_ext
30764cat >>conftest.$ac_ext <<_ACEOF
30765/* end confdefs.h. */
30766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30768#define $ac_func innocuous_$ac_func
30769
30770/* System header to define __stub macros and hopefully few prototypes,
30771 which can conflict with char $ac_func (); below.
30772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30773 <limits.h> exists even on freestanding compilers. */
30774
30775#ifdef __STDC__
30776# include <limits.h>
30777#else
30778# include <assert.h>
30779#endif
30780
30781#undef $ac_func
30782
Reid Spencera773bd52006-08-04 18:18:08 +000030783/* Override any GCC internal prototype to avoid an error.
30784 Use char because int might match the return type of a GCC
30785 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030786#ifdef __cplusplus
30787extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030788#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030789char $ac_func ();
30790/* The GNU C library defines this for functions which it implements
30791 to always fail with ENOSYS. Some functions are actually named
30792 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030793#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030794choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030795#endif
30796
30797int
30798main ()
30799{
Reid Spencera773bd52006-08-04 18:18:08 +000030800return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030801 ;
30802 return 0;
30803}
30804_ACEOF
30805rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030806if { (ac_try="$ac_link"
30807case "(($ac_try" in
30808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30809 *) ac_try_echo=$ac_try;;
30810esac
30811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30812 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030813 ac_status=$?
30814 grep -v '^ *+' conftest.er1 >conftest.err
30815 rm -f conftest.er1
30816 cat conftest.err >&5
30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30818 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30820 { (case "(($ac_try" in
30821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30822 *) ac_try_echo=$ac_try;;
30823esac
30824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30825 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030826 ac_status=$?
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); }; } &&
30829 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030830 { (case "(($ac_try" in
30831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30832 *) ac_try_echo=$ac_try;;
30833esac
30834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30835 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030836 ac_status=$?
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); }; }; then
30839 eval "$as_ac_var=yes"
30840else
30841 echo "$as_me: failed program was:" >&5
30842sed 's/^/| /' conftest.$ac_ext >&5
30843
Reid Spencera773bd52006-08-04 18:18:08 +000030844 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030845fi
Reid Spencera773bd52006-08-04 18:18:08 +000030846
30847rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030848 conftest$ac_exeext conftest.$ac_ext
30849fi
Reid Spencera773bd52006-08-04 18:18:08 +000030850ac_res=`eval echo '${'$as_ac_var'}'`
30851 { echo "$as_me:$LINENO: result: $ac_res" >&5
30852echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030853if test `eval echo '${'$as_ac_var'}'` = yes; then
30854
30855cat >>confdefs.h <<_ACEOF
30856#define CRAY_STACKSEG_END $ac_func
30857_ACEOF
30858
30859 break
30860fi
30861
30862 done
30863fi
30864
Reid Spencera773bd52006-08-04 18:18:08 +000030865{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30866echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030867if test "${ac_cv_c_stack_direction+set}" = set; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
30869else
30870 if test "$cross_compiling" = yes; then
30871 ac_cv_c_stack_direction=0
30872else
30873 cat >conftest.$ac_ext <<_ACEOF
30874/* confdefs.h. */
30875_ACEOF
30876cat confdefs.h >>conftest.$ac_ext
30877cat >>conftest.$ac_ext <<_ACEOF
30878/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030879$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030880int
30881find_stack_direction ()
30882{
30883 static char *addr = 0;
30884 auto char dummy;
30885 if (addr == 0)
30886 {
30887 addr = &dummy;
30888 return find_stack_direction ();
30889 }
John Criswell0021c312004-02-13 21:57:29 +000030890 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030891 return (&dummy > addr) ? 1 : -1;
30892}
John Criswell0021c312004-02-13 21:57:29 +000030893
John Criswell0021c312004-02-13 21:57:29 +000030894int
30895main ()
30896{
Reid Spencera773bd52006-08-04 18:18:08 +000030897 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030898}
30899_ACEOF
30900rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030901if { (ac_try="$ac_link"
30902case "(($ac_try" in
30903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904 *) ac_try_echo=$ac_try;;
30905esac
30906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030911 { (case "(($ac_try" in
30912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913 *) ac_try_echo=$ac_try;;
30914esac
30915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030917 ac_status=$?
30918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030920 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030921else
30922 echo "$as_me: program exited with status $ac_status" >&5
30923echo "$as_me: failed program was:" >&5
30924sed 's/^/| /' conftest.$ac_ext >&5
30925
30926( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030927ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030928fi
Reid Spencera773bd52006-08-04 18:18:08 +000030929rm -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 +000030930fi
Reid Spencera773bd52006-08-04 18:18:08 +000030931
30932
John Criswell0021c312004-02-13 21:57:29 +000030933fi
Reid Spencera773bd52006-08-04 18:18:08 +000030934{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30935echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030936
30937cat >>confdefs.h <<_ACEOF
30938#define STACK_DIRECTION $ac_cv_c_stack_direction
30939_ACEOF
30940
30941
John Criswell0021c312004-02-13 21:57:29 +000030942fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030943
30944
Reid Spencera773bd52006-08-04 18:18:08 +000030945{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30946echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030947if test "${ac_cv_func_rand48+set}" = set; then
30948 echo $ECHO_N "(cached) $ECHO_C" >&6
30949else
Reid Spencera773bd52006-08-04 18:18:08 +000030950 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030951ac_cpp='$CXXCPP $CPPFLAGS'
30952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30955
30956 cat >conftest.$ac_ext <<_ACEOF
30957/* confdefs.h. */
30958_ACEOF
30959cat confdefs.h >>conftest.$ac_ext
30960cat >>conftest.$ac_ext <<_ACEOF
30961/* end confdefs.h. */
30962#include <stdlib.h>
30963int
30964main ()
30965{
30966srand48(0);lrand48();drand48();
30967 ;
30968 return 0;
30969}
30970_ACEOF
30971rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030972if { (ac_try="$ac_compile"
30973case "(($ac_try" in
30974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30975 *) ac_try_echo=$ac_try;;
30976esac
30977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30978 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030979 ac_status=$?
30980 grep -v '^ *+' conftest.er1 >conftest.err
30981 rm -f conftest.er1
30982 cat conftest.err >&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30986 { (case "(($ac_try" in
30987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30988 *) ac_try_echo=$ac_try;;
30989esac
30990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30991 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030992 ac_status=$?
30993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994 (exit $ac_status); }; } &&
30995 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030996 { (case "(($ac_try" in
30997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30998 *) ac_try_echo=$ac_try;;
30999esac
31000eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31001 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031002 ac_status=$?
31003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31004 (exit $ac_status); }; }; then
31005 ac_cv_func_rand48=yes
31006else
31007 echo "$as_me: failed program was:" >&5
31008sed 's/^/| /' conftest.$ac_ext >&5
31009
Reid Spencera773bd52006-08-04 18:18:08 +000031010 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031011fi
Reid Spencera773bd52006-08-04 18:18:08 +000031012
31013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031014 ac_ext=c
31015ac_cpp='$CPP $CPPFLAGS'
31016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31018ac_compiler_gnu=$ac_cv_c_compiler_gnu
31019
31020fi
Reid Spencera773bd52006-08-04 18:18:08 +000031021{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
31022echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031023
31024if test "$ac_cv_func_rand48" = "yes" ; then
31025
31026cat >>confdefs.h <<\_ACEOF
31027#define HAVE_RAND48 1
31028_ACEOF
31029
31030fi
John Criswell0021c312004-02-13 21:57:29 +000031031
31032
Reid Spencera773bd52006-08-04 18:18:08 +000031033{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31034echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031035if test "${ac_cv_cxx_namespaces+set}" = set; then
31036 echo $ECHO_N "(cached) $ECHO_C" >&6
31037else
Reid Spencera773bd52006-08-04 18:18:08 +000031038 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031039ac_cpp='$CXXCPP $CPPFLAGS'
31040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31043
31044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031045/* confdefs.h. */
31046_ACEOF
31047cat confdefs.h >>conftest.$ac_ext
31048cat >>conftest.$ac_ext <<_ACEOF
31049/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031050namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031051int
31052main ()
31053{
31054using namespace Outer::Inner; return i;
31055 ;
31056 return 0;
31057}
31058_ACEOF
31059rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031060if { (ac_try="$ac_compile"
31061case "(($ac_try" in
31062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31063 *) ac_try_echo=$ac_try;;
31064esac
31065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31066 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031067 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31074 { (case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31079 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031080 ac_status=$?
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; } &&
31083 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031084 { (case "(($ac_try" in
31085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31086 *) ac_try_echo=$ac_try;;
31087esac
31088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31089 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; }; then
31093 ac_cv_cxx_namespaces=yes
31094else
31095 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031096sed 's/^/| /' conftest.$ac_ext >&5
31097
Reid Spencera773bd52006-08-04 18:18:08 +000031098 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031099fi
Reid Spencera773bd52006-08-04 18:18:08 +000031100
31101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031102 ac_ext=c
31103ac_cpp='$CPP $CPPFLAGS'
31104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31106ac_compiler_gnu=$ac_cv_c_compiler_gnu
31107
31108
31109fi
Reid Spencera773bd52006-08-04 18:18:08 +000031110{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31111echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031112if test "$ac_cv_cxx_namespaces" = yes; then
31113
31114cat >>confdefs.h <<\_ACEOF
31115#define HAVE_NAMESPACES
31116_ACEOF
31117
31118fi
31119
Reid Spencera773bd52006-08-04 18:18:08 +000031120{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31121echo $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 +000031122if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031123 echo $ECHO_N "(cached) $ECHO_C" >&6
31124else
31125
Reid Spencera773bd52006-08-04 18:18:08 +000031126 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031127ac_cpp='$CXXCPP $CPPFLAGS'
31128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31131
31132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031133/* confdefs.h. */
31134_ACEOF
31135cat confdefs.h >>conftest.$ac_ext
31136cat >>conftest.$ac_ext <<_ACEOF
31137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031138#include <ext/hash_map>
31139#ifdef HAVE_NAMESPACES
31140using namespace std;
31141#endif
John Criswell7a73b802003-06-30 21:59:07 +000031142int
31143main ()
31144{
Brian Gaeke90583492003-11-10 03:06:28 +000031145hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031146 ;
31147 return 0;
31148}
31149_ACEOF
31150rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031151if { (ac_try="$ac_compile"
31152case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31157 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031158 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031159 grep -v '^ *+' conftest.er1 >conftest.err
31160 rm -f conftest.er1
31161 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31163 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31165 { (case "(($ac_try" in
31166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167 *) ac_try_echo=$ac_try;;
31168esac
31169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31170 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031171 ac_status=$?
31172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31173 (exit $ac_status); }; } &&
31174 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031175 { (case "(($ac_try" in
31176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31177 *) ac_try_echo=$ac_try;;
31178esac
31179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31180 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031181 ac_status=$?
31182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31183 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031184 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031185else
31186 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031187sed 's/^/| /' conftest.$ac_ext >&5
31188
Reid Spencera773bd52006-08-04 18:18:08 +000031189 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031190fi
Reid Spencera773bd52006-08-04 18:18:08 +000031191
31192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031193 ac_ext=c
31194ac_cpp='$CPP $CPPFLAGS'
31195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31197ac_compiler_gnu=$ac_cv_c_compiler_gnu
31198
John Criswell7a73b802003-06-30 21:59:07 +000031199fi
Reid Spencera773bd52006-08-04 18:18:08 +000031200{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31201echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031202 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31203 then
John Criswell9f011862004-09-24 18:28:00 +000031204
31205cat >>confdefs.h <<\_ACEOF
31206#define HAVE_STD_EXT_HASH_MAP 1
31207_ACEOF
31208
31209 else
31210
31211cat >>confdefs.h <<\_ACEOF
31212#define HAVE_STD_EXT_HASH_MAP 0
31213_ACEOF
31214
Brian Gaeke90583492003-11-10 03:06:28 +000031215 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031216
Reid Spencera773bd52006-08-04 18:18:08 +000031217 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31218echo $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 +000031219if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31220 echo $ECHO_N "(cached) $ECHO_C" >&6
31221else
31222
Reid Spencera773bd52006-08-04 18:18:08 +000031223 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031224ac_cpp='$CXXCPP $CPPFLAGS'
31225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31228
31229 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031230/* confdefs.h. */
31231_ACEOF
31232cat confdefs.h >>conftest.$ac_ext
31233cat >>conftest.$ac_ext <<_ACEOF
31234/* end confdefs.h. */
31235#include <ext/hash_map>
31236#ifdef HAVE_NAMESPACES
31237using namespace __gnu_cxx;
31238#endif
31239int
31240main ()
31241{
31242hash_map<int,int> t;
31243 ;
31244 return 0;
31245}
31246_ACEOF
31247rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031248if { (ac_try="$ac_compile"
31249case "(($ac_try" in
31250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31251 *) ac_try_echo=$ac_try;;
31252esac
31253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31254 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031256 grep -v '^ *+' conftest.er1 >conftest.err
31257 rm -f conftest.er1
31258 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31262 { (case "(($ac_try" in
31263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31264 *) ac_try_echo=$ac_try;;
31265esac
31266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31267 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031268 ac_status=$?
31269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31270 (exit $ac_status); }; } &&
31271 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031272 { (case "(($ac_try" in
31273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31274 *) ac_try_echo=$ac_try;;
31275esac
31276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31277 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031278 ac_status=$?
31279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31280 (exit $ac_status); }; }; then
31281 ac_cv_cxx_have_gnu_ext_hash_map=yes
31282else
31283 echo "$as_me: failed program was:" >&5
31284sed 's/^/| /' conftest.$ac_ext >&5
31285
Reid Spencera773bd52006-08-04 18:18:08 +000031286 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031287fi
Reid Spencera773bd52006-08-04 18:18:08 +000031288
31289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031290 ac_ext=c
31291ac_cpp='$CPP $CPPFLAGS'
31292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31294ac_compiler_gnu=$ac_cv_c_compiler_gnu
31295
31296fi
Reid Spencera773bd52006-08-04 18:18:08 +000031297{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31298echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031299 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31300 then
John Criswell9f011862004-09-24 18:28:00 +000031301
31302cat >>confdefs.h <<\_ACEOF
31303#define HAVE_GNU_EXT_HASH_MAP 1
31304_ACEOF
31305
31306 else
31307
31308cat >>confdefs.h <<\_ACEOF
31309#define HAVE_GNU_EXT_HASH_MAP 0
31310_ACEOF
31311
Brian Gaeke90583492003-11-10 03:06:28 +000031312 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031313
Reid Spencera773bd52006-08-04 18:18:08 +000031314 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31315echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031316if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31318else
John Criswell7a73b802003-06-30 21:59:07 +000031319
Reid Spencera773bd52006-08-04 18:18:08 +000031320 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031321ac_cpp='$CXXCPP $CPPFLAGS'
31322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31325
31326 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332#include <hash_map>
31333int
31334main ()
31335{
31336hash_map<int,int> t;
31337 ;
31338 return 0;
31339}
31340_ACEOF
31341rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031342if { (ac_try="$ac_compile"
31343case "(($ac_try" in
31344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31345 *) ac_try_echo=$ac_try;;
31346esac
31347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31348 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031349 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031350 grep -v '^ *+' conftest.er1 >conftest.err
31351 rm -f conftest.er1
31352 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31356 { (case "(($ac_try" in
31357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31358 *) ac_try_echo=$ac_try;;
31359esac
31360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31361 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031362 ac_status=$?
31363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31364 (exit $ac_status); }; } &&
31365 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031366 { (case "(($ac_try" in
31367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31368 *) ac_try_echo=$ac_try;;
31369esac
31370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31371 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031372 ac_status=$?
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); }; }; then
31375 ac_cv_cxx_have_global_hash_map=yes
31376else
31377 echo "$as_me: failed program was:" >&5
31378sed 's/^/| /' conftest.$ac_ext >&5
31379
Reid Spencera773bd52006-08-04 18:18:08 +000031380 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031381fi
Reid Spencera773bd52006-08-04 18:18:08 +000031382
31383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031384 ac_ext=c
31385ac_cpp='$CPP $CPPFLAGS'
31386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31388ac_compiler_gnu=$ac_cv_c_compiler_gnu
31389
31390fi
Reid Spencera773bd52006-08-04 18:18:08 +000031391{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31392echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031393 if test "$ac_cv_cxx_have_global_hash_map" = yes
31394 then
John Criswell9f011862004-09-24 18:28:00 +000031395
31396cat >>confdefs.h <<\_ACEOF
31397#define HAVE_GLOBAL_HASH_MAP 1
31398_ACEOF
31399
31400 else
31401
31402cat >>confdefs.h <<\_ACEOF
31403#define HAVE_GLOBAL_HASH_MAP 0
31404_ACEOF
31405
Brian Gaeke90583492003-11-10 03:06:28 +000031406 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031407
Reid Spencera773bd52006-08-04 18:18:08 +000031408{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31409echo $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 +000031410if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031411 echo $ECHO_N "(cached) $ECHO_C" >&6
31412else
31413
Reid Spencera773bd52006-08-04 18:18:08 +000031414 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031415ac_cpp='$CXXCPP $CPPFLAGS'
31416ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31417ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31418ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31419
31420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031421/* confdefs.h. */
31422_ACEOF
31423cat confdefs.h >>conftest.$ac_ext
31424cat >>conftest.$ac_ext <<_ACEOF
31425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031426#include <ext/hash_set>
31427#ifdef HAVE_NAMESPACES
31428using namespace std;
31429#endif
John Criswell7a73b802003-06-30 21:59:07 +000031430int
31431main ()
31432{
Brian Gaeke90583492003-11-10 03:06:28 +000031433hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031434 ;
31435 return 0;
31436}
31437_ACEOF
31438rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031439if { (ac_try="$ac_compile"
31440case "(($ac_try" in
31441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31442 *) ac_try_echo=$ac_try;;
31443esac
31444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31445 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031446 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031447 grep -v '^ *+' conftest.er1 >conftest.err
31448 rm -f conftest.er1
31449 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31453 { (case "(($ac_try" in
31454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31455 *) ac_try_echo=$ac_try;;
31456esac
31457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31458 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031459 ac_status=$?
31460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31461 (exit $ac_status); }; } &&
31462 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031463 { (case "(($ac_try" in
31464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31465 *) ac_try_echo=$ac_try;;
31466esac
31467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31468 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031469 ac_status=$?
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031472 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031473else
31474 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031475sed 's/^/| /' conftest.$ac_ext >&5
31476
Reid Spencera773bd52006-08-04 18:18:08 +000031477 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031478fi
Reid Spencera773bd52006-08-04 18:18:08 +000031479
31480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031481 ac_ext=c
31482ac_cpp='$CPP $CPPFLAGS'
31483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31485ac_compiler_gnu=$ac_cv_c_compiler_gnu
31486
31487fi
Reid Spencera773bd52006-08-04 18:18:08 +000031488{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31489echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031490 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31491 then
John Criswell9f011862004-09-24 18:28:00 +000031492
31493cat >>confdefs.h <<\_ACEOF
31494#define HAVE_STD_EXT_HASH_SET 1
31495_ACEOF
31496
31497 else
31498
31499cat >>confdefs.h <<\_ACEOF
31500#define HAVE_STD_EXT_HASH_SET 0
31501_ACEOF
31502
Brian Gaeke90583492003-11-10 03:06:28 +000031503 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031504
Reid Spencera773bd52006-08-04 18:18:08 +000031505 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31506echo $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 +000031507if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31508 echo $ECHO_N "(cached) $ECHO_C" >&6
31509else
31510
Reid Spencera773bd52006-08-04 18:18:08 +000031511 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031512ac_cpp='$CXXCPP $CPPFLAGS'
31513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31516
John Criswell7a73b802003-06-30 21:59:07 +000031517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031518/* confdefs.h. */
31519_ACEOF
31520cat confdefs.h >>conftest.$ac_ext
31521cat >>conftest.$ac_ext <<_ACEOF
31522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031523#include <ext/hash_set>
31524#ifdef HAVE_NAMESPACES
31525using namespace __gnu_cxx;
31526#endif
John Criswell7a73b802003-06-30 21:59:07 +000031527int
31528main ()
31529{
Brian Gaeke90583492003-11-10 03:06:28 +000031530hash_set<int> t;
31531 ;
31532 return 0;
31533}
31534_ACEOF
31535rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031536if { (ac_try="$ac_compile"
31537case "(($ac_try" in
31538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539 *) ac_try_echo=$ac_try;;
31540esac
31541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031543 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031544 grep -v '^ *+' conftest.er1 >conftest.err
31545 rm -f conftest.er1
31546 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31550 { (case "(($ac_try" in
31551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31552 *) ac_try_echo=$ac_try;;
31553esac
31554eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31555 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031556 ac_status=$?
31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31558 (exit $ac_status); }; } &&
31559 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031560 { (case "(($ac_try" in
31561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31562 *) ac_try_echo=$ac_try;;
31563esac
31564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31565 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031566 ac_status=$?
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); }; }; then
31569 ac_cv_cxx_have_gnu_ext_hash_set=yes
31570else
31571 echo "$as_me: failed program was:" >&5
31572sed 's/^/| /' conftest.$ac_ext >&5
31573
Reid Spencera773bd52006-08-04 18:18:08 +000031574 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031575fi
Reid Spencera773bd52006-08-04 18:18:08 +000031576
31577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031578 ac_ext=c
31579ac_cpp='$CPP $CPPFLAGS'
31580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31582ac_compiler_gnu=$ac_cv_c_compiler_gnu
31583
31584fi
Reid Spencera773bd52006-08-04 18:18:08 +000031585{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31586echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031587 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31588 then
John Criswell9f011862004-09-24 18:28:00 +000031589
31590cat >>confdefs.h <<\_ACEOF
31591#define HAVE_GNU_EXT_HASH_SET 1
31592_ACEOF
31593
31594 else
31595
31596cat >>confdefs.h <<\_ACEOF
31597#define HAVE_GNU_EXT_HASH_SET 0
31598_ACEOF
31599
Brian Gaeke90583492003-11-10 03:06:28 +000031600 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031601
Reid Spencera773bd52006-08-04 18:18:08 +000031602 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31603echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031604if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31605 echo $ECHO_N "(cached) $ECHO_C" >&6
31606else
31607
Reid Spencera773bd52006-08-04 18:18:08 +000031608 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031609ac_cpp='$CXXCPP $CPPFLAGS'
31610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31613
31614 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031615/* confdefs.h. */
31616_ACEOF
31617cat confdefs.h >>conftest.$ac_ext
31618cat >>conftest.$ac_ext <<_ACEOF
31619/* end confdefs.h. */
31620#include <hash_set>
31621int
31622main ()
31623{
John Criswell7a73b802003-06-30 21:59:07 +000031624hash_set<int> t; return 0;
31625 ;
31626 return 0;
31627}
31628_ACEOF
31629rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031630if { (ac_try="$ac_compile"
31631case "(($ac_try" in
31632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633 *) ac_try_echo=$ac_try;;
31634esac
31635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031637 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031638 grep -v '^ *+' conftest.er1 >conftest.err
31639 rm -f conftest.er1
31640 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31644 { (case "(($ac_try" in
31645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31646 *) ac_try_echo=$ac_try;;
31647esac
31648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31649 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031654 { (case "(($ac_try" in
31655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31656 *) ac_try_echo=$ac_try;;
31657esac
31658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31659 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031663 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031664else
31665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031666sed 's/^/| /' conftest.$ac_ext >&5
31667
Reid Spencera773bd52006-08-04 18:18:08 +000031668 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031669fi
Reid Spencera773bd52006-08-04 18:18:08 +000031670
31671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031672 ac_ext=c
31673ac_cpp='$CPP $CPPFLAGS'
31674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31676ac_compiler_gnu=$ac_cv_c_compiler_gnu
31677
John Criswell7a73b802003-06-30 21:59:07 +000031678fi
Reid Spencera773bd52006-08-04 18:18:08 +000031679{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31680echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031681 if test "$ac_cv_cxx_have_global_hash_set" = yes
31682 then
John Criswell9f011862004-09-24 18:28:00 +000031683
31684cat >>confdefs.h <<\_ACEOF
31685#define HAVE_GLOBAL_HASH_SET 1
31686_ACEOF
31687
31688 else
31689
31690cat >>confdefs.h <<\_ACEOF
31691#define HAVE_GLOBAL_HASH_SET 0
31692_ACEOF
31693
Brian Gaeke90583492003-11-10 03:06:28 +000031694 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031695
Reid Spencera773bd52006-08-04 18:18:08 +000031696{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31697echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031698if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31699 echo $ECHO_N "(cached) $ECHO_C" >&6
31700else
31701
Reid Spencera773bd52006-08-04 18:18:08 +000031702 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031703ac_cpp='$CXXCPP $CPPFLAGS'
31704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31707
31708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031714#include <iterator>
31715#ifdef HAVE_NAMESPACES
31716using namespace std;
31717#endif
John Criswell7a73b802003-06-30 21:59:07 +000031718int
31719main ()
31720{
31721iterator<int,int,int> t; return 0;
31722 ;
31723 return 0;
31724}
31725_ACEOF
31726rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031727if { (ac_try="$ac_compile"
31728case "(($ac_try" in
31729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31730 *) ac_try_echo=$ac_try;;
31731esac
31732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31733 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031735 grep -v '^ *+' conftest.er1 >conftest.err
31736 rm -f conftest.er1
31737 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31739 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31741 { (case "(($ac_try" in
31742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 *) ac_try_echo=$ac_try;;
31744esac
31745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031747 ac_status=$?
31748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31749 (exit $ac_status); }; } &&
31750 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031751 { (case "(($ac_try" in
31752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31753 *) ac_try_echo=$ac_try;;
31754esac
31755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31756 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031757 ac_status=$?
31758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31759 (exit $ac_status); }; }; then
31760 ac_cv_cxx_have_std_iterator=yes
31761else
31762 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031763sed 's/^/| /' conftest.$ac_ext >&5
31764
Reid Spencera773bd52006-08-04 18:18:08 +000031765 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031766fi
Reid Spencera773bd52006-08-04 18:18:08 +000031767
31768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031769 ac_ext=c
31770ac_cpp='$CPP $CPPFLAGS'
31771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31773ac_compiler_gnu=$ac_cv_c_compiler_gnu
31774
31775
31776fi
Reid Spencera773bd52006-08-04 18:18:08 +000031777{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31778echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031779if test "$ac_cv_cxx_have_std_iterator" = yes
31780then
John Criswell40468462004-09-24 21:19:06 +000031781
31782cat >>confdefs.h <<\_ACEOF
31783#define HAVE_STD_ITERATOR 1
31784_ACEOF
31785
31786else
31787
31788cat >>confdefs.h <<\_ACEOF
31789#define HAVE_STD_ITERATOR 0
31790_ACEOF
31791
John Criswell7a73b802003-06-30 21:59:07 +000031792fi
31793
Reid Spencera773bd52006-08-04 18:18:08 +000031794{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31795echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031796if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31797 echo $ECHO_N "(cached) $ECHO_C" >&6
31798else
31799
Reid Spencera773bd52006-08-04 18:18:08 +000031800 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031801ac_cpp='$CXXCPP $CPPFLAGS'
31802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31805
31806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031807/* confdefs.h. */
31808_ACEOF
31809cat confdefs.h >>conftest.$ac_ext
31810cat >>conftest.$ac_ext <<_ACEOF
31811/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031812#include <iterator>
31813#ifdef HAVE_NAMESPACES
31814using namespace std;
31815#endif
John Criswell7a73b802003-06-30 21:59:07 +000031816int
31817main ()
31818{
John Criswellc78022e2003-07-29 19:11:58 +000031819bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031820 ;
31821 return 0;
31822}
31823_ACEOF
31824rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031825if { (ac_try="$ac_compile"
31826case "(($ac_try" in
31827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31828 *) ac_try_echo=$ac_try;;
31829esac
31830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31831 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031833 grep -v '^ *+' conftest.er1 >conftest.err
31834 rm -f conftest.er1
31835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31837 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31839 { (case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31842esac
31843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031845 ac_status=$?
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); }; } &&
31848 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031849 { (case "(($ac_try" in
31850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31851 *) ac_try_echo=$ac_try;;
31852esac
31853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31854 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031855 ac_status=$?
31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31857 (exit $ac_status); }; }; then
31858 ac_cv_cxx_have_bi_iterator=yes
31859else
31860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031861sed 's/^/| /' conftest.$ac_ext >&5
31862
Reid Spencera773bd52006-08-04 18:18:08 +000031863 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031864fi
Reid Spencera773bd52006-08-04 18:18:08 +000031865
31866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031867 ac_ext=c
31868ac_cpp='$CPP $CPPFLAGS'
31869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31871ac_compiler_gnu=$ac_cv_c_compiler_gnu
31872
31873
31874fi
Reid Spencera773bd52006-08-04 18:18:08 +000031875{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31876echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031877if test "$ac_cv_cxx_have_bi_iterator" = yes
31878then
John Criswell40468462004-09-24 21:19:06 +000031879
31880cat >>confdefs.h <<\_ACEOF
31881#define HAVE_BI_ITERATOR 1
31882_ACEOF
31883
31884else
31885
31886cat >>confdefs.h <<\_ACEOF
31887#define HAVE_BI_ITERATOR 0
31888_ACEOF
31889
John Criswell7a73b802003-06-30 21:59:07 +000031890fi
31891
Reid Spencera773bd52006-08-04 18:18:08 +000031892{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31893echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031894if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31895 echo $ECHO_N "(cached) $ECHO_C" >&6
31896else
31897
Reid Spencera773bd52006-08-04 18:18:08 +000031898 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031899ac_cpp='$CXXCPP $CPPFLAGS'
31900ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31901ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31902ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31903
31904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031905/* confdefs.h. */
31906_ACEOF
31907cat confdefs.h >>conftest.$ac_ext
31908cat >>conftest.$ac_ext <<_ACEOF
31909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031910#include <iterator>
31911#ifdef HAVE_NAMESPACES
31912using namespace std;
31913#endif
John Criswell7a73b802003-06-30 21:59:07 +000031914int
31915main ()
31916{
John Criswellc78022e2003-07-29 19:11:58 +000031917forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031918 ;
31919 return 0;
31920}
31921_ACEOF
31922rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031923if { (ac_try="$ac_compile"
31924case "(($ac_try" in
31925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31926 *) ac_try_echo=$ac_try;;
31927esac
31928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31929 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031931 grep -v '^ *+' conftest.er1 >conftest.err
31932 rm -f conftest.er1
31933 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31935 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31937 { (case "(($ac_try" in
31938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31939 *) ac_try_echo=$ac_try;;
31940esac
31941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31942 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; } &&
31946 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031947 { (case "(($ac_try" in
31948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949 *) ac_try_echo=$ac_try;;
31950esac
31951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031953 ac_status=$?
31954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31955 (exit $ac_status); }; }; then
31956 ac_cv_cxx_have_fwd_iterator=yes
31957else
31958 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031959sed 's/^/| /' conftest.$ac_ext >&5
31960
Reid Spencera773bd52006-08-04 18:18:08 +000031961 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031962fi
Reid Spencera773bd52006-08-04 18:18:08 +000031963
31964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031965 ac_ext=c
31966ac_cpp='$CPP $CPPFLAGS'
31967ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31968ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31969ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970
31971
31972fi
Reid Spencera773bd52006-08-04 18:18:08 +000031973{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31974echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031975if test "$ac_cv_cxx_have_fwd_iterator" = yes
31976then
John Criswell40468462004-09-24 21:19:06 +000031977
31978cat >>confdefs.h <<\_ACEOF
31979#define HAVE_FWD_ITERATOR 1
31980_ACEOF
31981
31982else
31983
31984cat >>confdefs.h <<\_ACEOF
31985#define HAVE_FWD_ITERATOR 0
31986_ACEOF
31987
John Criswell7a73b802003-06-30 21:59:07 +000031988fi
31989
31990
Reid Spencera773bd52006-08-04 18:18:08 +000031991{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31992echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031993if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31994 echo $ECHO_N "(cached) $ECHO_C" >&6
31995else
Reid Spencera773bd52006-08-04 18:18:08 +000031996 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031997ac_cpp='$CXXCPP $CPPFLAGS'
31998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32001
Reid Spencerabec8f92004-10-27 23:03:44 +000032002 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032003/* confdefs.h. */
32004_ACEOF
32005cat confdefs.h >>conftest.$ac_ext
32006cat >>conftest.$ac_ext <<_ACEOF
32007/* end confdefs.h. */
32008#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032009int
32010main ()
32011{
32012float f; isnan(f);
32013 ;
32014 return 0;
32015}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032016_ACEOF
32017rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032018if { (ac_try="$ac_compile"
32019case "(($ac_try" in
32020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32021 *) ac_try_echo=$ac_try;;
32022esac
32023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32024 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032025 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032026 grep -v '^ *+' conftest.er1 >conftest.err
32027 rm -f conftest.er1
32028 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32030 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32032 { (case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32035esac
32036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32037 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; } &&
32041 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032042 { (case "(($ac_try" in
32043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32044 *) ac_try_echo=$ac_try;;
32045esac
32046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32047 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; }; then
32051 ac_cv_func_isnan_in_math_h=yes
32052else
32053 echo "$as_me: failed program was:" >&5
32054sed 's/^/| /' conftest.$ac_ext >&5
32055
Reid Spencera773bd52006-08-04 18:18:08 +000032056 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032057fi
Reid Spencera773bd52006-08-04 18:18:08 +000032058
32059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032060 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032061ac_cpp='$CPP $CPPFLAGS'
32062ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32063ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32064ac_compiler_gnu=$ac_cv_c_compiler_gnu
32065
32066fi
Reid Spencera773bd52006-08-04 18:18:08 +000032067{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32068echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032069
32070
32071if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032072
32073cat >>confdefs.h <<\_ACEOF
32074#define HAVE_ISNAN_IN_MATH_H 1
32075_ACEOF
32076
Reid Spencerabec8f92004-10-27 23:03:44 +000032077fi
32078
Reid Spencera773bd52006-08-04 18:18:08 +000032079{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32080echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032081if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32082 echo $ECHO_N "(cached) $ECHO_C" >&6
32083else
Reid Spencera773bd52006-08-04 18:18:08 +000032084 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032085ac_cpp='$CXXCPP $CPPFLAGS'
32086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32089
Reid Spencerabec8f92004-10-27 23:03:44 +000032090 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032091/* confdefs.h. */
32092_ACEOF
32093cat confdefs.h >>conftest.$ac_ext
32094cat >>conftest.$ac_ext <<_ACEOF
32095/* end confdefs.h. */
32096#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032097int
32098main ()
32099{
32100float f; isnan(f);
32101 ;
32102 return 0;
32103}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032104_ACEOF
32105rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032106if { (ac_try="$ac_compile"
32107case "(($ac_try" in
32108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32109 *) ac_try_echo=$ac_try;;
32110esac
32111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32112 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032113 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032114 grep -v '^ *+' conftest.er1 >conftest.err
32115 rm -f conftest.er1
32116 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32118 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32120 { (case "(($ac_try" in
32121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122 *) ac_try_echo=$ac_try;;
32123esac
32124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032126 ac_status=$?
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); }; } &&
32129 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032130 { (case "(($ac_try" in
32131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32132 *) ac_try_echo=$ac_try;;
32133esac
32134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32135 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032136 ac_status=$?
32137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32138 (exit $ac_status); }; }; then
32139 ac_cv_func_isnan_in_cmath=yes
32140else
32141 echo "$as_me: failed program was:" >&5
32142sed 's/^/| /' conftest.$ac_ext >&5
32143
Reid Spencera773bd52006-08-04 18:18:08 +000032144 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032145fi
Reid Spencera773bd52006-08-04 18:18:08 +000032146
32147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032148 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032149ac_cpp='$CPP $CPPFLAGS'
32150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32152ac_compiler_gnu=$ac_cv_c_compiler_gnu
32153
32154fi
Reid Spencera773bd52006-08-04 18:18:08 +000032155{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32156echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032157
32158if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032159
32160cat >>confdefs.h <<\_ACEOF
32161#define HAVE_ISNAN_IN_CMATH 1
32162_ACEOF
32163
Reid Spencerabec8f92004-10-27 23:03:44 +000032164fi
32165
Reid Spencera773bd52006-08-04 18:18:08 +000032166{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32167echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032168if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
Reid Spencera773bd52006-08-04 18:18:08 +000032171 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032172ac_cpp='$CXXCPP $CPPFLAGS'
32173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32176
Reid Spencerabec8f92004-10-27 23:03:44 +000032177 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032178/* confdefs.h. */
32179_ACEOF
32180cat confdefs.h >>conftest.$ac_ext
32181cat >>conftest.$ac_ext <<_ACEOF
32182/* end confdefs.h. */
32183#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032184int
32185main ()
32186{
32187float f; std::isnan(f);
32188 ;
32189 return 0;
32190}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032191_ACEOF
32192rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032193if { (ac_try="$ac_compile"
32194case "(($ac_try" in
32195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32196 *) ac_try_echo=$ac_try;;
32197esac
32198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32199 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032200 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032201 grep -v '^ *+' conftest.er1 >conftest.err
32202 rm -f conftest.er1
32203 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32205 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032206 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32207 { (case "(($ac_try" in
32208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32209 *) ac_try_echo=$ac_try;;
32210esac
32211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32212 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032213 ac_status=$?
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); }; } &&
32216 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032217 { (case "(($ac_try" in
32218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32219 *) ac_try_echo=$ac_try;;
32220esac
32221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32222 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032223 ac_status=$?
32224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32225 (exit $ac_status); }; }; then
32226 ac_cv_func_std_isnan_in_cmath=yes
32227else
32228 echo "$as_me: failed program was:" >&5
32229sed 's/^/| /' conftest.$ac_ext >&5
32230
Reid Spencera773bd52006-08-04 18:18:08 +000032231 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032232fi
Reid Spencera773bd52006-08-04 18:18:08 +000032233
32234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032235 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032236ac_cpp='$CPP $CPPFLAGS'
32237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32239ac_compiler_gnu=$ac_cv_c_compiler_gnu
32240
32241fi
Reid Spencera773bd52006-08-04 18:18:08 +000032242{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32243echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032244
32245if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032246
32247cat >>confdefs.h <<\_ACEOF
32248#define HAVE_STD_ISNAN_IN_CMATH 1
32249_ACEOF
32250
Reid Spencerabec8f92004-10-27 23:03:44 +000032251fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032252
32253
Reid Spencera773bd52006-08-04 18:18:08 +000032254{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32255echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032256if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
Reid Spencera773bd52006-08-04 18:18:08 +000032259 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032260ac_cpp='$CXXCPP $CPPFLAGS'
32261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32264
Reid Spencerabec8f92004-10-27 23:03:44 +000032265 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032266/* confdefs.h. */
32267_ACEOF
32268cat confdefs.h >>conftest.$ac_ext
32269cat >>conftest.$ac_ext <<_ACEOF
32270/* end confdefs.h. */
32271#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032272int
32273main ()
32274{
32275float f; isinf(f);
32276 ;
32277 return 0;
32278}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032279_ACEOF
32280rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032281if { (ac_try="$ac_compile"
32282case "(($ac_try" in
32283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284 *) ac_try_echo=$ac_try;;
32285esac
32286eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32287 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032289 grep -v '^ *+' conftest.er1 >conftest.err
32290 rm -f conftest.er1
32291 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32295 { (case "(($ac_try" in
32296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32297 *) ac_try_echo=$ac_try;;
32298esac
32299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32300 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032301 ac_status=$?
32302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32303 (exit $ac_status); }; } &&
32304 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032305 { (case "(($ac_try" in
32306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32307 *) ac_try_echo=$ac_try;;
32308esac
32309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32310 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032311 ac_status=$?
32312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32313 (exit $ac_status); }; }; then
32314 ac_cv_func_isinf_in_math_h=yes
32315else
32316 echo "$as_me: failed program was:" >&5
32317sed 's/^/| /' conftest.$ac_ext >&5
32318
Reid Spencera773bd52006-08-04 18:18:08 +000032319 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032320fi
Reid Spencera773bd52006-08-04 18:18:08 +000032321
32322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032323 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032324ac_cpp='$CPP $CPPFLAGS'
32325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32327ac_compiler_gnu=$ac_cv_c_compiler_gnu
32328
32329fi
Reid Spencera773bd52006-08-04 18:18:08 +000032330{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32331echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032332
32333if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032334
32335cat >>confdefs.h <<\_ACEOF
32336#define HAVE_ISINF_IN_MATH_H 1
32337_ACEOF
32338
Reid Spencerabec8f92004-10-27 23:03:44 +000032339fi
32340
Reid Spencera773bd52006-08-04 18:18:08 +000032341{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32342echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032343if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32344 echo $ECHO_N "(cached) $ECHO_C" >&6
32345else
Reid Spencera773bd52006-08-04 18:18:08 +000032346 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032347ac_cpp='$CXXCPP $CPPFLAGS'
32348ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32349ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32350ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32351
Reid Spencerabec8f92004-10-27 23:03:44 +000032352 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032353/* confdefs.h. */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h. */
32358#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032359int
32360main ()
32361{
32362float f; isinf(f);
32363 ;
32364 return 0;
32365}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032366_ACEOF
32367rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032368if { (ac_try="$ac_compile"
32369case "(($ac_try" in
32370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32371 *) ac_try_echo=$ac_try;;
32372esac
32373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32374 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032376 grep -v '^ *+' conftest.er1 >conftest.err
32377 rm -f conftest.er1
32378 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32382 { (case "(($ac_try" in
32383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384 *) ac_try_echo=$ac_try;;
32385esac
32386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; } &&
32391 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032392 { (case "(($ac_try" in
32393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32394 *) ac_try_echo=$ac_try;;
32395esac
32396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32397 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032398 ac_status=$?
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
32401 ac_cv_func_isinf_in_cmath=yes
32402else
32403 echo "$as_me: failed program was:" >&5
32404sed 's/^/| /' conftest.$ac_ext >&5
32405
Reid Spencera773bd52006-08-04 18:18:08 +000032406 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032407fi
Reid Spencera773bd52006-08-04 18:18:08 +000032408
32409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032410 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032411ac_cpp='$CPP $CPPFLAGS'
32412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32414ac_compiler_gnu=$ac_cv_c_compiler_gnu
32415
32416fi
Reid Spencera773bd52006-08-04 18:18:08 +000032417{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32418echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032419
32420if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032421
32422cat >>confdefs.h <<\_ACEOF
32423#define HAVE_ISINF_IN_CMATH 1
32424_ACEOF
32425
Reid Spencerabec8f92004-10-27 23:03:44 +000032426fi
32427
Reid Spencera773bd52006-08-04 18:18:08 +000032428{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32429echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032430if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32431 echo $ECHO_N "(cached) $ECHO_C" >&6
32432else
Reid Spencera773bd52006-08-04 18:18:08 +000032433 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032434ac_cpp='$CXXCPP $CPPFLAGS'
32435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32438
Reid Spencerabec8f92004-10-27 23:03:44 +000032439 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032440/* confdefs.h. */
32441_ACEOF
32442cat confdefs.h >>conftest.$ac_ext
32443cat >>conftest.$ac_ext <<_ACEOF
32444/* end confdefs.h. */
32445#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032446int
32447main ()
32448{
32449float f; std::isinf(f)}
32450 ;
32451 return 0;
32452}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032453_ACEOF
32454rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032455if { (ac_try="$ac_compile"
32456case "(($ac_try" in
32457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32458 *) ac_try_echo=$ac_try;;
32459esac
32460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32461 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032462 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032463 grep -v '^ *+' conftest.er1 >conftest.err
32464 rm -f conftest.er1
32465 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32467 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32469 { (case "(($ac_try" in
32470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32471 *) ac_try_echo=$ac_try;;
32472esac
32473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32474 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032475 ac_status=$?
32476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32477 (exit $ac_status); }; } &&
32478 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032479 { (case "(($ac_try" in
32480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32481 *) ac_try_echo=$ac_try;;
32482esac
32483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32484 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032485 ac_status=$?
32486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487 (exit $ac_status); }; }; then
32488 ac_cv_func_std_isinf_in_cmath=yes
32489else
32490 echo "$as_me: failed program was:" >&5
32491sed 's/^/| /' conftest.$ac_ext >&5
32492
Reid Spencera773bd52006-08-04 18:18:08 +000032493 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032494fi
Reid Spencera773bd52006-08-04 18:18:08 +000032495
32496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032497 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032498ac_cpp='$CPP $CPPFLAGS'
32499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32501ac_compiler_gnu=$ac_cv_c_compiler_gnu
32502
32503fi
Reid Spencera773bd52006-08-04 18:18:08 +000032504{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32505echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032506
32507if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032508
32509cat >>confdefs.h <<\_ACEOF
32510#define HAVE_STD_ISINF_IN_CMATH 1
32511_ACEOF
32512
Reid Spencerabec8f92004-10-27 23:03:44 +000032513fi
32514
Reid Spencera773bd52006-08-04 18:18:08 +000032515{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32516echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032517if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32518 echo $ECHO_N "(cached) $ECHO_C" >&6
32519else
Reid Spencera773bd52006-08-04 18:18:08 +000032520 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032521ac_cpp='$CXXCPP $CPPFLAGS'
32522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32525
Reid Spencerabec8f92004-10-27 23:03:44 +000032526 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032527/* confdefs.h. */
32528_ACEOF
32529cat confdefs.h >>conftest.$ac_ext
32530cat >>conftest.$ac_ext <<_ACEOF
32531/* end confdefs.h. */
32532#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032533int
32534main ()
32535{
32536float f; finite(f);
32537 ;
32538 return 0;
32539}
Brian Gaeked59a6472004-07-21 03:33:58 +000032540_ACEOF
32541rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032542if { (ac_try="$ac_compile"
32543case "(($ac_try" in
32544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32545 *) ac_try_echo=$ac_try;;
32546esac
32547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32548 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032550 grep -v '^ *+' conftest.er1 >conftest.err
32551 rm -f conftest.er1
32552 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32554 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32556 { (case "(($ac_try" in
32557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32558 *) ac_try_echo=$ac_try;;
32559esac
32560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32561 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032566 { (case "(($ac_try" in
32567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32568 *) ac_try_echo=$ac_try;;
32569esac
32570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32571 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032572 ac_status=$?
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); }; }; then
32575 ac_cv_func_finite_in_ieeefp_h=yes
32576else
32577 echo "$as_me: failed program was:" >&5
32578sed 's/^/| /' conftest.$ac_ext >&5
32579
Reid Spencera773bd52006-08-04 18:18:08 +000032580 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032581fi
Reid Spencera773bd52006-08-04 18:18:08 +000032582
32583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032584 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032585ac_cpp='$CPP $CPPFLAGS'
32586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32588ac_compiler_gnu=$ac_cv_c_compiler_gnu
32589
32590fi
Reid Spencera773bd52006-08-04 18:18:08 +000032591{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32592echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032593
Brian Gaeke6802b552004-10-28 05:06:45 +000032594if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032595
32596cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032597#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032598_ACEOF
32599
Reid Spencerabec8f92004-10-27 23:03:44 +000032600fi
32601
32602
32603
John Criswell7a73b802003-06-30 21:59:07 +000032604
32605
32606for ac_header in stdlib.h unistd.h
32607do
32608as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032609if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032613 echo $ECHO_N "(cached) $ECHO_C" >&6
32614fi
Reid Spencera773bd52006-08-04 18:18:08 +000032615ac_res=`eval echo '${'$as_ac_Header'}'`
32616 { echo "$as_me:$LINENO: result: $ac_res" >&5
32617echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032618else
32619 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032620{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032622cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032623/* confdefs.h. */
32624_ACEOF
32625cat confdefs.h >>conftest.$ac_ext
32626cat >>conftest.$ac_ext <<_ACEOF
32627/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032628$ac_includes_default
32629#include <$ac_header>
32630_ACEOF
32631rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032632if { (ac_try="$ac_compile"
32633case "(($ac_try" in
32634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32635 *) ac_try_echo=$ac_try;;
32636esac
32637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32638 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032640 grep -v '^ *+' conftest.er1 >conftest.err
32641 rm -f conftest.er1
32642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32644 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32646 { (case "(($ac_try" in
32647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32648 *) ac_try_echo=$ac_try;;
32649esac
32650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32651 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032652 ac_status=$?
32653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32654 (exit $ac_status); }; } &&
32655 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032656 { (case "(($ac_try" in
32657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32658 *) ac_try_echo=$ac_try;;
32659esac
32660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32661 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_header_compiler=yes
32666else
32667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032668sed 's/^/| /' conftest.$ac_ext >&5
32669
Reid Spencera773bd52006-08-04 18:18:08 +000032670 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032671fi
Reid Spencera773bd52006-08-04 18:18:08 +000032672
32673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32674{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32675echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032676
32677# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032678{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32679echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032680cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032681/* confdefs.h. */
32682_ACEOF
32683cat confdefs.h >>conftest.$ac_ext
32684cat >>conftest.$ac_ext <<_ACEOF
32685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032686#include <$ac_header>
32687_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032688if { (ac_try="$ac_cpp conftest.$ac_ext"
32689case "(($ac_try" in
32690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32691 *) ac_try_echo=$ac_try;;
32692esac
32693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032695 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032696 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032697 rm -f conftest.er1
32698 cat conftest.err >&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); } >/dev/null; then
32701 if test -s conftest.err; then
32702 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032704 else
32705 ac_cpp_err=
32706 fi
32707else
32708 ac_cpp_err=yes
32709fi
32710if test -z "$ac_cpp_err"; then
32711 ac_header_preproc=yes
32712else
32713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032714sed 's/^/| /' conftest.$ac_ext >&5
32715
John Criswell7a73b802003-06-30 21:59:07 +000032716 ac_header_preproc=no
32717fi
Reid Spencera773bd52006-08-04 18:18:08 +000032718
John Criswell7a73b802003-06-30 21:59:07 +000032719rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032720{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32721echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032722
32723# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32725 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32730 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032731 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032732 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032745 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032746## ----------------------------------- ##
32747## Report this to llvmbugs@cs.uiuc.edu ##
32748## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032749_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032750 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032751 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032752esac
Reid Spencera773bd52006-08-04 18:18:08 +000032753{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32755if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032756 echo $ECHO_N "(cached) $ECHO_C" >&6
32757else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032758 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032759fi
Reid Spencera773bd52006-08-04 18:18:08 +000032760ac_res=`eval echo '${'$as_ac_Header'}'`
32761 { echo "$as_me:$LINENO: result: $ac_res" >&5
32762echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032763
32764fi
32765if test `eval echo '${'$as_ac_Header'}'` = yes; then
32766 cat >>confdefs.h <<_ACEOF
32767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32768_ACEOF
32769
32770fi
32771
32772done
32773
32774
32775for ac_func in getpagesize
32776do
32777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032778{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032781 echo $ECHO_N "(cached) $ECHO_C" >&6
32782else
32783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032784/* confdefs.h. */
32785_ACEOF
32786cat confdefs.h >>conftest.$ac_ext
32787cat >>conftest.$ac_ext <<_ACEOF
32788/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32791#define $ac_func innocuous_$ac_func
32792
John Criswell7a73b802003-06-30 21:59:07 +000032793/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032794 which can conflict with char $ac_func (); below.
32795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32796 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032797
John Criswell0c38eaf2003-09-10 15:17:25 +000032798#ifdef __STDC__
32799# include <limits.h>
32800#else
32801# include <assert.h>
32802#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032803
32804#undef $ac_func
32805
Reid Spencera773bd52006-08-04 18:18:08 +000032806/* Override any GCC internal prototype to avoid an error.
32807 Use char because int might match the return type of a GCC
32808 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032809#ifdef __cplusplus
32810extern "C"
32811#endif
John Criswell7a73b802003-06-30 21:59:07 +000032812char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032813/* The GNU C library defines this for functions which it implements
32814 to always fail with ENOSYS. Some functions are actually named
32815 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032816#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032817choke me
John Criswell7a73b802003-06-30 21:59:07 +000032818#endif
32819
John Criswell0c38eaf2003-09-10 15:17:25 +000032820int
32821main ()
32822{
Reid Spencera773bd52006-08-04 18:18:08 +000032823return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032824 ;
32825 return 0;
32826}
32827_ACEOF
32828rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032829if { (ac_try="$ac_link"
32830case "(($ac_try" in
32831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32832 *) ac_try_echo=$ac_try;;
32833esac
32834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32835 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032836 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032837 grep -v '^ *+' conftest.er1 >conftest.err
32838 rm -f conftest.er1
32839 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32841 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32843 { (case "(($ac_try" in
32844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845 *) ac_try_echo=$ac_try;;
32846esac
32847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32848 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; } &&
32852 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032853 { (case "(($ac_try" in
32854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32855 *) ac_try_echo=$ac_try;;
32856esac
32857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32858 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032859 ac_status=$?
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); }; }; then
32862 eval "$as_ac_var=yes"
32863else
32864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032865sed 's/^/| /' conftest.$ac_ext >&5
32866
Reid Spencera773bd52006-08-04 18:18:08 +000032867 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032868fi
Reid Spencera773bd52006-08-04 18:18:08 +000032869
32870rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032871 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032872fi
Reid Spencera773bd52006-08-04 18:18:08 +000032873ac_res=`eval echo '${'$as_ac_var'}'`
32874 { echo "$as_me:$LINENO: result: $ac_res" >&5
32875echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032876if test `eval echo '${'$as_ac_var'}'` = yes; then
32877 cat >>confdefs.h <<_ACEOF
32878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32879_ACEOF
32880
32881fi
32882done
32883
Reid Spencera773bd52006-08-04 18:18:08 +000032884{ echo "$as_me:$LINENO: checking for working mmap" >&5
32885echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032886if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32887 echo $ECHO_N "(cached) $ECHO_C" >&6
32888else
32889 if test "$cross_compiling" = yes; then
32890 ac_cv_func_mmap_fixed_mapped=no
32891else
32892 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032893/* confdefs.h. */
32894_ACEOF
32895cat confdefs.h >>conftest.$ac_ext
32896cat >>conftest.$ac_ext <<_ACEOF
32897/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032898$ac_includes_default
32899/* malloc might have been renamed as rpl_malloc. */
32900#undef malloc
32901
32902/* Thanks to Mike Haertel and Jim Avera for this test.
32903 Here is a matrix of mmap possibilities:
32904 mmap private not fixed
32905 mmap private fixed at somewhere currently unmapped
32906 mmap private fixed at somewhere already mapped
32907 mmap shared not fixed
32908 mmap shared fixed at somewhere currently unmapped
32909 mmap shared fixed at somewhere already mapped
32910 For private mappings, we should verify that changes cannot be read()
32911 back from the file, nor mmap's back from the file at a different
32912 address. (There have been systems where private was not correctly
32913 implemented like the infamous i386 svr4.0, and systems where the
32914 VM page cache was not coherent with the file system buffer cache
32915 like early versions of FreeBSD and possibly contemporary NetBSD.)
32916 For shared mappings, we should conversely verify that changes get
32917 propagated back to all the places they're supposed to be.
32918
32919 Grep wants private fixed already mapped.
32920 The main things grep needs to know about mmap are:
32921 * does it exist and is it safe to write into the mmap'd area
32922 * how to use it (BSD variants) */
32923
32924#include <fcntl.h>
32925#include <sys/mman.h>
32926
32927#if !STDC_HEADERS && !HAVE_STDLIB_H
32928char *malloc ();
32929#endif
32930
32931/* This mess was copied from the GNU getpagesize.h. */
32932#if !HAVE_GETPAGESIZE
32933/* Assume that all systems that can run configure have sys/param.h. */
32934# if !HAVE_SYS_PARAM_H
32935# define HAVE_SYS_PARAM_H 1
32936# endif
32937
32938# ifdef _SC_PAGESIZE
32939# define getpagesize() sysconf(_SC_PAGESIZE)
32940# else /* no _SC_PAGESIZE */
32941# if HAVE_SYS_PARAM_H
32942# include <sys/param.h>
32943# ifdef EXEC_PAGESIZE
32944# define getpagesize() EXEC_PAGESIZE
32945# else /* no EXEC_PAGESIZE */
32946# ifdef NBPG
32947# define getpagesize() NBPG * CLSIZE
32948# ifndef CLSIZE
32949# define CLSIZE 1
32950# endif /* no CLSIZE */
32951# else /* no NBPG */
32952# ifdef NBPC
32953# define getpagesize() NBPC
32954# else /* no NBPC */
32955# ifdef PAGESIZE
32956# define getpagesize() PAGESIZE
32957# endif /* PAGESIZE */
32958# endif /* no NBPC */
32959# endif /* no NBPG */
32960# endif /* no EXEC_PAGESIZE */
32961# else /* no HAVE_SYS_PARAM_H */
32962# define getpagesize() 8192 /* punt totally */
32963# endif /* no HAVE_SYS_PARAM_H */
32964# endif /* no _SC_PAGESIZE */
32965
32966#endif /* no HAVE_GETPAGESIZE */
32967
32968int
32969main ()
32970{
32971 char *data, *data2, *data3;
32972 int i, pagesize;
32973 int fd;
32974
32975 pagesize = getpagesize ();
32976
32977 /* First, make a file with some known garbage in it. */
32978 data = (char *) malloc (pagesize);
32979 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032980 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032981 for (i = 0; i < pagesize; ++i)
32982 *(data + i) = rand ();
32983 umask (0);
32984 fd = creat ("conftest.mmap", 0600);
32985 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032986 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032987 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032988 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032989 close (fd);
32990
32991 /* Next, try to mmap the file at a fixed address which already has
32992 something else allocated at it. If we can, also make sure that
32993 we see the same garbage. */
32994 fd = open ("conftest.mmap", O_RDWR);
32995 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032996 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032997 data2 = (char *) malloc (2 * pagesize);
32998 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032999 return 1;
33000 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000033001 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000033002 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000033003 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033004 for (i = 0; i < pagesize; ++i)
33005 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033006 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033007
33008 /* Finally, make sure that changes to the mapped area do not
33009 percolate back to the file as seen by read(). (This is a bug on
33010 some variants of i386 svr4.0.) */
33011 for (i = 0; i < pagesize; ++i)
33012 *(data2 + i) = *(data2 + i) + 1;
33013 data3 = (char *) malloc (pagesize);
33014 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000033015 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033016 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000033017 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033018 for (i = 0; i < pagesize; ++i)
33019 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000033020 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000033021 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000033022 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000033023}
33024_ACEOF
33025rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033026if { (ac_try="$ac_link"
33027case "(($ac_try" in
33028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029 *) ac_try_echo=$ac_try;;
33030esac
33031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33032 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033033 ac_status=$?
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033036 { (case "(($ac_try" in
33037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038 *) ac_try_echo=$ac_try;;
33039esac
33040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033042 ac_status=$?
33043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044 (exit $ac_status); }; }; then
33045 ac_cv_func_mmap_fixed_mapped=yes
33046else
33047 echo "$as_me: program exited with status $ac_status" >&5
33048echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033049sed 's/^/| /' conftest.$ac_ext >&5
33050
John Criswell7a73b802003-06-30 21:59:07 +000033051( exit $ac_status )
33052ac_cv_func_mmap_fixed_mapped=no
33053fi
Reid Spencera773bd52006-08-04 18:18:08 +000033054rm -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 +000033055fi
Reid Spencera773bd52006-08-04 18:18:08 +000033056
33057
John Criswell7a73b802003-06-30 21:59:07 +000033058fi
Reid Spencera773bd52006-08-04 18:18:08 +000033059{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33060echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033061if test $ac_cv_func_mmap_fixed_mapped = yes; then
33062
33063cat >>confdefs.h <<\_ACEOF
33064#define HAVE_MMAP 1
33065_ACEOF
33066
33067fi
33068rm -f conftest.mmap
33069
Reid Spencera773bd52006-08-04 18:18:08 +000033070{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33071echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033072if test "${ac_cv_func_mmap_file+set}" = set; then
33073 echo $ECHO_N "(cached) $ECHO_C" >&6
33074else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033075 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033076ac_cpp='$CPP $CPPFLAGS'
33077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33079ac_compiler_gnu=$ac_cv_c_compiler_gnu
33080
33081 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033082 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033083else
33084 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033085
Reid Spencer777ce172004-09-20 04:09:56 +000033086 /* confdefs.h. */
33087_ACEOF
33088cat confdefs.h >>conftest.$ac_ext
33089cat >>conftest.$ac_ext <<_ACEOF
33090/* end confdefs.h. */
33091
John Criswell7a73b802003-06-30 21:59:07 +000033092#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033093#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033094#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033095
33096int
33097main ()
33098{
John Criswell7a73b802003-06-30 21:59:07 +000033099
33100 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033101 fd = creat ("foo",0777);
33102 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33103 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033104 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033105 ;
33106 return 0;
33107}
John Criswell7a73b802003-06-30 21:59:07 +000033108_ACEOF
33109rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033110if { (ac_try="$ac_link"
33111case "(($ac_try" in
33112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113 *) ac_try_echo=$ac_try;;
33114esac
33115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033117 ac_status=$?
33118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033120 { (case "(($ac_try" in
33121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33122 *) ac_try_echo=$ac_try;;
33123esac
33124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33125 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033126 ac_status=$?
33127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33128 (exit $ac_status); }; }; then
33129 ac_cv_func_mmap_file=yes
33130else
33131 echo "$as_me: program exited with status $ac_status" >&5
33132echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033133sed 's/^/| /' conftest.$ac_ext >&5
33134
John Criswell7a73b802003-06-30 21:59:07 +000033135( exit $ac_status )
33136ac_cv_func_mmap_file=no
33137fi
Reid Spencera773bd52006-08-04 18:18:08 +000033138rm -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 +000033139fi
Reid Spencera773bd52006-08-04 18:18:08 +000033140
33141
John Criswell7a73b802003-06-30 21:59:07 +000033142 ac_ext=c
33143ac_cpp='$CPP $CPPFLAGS'
33144ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33145ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33146ac_compiler_gnu=$ac_cv_c_compiler_gnu
33147
33148
33149fi
Reid Spencera773bd52006-08-04 18:18:08 +000033150{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33151echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033152if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033153
33154cat >>confdefs.h <<\_ACEOF
33155#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033156_ACEOF
33157
33158 MMAP_FILE=yes
33159
33160fi
33161
Reid Spencera773bd52006-08-04 18:18:08 +000033162{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33163echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033164if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33165 echo $ECHO_N "(cached) $ECHO_C" >&6
33166else
Reid Spencer582a23c2004-12-29 07:07:57 +000033167 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033168 ac_cv_need_dev_zero_for_mmap=yes
33169 else
33170 ac_cv_need_dev_zero_for_mmap=no
33171 fi
33172
33173fi
Reid Spencera773bd52006-08-04 18:18:08 +000033174{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33175echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033176if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33177
33178cat >>confdefs.h <<\_ACEOF
33179#define NEED_DEV_ZERO_FOR_MMAP 1
33180_ACEOF
33181
33182fi
Reid Spencera773bd52006-08-04 18:18:08 +000033183{ echo "$as_me:$LINENO: checking for mprotect" >&5
33184echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033185if test "${ac_cv_func_mprotect+set}" = set; then
33186 echo $ECHO_N "(cached) $ECHO_C" >&6
33187else
33188 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033189/* confdefs.h. */
33190_ACEOF
33191cat confdefs.h >>conftest.$ac_ext
33192cat >>conftest.$ac_ext <<_ACEOF
33193/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033194/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33196#define mprotect innocuous_mprotect
33197
John Criswell7a73b802003-06-30 21:59:07 +000033198/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033199 which can conflict with char mprotect (); below.
33200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33201 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033202
John Criswell0c38eaf2003-09-10 15:17:25 +000033203#ifdef __STDC__
33204# include <limits.h>
33205#else
33206# include <assert.h>
33207#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033208
33209#undef mprotect
33210
Reid Spencera773bd52006-08-04 18:18:08 +000033211/* Override any GCC internal prototype to avoid an error.
33212 Use char because int might match the return type of a GCC
33213 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033214#ifdef __cplusplus
33215extern "C"
33216#endif
John Criswell7a73b802003-06-30 21:59:07 +000033217char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033218/* The GNU C library defines this for functions which it implements
33219 to always fail with ENOSYS. Some functions are actually named
33220 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033221#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033222choke me
John Criswell7a73b802003-06-30 21:59:07 +000033223#endif
33224
John Criswell0c38eaf2003-09-10 15:17:25 +000033225int
33226main ()
33227{
Reid Spencera773bd52006-08-04 18:18:08 +000033228return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033229 ;
33230 return 0;
33231}
33232_ACEOF
33233rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033234if { (ac_try="$ac_link"
33235case "(($ac_try" in
33236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237 *) ac_try_echo=$ac_try;;
33238esac
33239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033241 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033242 grep -v '^ *+' conftest.er1 >conftest.err
33243 rm -f conftest.er1
33244 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33248 { (case "(($ac_try" in
33249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250 *) ac_try_echo=$ac_try;;
33251esac
33252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033254 ac_status=$?
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; } &&
33257 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033258 { (case "(($ac_try" in
33259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33260 *) ac_try_echo=$ac_try;;
33261esac
33262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33263 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033264 ac_status=$?
33265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266 (exit $ac_status); }; }; then
33267 ac_cv_func_mprotect=yes
33268else
33269 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033270sed 's/^/| /' conftest.$ac_ext >&5
33271
Reid Spencera773bd52006-08-04 18:18:08 +000033272 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033273fi
Reid Spencera773bd52006-08-04 18:18:08 +000033274
33275rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033276 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033277fi
Reid Spencera773bd52006-08-04 18:18:08 +000033278{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33279echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033280if test $ac_cv_func_mprotect = yes; then
33281 :
33282else
33283 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33284echo "$as_me: error: Function mprotect() required but not found" >&2;}
33285 { (exit 1); exit 1; }; }
33286fi
33287
33288
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033289if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033290then
Reid Spencer582a23c2004-12-29 07:07:57 +000033291 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33292echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033293fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033294if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033295then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033296 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33297echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033298fi
John Criswell7a73b802003-06-30 21:59:07 +000033299
33300
Reid Spencera773bd52006-08-04 18:18:08 +000033301{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33302echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033303if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33304 echo $ECHO_N "(cached) $ECHO_C" >&6
33305else
33306 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033307if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033308 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033309 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033310 if test $? -eq 0 ; then
33311 llvm_cv_llvmgcc_sanity="yes"
33312 fi
33313 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033314fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033315fi
Reid Spencera773bd52006-08-04 18:18:08 +000033316{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33317echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033318
33319if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033320 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033321 LLVMCC1=$llvmcc1path
33322
Reid Spencer502935f2004-12-22 05:56:56 +000033323 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033324 LLVMCC1PLUS=$llvmcc1pluspath
33325
Reid Spencer502935f2004-12-22 05:56:56 +000033326 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33327 LLVMGCCDIR=$llvmgccdir
33328
Reid Spencer282d8c12006-12-21 22:55:41 +000033329 llvmgcclibexec=`echo "$llvmcc1path" | sed 's,/cc1,,'`
33330 LLVMGCCLIBEXEC=$llvmgcclibexec
33331
Reid Spencerb5d75b82006-05-09 00:31:01 +000033332 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033333 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33334 LLVMGCC_VERSION=$llvmgccversion
33335
33336 LLVMGCC_MAJVERS=$llvmgccmajvers
33337
Brian Gaekef3b24102003-11-16 18:38:14 +000033338fi
33339
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033340SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033341
33342
Reid Spencere9de0912004-08-20 09:03:57 +000033343# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033344# information into substitutions that will end up in Makefile.config.in
33345# that these configured values can be used by the makefiles
Jeff Cohen28783c32007-01-12 18:22:38 +000033346if test "${prefix}" = "NONE" ; then
Reid Spencer05828872006-05-16 08:53:32 +000033347 prefix="/usr/local"
33348fi
Reid Spencere9de0912004-08-20 09:03:57 +000033349eval LLVM_PREFIX="${prefix}";
33350eval LLVM_BINDIR="${prefix}/bin";
33351eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033352eval LLVM_DATADIR="${prefix}/share/llvm";
33353eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33354eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033355eval LLVM_INCLUDEDIR="${prefix}/include";
33356eval LLVM_INFODIR="${prefix}/info";
33357eval LLVM_MANDIR="${prefix}/man";
33358LLVM_CONFIGTIME=`date`
33359
33360
33361
33362
33363
33364
33365
33366
33367
33368
33369
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033370# Place the various directores into the config.h file as #defines so that we
33371# can know about the installation paths within LLVM.
33372
Reid Spencere9de0912004-08-20 09:03:57 +000033373cat >>confdefs.h <<_ACEOF
33374#define LLVM_PREFIX "$LLVM_PREFIX"
33375_ACEOF
33376
33377
33378cat >>confdefs.h <<_ACEOF
33379#define LLVM_BINDIR "$LLVM_BINDIR"
33380_ACEOF
33381
33382
33383cat >>confdefs.h <<_ACEOF
33384#define LLVM_LIBDIR "$LLVM_LIBDIR"
33385_ACEOF
33386
33387
33388cat >>confdefs.h <<_ACEOF
33389#define LLVM_DATADIR "$LLVM_DATADIR"
33390_ACEOF
33391
33392
33393cat >>confdefs.h <<_ACEOF
33394#define LLVM_DATADIR "$LLVM_DOCSDIR"
33395_ACEOF
33396
33397
33398cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033399#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033400_ACEOF
33401
33402
33403cat >>confdefs.h <<_ACEOF
33404#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33405_ACEOF
33406
33407
33408cat >>confdefs.h <<_ACEOF
33409#define LLVM_INFODIR "$LLVM_INFODIR"
33410_ACEOF
33411
33412
33413cat >>confdefs.h <<_ACEOF
33414#define LLVM_MANDIR "$LLVM_MANDIR"
33415_ACEOF
33416
33417
33418cat >>confdefs.h <<_ACEOF
33419#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33420_ACEOF
33421
33422
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033423
Reid Spencera773bd52006-08-04 18:18:08 +000033424ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033425
Reid Spencera773bd52006-08-04 18:18:08 +000033426ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033427
Reid Spencera773bd52006-08-04 18:18:08 +000033428ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033429
Reid Spencera773bd52006-08-04 18:18:08 +000033430ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033431
Reid Spencera773bd52006-08-04 18:18:08 +000033432ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033433
33434
Reid Spencera773bd52006-08-04 18:18:08 +000033435ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033436
33437
Reid Spencerea949cf2006-08-16 00:45:38 +000033438ac_config_files="$ac_config_files llvm.spec"
33439
33440
Reid Spencera773bd52006-08-04 18:18:08 +000033441ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033442
33443
Reid Spencera773bd52006-08-04 18:18:08 +000033444ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033445
33446
Reid Spencera773bd52006-08-04 18:18:08 +000033447ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033448
Reid Spencera773bd52006-08-04 18:18:08 +000033449ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033450
33451
Reid Spencera773bd52006-08-04 18:18:08 +000033452ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033453
33454
Reid Spencera773bd52006-08-04 18:18:08 +000033455ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033456
33457
Reid Spencera773bd52006-08-04 18:18:08 +000033458ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033459
33460
Reid Spencer8b2e1412006-11-17 03:32:33 +000033461ac_config_commands="$ac_config_commands runtime/Makefile"
33462
33463
Reid Spencera773bd52006-08-04 18:18:08 +000033464ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033465
33466
Reid Spencera773bd52006-08-04 18:18:08 +000033467ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033468
33469
Reid Spencera773bd52006-08-04 18:18:08 +000033470ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033471
33472
Reid Spencera773bd52006-08-04 18:18:08 +000033473ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033474
33475
Reid Spencera773bd52006-08-04 18:18:08 +000033476ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033477
33478
33479
John Criswell7a73b802003-06-30 21:59:07 +000033480cat >confcache <<\_ACEOF
33481# This file is a shell script that caches the results of configure
33482# tests run on this system so they can be shared between configure
33483# scripts and configure runs, see configure's option --config-cache.
33484# It is not useful on other systems. If it contains results you don't
33485# want to keep, you may remove or edit it.
33486#
33487# config.status only pays attention to the cache file if you give it
33488# the --recheck option to rerun configure.
33489#
John Criswell0c38eaf2003-09-10 15:17:25 +000033490# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033491# loading this file, other *unset* `ac_cv_foo' will be assigned the
33492# following values.
33493
33494_ACEOF
33495
33496# The following way of writing the cache mishandles newlines in values,
33497# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033498# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033499# Ultrix sh set writes to stderr and can't be redirected directly,
33500# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033501(
33502 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33503 eval ac_val=\$$ac_var
33504 case $ac_val in #(
33505 *${as_nl}*)
33506 case $ac_var in #(
33507 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33508echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33509 esac
33510 case $ac_var in #(
33511 _ | IFS | as_nl) ;; #(
33512 *) $as_unset $ac_var ;;
33513 esac ;;
33514 esac
33515 done
33516
John Criswell7a73b802003-06-30 21:59:07 +000033517 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033518 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33519 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033520 # `set' does not quote correctly, so add quotes (double-quote
33521 # substitution turns \\\\ into \\, and sed turns \\ into \).
33522 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033523 "s/'/'\\\\''/g;
33524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033525 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033526 *)
33527 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033528 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033529 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033530 esac |
33531 sort
33532) |
John Criswell7a73b802003-06-30 21:59:07 +000033533 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033534 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033535 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033536 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033537 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33538 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033539 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33540 :end' >>confcache
33541if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33542 if test -w "$cache_file"; then
33543 test "x$cache_file" != "x/dev/null" &&
33544 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33545echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033546 cat confcache >$cache_file
33547 else
Reid Spencera773bd52006-08-04 18:18:08 +000033548 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33549echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033550 fi
33551fi
33552rm -f confcache
33553
33554test "x$prefix" = xNONE && prefix=$ac_default_prefix
33555# Let make expand exec_prefix.
33556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33557
John Criswell7a73b802003-06-30 21:59:07 +000033558DEFS=-DHAVE_CONFIG_H
33559
John Criswell0c38eaf2003-09-10 15:17:25 +000033560ac_libobjs=
33561ac_ltlibobjs=
33562for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33563 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033564 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33565 ac_i=`echo "$ac_i" | sed "$ac_script"`
33566 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33567 # will be set to the directory where LIBOBJS objects are built.
33568 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33569 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033570done
33571LIBOBJS=$ac_libobjs
33572
33573LTLIBOBJS=$ac_ltlibobjs
33574
33575
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033576if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33577 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33578Usually this means the macro was only invoked conditionally." >&5
33579echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33580Usually this means the macro was only invoked conditionally." >&2;}
33581 { (exit 1); exit 1; }; }
33582fi
33583if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33584 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33585Usually this means the macro was only invoked conditionally." >&5
33586echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33587Usually this means the macro was only invoked conditionally." >&2;}
33588 { (exit 1); exit 1; }; }
33589fi
John Criswell7a73b802003-06-30 21:59:07 +000033590
33591: ${CONFIG_STATUS=./config.status}
33592ac_clean_files_save=$ac_clean_files
33593ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33594{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33595echo "$as_me: creating $CONFIG_STATUS" >&6;}
33596cat >$CONFIG_STATUS <<_ACEOF
33597#! $SHELL
33598# Generated by $as_me.
33599# Run this file to recreate the current configuration.
33600# Compiler output produced by configure, useful for debugging
33601# configure, is in config.log if it exists.
33602
33603debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033604ac_cs_recheck=false
33605ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033606SHELL=\${CONFIG_SHELL-$SHELL}
33607_ACEOF
33608
33609cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033610## --------------------- ##
33611## M4sh Initialization. ##
33612## --------------------- ##
33613
33614# Be Bourne compatible
33615if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33616 emulate sh
33617 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033618 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33619 # is contrary to our usage. Disable this feature.
33620 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033621 setopt NO_GLOB_SUBST
33622else
33623 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033624fi
Reid Spencera773bd52006-08-04 18:18:08 +000033625BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033626DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033627
John Criswell7a73b802003-06-30 21:59:07 +000033628
Reid Spencera773bd52006-08-04 18:18:08 +000033629# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033630# Avoid depending upon Character Ranges.
33631as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33632as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33633as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33634as_cr_digits='0123456789'
33635as_cr_alnum=$as_cr_Letters$as_cr_digits
33636
33637# The user is always right.
33638if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033639 echo "#! /bin/sh" >conf$$.sh
33640 echo "exit 0" >>conf$$.sh
33641 chmod +x conf$$.sh
33642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033643 PATH_SEPARATOR=';'
33644 else
33645 PATH_SEPARATOR=:
33646 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033647 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033648fi
33649
Reid Spencera773bd52006-08-04 18:18:08 +000033650# Support unset when possible.
33651if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33652 as_unset=unset
33653else
33654 as_unset=false
33655fi
John Criswell7a73b802003-06-30 21:59:07 +000033656
Reid Spencera773bd52006-08-04 18:18:08 +000033657
33658# IFS
33659# We need space, tab and new line, in precisely that order. Quoting is
33660# there to prevent editors from complaining about space-tab.
33661# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33662# splitting by setting IFS to empty value.)
33663as_nl='
33664'
33665IFS=" "" $as_nl"
33666
33667# Find who we are. Look in the path if we contain no directory separator.
33668case $0 in
33669 *[\\/]* ) as_myself=$0 ;;
33670 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033671for as_dir in $PATH
33672do
33673 IFS=$as_save_IFS
33674 test -z "$as_dir" && as_dir=.
33675 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33676done
Reid Spencera773bd52006-08-04 18:18:08 +000033677IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033678
Reid Spencera773bd52006-08-04 18:18:08 +000033679 ;;
33680esac
33681# We did not find ourselves, most probably we were run as `sh COMMAND'
33682# in which case we are not to be found in the path.
33683if test "x$as_myself" = x; then
33684 as_myself=$0
33685fi
33686if test ! -f "$as_myself"; then
33687 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33688 { (exit 1); exit 1; }
33689fi
33690
33691# Work around bugs in pre-3.0 UWIN ksh.
33692for as_var in ENV MAIL MAILPATH
33693do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33694done
33695PS1='$ '
33696PS2='> '
33697PS4='+ '
33698
33699# NLS nuisances.
33700for as_var in \
33701 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33702 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33703 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033704do
Reid Spencera773bd52006-08-04 18:18:08 +000033705 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33706 eval $as_var=C; export $as_var
33707 else
33708 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33709 fi
33710done
33711
33712# Required to use basename.
33713if expr a : '\(a\)' >/dev/null 2>&1 &&
33714 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33715 as_expr=expr
33716else
33717 as_expr=false
33718fi
33719
33720if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33721 as_basename=basename
33722else
33723 as_basename=false
33724fi
33725
33726
33727# Name of the executable.
33728as_me=`$as_basename -- "$0" ||
33729$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33730 X"$0" : 'X\(//\)$' \| \
33731 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33732echo X/"$0" |
33733 sed '/^.*\/\([^/][^/]*\)\/*$/{
33734 s//\1/
33735 q
33736 }
33737 /^X\/\(\/\/\)$/{
33738 s//\1/
33739 q
33740 }
33741 /^X\/\(\/\).*/{
33742 s//\1/
33743 q
33744 }
33745 s/.*/./; q'`
33746
33747# CDPATH.
33748$as_unset CDPATH
33749
33750
33751
John Criswell7a73b802003-06-30 21:59:07 +000033752 as_lineno_1=$LINENO
33753 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033754 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033755 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033756
33757 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33758 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033759 # line-number line after each line using $LINENO; the second 'sed'
33760 # does the real work. The second script uses 'N' to pair each
33761 # line-number line with the line containing $LINENO, and appends
33762 # trailing '-' during substitution so that $LINENO is not a special
33763 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033764 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033765 # scripts with optimization help from Paolo Bonzini. Blame Lee
33766 # E. McMahon (1931-1989) for sed's syntax. :-)
33767 sed -n '
33768 p
33769 /[$]LINENO/=
33770 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033771 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033772 s/[$]LINENO.*/&-/
33773 t lineno
33774 b
33775 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033776 N
Reid Spencera773bd52006-08-04 18:18:08 +000033777 :loop
33778 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033779 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033780 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033781 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033782 chmod +x "$as_me.lineno" ||
33783 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033784 { (exit 1); exit 1; }; }
33785
33786 # Don't try to exec as it changes $[0], causing all sort of problems
33787 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033788 # original and so on. Autoconf is especially sensitive to this).
33789 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033790 # Exit status is that of the last command.
33791 exit
33792}
33793
33794
Reid Spencera773bd52006-08-04 18:18:08 +000033795if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33796 as_dirname=dirname
33797else
33798 as_dirname=false
33799fi
33800
33801ECHO_C= ECHO_N= ECHO_T=
33802case `echo -n x` in
33803-n*)
33804 case `echo 'x\c'` in
33805 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33806 *) ECHO_C='\c';;
33807 esac;;
33808*)
33809 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033810esac
33811
Reid Spencera773bd52006-08-04 18:18:08 +000033812if expr a : '\(a\)' >/dev/null 2>&1 &&
33813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033814 as_expr=expr
33815else
33816 as_expr=false
33817fi
33818
33819rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033820if test -d conf$$.dir; then
33821 rm -f conf$$.dir/conf$$.file
33822else
33823 rm -f conf$$.dir
33824 mkdir conf$$.dir
33825fi
John Criswell7a73b802003-06-30 21:59:07 +000033826echo >conf$$.file
33827if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033828 as_ln_s='ln -s'
33829 # ... but there are two gotchas:
33830 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33831 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33832 # In both cases, we have to default to `cp -p'.
33833 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033834 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033835elif ln conf$$.file conf$$ 2>/dev/null; then
33836 as_ln_s=ln
33837else
33838 as_ln_s='cp -p'
33839fi
Reid Spencera773bd52006-08-04 18:18:08 +000033840rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33841rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033842
John Criswell0c38eaf2003-09-10 15:17:25 +000033843if mkdir -p . 2>/dev/null; then
33844 as_mkdir_p=:
33845else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033846 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033847 as_mkdir_p=false
33848fi
33849
Reid Spencera773bd52006-08-04 18:18:08 +000033850# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33851# systems may use methods other than mode bits to determine executability.
33852cat >conf$$.file <<_ASEOF
33853#! /bin/sh
33854exit 0
33855_ASEOF
33856chmod +x conf$$.file
33857if test -x conf$$.file >/dev/null 2>&1; then
33858 as_executable_p="test -x"
33859else
33860 as_executable_p=:
33861fi
33862rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033863
33864# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033865as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033866
33867# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033868as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033869
33870
John Criswell7a73b802003-06-30 21:59:07 +000033871exec 6>&1
33872
Reid Spencera773bd52006-08-04 18:18:08 +000033873# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033874# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033875# values after options handling.
33876ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033877This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033878generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033879
33880 CONFIG_FILES = $CONFIG_FILES
33881 CONFIG_HEADERS = $CONFIG_HEADERS
33882 CONFIG_LINKS = $CONFIG_LINKS
33883 CONFIG_COMMANDS = $CONFIG_COMMANDS
33884 $ $0 $@
33885
Reid Spencera773bd52006-08-04 18:18:08 +000033886on `(hostname || uname -n) 2>/dev/null | sed 1q`
33887"
33888
John Criswell7a73b802003-06-30 21:59:07 +000033889_ACEOF
33890
Reid Spencera773bd52006-08-04 18:18:08 +000033891cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033892# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033893config_files="$ac_config_files"
33894config_headers="$ac_config_headers"
33895config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033896
Reid Spencera773bd52006-08-04 18:18:08 +000033897_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033898
33899cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033900ac_cs_usage="\
33901\`$as_me' instantiates files from templates according to the
33902current configuration.
33903
33904Usage: $0 [OPTIONS] [FILE]...
33905
33906 -h, --help print this help, then exit
33907 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033908 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033909 -d, --debug don't remove temporary files
33910 --recheck update $as_me by reconfiguring in the same conditions
33911 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033912 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033913 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033914 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033915
33916Configuration files:
33917$config_files
33918
33919Configuration headers:
33920$config_headers
33921
John Criswellc764fbc2003-09-06 15:17:13 +000033922Configuration commands:
33923$config_commands
33924
John Criswell7a73b802003-06-30 21:59:07 +000033925Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033926
Reid Spencera773bd52006-08-04 18:18:08 +000033927_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033928cat >>$CONFIG_STATUS <<_ACEOF
33929ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033930llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033931configured by $0, generated by GNU Autoconf 2.60,
33932 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033933
Reid Spencera773bd52006-08-04 18:18:08 +000033934Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033935This config.status script is free software; the Free Software Foundation
33936gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033937
33938ac_pwd='$ac_pwd'
33939srcdir='$srcdir'
33940INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033941_ACEOF
33942
33943cat >>$CONFIG_STATUS <<\_ACEOF
33944# If no file are specified by the user, then we need to provide default
33945# value. By we need to know if files were specified by the user.
33946ac_need_defaults=:
33947while test $# != 0
33948do
33949 case $1 in
33950 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033953 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033955 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033956 ac_option=$1
33957 ac_optarg=$2
33958 ac_shift=shift
33959 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033960 esac
33961
John Criswell0c38eaf2003-09-10 15:17:25 +000033962 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033963 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33965 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33967 echo "$ac_cs_version"; exit ;;
33968 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033969 debug=: ;;
33970 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033971 $ac_shift
33972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033973 ac_need_defaults=false;;
33974 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033975 $ac_shift
33976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033977 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033978 --he | --h)
33979 # Conflict between --help and --header
33980 { echo "$as_me: error: ambiguous option: $1
33981Try \`$0 --help' for more information." >&2
33982 { (exit 1); exit 1; }; };;
33983 --help | --hel | -h )
33984 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33987 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033988
33989 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033990 -*) { echo "$as_me: error: unrecognized option: $1
33991Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033992 { (exit 1); exit 1; }; } ;;
33993
Reid Spencera773bd52006-08-04 18:18:08 +000033994 *) ac_config_targets="$ac_config_targets $1"
33995 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033996
33997 esac
33998 shift
33999done
34000
John Criswell0c38eaf2003-09-10 15:17:25 +000034001ac_configure_extra_args=
34002
34003if $ac_cs_silent; then
34004 exec 6>/dev/null
34005 ac_configure_extra_args="$ac_configure_extra_args --silent"
34006fi
34007
34008_ACEOF
34009cat >>$CONFIG_STATUS <<_ACEOF
34010if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000034011 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34012 CONFIG_SHELL=$SHELL
34013 export CONFIG_SHELL
34014 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000034015fi
34016
John Criswell7a73b802003-06-30 21:59:07 +000034017_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034018cat >>$CONFIG_STATUS <<\_ACEOF
34019exec 5>>config.log
34020{
34021 echo
34022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34023## Running $as_me. ##
34024_ASBOX
34025 echo "$ac_log"
34026} >&5
John Criswell7a73b802003-06-30 21:59:07 +000034027
Reid Spencera773bd52006-08-04 18:18:08 +000034028_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000034029cat >>$CONFIG_STATUS <<_ACEOF
34030#
Reid Spencera773bd52006-08-04 18:18:08 +000034031# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034032#
Reid Spencerc0682832005-02-24 19:05:19 +000034033llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034034
34035_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034036
John Criswell7a73b802003-06-30 21:59:07 +000034037cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034038
34039# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034040for ac_config_target in $ac_config_targets
34041do
Reid Spencera773bd52006-08-04 18:18:08 +000034042 case $ac_config_target in
34043 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34044 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34045 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34046 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34047 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34048 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034049 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034050 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34051 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34052 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34053 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34054 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34055 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34056 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034057 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034058 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34059 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34060 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34061 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34062 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34063
John Criswell7a73b802003-06-30 21:59:07 +000034064 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34065echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34066 { (exit 1); exit 1; }; };;
34067 esac
34068done
34069
Reid Spencera773bd52006-08-04 18:18:08 +000034070
John Criswell7a73b802003-06-30 21:59:07 +000034071# If the user did not use the arguments to specify the items to instantiate,
34072# then the envvar interface is used. Set only those that are not.
34073# We use the long form for the default assignment because of an extremely
34074# bizarre bug on SunOS 4.1.3.
34075if $ac_need_defaults; then
34076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034079fi
34080
John Criswell0c38eaf2003-09-10 15:17:25 +000034081# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034082# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034083# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034084# Hook for its removal unless debugging.
34085# Note that there is a small window in which the directory will not be cleaned:
34086# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034087$debug ||
34088{
Reid Spencera773bd52006-08-04 18:18:08 +000034089 tmp=
34090 trap 'exit_status=$?
34091 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34092' 0
John Criswell7a73b802003-06-30 21:59:07 +000034093 trap '{ (exit 1); exit 1; }' 1 2 13 15
34094}
John Criswell7a73b802003-06-30 21:59:07 +000034095# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034096
John Criswell7a73b802003-06-30 21:59:07 +000034097{
Reid Spencera773bd52006-08-04 18:18:08 +000034098 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034099 test -n "$tmp" && test -d "$tmp"
34100} ||
34101{
Reid Spencera773bd52006-08-04 18:18:08 +000034102 tmp=./conf$$-$RANDOM
34103 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034104} ||
34105{
John Criswell0c38eaf2003-09-10 15:17:25 +000034106 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034107 { (exit 1); exit 1; }
34108}
34109
John Criswell7a73b802003-06-30 21:59:07 +000034110#
Reid Spencera773bd52006-08-04 18:18:08 +000034111# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034112#
34113
34114# No need to generate the scripts if there are no CONFIG_FILES.
34115# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034116if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034117
34118_ACEOF
34119
Reid Spencera773bd52006-08-04 18:18:08 +000034120
34121
34122ac_delim='%!_!# '
34123for ac_last_try in false false false false false :; do
34124 cat >conf$$subs.sed <<_ACEOF
34125SHELL!$SHELL$ac_delim
34126PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34127PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34128PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34129PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34130PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34131PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34132exec_prefix!$exec_prefix$ac_delim
34133prefix!$prefix$ac_delim
34134program_transform_name!$program_transform_name$ac_delim
34135bindir!$bindir$ac_delim
34136sbindir!$sbindir$ac_delim
34137libexecdir!$libexecdir$ac_delim
34138datarootdir!$datarootdir$ac_delim
34139datadir!$datadir$ac_delim
34140sysconfdir!$sysconfdir$ac_delim
34141sharedstatedir!$sharedstatedir$ac_delim
34142localstatedir!$localstatedir$ac_delim
34143includedir!$includedir$ac_delim
34144oldincludedir!$oldincludedir$ac_delim
34145docdir!$docdir$ac_delim
34146infodir!$infodir$ac_delim
34147htmldir!$htmldir$ac_delim
34148dvidir!$dvidir$ac_delim
34149pdfdir!$pdfdir$ac_delim
34150psdir!$psdir$ac_delim
34151libdir!$libdir$ac_delim
34152localedir!$localedir$ac_delim
34153mandir!$mandir$ac_delim
34154DEFS!$DEFS$ac_delim
34155ECHO_C!$ECHO_C$ac_delim
34156ECHO_N!$ECHO_N$ac_delim
34157ECHO_T!$ECHO_T$ac_delim
34158LIBS!$LIBS$ac_delim
34159build_alias!$build_alias$ac_delim
34160host_alias!$host_alias$ac_delim
34161target_alias!$target_alias$ac_delim
34162LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34163subdirs!$subdirs$ac_delim
34164build!$build$ac_delim
34165build_cpu!$build_cpu$ac_delim
34166build_vendor!$build_vendor$ac_delim
34167build_os!$build_os$ac_delim
34168host!$host$ac_delim
34169host_cpu!$host_cpu$ac_delim
34170host_vendor!$host_vendor$ac_delim
34171host_os!$host_os$ac_delim
34172target!$target$ac_delim
34173target_cpu!$target_cpu$ac_delim
34174target_vendor!$target_vendor$ac_delim
34175target_os!$target_os$ac_delim
34176OS!$OS$ac_delim
34177LINKALL!$LINKALL$ac_delim
34178NOLINKALL!$NOLINKALL$ac_delim
34179LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34180LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34181ARCH!$ARCH$ac_delim
34182ENDIAN!$ENDIAN$ac_delim
34183CC!$CC$ac_delim
34184CFLAGS!$CFLAGS$ac_delim
34185LDFLAGS!$LDFLAGS$ac_delim
34186CPPFLAGS!$CPPFLAGS$ac_delim
34187ac_ct_CC!$ac_ct_CC$ac_delim
34188EXEEXT!$EXEEXT$ac_delim
34189OBJEXT!$OBJEXT$ac_delim
34190CPP!$CPP$ac_delim
34191GREP!$GREP$ac_delim
34192EGREP!$EGREP$ac_delim
34193LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34194BUILD_CC!$BUILD_CC$ac_delim
34195BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34196CVSBUILD!$CVSBUILD$ac_delim
34197ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34198DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034199DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034200JIT!$JIT$ac_delim
34201TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34202ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34203ENABLE_THREADS!$ENABLE_THREADS$ac_delim
Reid Spencer89b0d992006-12-16 22:07:52 +000034204ENABLE_PIC!$ENABLE_PIC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034205TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034206ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034207EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34208CXX!$CXX$ac_delim
34209CXXFLAGS!$CXXFLAGS$ac_delim
34210ac_ct_CXX!$ac_ct_CXX$ac_delim
34211LEX!$LEX$ac_delim
34212LEXLIB!$LEXLIB$ac_delim
34213LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34214FLEX!$FLEX$ac_delim
34215YACC!$YACC$ac_delim
34216YFLAGS!$YFLAGS$ac_delim
34217BISON!$BISON$ac_delim
34218NM!$NM$ac_delim
34219ifGNUmake!$ifGNUmake$ac_delim
34220LN_S!$LN_S$ac_delim
34221CMP!$CMP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034222_ACEOF
34223
34224 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34225 break
34226 elif $ac_last_try; then
34227 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34228echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34229 { (exit 1); exit 1; }; }
34230 else
34231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034232 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034233done
34234
34235ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34236if test -n "$ac_eof"; then
34237 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34238 ac_eof=`expr $ac_eof + 1`
34239fi
34240
34241cat >>$CONFIG_STATUS <<_ACEOF
34242cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34243/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34244_ACEOF
34245sed '
34246s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34247s/^/s,@/; s/!/@,|#_!!_#|/
34248:n
34249t n
34250s/'"$ac_delim"'$/,g/; t
34251s/$/\\/; p
34252N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34253' >>$CONFIG_STATUS <conf$$subs.sed
34254rm -f conf$$subs.sed
34255cat >>$CONFIG_STATUS <<_ACEOF
34256CEOF$ac_eof
34257_ACEOF
34258
34259
34260ac_delim='%!_!# '
34261for ac_last_try in false false false false false :; do
34262 cat >conf$$subs.sed <<_ACEOF
Reid Spencer89b0d992006-12-16 22:07:52 +000034263CP!$CP$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034264DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034265FIND!$FIND$ac_delim
34266MKDIR!$MKDIR$ac_delim
34267MV!$MV$ac_delim
34268RANLIB!$RANLIB$ac_delim
34269RM!$RM$ac_delim
34270SED!$SED$ac_delim
34271TAR!$TAR$ac_delim
34272BINPWD!$BINPWD$ac_delim
34273GRAPHVIZ!$GRAPHVIZ$ac_delim
34274DOT!$DOT$ac_delim
34275GV!$GV$ac_delim
34276DOTTY!$DOTTY$ac_delim
34277PERL!$PERL$ac_delim
34278HAVE_PERL!$HAVE_PERL$ac_delim
34279INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34280INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34281INSTALL_DATA!$INSTALL_DATA$ac_delim
34282BZIP2!$BZIP2$ac_delim
34283DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034284GROFF!$GROFF$ac_delim
34285GZIP!$GZIP$ac_delim
34286POD2HTML!$POD2HTML$ac_delim
34287POD2MAN!$POD2MAN$ac_delim
34288RUNTEST!$RUNTEST$ac_delim
34289TCLSH!$TCLSH$ac_delim
34290ZIP!$ZIP$ac_delim
34291INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34292INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34293CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34294CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34295LIBADD_DL!$LIBADD_DL$ac_delim
34296ECHO!$ECHO$ac_delim
34297AR!$AR$ac_delim
34298STRIP!$STRIP$ac_delim
34299CXXCPP!$CXXCPP$ac_delim
34300F77!$F77$ac_delim
34301FFLAGS!$FFLAGS$ac_delim
34302ac_ct_F77!$ac_ct_F77$ac_delim
34303LIBTOOL!$LIBTOOL$ac_delim
34304ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34305LLVMGCC!$LLVMGCC$ac_delim
34306LLVMGXX!$LLVMGXX$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034307HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034308HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034309ALLOCA!$ALLOCA$ac_delim
34310MMAP_FILE!$MMAP_FILE$ac_delim
34311LLVMCC1!$LLVMCC1$ac_delim
34312LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34313LLVMGCCDIR!$LLVMGCCDIR$ac_delim
Reid Spencer282d8c12006-12-21 22:55:41 +000034314LLVMGCCLIBEXEC!$LLVMGCCLIBEXEC$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034315LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34316LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34317SHLIBEXT!$SHLIBEXT$ac_delim
34318LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34319LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34320LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34321LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34322LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34323LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34324LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34325LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34326LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34327LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34328LIBOBJS!$LIBOBJS$ac_delim
34329LTLIBOBJS!$LTLIBOBJS$ac_delim
34330_ACEOF
34331
Reid Spencer282d8c12006-12-21 22:55:41 +000034332 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
Reid Spencera773bd52006-08-04 18:18:08 +000034333 break
34334 elif $ac_last_try; then
34335 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34336echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34337 { (exit 1); exit 1; }; }
34338 else
34339 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34340 fi
34341done
34342
34343ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34344if test -n "$ac_eof"; then
34345 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34346 ac_eof=`expr $ac_eof + 1`
34347fi
34348
34349cat >>$CONFIG_STATUS <<_ACEOF
34350cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34352_ACEOF
34353sed '
34354s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34355s/^/s,@/; s/!/@,|#_!!_#|/
34356:n
34357t n
34358s/'"$ac_delim"'$/,g/; t
34359s/$/\\/; p
34360N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34361' >>$CONFIG_STATUS <conf$$subs.sed
34362rm -f conf$$subs.sed
34363cat >>$CONFIG_STATUS <<_ACEOF
34364:end
34365s/|#_!!_#|//g
34366CEOF$ac_eof
34367_ACEOF
34368
34369
34370# VPATH may cause trouble with some makes, so we remove $(srcdir),
34371# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34372# trailing colons and then remove the whole line if VPATH becomes empty
34373# (actually we leave an empty line to preserve line numbers).
34374if test "x$srcdir" = x.; then
34375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34376s/:*\$(srcdir):*/:/
34377s/:*\${srcdir}:*/:/
34378s/:*@srcdir@:*/:/
34379s/^\([^=]*=[ ]*\):*/\1/
34380s/:*$//
34381s/^[^=]*=[ ]*$//
34382}'
34383fi
34384
34385cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034386fi # test -n "$CONFIG_FILES"
34387
Reid Spencera773bd52006-08-04 18:18:08 +000034388
34389for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34390do
34391 case $ac_tag in
34392 :[FHLC]) ac_mode=$ac_tag; continue;;
34393 esac
34394 case $ac_mode$ac_tag in
34395 :[FHL]*:*);;
34396 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34397echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34398 { (exit 1); exit 1; }; };;
34399 :[FH]-) ac_tag=-:-;;
34400 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34401 esac
34402 ac_save_IFS=$IFS
34403 IFS=:
34404 set x $ac_tag
34405 IFS=$ac_save_IFS
34406 shift
34407 ac_file=$1
34408 shift
34409
34410 case $ac_mode in
34411 :L) ac_source=$1;;
34412 :[FH])
34413 ac_file_inputs=
34414 for ac_f
34415 do
34416 case $ac_f in
34417 -) ac_f="$tmp/stdin";;
34418 *) # Look for the file first in the build tree, then in the source tree
34419 # (if the path is not absolute). The absolute path cannot be DOS-style,
34420 # because $ac_f cannot contain `:'.
34421 test -f "$ac_f" ||
34422 case $ac_f in
34423 [\\/$]*) false;;
34424 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34425 esac ||
34426 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34427echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34428 { (exit 1); exit 1; }; };;
34429 esac
34430 ac_file_inputs="$ac_file_inputs $ac_f"
34431 done
34432
34433 # Let's still pretend it is `configure' which instantiates (i.e., don't
34434 # use $as_me), people would be surprised to read:
34435 # /* config.h. Generated by config.status. */
34436 configure_input="Generated from "`IFS=:
34437 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34438 if test x"$ac_file" != x-; then
34439 configure_input="$ac_file. $configure_input"
34440 { echo "$as_me:$LINENO: creating $ac_file" >&5
34441echo "$as_me: creating $ac_file" >&6;}
34442 fi
34443
34444 case $ac_tag in
34445 *:-:* | *:-) cat >"$tmp/stdin";;
34446 esac
34447 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034448 esac
34449
Reid Spencera773bd52006-08-04 18:18:08 +000034450 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034452 X"$ac_file" : 'X\(//\)[^/]' \| \
34453 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034454 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034455echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34457 s//\1/
34458 q
34459 }
34460 /^X\(\/\/\)[^/].*/{
34461 s//\1/
34462 q
34463 }
34464 /^X\(\/\/\)$/{
34465 s//\1/
34466 q
34467 }
34468 /^X\(\/\).*/{
34469 s//\1/
34470 q
34471 }
34472 s/.*/./; q'`
34473 { as_dir="$ac_dir"
34474 case $as_dir in #(
34475 -*) as_dir=./$as_dir;;
34476 esac
34477 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034478 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034479 while :; do
34480 case $as_dir in #(
34481 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34482 *) as_qdir=$as_dir;;
34483 esac
34484 as_dirs="'$as_qdir' $as_dirs"
34485 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034486$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034487 X"$as_dir" : 'X\(//\)[^/]' \| \
34488 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034489 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034490echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34492 s//\1/
34493 q
34494 }
34495 /^X\(\/\/\)[^/].*/{
34496 s//\1/
34497 q
34498 }
34499 /^X\(\/\/\)$/{
34500 s//\1/
34501 q
34502 }
34503 /^X\(\/\).*/{
34504 s//\1/
34505 q
34506 }
34507 s/.*/./; q'`
34508 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034509 done
Reid Spencera773bd52006-08-04 18:18:08 +000034510 test -z "$as_dirs" || eval "mkdir $as_dirs"
34511 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34512echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034513 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034514 ac_builddir=.
34515
Reid Spencera773bd52006-08-04 18:18:08 +000034516case "$ac_dir" in
34517.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34518*)
John Criswell7a73b802003-06-30 21:59:07 +000034519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034520 # A ".." for each directory in $ac_dir_suffix.
34521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34522 case $ac_top_builddir_sub in
34523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34525 esac ;;
34526esac
34527ac_abs_top_builddir=$ac_pwd
34528ac_abs_builddir=$ac_pwd$ac_dir_suffix
34529# for backward compatibility:
34530ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034531
34532case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034533 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034534 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034535 ac_top_srcdir=$ac_top_builddir_sub
34536 ac_abs_top_srcdir=$ac_pwd ;;
34537 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034538 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034539 ac_top_srcdir=$srcdir
34540 ac_abs_top_srcdir=$srcdir ;;
34541 *) # Relative name.
34542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34543 ac_top_srcdir=$ac_top_build_prefix$srcdir
34544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034545esac
Reid Spencera773bd52006-08-04 18:18:08 +000034546ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034547
John Criswell7a73b802003-06-30 21:59:07 +000034548
Reid Spencera773bd52006-08-04 18:18:08 +000034549 case $ac_mode in
34550 :F)
34551 #
34552 # CONFIG_FILE
34553 #
John Criswell7a73b802003-06-30 21:59:07 +000034554
34555 case $INSTALL in
34556 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034557 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034558 esac
John Criswell7a73b802003-06-30 21:59:07 +000034559_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034560
34561cat >>$CONFIG_STATUS <<\_ACEOF
34562# If the template does not know about datarootdir, expand it.
34563# FIXME: This hack should be removed a few years after 2.60.
34564ac_datarootdir_hack=; ac_datarootdir_seen=
34565
34566case `sed -n '/datarootdir/ {
34567 p
34568 q
34569}
34570/@datadir@/p
34571/@docdir@/p
34572/@infodir@/p
34573/@localedir@/p
34574/@mandir@/p
34575' $ac_file_inputs` in
34576*datarootdir*) ac_datarootdir_seen=yes;;
34577*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34578 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34579echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34580_ACEOF
34581cat >>$CONFIG_STATUS <<_ACEOF
34582 ac_datarootdir_hack='
34583 s&@datadir@&$datadir&g
34584 s&@docdir@&$docdir&g
34585 s&@infodir@&$infodir&g
34586 s&@localedir@&$localedir&g
34587 s&@mandir@&$mandir&g
34588 s&\\\${datarootdir}&$datarootdir&g' ;;
34589esac
34590_ACEOF
34591
34592# Neutralize VPATH when `$srcdir' = `.'.
34593# Shell code in configure.ac might set extrasub.
34594# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034595cat >>$CONFIG_STATUS <<_ACEOF
34596 sed "$ac_vpsub
34597$extrasub
34598_ACEOF
34599cat >>$CONFIG_STATUS <<\_ACEOF
34600:t
34601/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034602s&@configure_input@&$configure_input&;t t
34603s&@top_builddir@&$ac_top_builddir_sub&;t t
34604s&@srcdir@&$ac_srcdir&;t t
34605s&@abs_srcdir@&$ac_abs_srcdir&;t t
34606s&@top_srcdir@&$ac_top_srcdir&;t t
34607s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34608s&@builddir@&$ac_builddir&;t t
34609s&@abs_builddir@&$ac_abs_builddir&;t t
34610s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34611s&@INSTALL@&$ac_INSTALL&;t t
34612$ac_datarootdir_hack
34613" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034614
Reid Spencera773bd52006-08-04 18:18:08 +000034615test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34616 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34617 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34618 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34619which seems to be undefined. Please make sure it is defined." >&5
34620echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34621which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034622
Reid Spencera773bd52006-08-04 18:18:08 +000034623 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034624 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034625 -) cat "$tmp/out"; rm -f "$tmp/out";;
34626 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034627 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034628 ;;
34629 :H)
34630 #
34631 # CONFIG_HEADER
34632 #
John Criswell7a73b802003-06-30 21:59:07 +000034633_ACEOF
34634
Reid Spencera773bd52006-08-04 18:18:08 +000034635# Transform confdefs.h into a sed script `conftest.defines', that
34636# substitutes the proper values into config.h.in to produce config.h.
34637rm -f conftest.defines conftest.tail
34638# First, append a space to every undef/define line, to ease matching.
34639echo 's/$/ /' >conftest.defines
34640# Then, protect against being on the right side of a sed subst, or in
34641# an unquoted here document, in config.status. If some macros were
34642# called several times there might be several #defines for the same
34643# symbol, which is useless. But do not sort them, since the last
34644# AC_DEFINE must be honored.
34645ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34646# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34647# NAME is the cpp macro being defined, VALUE is the value it is being given.
34648# PARAMS is the parameter list in the macro definition--in most cases, it's
34649# just an empty string.
34650ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34651ac_dB='\\)[ (].*,\\1define\\2'
34652ac_dC=' '
34653ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034654
Reid Spencera773bd52006-08-04 18:18:08 +000034655uniq confdefs.h |
34656 sed -n '
34657 t rset
34658 :rset
34659 s/^[ ]*#[ ]*define[ ][ ]*//
34660 t ok
34661 d
34662 :ok
34663 s/[\\&,]/\\&/g
34664 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34665 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34666 ' >>conftest.defines
34667
34668# Remove the space that was appended to ease matching.
34669# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034670# example, in the case of _POSIX_SOURCE, which is predefined and required
34671# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034672# (The regexp can be short, since the line contains either #define or #undef.)
34673echo 's/ $//
34674s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034675
Reid Spencera773bd52006-08-04 18:18:08 +000034676# Break up conftest.defines:
34677ac_max_sed_lines=50
34678
34679# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34680# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34681# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34682# et cetera.
34683ac_in='$ac_file_inputs'
34684ac_out='"$tmp/out1"'
34685ac_nxt='"$tmp/out2"'
34686
34687while :
John Criswell7a73b802003-06-30 21:59:07 +000034688do
Reid Spencera773bd52006-08-04 18:18:08 +000034689 # Write a here document:
34690 cat >>$CONFIG_STATUS <<_ACEOF
34691 # First, check the format of the line:
34692 cat >"\$tmp/defines.sed" <<\\CEOF
34693/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34694/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34695b
34696:def
34697_ACEOF
34698 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034699 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034700 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34701 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34702 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34703 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034704 rm -f conftest.defines
34705 mv conftest.tail conftest.defines
34706done
Reid Spencera773bd52006-08-04 18:18:08 +000034707rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034708
Reid Spencera773bd52006-08-04 18:18:08 +000034709echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034710cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034711 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034712 echo "/* $configure_input */" >"$tmp/config.h"
34713 cat "$ac_result" >>"$tmp/config.h"
34714 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034715 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34716echo "$as_me: $ac_file is unchanged" >&6;}
34717 else
John Criswell7a73b802003-06-30 21:59:07 +000034718 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034719 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034720 fi
34721 else
Reid Spencera773bd52006-08-04 18:18:08 +000034722 echo "/* $configure_input */"
34723 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034724 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034725 rm -f "$tmp/out12"
34726 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034727
Reid Spencera773bd52006-08-04 18:18:08 +000034728 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34729echo "$as_me: executing $ac_file commands" >&6;}
34730 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034731 esac
John Criswell7a73b802003-06-30 21:59:07 +000034732
Reid Spencera773bd52006-08-04 18:18:08 +000034733
34734 case $ac_file$ac_mode in
34735 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34736 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34737 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34738 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34739 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34740 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34741 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34742 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034743 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34744 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034745 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34746 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34747 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34748 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34749 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34750 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34751 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34752 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34753 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34754 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34755
34756 esac
34757done # for ac_tag
34758
John Criswell7a73b802003-06-30 21:59:07 +000034759
34760{ (exit 0); exit 0; }
34761_ACEOF
34762chmod +x $CONFIG_STATUS
34763ac_clean_files=$ac_clean_files_save
34764
34765
34766# configure is writing to config.log, and then calls config.status.
34767# config.status does its own redirection, appending to config.log.
34768# Unfortunately, on DOS this fails, as config.log is still kept open
34769# by configure, so config.status won't be able to write to it; its
34770# output is simply discarded. So we exec the FD to /dev/null,
34771# effectively closing config.log, so it can be properly (re)opened and
34772# appended to by config.status. When coming back to configure, we
34773# need to make the FD available again.
34774if test "$no_create" != yes; then
34775 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034776 ac_config_status_args=
34777 test "$silent" = yes &&
34778 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034779 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034781 exec 5>>config.log
34782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34783 # would make configure fail if this is the last instruction.
34784 $ac_cs_success || { (exit 1); exit 1; }
34785fi
34786
John Criswell12399a12003-09-30 15:55:44 +000034787#
34788# CONFIG_SUBDIRS section.
34789#
34790if test "$no_recursion" != yes; then
34791
34792 # Remove --cache-file and --srcdir arguments so they do not pile up.
34793 ac_sub_configure_args=
34794 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034795 eval "set x $ac_configure_args"
34796 shift
34797 for ac_arg
34798 do
John Criswell12399a12003-09-30 15:55:44 +000034799 if test -n "$ac_prev"; then
34800 ac_prev=
34801 continue
34802 fi
34803 case $ac_arg in
34804 -cache-file | --cache-file | --cache-fil | --cache-fi \
34805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34806 ac_prev=cache_file ;;
34807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34809 | --c=*)
34810 ;;
34811 --config-cache | -C)
34812 ;;
34813 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34814 ac_prev=srcdir ;;
34815 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34816 ;;
34817 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34818 ac_prev=prefix ;;
34819 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34820 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034821 *)
34822 case $ac_arg in
34823 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34824 esac
34825 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034826 esac
34827 done
34828
34829 # Always prepend --prefix to ensure using the same prefix
34830 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034831 ac_arg="--prefix=$prefix"
34832 case $ac_arg in
34833 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34834 esac
34835 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034836
34837 ac_popdir=`pwd`
34838 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34839
34840 # Do not complain, so a configure script can configure whichever
34841 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034842 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034843
Reid Spencera773bd52006-08-04 18:18:08 +000034844 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34845 echo "$as_me:$LINENO: $ac_msg" >&5
34846 echo "$ac_msg" >&6
34847 { as_dir="$ac_dir"
34848 case $as_dir in #(
34849 -*) as_dir=./$as_dir;;
34850 esac
34851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034852 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034853 while :; do
34854 case $as_dir in #(
34855 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34856 *) as_qdir=$as_dir;;
34857 esac
34858 as_dirs="'$as_qdir' $as_dirs"
34859 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034860$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034861 X"$as_dir" : 'X\(//\)[^/]' \| \
34862 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034864echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34866 s//\1/
34867 q
34868 }
34869 /^X\(\/\/\)[^/].*/{
34870 s//\1/
34871 q
34872 }
34873 /^X\(\/\/\)$/{
34874 s//\1/
34875 q
34876 }
34877 /^X\(\/\).*/{
34878 s//\1/
34879 q
34880 }
34881 s/.*/./; q'`
34882 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034883 done
Reid Spencera773bd52006-08-04 18:18:08 +000034884 test -z "$as_dirs" || eval "mkdir $as_dirs"
34885 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34886echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034887 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034888 ac_builddir=.
34889
Reid Spencera773bd52006-08-04 18:18:08 +000034890case "$ac_dir" in
34891.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34892*)
John Criswell12399a12003-09-30 15:55:44 +000034893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034894 # A ".." for each directory in $ac_dir_suffix.
34895 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34896 case $ac_top_builddir_sub in
34897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34899 esac ;;
34900esac
34901ac_abs_top_builddir=$ac_pwd
34902ac_abs_builddir=$ac_pwd$ac_dir_suffix
34903# for backward compatibility:
34904ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034905
34906case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034907 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034908 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034909 ac_top_srcdir=$ac_top_builddir_sub
34910 ac_abs_top_srcdir=$ac_pwd ;;
34911 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034912 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034913 ac_top_srcdir=$srcdir
34914 ac_abs_top_srcdir=$srcdir ;;
34915 *) # Relative name.
34916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34917 ac_top_srcdir=$ac_top_build_prefix$srcdir
34918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034919esac
Reid Spencera773bd52006-08-04 18:18:08 +000034920ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034921
34922
Reid Spencera773bd52006-08-04 18:18:08 +000034923 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034924
34925 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034926 if test -f "$ac_srcdir/configure.gnu"; then
34927 ac_sub_configure=$ac_srcdir/configure.gnu
34928 elif test -f "$ac_srcdir/configure"; then
34929 ac_sub_configure=$ac_srcdir/configure
34930 elif test -f "$ac_srcdir/configure.in"; then
34931 # This should be Cygnus configure.
34932 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034933 else
34934 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34935echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34936 ac_sub_configure=
34937 fi
34938
34939 # The recursion is here.
34940 if test -n "$ac_sub_configure"; then
34941 # Make the cache file name correct relative to the subdirectory.
34942 case $cache_file in
34943 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034944 *) # Relative name.
34945 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034946 esac
34947
Reid Spencera773bd52006-08-04 18:18:08 +000034948 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34949echo "$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 +000034950 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034951 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34952 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034953 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034954echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34955 { (exit 1); exit 1; }; }
34956 fi
34957
Reid Spencera773bd52006-08-04 18:18:08 +000034958 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034959 done
34960fi
34961
Brian Gaekef3b24102003-11-16 18:38:14 +000034962