blob: 72bfb11fc5692204e8460b0a68c28269a2a5f1aa [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
838TARGETS_TO_BUILD
Reid Spencer65c5d752006-11-05 17:08:18 +0000839ENABLE_CBE_PRINTF_A
Reid Spencera773bd52006-08-04 18:18:08 +0000840EXTRA_OPTIONS
841CXX
842CXXFLAGS
843ac_ct_CXX
844LEX
845LEXLIB
846LEX_OUTPUT_ROOT
847FLEX
848YACC
849YFLAGS
850BISON
851NM
852ifGNUmake
853LN_S
854CMP
855CP
856DATE
857FIND
858MKDIR
859MV
860RANLIB
861RM
862SED
863TAR
864BINPWD
865GRAPHVIZ
866DOT
867GV
868DOTTY
869PERL
870HAVE_PERL
871INSTALL_PROGRAM
872INSTALL_SCRIPT
873INSTALL_DATA
874BZIP2
875DOXYGEN
Reid Spencera773bd52006-08-04 18:18:08 +0000876GROFF
877GZIP
878POD2HTML
879POD2MAN
880RUNTEST
881TCLSH
882ZIP
883INSTALL_LTDL_TRUE
884INSTALL_LTDL_FALSE
885CONVENIENCE_LTDL_TRUE
886CONVENIENCE_LTDL_FALSE
887LIBADD_DL
888ECHO
889AR
890STRIP
891CXXCPP
892F77
893FFLAGS
894ac_ct_F77
895LIBTOOL
896ETAGSFLAGS
897LLVMGCC
898LLVMGXX
Reid Spencer1000b732006-12-01 00:37:14 +0000899HAVE_PTHREAD
Reid Spencerb2ed05262006-11-03 18:04:08 +0000900HUGE_VAL_SANITY
Reid Spencera773bd52006-08-04 18:18:08 +0000901ALLOCA
902MMAP_FILE
903LLVMCC1
904LLVMCC1PLUS
905LLVMGCCDIR
906LLVMGCC_VERSION
907LLVMGCC_MAJVERS
908SHLIBEXT
909LLVM_PREFIX
910LLVM_BINDIR
911LLVM_LIBDIR
912LLVM_DATADIR
913LLVM_DOCSDIR
914LLVM_ETCDIR
915LLVM_INCLUDEDIR
916LLVM_INFODIR
917LLVM_MANDIR
918LLVM_CONFIGTIME
919LIBOBJS
920LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000921ac_subst_files=''
Reid Spencera773bd52006-08-04 18:18:08 +0000922 ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928CPPFLAGS
929CPP
930CXX
931CXXFLAGS
932CCC
933YACC
934YFLAGS
935CXXCPP
936F77
937FFLAGS'
938ac_subdirs_all='projects/sample
939projects/Stacker
940projects/privbracket
941projects/llvm-test
942projects/llvm-reopt
943projects/llvm-gcc
944projects/llvm-java
945projects/llvm-tv
946projects/llvm-poolalloc
947projects/llvm-kernel'
John Criswell7a73b802003-06-30 21:59:07 +0000948
949# Initialize some variables set by options.
950ac_init_help=
951ac_init_version=false
952# The variables have the same names as the options, with
953# dashes changed to underlines.
954cache_file=/dev/null
955exec_prefix=NONE
956no_create=
957no_recursion=
958prefix=NONE
959program_prefix=NONE
960program_suffix=NONE
961program_transform_name=s,x,x,
962silent=
963site=
964srcdir=
965verbose=
966x_includes=NONE
967x_libraries=NONE
968
969# Installation directory options.
970# These are left unexpanded so users can "make install exec_prefix=/foo"
971# and all the variables that are supposed to be based on exec_prefix
972# by default will actually change.
973# Use braces instead of parens because sh, perl, etc. also accept them.
Reid Spencera773bd52006-08-04 18:18:08 +0000974# (The list follows the same order as the GNU Coding Standards.)
John Criswell7a73b802003-06-30 21:59:07 +0000975bindir='${exec_prefix}/bin'
976sbindir='${exec_prefix}/sbin'
977libexecdir='${exec_prefix}/libexec'
Reid Spencera773bd52006-08-04 18:18:08 +0000978datarootdir='${prefix}/share'
979datadir='${datarootdir}'
John Criswell7a73b802003-06-30 21:59:07 +0000980sysconfdir='${prefix}/etc'
981sharedstatedir='${prefix}/com'
982localstatedir='${prefix}/var'
John Criswell7a73b802003-06-30 21:59:07 +0000983includedir='${prefix}/include'
984oldincludedir='/usr/include'
Reid Spencera773bd52006-08-04 18:18:08 +0000985docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986infodir='${datarootdir}/info'
987htmldir='${docdir}'
988dvidir='${docdir}'
989pdfdir='${docdir}'
990psdir='${docdir}'
991libdir='${exec_prefix}/lib'
992localedir='${datarootdir}/locale'
993mandir='${datarootdir}/man'
John Criswell7a73b802003-06-30 21:59:07 +0000994
995ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +0000996ac_dashdash=
John Criswell7a73b802003-06-30 21:59:07 +0000997for ac_option
998do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
Reid Spencera773bd52006-08-04 18:18:08 +00001001 eval $ac_prev=\$ac_option
John Criswell7a73b802003-06-30 21:59:07 +00001002 ac_prev=
1003 continue
1004 fi
1005
Reid Spencera773bd52006-08-04 18:18:08 +00001006 case $ac_option in
1007 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *) ac_optarg=yes ;;
1009 esac
John Criswell7a73b802003-06-30 21:59:07 +00001010
1011 # Accept the important Cygnus configure options, so we can diagnose typos.
1012
Reid Spencera773bd52006-08-04 18:18:08 +00001013 case $ac_dashdash$ac_option in
1014 --)
1015 ac_dashdash=yes ;;
John Criswell7a73b802003-06-30 21:59:07 +00001016
1017 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1018 ac_prev=bindir ;;
1019 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1020 bindir=$ac_optarg ;;
1021
1022 -build | --build | --buil | --bui | --bu)
1023 ac_prev=build_alias ;;
1024 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1025 build_alias=$ac_optarg ;;
1026
1027 -cache-file | --cache-file | --cache-fil | --cache-fi \
1028 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1029 ac_prev=cache_file ;;
1030 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1031 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1032 cache_file=$ac_optarg ;;
1033
1034 --config-cache | -C)
1035 cache_file=config.cache ;;
1036
Reid Spencera773bd52006-08-04 18:18:08 +00001037 -datadir | --datadir | --datadi | --datad)
John Criswell7a73b802003-06-30 21:59:07 +00001038 ac_prev=datadir ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001039 -datadir=* | --datadir=* | --datadi=* | --datad=*)
John Criswell7a73b802003-06-30 21:59:07 +00001040 datadir=$ac_optarg ;;
1041
Reid Spencera773bd52006-08-04 18:18:08 +00001042 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1043 | --dataroo | --dataro | --datar)
1044 ac_prev=datarootdir ;;
1045 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1046 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1047 datarootdir=$ac_optarg ;;
1048
John Criswell7a73b802003-06-30 21:59:07 +00001049 -disable-* | --disable-*)
1050 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1051 # Reject names that are not valid shell variable names.
1052 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1053 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1054 { (exit 1); exit 1; }; }
1055 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001056 eval enable_$ac_feature=no ;;
1057
1058 -docdir | --docdir | --docdi | --doc | --do)
1059 ac_prev=docdir ;;
1060 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1061 docdir=$ac_optarg ;;
1062
1063 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1064 ac_prev=dvidir ;;
1065 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1066 dvidir=$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068 -enable-* | --enable-*)
1069 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001075 eval enable_$ac_feature=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1096
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1101
Reid Spencera773bd52006-08-04 18:18:08 +00001102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
John Criswell7a73b802003-06-30 21:59:07 +00001108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1131
Reid Spencera773bd52006-08-04 18:18:08 +00001132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
John Criswell7a73b802003-06-30 21:59:07 +00001137 -localstatedir | --localstatedir | --localstatedi | --localstated \
Reid Spencera773bd52006-08-04 18:18:08 +00001138 | --localstate | --localstat | --localsta | --localst | --locals)
John Criswell7a73b802003-06-30 21:59:07 +00001139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Reid Spencera773bd52006-08-04 18:18:08 +00001141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
John Criswell7a73b802003-06-30 21:59:07 +00001142 localstatedir=$ac_optarg ;;
1143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1205
Reid Spencera773bd52006-08-04 18:18:08 +00001206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
John Criswell7a73b802003-06-30 21:59:07 +00001216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1221 ac_prev=sbindir ;;
1222 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1223 | --sbi=* | --sb=*)
1224 sbindir=$ac_optarg ;;
1225
1226 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1227 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1228 | --sharedst | --shareds | --shared | --share | --shar \
1229 | --sha | --sh)
1230 ac_prev=sharedstatedir ;;
1231 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1232 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1233 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1234 | --sha=* | --sh=*)
1235 sharedstatedir=$ac_optarg ;;
1236
1237 -site | --site | --sit)
1238 ac_prev=site ;;
1239 -site=* | --site=* | --sit=*)
1240 site=$ac_optarg ;;
1241
1242 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1243 ac_prev=srcdir ;;
1244 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1245 srcdir=$ac_optarg ;;
1246
1247 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1248 | --syscon | --sysco | --sysc | --sys | --sy)
1249 ac_prev=sysconfdir ;;
1250 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1251 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1252 sysconfdir=$ac_optarg ;;
1253
1254 -target | --target | --targe | --targ | --tar | --ta | --t)
1255 ac_prev=target_alias ;;
1256 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1257 target_alias=$ac_optarg ;;
1258
1259 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1260 verbose=yes ;;
1261
1262 -version | --version | --versio | --versi | --vers | -V)
1263 ac_init_version=: ;;
1264
1265 -with-* | --with-*)
1266 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid package name: $ac_package" >&2
1270 { (exit 1); exit 1; }; }
1271 ac_package=`echo $ac_package| sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001272 eval with_$ac_package=\$ac_optarg ;;
John Criswell7a73b802003-06-30 21:59:07 +00001273
1274 -without-* | --without-*)
1275 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1278 { echo "$as_me: error: invalid package name: $ac_package" >&2
1279 { (exit 1); exit 1; }; }
1280 ac_package=`echo $ac_package | sed 's/-/_/g'`
Reid Spencera773bd52006-08-04 18:18:08 +00001281 eval with_$ac_package=no ;;
John Criswell7a73b802003-06-30 21:59:07 +00001282
1283 --x)
1284 # Obsolete; use --with-x.
1285 with_x=yes ;;
1286
1287 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288 | --x-incl | --x-inc | --x-in | --x-i)
1289 ac_prev=x_includes ;;
1290 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292 x_includes=$ac_optarg ;;
1293
1294 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296 ac_prev=x_libraries ;;
1297 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299 x_libraries=$ac_optarg ;;
1300
1301 -*) { echo "$as_me: error: unrecognized option: $ac_option
1302Try \`$0 --help' for more information." >&2
1303 { (exit 1); exit 1; }; }
1304 ;;
1305
1306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1310 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1311 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001312 eval $ac_envvar=\$ac_optarg
John Criswell7a73b802003-06-30 21:59:07 +00001313 export $ac_envvar ;;
1314
1315 *)
1316 # FIXME: should be removed in autoconf 3.0.
1317 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321 ;;
1322
1323 esac
1324done
1325
1326if test -n "$ac_prev"; then
1327 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328 { echo "$as_me: error: missing argument to $ac_option" >&2
1329 { (exit 1); exit 1; }; }
1330fi
1331
Reid Spencera773bd52006-08-04 18:18:08 +00001332# Be sure to have absolute directory names.
1333for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
John Criswell7a73b802003-06-30 21:59:07 +00001337do
Reid Spencera773bd52006-08-04 18:18:08 +00001338 eval ac_val=\$$ac_var
John Criswell7a73b802003-06-30 21:59:07 +00001339 case $ac_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001340 [\\/$]* | ?:[\\/]* ) continue;;
1341 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
John Criswell7a73b802003-06-30 21:59:07 +00001342 esac
Reid Spencera773bd52006-08-04 18:18:08 +00001343 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1344 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001345done
1346
1347# There might be people who depend on the old broken behavior: `$host'
1348# used to hold the argument of --host etc.
1349# FIXME: To remove some day.
1350build=$build_alias
1351host=$host_alias
1352target=$target_alias
1353
1354# FIXME: To remove some day.
1355if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used." >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363fi
1364
1365ac_tool_prefix=
1366test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368test "$silent" = yes && exec 6>/dev/null
1369
1370
Reid Spencera773bd52006-08-04 18:18:08 +00001371ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372ac_ls_di=`ls -di .` &&
1373ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 { echo "$as_me: error: Working directory cannot be determined" >&2
1375 { (exit 1); exit 1; }; }
1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 { echo "$as_me: error: pwd does not report name of working directory" >&2
1378 { (exit 1); exit 1; }; }
1379
1380
John Criswell7a73b802003-06-30 21:59:07 +00001381# Find the source files, if location was not specified.
1382if test -z "$srcdir"; then
1383 ac_srcdir_defaulted=yes
Reid Spencera773bd52006-08-04 18:18:08 +00001384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir=`$as_dirname -- "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +00001386$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001387 X"$0" : 'X\(//\)[^/]' \| \
1388 X"$0" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +00001389 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +00001390echo X"$0" |
Reid Spencera773bd52006-08-04 18:18:08 +00001391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\/\)[^/].*/{
1396 s//\1/
1397 q
1398 }
1399 /^X\(\/\/\)$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\).*/{
1404 s//\1/
1405 q
1406 }
1407 s/.*/./; q'`
John Criswell7a73b802003-06-30 21:59:07 +00001408 srcdir=$ac_confdir
Reid Spencera773bd52006-08-04 18:18:08 +00001409 if test ! -r "$srcdir/$ac_unique_file"; then
John Criswell7a73b802003-06-30 21:59:07 +00001410 srcdir=..
1411 fi
1412else
1413 ac_srcdir_defaulted=no
1414fi
Reid Spencera773bd52006-08-04 18:18:08 +00001415if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1417 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
John Criswell7a73b802003-06-30 21:59:07 +00001418 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +00001419fi
Reid Spencera773bd52006-08-04 18:18:08 +00001420ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1421ac_abs_confdir=`(
1422 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +00001423 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00001424 pwd)`
1425# When building in place, set srcdir=.
1426if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 srcdir=.
1428fi
1429# Remove unnecessary trailing slashes from srcdir.
1430# Double slashes in file names in object file debugging info
1431# mess up M-x gdb in Emacs.
1432case $srcdir in
1433*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434esac
1435for ac_var in $ac_precious_vars; do
1436 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1437 eval ac_env_${ac_var}_value=\$${ac_var}
1438 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1439 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440done
John Criswell7a73b802003-06-30 21:59:07 +00001441
1442#
1443# Report the --help message.
1444#
1445if test "$ac_init_help" = "long"; then
1446 # Omit some internal or obsolete options to make the list less imposing.
1447 # This message is too long to be a string in the A/UX 3.1 sh.
1448 cat <<_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001449\`configure' configures llvm 2.0cvs to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +00001450
1451Usage: $0 [OPTION]... [VAR=VALUE]...
1452
1453To assign environment variables (e.g., CC, CFLAGS...), specify them as
1454VAR=VALUE. See below for descriptions of some of the useful variables.
1455
1456Defaults for the options are specified in brackets.
1457
1458Configuration:
1459 -h, --help display this help and exit
1460 --help=short display options specific to this package
1461 --help=recursive display the short help of all the included packages
1462 -V, --version display version information and exit
1463 -q, --quiet, --silent do not print \`checking...' messages
1464 --cache-file=FILE cache test results in FILE [disabled]
1465 -C, --config-cache alias for \`--cache-file=config.cache'
1466 -n, --no-create do not create output files
1467 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1468
John Criswell7a73b802003-06-30 21:59:07 +00001469Installation directories:
1470 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001471 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +00001472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +00001473 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +00001474
1475By default, \`make install' will install all the files in
1476\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1477an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1478for instance \`--prefix=\$HOME'.
1479
1480For better control, use the options below.
1481
1482Fine tuning of the installation directories:
1483 --bindir=DIR user executables [EPREFIX/bin]
1484 --sbindir=DIR system admin executables [EPREFIX/sbin]
1485 --libexecdir=DIR program executables [EPREFIX/libexec]
John Criswell7a73b802003-06-30 21:59:07 +00001486 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1487 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1488 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1489 --libdir=DIR object code libraries [EPREFIX/lib]
1490 --includedir=DIR C header files [PREFIX/include]
1491 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Reid Spencera773bd52006-08-04 18:18:08 +00001492 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1493 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1494 --infodir=DIR info documentation [DATAROOTDIR/info]
1495 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1496 --mandir=DIR man documentation [DATAROOTDIR/man]
1497 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1498 --htmldir=DIR html documentation [DOCDIR]
1499 --dvidir=DIR dvi documentation [DOCDIR]
1500 --pdfdir=DIR pdf documentation [DOCDIR]
1501 --psdir=DIR ps documentation [DOCDIR]
John Criswell7a73b802003-06-30 21:59:07 +00001502_ACEOF
1503
1504 cat <<\_ACEOF
1505
1506System types:
1507 --build=BUILD configure for building on BUILD [guessed]
1508 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1509 --target=TARGET configure for building compilers for TARGET [HOST]
1510_ACEOF
1511fi
1512
1513if test -n "$ac_init_help"; then
1514 case $ac_init_help in
Tanya Lattner01d3e382006-11-14 00:59:52 +00001515 short | recursive ) echo "Configuration of llvm 2.0cvs:";;
John Criswell7a73b802003-06-30 21:59:07 +00001516 esac
1517 cat <<\_ACEOF
1518
1519Optional Features:
1520 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1521 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001522 --enable-optimized
Reid Spencer54d14482006-04-07 16:01:51 +00001523 --enable-assertions
Reid Spencer8b2e1412006-11-17 03:32:33 +00001524 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001526 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001527 --enable-threads Use threads if available (default is YES)
Evan Cheng939ea652006-07-06 07:46:33 +00001528 --enable-targets Build specific host targets:
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001529 all,host-only,{target-name} (default=all)
Reid Spencer65c5d752006-11-05 17:08:18 +00001530 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1531 %a (default is YES)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001532 --enable-ltdl-install install libltdl
Reid Spencera773bd52006-08-04 18:18:08 +00001533 --enable-shared[=PKGS] build shared libraries
1534 [default=enable_shared_default]
1535 --enable-static[=PKGS] build static libraries
1536 [default=enable_static_default]
John Criswell47fdd832003-07-14 16:52:07 +00001537 --enable-fast-install[=PKGS]
Reid Spencera773bd52006-08-04 18:18:08 +00001538 optimize for fast installation
1539 [default=enable_Fast_install_default]
John Criswell7a73b802003-06-30 21:59:07 +00001540 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001541
1542Optional Packages:
1543 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1544 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001545 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1546 searches PATH)
Evan Chengcf9be262006-06-20 22:16:32 +00001547 --with-extra-options Specify addtional options to compile LLVM with
Reid Spencer0fcb9412004-11-30 08:11:54 +00001548 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001549 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1550 --with-pic try to use only PIC/non-PIC objects [default=use
1551 both]
Reid Spencera773bd52006-08-04 18:18:08 +00001552 --with-tags[=TAGS] include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001553
1554Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001555 CC C compiler command
1556 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
Reid Spencera773bd52006-08-04 18:18:08 +00001559 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1560 you have headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001561 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 CXX C++ compiler command
1563 CXXFLAGS C++ compiler flags
Reid Spencera773bd52006-08-04 18:18:08 +00001564 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1565 the first program found out of: `bison -y', `byacc', `yacc'.
1566 YFLAGS The list of arguments that will be passed by default to $YACC.
1567 This script will default YFLAGS to the empty string to avoid a
1568 default value of `-d' given by some make applications.
John Criswell47fdd832003-07-14 16:52:07 +00001569 CXXCPP C++ preprocessor
1570 F77 Fortran 77 compiler command
1571 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001572
1573Use these variables to override the choices made by `configure' or to help
1574it to find libraries and programs with nonstandard names/locations.
1575
1576Report bugs to <llvmbugs@cs.uiuc.edu>.
1577_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001578ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00001579fi
1580
1581if test "$ac_init_help" = "recursive"; then
1582 # If there are subdirs, report their specific --help.
John Criswell7a73b802003-06-30 21:59:07 +00001583 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Reid Spencera773bd52006-08-04 18:18:08 +00001584 test -d "$ac_dir" || continue
John Criswell7a73b802003-06-30 21:59:07 +00001585 ac_builddir=.
1586
Reid Spencera773bd52006-08-04 18:18:08 +00001587case "$ac_dir" in
1588.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589*)
John Criswell7a73b802003-06-30 21:59:07 +00001590 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +00001591 # A ".." for each directory in $ac_dir_suffix.
1592 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593 case $ac_top_builddir_sub in
1594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596 esac ;;
1597esac
1598ac_abs_top_builddir=$ac_pwd
1599ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600# for backward compatibility:
1601ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +00001602
1603case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +00001604 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +00001605 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +00001606 ac_top_srcdir=$ac_top_builddir_sub
1607 ac_abs_top_srcdir=$ac_pwd ;;
1608 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +00001609 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +00001610 ac_top_srcdir=$srcdir
1611 ac_abs_top_srcdir=$srcdir ;;
1612 *) # Relative name.
1613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614 ac_top_srcdir=$ac_top_build_prefix$srcdir
1615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +00001616esac
Reid Spencera773bd52006-08-04 18:18:08 +00001617ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +00001618
Reid Spencera773bd52006-08-04 18:18:08 +00001619 cd "$ac_dir" || { ac_status=$?; continue; }
1620 # Check for guested configure.
1621 if test -f "$ac_srcdir/configure.gnu"; then
1622 echo &&
1623 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624 elif test -f "$ac_srcdir/configure"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure" --help=recursive
John Criswell7a73b802003-06-30 21:59:07 +00001627 else
1628 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Reid Spencera773bd52006-08-04 18:18:08 +00001629 fi || ac_status=$?
1630 cd "$ac_pwd" || { ac_status=$?; break; }
John Criswell7a73b802003-06-30 21:59:07 +00001631 done
1632fi
1633
Reid Spencera773bd52006-08-04 18:18:08 +00001634test -n "$ac_init_help" && exit $ac_status
John Criswell7a73b802003-06-30 21:59:07 +00001635if $ac_init_version; then
1636 cat <<\_ACEOF
Tanya Lattner01d3e382006-11-14 00:59:52 +00001637llvm configure 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +00001638generated by GNU Autoconf 2.60
John Criswell7a73b802003-06-30 21:59:07 +00001639
Reid Spencera773bd52006-08-04 18:18:08 +00001640Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16412002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001642This configure script is free software; the Free Software Foundation
1643gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001644
John Criswellc0c186d2005-11-08 21:11:33 +00001645Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001646_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001647 exit
John Criswell7a73b802003-06-30 21:59:07 +00001648fi
Reid Spencera773bd52006-08-04 18:18:08 +00001649cat >config.log <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +00001650This file contains any messages produced by compilers while
1651running configure, to aid debugging if configure makes a mistake.
1652
Tanya Lattner01d3e382006-11-14 00:59:52 +00001653It was created by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +00001654generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001655
1656 $ $0 $@
1657
1658_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00001659exec 5>>config.log
John Criswell7a73b802003-06-30 21:59:07 +00001660{
1661cat <<_ASUNAME
1662## --------- ##
1663## Platform. ##
1664## --------- ##
1665
1666hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1674
1675/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1676/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1677/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Reid Spencera773bd52006-08-04 18:18:08 +00001678/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
John Criswell7a73b802003-06-30 21:59:07 +00001679/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1680/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1681/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1682
1683_ASUNAME
1684
1685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686for as_dir in $PATH
1687do
1688 IFS=$as_save_IFS
1689 test -z "$as_dir" && as_dir=.
1690 echo "PATH: $as_dir"
1691done
Reid Spencera773bd52006-08-04 18:18:08 +00001692IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00001693
1694} >&5
1695
1696cat >&5 <<_ACEOF
1697
1698
1699## ----------- ##
1700## Core tests. ##
1701## ----------- ##
1702
1703_ACEOF
1704
1705
1706# Keep a trace of the command line.
1707# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001708# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001709# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001710# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001711ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001712ac_configure_args0=
1713ac_configure_args1=
John Criswell0c38eaf2003-09-10 15:17:25 +00001714ac_must_keep_next=false
1715for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001716do
John Criswell0c38eaf2003-09-10 15:17:25 +00001717 for ac_arg
1718 do
1719 case $ac_arg in
1720 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722 | -silent | --silent | --silen | --sile | --sil)
1723 continue ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001724 *\'*)
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 esac
1727 case $ac_pass in
1728 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729 2)
1730 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001732 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001733 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001734 case $ac_arg in
1735 *=* | --config-cache | -C | -disable-* | --disable-* \
1736 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738 | -with-* | --with-* | -without-* | --without-* | --x)
1739 case "$ac_configure_args0 " in
1740 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741 esac
1742 ;;
1743 -* ) ac_must_keep_next=true ;;
1744 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001745 fi
Reid Spencera773bd52006-08-04 18:18:08 +00001746 ac_configure_args="$ac_configure_args '$ac_arg'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001747 ;;
1748 esac
1749 done
John Criswell7a73b802003-06-30 21:59:07 +00001750done
John Criswell0c38eaf2003-09-10 15:17:25 +00001751$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752$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 +00001753
1754# When interrupted or exit'd, cleanup temporary files, and complete
1755# config.log. We remove comments because anyway the quotes in there
1756# would cause problems or look ugly.
Reid Spencera773bd52006-08-04 18:18:08 +00001757# WARNING: Use '\'' to represent an apostrophe within the trap.
1758# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
John Criswell7a73b802003-06-30 21:59:07 +00001759trap 'exit_status=$?
1760 # Save into config.log some information that might help in debugging.
1761 {
1762 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001763
John Criswell7a73b802003-06-30 21:59:07 +00001764 cat <<\_ASBOX
1765## ---------------- ##
1766## Cache variables. ##
1767## ---------------- ##
1768_ASBOX
1769 echo
1770 # The following way of writing the cache mishandles newlines in values,
Reid Spencera773bd52006-08-04 18:18:08 +00001771(
1772 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773 eval ac_val=\$$ac_var
1774 case $ac_val in #(
1775 *${as_nl}*)
1776 case $ac_var in #(
1777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779 esac
1780 case $ac_var in #(
1781 _ | IFS | as_nl) ;; #(
1782 *) $as_unset $ac_var ;;
1783 esac ;;
1784 esac
1785 done
John Criswell7a73b802003-06-30 21:59:07 +00001786 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +00001787 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +00001789 sed -n \
Reid Spencera773bd52006-08-04 18:18:08 +00001790 "s/'\''/'\''\\\\'\'''\''/g;
1791 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +00001793 *)
Reid Spencera773bd52006-08-04 18:18:08 +00001794 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +00001795 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00001796 esac |
1797 sort
1798)
John Criswell7a73b802003-06-30 21:59:07 +00001799 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001800
1801 cat <<\_ASBOX
1802## ----------------- ##
1803## Output variables. ##
1804## ----------------- ##
1805_ASBOX
1806 echo
1807 for ac_var in $ac_subst_vars
1808 do
Reid Spencera773bd52006-08-04 18:18:08 +00001809 eval ac_val=\$$ac_var
1810 case $ac_val in
1811 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812 esac
1813 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001814 done | sort
1815 echo
1816
1817 if test -n "$ac_subst_files"; then
1818 cat <<\_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00001819## ------------------- ##
1820## File substitutions. ##
1821## ------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00001822_ASBOX
1823 echo
1824 for ac_var in $ac_subst_files
1825 do
Reid Spencera773bd52006-08-04 18:18:08 +00001826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 echo "$ac_var='\''$ac_val'\''"
John Criswell0c38eaf2003-09-10 15:17:25 +00001831 done | sort
1832 echo
1833 fi
1834
John Criswell7a73b802003-06-30 21:59:07 +00001835 if test -s confdefs.h; then
1836 cat <<\_ASBOX
1837## ----------- ##
1838## confdefs.h. ##
1839## ----------- ##
1840_ASBOX
1841 echo
Reid Spencera773bd52006-08-04 18:18:08 +00001842 cat confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001843 echo
1844 fi
1845 test "$ac_signal" != 0 &&
1846 echo "$as_me: caught signal $ac_signal"
1847 echo "$as_me: exit $exit_status"
1848 } >&5
Reid Spencera773bd52006-08-04 18:18:08 +00001849 rm -f core *.core core.conftest.* &&
1850 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
John Criswell7a73b802003-06-30 21:59:07 +00001851 exit $exit_status
Reid Spencera773bd52006-08-04 18:18:08 +00001852' 0
John Criswell7a73b802003-06-30 21:59:07 +00001853for ac_signal in 1 2 13 15; do
1854 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855done
1856ac_signal=0
1857
1858# confdefs.h avoids OS command line length limits that DEFS can exceed.
Reid Spencera773bd52006-08-04 18:18:08 +00001859rm -f -r conftest* confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00001860
1861# Predefined preprocessor variables.
1862
1863cat >>confdefs.h <<_ACEOF
1864#define PACKAGE_NAME "$PACKAGE_NAME"
1865_ACEOF
1866
1867
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870_ACEOF
1871
1872
1873cat >>confdefs.h <<_ACEOF
1874#define PACKAGE_VERSION "$PACKAGE_VERSION"
1875_ACEOF
1876
1877
1878cat >>confdefs.h <<_ACEOF
1879#define PACKAGE_STRING "$PACKAGE_STRING"
1880_ACEOF
1881
1882
1883cat >>confdefs.h <<_ACEOF
1884#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885_ACEOF
1886
1887
1888# Let the site file select an alternate cache file if it wants to.
1889# Prefer explicitly selected file to automatically selected ones.
Reid Spencera773bd52006-08-04 18:18:08 +00001890if test -n "$CONFIG_SITE"; then
1891 set x "$CONFIG_SITE"
1892elif test "x$prefix" != xNONE; then
1893 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894else
1895 set x "$ac_default_prefix/share/config.site" \
1896 "$ac_default_prefix/etc/config.site"
John Criswell7a73b802003-06-30 21:59:07 +00001897fi
Reid Spencera773bd52006-08-04 18:18:08 +00001898shift
1899for ac_site_file
1900do
John Criswell7a73b802003-06-30 21:59:07 +00001901 if test -r "$ac_site_file"; then
1902 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903echo "$as_me: loading site script $ac_site_file" >&6;}
1904 sed 's/^/| /' "$ac_site_file" >&5
1905 . "$ac_site_file"
1906 fi
1907done
1908
1909if test -r "$cache_file"; then
1910 # Some versions of bash will fail to source /dev/null (special
1911 # files actually), so we avoid doing that.
1912 if test -f "$cache_file"; then
1913 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914echo "$as_me: loading cache $cache_file" >&6;}
1915 case $cache_file in
Reid Spencera773bd52006-08-04 18:18:08 +00001916 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917 *) . "./$cache_file";;
John Criswell7a73b802003-06-30 21:59:07 +00001918 esac
1919 fi
1920else
1921 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922echo "$as_me: creating cache $cache_file" >&6;}
1923 >$cache_file
1924fi
1925
1926# Check that the precious variables saved in the cache have kept the same
1927# value.
1928ac_cache_corrupted=false
Reid Spencera773bd52006-08-04 18:18:08 +00001929for ac_var in $ac_precious_vars; do
John Criswell7a73b802003-06-30 21:59:07 +00001930 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931 eval ac_new_set=\$ac_env_${ac_var}_set
Reid Spencera773bd52006-08-04 18:18:08 +00001932 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933 eval ac_new_val=\$ac_env_${ac_var}_value
John Criswell7a73b802003-06-30 21:59:07 +00001934 case $ac_old_set,$ac_new_set in
1935 set,)
1936 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938 ac_cache_corrupted=: ;;
1939 ,set)
1940 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942 ac_cache_corrupted=: ;;
1943 ,);;
1944 *)
1945 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001946 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001947echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001948 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001949echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001950 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001951echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001952 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001953 fi;;
1954 esac
1955 # Pass precious variables to config.status.
1956 if test "$ac_new_set" = set; then
1957 case $ac_new_val in
Reid Spencera773bd52006-08-04 18:18:08 +00001958 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
John Criswell7a73b802003-06-30 21:59:07 +00001959 *) ac_arg=$ac_var=$ac_new_val ;;
1960 esac
1961 case " $ac_configure_args " in
1962 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1963 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964 esac
1965 fi
1966done
1967if $ac_cache_corrupted; then
1968 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972 { (exit 1); exit 1; }; }
1973fi
1974
Reid Spencera773bd52006-08-04 18:18:08 +00001975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
John Criswell7a73b802003-06-30 21:59:07 +00001999ac_ext=c
2000ac_cpp='$CPP $CPPFLAGS'
2001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2003ac_compiler_gnu=$ac_cv_c_compiler_gnu
2004
2005
2006
Misha Brukman19098e52005-05-12 22:15:34 +00002007LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002008
2009
2010
2011
2012
2013
2014
John Criswell7a73b802003-06-30 21:59:07 +00002015ac_aux_dir=
Reid Spencera773bd52006-08-04 18:18:08 +00002016for ac_dir in autoconf "$srcdir"/autoconf; do
2017 if test -f "$ac_dir/install-sh"; then
John Criswell7a73b802003-06-30 21:59:07 +00002018 ac_aux_dir=$ac_dir
2019 ac_install_sh="$ac_aux_dir/install-sh -c"
2020 break
Reid Spencera773bd52006-08-04 18:18:08 +00002021 elif 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/shtool"; then
John Criswell7a73b802003-06-30 21:59:07 +00002026 ac_aux_dir=$ac_dir
2027 ac_install_sh="$ac_aux_dir/shtool install -c"
2028 break
2029 fi
2030done
2031if test -z "$ac_aux_dir"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002032 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
2033echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002034 { (exit 1); exit 1; }; }
2035fi
Reid Spencera773bd52006-08-04 18:18:08 +00002036
2037# These three variables are undocumented and unsupported,
2038# and are intended to be withdrawn in a future Autoconf release.
2039# They can cause serious problems if a builder's source tree is in a directory
2040# whose full name contains unusual characters.
2041ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2042ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2043ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2044
John Criswell7a73b802003-06-30 21:59:07 +00002045
John Criswell392aaa32003-07-22 19:18:09 +00002046
Reid Spencer2706f8c2004-09-19 23:53:36 +00002047if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002048 if test -f ${srcdir}/include/llvm/Config/config.h ; then
2049 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00002050echo "$as_me: error: Already configured in ${srcdir}" >&2;}
2051 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002052 fi
John Criswell93e1c722003-09-15 17:04:06 +00002053fi
2054
John Criswell33a911a2003-11-25 20:36:46 +00002055for i in `ls ${srcdir}/projects`
2056do
Reid Spencer4d68ba22004-09-07 16:35:45 +00002057 if test -d ${srcdir}/projects/${i} ; then
2058 case ${i} in
2059 "CVS") ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002060 "sample") subdirs="$subdirs projects/sample"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002061 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002062 "Stacker") subdirs="$subdirs projects/Stacker"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002063 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002064 "privbracket") subdirs="$subdirs projects/privbracket"
John Criswell0389cf72006-06-20 17:44:40 +00002065 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002066 "llvm-test") subdirs="$subdirs projects/llvm-test"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002067 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002068 "llvm-reopt") subdirs="$subdirs projects/llvm-reopt"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002069;;
Reid Spencera773bd52006-08-04 18:18:08 +00002070 "llvm-gcc") subdirs="$subdirs projects/llvm-gcc"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002071 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002072 "llvm-java") subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00002073 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002074 "llvm-tv") subdirs="$subdirs projects/llvm-tv"
Reid Spencer4d68ba22004-09-07 16:35:45 +00002075 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002076 "llvm-poolalloc") subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00002077 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00002078 "llvm-kernel") subdirs="$subdirs projects/llvm-kernel"
John Criswell241116f2005-12-19 20:27:24 +00002079 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002080 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00002081 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2082echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00002083 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00002084 esac
John Criswell33a911a2003-11-25 20:36:46 +00002085 fi
2086done
John Criswell559a6c12003-09-30 16:31:48 +00002087
John Criswell7a73b802003-06-30 21:59:07 +00002088
2089# Make sure we can run config.sub.
Reid Spencera773bd52006-08-04 18:18:08 +00002090$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002093 { (exit 1); exit 1; }; }
2094
Reid Spencera773bd52006-08-04 18:18:08 +00002095{ echo "$as_me:$LINENO: checking build system type" >&5
2096echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002097if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2099else
Reid Spencera773bd52006-08-04 18:18:08 +00002100 ac_build_alias=$build_alias
2101test "x$ac_build_alias" = x &&
2102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2103test "x$ac_build_alias" = x &&
John Criswell7a73b802003-06-30 21:59:07 +00002104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002107ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002110 { (exit 1); exit 1; }; }
2111
2112fi
Reid Spencera773bd52006-08-04 18:18:08 +00002113{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114echo "${ECHO_T}$ac_cv_build" >&6; }
2115case $ac_cv_build in
2116*-*-*) ;;
2117*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2120esac
John Criswell7a73b802003-06-30 21:59:07 +00002121build=$ac_cv_build
Reid Spencera773bd52006-08-04 18:18:08 +00002122ac_save_IFS=$IFS; IFS='-'
2123set x $ac_cv_build
2124shift
2125build_cpu=$1
2126build_vendor=$2
2127shift; shift
2128# Remember, the first character of IFS is used to create $*,
2129# except with old shells:
2130build_os=$*
2131IFS=$ac_save_IFS
2132case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002133
2134
Reid Spencera773bd52006-08-04 18:18:08 +00002135{ echo "$as_me:$LINENO: checking host system type" >&5
2136echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002137if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
Reid Spencera773bd52006-08-04 18:18:08 +00002140 if test "x$host_alias" = x; then
2141 ac_cv_host=$ac_cv_build
2142else
2143 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002146 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002147fi
John Criswell7a73b802003-06-30 21:59:07 +00002148
2149fi
Reid Spencera773bd52006-08-04 18:18:08 +00002150{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151echo "${ECHO_T}$ac_cv_host" >&6; }
2152case $ac_cv_host in
2153*-*-*) ;;
2154*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2157esac
John Criswell7a73b802003-06-30 21:59:07 +00002158host=$ac_cv_host
Reid Spencera773bd52006-08-04 18:18:08 +00002159ac_save_IFS=$IFS; IFS='-'
2160set x $ac_cv_host
2161shift
2162host_cpu=$1
2163host_vendor=$2
2164shift; shift
2165# Remember, the first character of IFS is used to create $*,
2166# except with old shells:
2167host_os=$*
2168IFS=$ac_save_IFS
2169case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002170
2171
Reid Spencera773bd52006-08-04 18:18:08 +00002172{ echo "$as_me:$LINENO: checking target system type" >&5
2173echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002174if test "${ac_cv_target+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
Reid Spencera773bd52006-08-04 18:18:08 +00002177 if test "x$target_alias" = x; then
2178 ac_cv_target=$ac_cv_host
2179else
2180 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2182echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002183 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +00002184fi
John Criswell7a73b802003-06-30 21:59:07 +00002185
2186fi
Reid Spencera773bd52006-08-04 18:18:08 +00002187{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2188echo "${ECHO_T}$ac_cv_target" >&6; }
2189case $ac_cv_target in
2190*-*-*) ;;
2191*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2192echo "$as_me: error: invalid value of canonical target" >&2;}
2193 { (exit 1); exit 1; }; };;
2194esac
John Criswell7a73b802003-06-30 21:59:07 +00002195target=$ac_cv_target
Reid Spencera773bd52006-08-04 18:18:08 +00002196ac_save_IFS=$IFS; IFS='-'
2197set x $ac_cv_target
2198shift
2199target_cpu=$1
2200target_vendor=$2
2201shift; shift
2202# Remember, the first character of IFS is used to create $*,
2203# except with old shells:
2204target_os=$*
2205IFS=$ac_save_IFS
2206case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
John Criswell7a73b802003-06-30 21:59:07 +00002207
2208
2209# The aliases save the names the user supplied, while $host etc.
2210# will get canonicalized.
2211test -n "$target_alias" &&
2212 test "$program_prefix$program_suffix$program_transform_name" = \
2213 NONENONEs,x,x, &&
2214 program_prefix=${target_alias}-
2215
Reid Spencera773bd52006-08-04 18:18:08 +00002216{ echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2217echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
Reid Spencer7b3e8512004-12-24 06:29:05 +00002218if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
Reid Spencere2cfe5d2006-07-26 21:14:56 +00002221 case $host in
Reid Spencer7b3e8512004-12-24 06:29:05 +00002222 *-*-aix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002223 llvm_cv_link_all_option="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002225 llvm_cv_os_type="AIX"
2226 llvm_cv_platform_type="Unix" ;;
Reid Spencer6ccd01a2006-08-22 22:21:38 +00002227 *-*-irix*)
2228 llvm_cv_link_all_option="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230 llvm_cv_os_type="IRIX"
2231 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002232 *-*-cygwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002233 llvm_cv_link_all_option="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002235 llvm_cv_os_type="Cygwin"
2236 llvm_cv_platform_type="Unix" ;;
2237 *-*-darwin*)
Reid Spencera773bd52006-08-04 18:18:08 +00002238 llvm_cv_link_all_option="-Wl,-all_load"
2239 llvm_cv_link_all_option="-Wl,-noall_load"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002240 llvm_cv_os_type="Darwin"
2241 llvm_cv_platform_type="Unix" ;;
2242 *-*-freebsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002243 llvm_cv_link_all_option="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002245 llvm_cv_os_type="FreeBSD"
2246 llvm_cv_platform_type="Unix" ;;
Reid Spencer1014ab42006-04-19 23:47:16 +00002247 *-*-openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +00002248 llvm_cv_link_all_option="-Wl,--whole-archive"
2249 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer1014ab42006-04-19 23:47:16 +00002250 llvm_cv_os_type="OpenBSD"
2251 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00002252 *-*-hpux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002253 llvm_cv_link_all_option="-Wl,--whole-archive"
2254 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Duraid Madina775afa52005-05-16 16:33:34 +00002255 llvm_cv_os_type="HP-UX"
2256 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00002257 *-*-interix*)
Reid Spencera773bd52006-08-04 18:18:08 +00002258 llvm_cv_link_all_option="-Wl,--whole-archive"
2259 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002260 llvm_cv_os_type="Interix"
2261 llvm_cv_platform_type="Unix" ;;
2262 *-*-linux*)
Reid Spencera773bd52006-08-04 18:18:08 +00002263 llvm_cv_link_all_option="-Wl,--whole-archive"
2264 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002265 llvm_cv_os_type="Linux"
2266 llvm_cv_platform_type="Unix" ;;
2267 *-*-solaris*)
Reid Spencera773bd52006-08-04 18:18:08 +00002268 llvm_cv_link_all_option="-Wl,-z,allextract"
2269 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002270 llvm_cv_os_type="SunOS"
2271 llvm_cv_platform_type="Unix" ;;
2272 *-*-win32*)
Reid Spencera773bd52006-08-04 18:18:08 +00002273 llvm_cv_link_all_option="-Wl,--whole-archive"
2274 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002275 llvm_cv_os_type="Win32"
2276 llvm_cv_platform_type="Win32" ;;
2277 *-*-mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +00002278 llvm_cv_link_all_option="-Wl,--whole-archive"
2279 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
Reid Spencer7b3e8512004-12-24 06:29:05 +00002280 llvm_cv_os_type="MingW"
2281 llvm_cv_platform_type="Win32" ;;
2282 *)
Reid Spencera773bd52006-08-04 18:18:08 +00002283 llvm_cv_link_all_option=""
2284 llvm_cv_no_link_all_option=""
Reid Spencer7b3e8512004-12-24 06:29:05 +00002285 llvm_cv_os_type="Unknown"
2286 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002287esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002288fi
Reid Spencera773bd52006-08-04 18:18:08 +00002289{ echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2290echo "${ECHO_T}$llvm_cv_os_type" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002291
Reid Spencer7b3e8512004-12-24 06:29:05 +00002292if test "$llvm_cv_os_type" = "Unknown" ; then
2293 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2294echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00002295 { (exit 1); exit 1; }; }
2296fi
2297
Reid Spencer7b3e8512004-12-24 06:29:05 +00002298OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299
2300
Reid Spencera773bd52006-08-04 18:18:08 +00002301LINKALL=$llvm_cv_link_all_option
2302
2303NOLINKALL=$llvm_cv_no_link_all_option
2304
2305
Reid Spencer7b3e8512004-12-24 06:29:05 +00002306case $llvm_cv_platform_type in
2307 Unix)
2308
2309cat >>confdefs.h <<\_ACEOF
2310#define LLVM_ON_UNIX 1
2311_ACEOF
2312
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002313 LLVM_ON_UNIX=1
2314
2315 LLVM_ON_WIN32=0
2316
Reid Spencer7b3e8512004-12-24 06:29:05 +00002317 ;;
2318 Win32)
2319
2320cat >>confdefs.h <<\_ACEOF
2321#define LLVM_ON_WIN32 1
2322_ACEOF
2323
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00002324 LLVM_ON_UNIX=0
2325
2326 LLVM_ON_WIN32=1
2327
Reid Spencer7b3e8512004-12-24 06:29:05 +00002328 ;;
2329esac
2330
Reid Spencera773bd52006-08-04 18:18:08 +00002331{ echo "$as_me:$LINENO: checking target architecture" >&5
2332echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002333if test "${llvm_cv_target_arch+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00002337 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00002338 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002339 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2340 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00002341 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00002342 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002343 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00002344esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002345fi
Reid Spencera773bd52006-08-04 18:18:08 +00002346{ echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2347echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002348
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002349if test "$llvm_cv_target_arch" = "Unknown" ; then
2350 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2351echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2352fi
John Criswell76595452003-07-01 22:07:39 +00002353
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002355
Brian Gaeke7fe1d162003-11-17 00:31:43 +00002356
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002357ac_ext=c
2358ac_cpp='$CPP $CPPFLAGS'
2359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2361ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002362if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2364set dummy ${ac_tool_prefix}gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002365{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002367if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372else
2373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374for as_dir in $PATH
2375do
2376 IFS=$as_save_IFS
2377 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002379 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 +00002380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384done
2385done
Reid Spencera773bd52006-08-04 18:18:08 +00002386IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002387
2388fi
2389fi
2390CC=$ac_cv_prog_CC
2391if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002392 { echo "$as_me:$LINENO: result: $CC" >&5
2393echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394else
Reid Spencera773bd52006-08-04 18:18:08 +00002395 { echo "$as_me:$LINENO: result: no" >&5
2396echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002397fi
2398
Reid Spencera773bd52006-08-04 18:18:08 +00002399
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002400fi
2401if test -z "$ac_cv_prog_CC"; then
2402 ac_ct_CC=$CC
2403 # Extract the first word of "gcc", so it can be a program name with args.
2404set dummy gcc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2408 echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410 if test -n "$ac_ct_CC"; then
2411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2412else
2413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414for as_dir in $PATH
2415do
2416 IFS=$as_save_IFS
2417 test -z "$as_dir" && as_dir=.
2418 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002419 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 +00002420 ac_cv_prog_ac_ct_CC="gcc"
2421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 break 2
2423 fi
2424done
2425done
Reid Spencera773bd52006-08-04 18:18:08 +00002426IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427
2428fi
2429fi
2430ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002432 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433echo "${ECHO_T}$ac_ct_CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002434else
Reid Spencera773bd52006-08-04 18:18:08 +00002435 { echo "$as_me:$LINENO: result: no" >&5
2436echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437fi
2438
Reid Spencera773bd52006-08-04 18:18:08 +00002439 if test "x$ac_ct_CC" = x; then
2440 CC=""
2441 else
2442 case $cross_compiling:$ac_tool_warned in
2443yes:)
2444{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2445whose name does not start with the host triplet. If you think this
2446configuration is useful to you, please write to autoconf@gnu.org." >&5
2447echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2448whose name does not start with the host triplet. If you think this
2449configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2450ac_tool_warned=yes ;;
2451esac
2452 CC=$ac_ct_CC
2453 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002454else
2455 CC="$ac_cv_prog_CC"
2456fi
2457
2458if test -z "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002459 if test -n "$ac_tool_prefix"; then
2460 # 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 +00002461set dummy ${ac_tool_prefix}cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002462{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002464if test "${ac_cv_prog_CC+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2466else
2467 if test -n "$CC"; then
2468 ac_cv_prog_CC="$CC" # Let the user override the test.
2469else
2470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471for as_dir in $PATH
2472do
2473 IFS=$as_save_IFS
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002476 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 +00002477 ac_cv_prog_CC="${ac_tool_prefix}cc"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2479 break 2
2480 fi
2481done
2482done
Reid Spencera773bd52006-08-04 18:18:08 +00002483IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002484
2485fi
2486fi
2487CC=$ac_cv_prog_CC
2488if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002489 { echo "$as_me:$LINENO: result: $CC" >&5
2490echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002491else
Reid Spencera773bd52006-08-04 18:18:08 +00002492 { echo "$as_me:$LINENO: result: no" >&5
2493echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002494fi
2495
Reid Spencera773bd52006-08-04 18:18:08 +00002496
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002497 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002498fi
2499if test -z "$CC"; then
2500 # Extract the first word of "cc", so it can be a program name with args.
2501set dummy cc; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002502{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002504if test "${ac_cv_prog_CC+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2506else
2507 if test -n "$CC"; then
2508 ac_cv_prog_CC="$CC" # Let the user override the test.
2509else
2510 ac_prog_rejected=no
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002517 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 +00002518 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2519 ac_prog_rejected=yes
2520 continue
2521 fi
2522 ac_cv_prog_CC="cc"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526done
2527done
Reid Spencera773bd52006-08-04 18:18:08 +00002528IFS=$as_save_IFS
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002529
2530if test $ac_prog_rejected = yes; then
2531 # We found a bogon in the path, so make sure we never use it.
2532 set dummy $ac_cv_prog_CC
2533 shift
2534 if test $# != 0; then
2535 # We chose a different compiler from the bogus one.
2536 # However, it has the same basename, so the bogon will be chosen
2537 # first if we set CC to just the basename; use the full file name.
2538 shift
2539 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2540 fi
2541fi
2542fi
2543fi
2544CC=$ac_cv_prog_CC
2545if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002546 { echo "$as_me:$LINENO: result: $CC" >&5
2547echo "${ECHO_T}$CC" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002548else
Reid Spencera773bd52006-08-04 18:18:08 +00002549 { echo "$as_me:$LINENO: result: no" >&5
2550echo "${ECHO_T}no" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002551fi
2552
Reid Spencera773bd52006-08-04 18:18:08 +00002553
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002554fi
2555if test -z "$CC"; then
2556 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002557 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002558 do
2559 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2560set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002563if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002564 echo $ECHO_N "(cached) $ECHO_C" >&6
2565else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002566 if test -n "$CC"; then
2567 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002568else
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002575 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 +00002576 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580done
2581done
Reid Spencera773bd52006-08-04 18:18:08 +00002582IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002583
2584fi
2585fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002586CC=$ac_cv_prog_CC
2587if test -n "$CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002588 { echo "$as_me:$LINENO: result: $CC" >&5
2589echo "${ECHO_T}$CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002590else
Reid Spencera773bd52006-08-04 18:18:08 +00002591 { echo "$as_me:$LINENO: result: no" >&5
2592echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002593fi
2594
Reid Spencera773bd52006-08-04 18:18:08 +00002595
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002596 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002597 done
2598fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002599if test -z "$CC"; then
2600 ac_ct_CC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +00002601 for ac_prog in cl.exe
John Criswell7a73b802003-06-30 21:59:07 +00002602do
2603 # Extract the first word of "$ac_prog", so it can be a program name with args.
2604set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +00002605{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002608 echo $ECHO_N "(cached) $ECHO_C" >&6
2609else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002610 if test -n "$ac_ct_CC"; then
2611 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002612else
2613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614for as_dir in $PATH
2615do
2616 IFS=$as_save_IFS
2617 test -z "$as_dir" && as_dir=.
2618 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00002619 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 +00002620 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 break 2
2623 fi
2624done
2625done
Reid Spencera773bd52006-08-04 18:18:08 +00002626IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +00002627
2628fi
2629fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002630ac_ct_CC=$ac_cv_prog_ac_ct_CC
2631if test -n "$ac_ct_CC"; then
Reid Spencera773bd52006-08-04 18:18:08 +00002632 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2633echo "${ECHO_T}$ac_ct_CC" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002634else
Reid Spencera773bd52006-08-04 18:18:08 +00002635 { echo "$as_me:$LINENO: result: no" >&5
2636echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002637fi
2638
Reid Spencera773bd52006-08-04 18:18:08 +00002639
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002640 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002641done
John Criswell7a73b802003-06-30 21:59:07 +00002642
Reid Spencera773bd52006-08-04 18:18:08 +00002643 if test "x$ac_ct_CC" = x; then
2644 CC=""
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647yes:)
2648{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2649whose name does not start with the host triplet. If you think this
2650configuration is useful to you, please write to autoconf@gnu.org." >&5
2651echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652whose name does not start with the host triplet. If you think this
2653configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654ac_tool_warned=yes ;;
2655esac
2656 CC=$ac_ct_CC
2657 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002658fi
2659
John Criswell7a73b802003-06-30 21:59:07 +00002660fi
2661
2662
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002663test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2664See \`config.log' for more details." >&5
2665echo "$as_me: error: no acceptable C compiler found in \$PATH
2666See \`config.log' for more details." >&2;}
2667 { (exit 1); exit 1; }; }
2668
John Criswell7a73b802003-06-30 21:59:07 +00002669# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +00002670echo "$as_me:$LINENO: checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002671ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +00002672{ (ac_try="$ac_compiler --version >&5"
2673case "(($ac_try" in
2674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675 *) ac_try_echo=$ac_try;;
2676esac
2677eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2678 (eval "$ac_compiler --version >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002679 ac_status=$?
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002682{ (ac_try="$ac_compiler -v >&5"
2683case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686esac
2687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2688 (eval "$ac_compiler -v >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +00002692{ (ac_try="$ac_compiler -V >&5"
2693case "(($ac_try" in
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2696esac
2697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compiler -V >&5") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }
2702
2703cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002704/* confdefs.h. */
2705_ACEOF
2706cat confdefs.h >>conftest.$ac_ext
2707cat >>conftest.$ac_ext <<_ACEOF
2708/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002709
John Criswell7a73b802003-06-30 21:59:07 +00002710int
2711main ()
2712{
2713
2714 ;
2715 return 0;
2716}
2717_ACEOF
2718ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002719ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002720# Try to create an executable without -o first, disregard a.out.
2721# It will help us diagnose broken compilers, and finding out an intuition
2722# of exeext.
Reid Spencera773bd52006-08-04 18:18:08 +00002723{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2724echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002725ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Reid Spencera773bd52006-08-04 18:18:08 +00002726#
2727# List of possible output files, starting from the most likely.
2728# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2729# only as a last resort. b.out is created by i960 compilers.
2730ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2731#
2732# The IRIX 6 linker writes into existing files which may not be
2733# executable, retaining their permissions. Remove them first so a
2734# subsequent execution test works.
2735ac_rmfiles=
2736for ac_file in $ac_files
2737do
2738 case $ac_file in
2739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2741 esac
2742done
2743rm -f $ac_rmfiles
2744
2745if { (ac_try="$ac_link_default"
2746case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_link_default") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002752 ac_status=$?
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002755 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2756# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2757# in a Makefile. We should not override ac_cv_exeext if it was cached,
2758# so that the user can short-circuit this test for compilers unknown to
2759# Autoconf.
2760for ac_file in $ac_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002761do
2762 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002763 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002765 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002766 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002767 # We found the default executable, but exeext='' is most
2768 # certainly right.
2769 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002770 *.* )
Reid Spencera773bd52006-08-04 18:18:08 +00002771 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2772 then :; else
2773 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2774 fi
2775 # We set ac_cv_exeext here because the later test for it is not
2776 # safe: cross compilers may not add the suffix if given an `-o'
2777 # argument, so we may need to know it at that point already.
2778 # Even if this section looks crufty: it has the advantage of
2779 # actually working.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002780 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002781 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002782 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002783 esac
2784done
Reid Spencera773bd52006-08-04 18:18:08 +00002785test "$ac_cv_exeext" = no && ac_cv_exeext=
2786
John Criswell7a73b802003-06-30 21:59:07 +00002787else
2788 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002789sed 's/^/| /' conftest.$ac_ext >&5
2790
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002791{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002792See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002793echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002794See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002795 { (exit 77); exit 77; }; }
2796fi
2797
2798ac_exeext=$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002799{ echo "$as_me:$LINENO: result: $ac_file" >&5
2800echo "${ECHO_T}$ac_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002801
Reid Spencera773bd52006-08-04 18:18:08 +00002802# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002803# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002804{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2805echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002806# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2807# If not cross compiling, check that we can run a simple program.
2808if test "$cross_compiling" != yes; then
2809 if { ac_try='./$ac_file'
Reid Spencera773bd52006-08-04 18:18:08 +00002810 { (case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; }; then
2819 cross_compiling=no
2820 else
2821 if test "$cross_compiling" = maybe; then
2822 cross_compiling=yes
2823 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002824 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002825If you meant to cross compile, use \`--host'.
2826See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002827echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002828If you meant to cross compile, use \`--host'.
2829See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002830 { (exit 1); exit 1; }; }
2831 fi
2832 fi
2833fi
Reid Spencera773bd52006-08-04 18:18:08 +00002834{ echo "$as_me:$LINENO: result: yes" >&5
2835echo "${ECHO_T}yes" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002836
John Criswell0c38eaf2003-09-10 15:17:25 +00002837rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002838ac_clean_files=$ac_clean_files_save
Reid Spencera773bd52006-08-04 18:18:08 +00002839# Check that the compiler produces executables we can run. If not, either
John Criswell7a73b802003-06-30 21:59:07 +00002840# the compiler is broken, or we cross compile.
Reid Spencera773bd52006-08-04 18:18:08 +00002841{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2842echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2843{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2844echo "${ECHO_T}$cross_compiling" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002845
Reid Spencera773bd52006-08-04 18:18:08 +00002846{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2847echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2848if { (ac_try="$ac_link"
2849case "(($ac_try" in
2850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851 *) ac_try_echo=$ac_try;;
2852esac
2853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; then
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860# work properly (i.e., refer to `conftest.exe'), while it won't with
2861# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002862for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002864 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002867 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002868 * ) break;;
2869 esac
2870done
2871else
John Criswell0c38eaf2003-09-10 15:17:25 +00002872 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2873See \`config.log' for more details." >&5
2874echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2875See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002876 { (exit 1); exit 1; }; }
2877fi
2878
2879rm -f conftest$ac_cv_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00002880{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2881echo "${ECHO_T}$ac_cv_exeext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002882
2883rm -f conftest.$ac_ext
2884EXEEXT=$ac_cv_exeext
2885ac_exeext=$EXEEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002886{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2887echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002888if test "${ac_cv_objext+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890else
2891 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002897
John Criswell7a73b802003-06-30 21:59:07 +00002898int
2899main ()
2900{
2901
2902 ;
2903 return 0;
2904}
2905_ACEOF
2906rm -f conftest.o conftest.obj
Reid Spencera773bd52006-08-04 18:18:08 +00002907if { (ac_try="$ac_compile"
2908case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911esac
2912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compile") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +00002917 for ac_file in conftest.o conftest.obj conftest.*; do
2918 test -f "$ac_file" || continue;
John Criswell7a73b802003-06-30 21:59:07 +00002919 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +00002920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002921 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2922 break;;
2923 esac
2924done
2925else
2926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002927sed 's/^/| /' conftest.$ac_ext >&5
2928
2929{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: cannot compute suffix of object files: cannot compile
2932See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002933 { (exit 1); exit 1; }; }
2934fi
2935
2936rm -f conftest.$ac_cv_objext conftest.$ac_ext
2937fi
Reid Spencera773bd52006-08-04 18:18:08 +00002938{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2939echo "${ECHO_T}$ac_cv_objext" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00002940OBJEXT=$ac_cv_objext
2941ac_objext=$OBJEXT
Reid Spencera773bd52006-08-04 18:18:08 +00002942{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2943echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002944if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002945 echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002948/* confdefs.h. */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002953
John Criswell7a73b802003-06-30 21:59:07 +00002954int
2955main ()
2956{
2957#ifndef __GNUC__
2958 choke me
2959#endif
2960
2961 ;
2962 return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00002966if { (ac_try="$ac_compile"
2967case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002973 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002974 grep -v '^ *+' conftest.er1 >conftest.err
2975 rm -f conftest.er1
2976 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00002979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2980 { (case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983esac
2984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2985 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002986 ac_status=$?
2987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988 (exit $ac_status); }; } &&
2989 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00002990 { (case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993esac
2994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 ac_compiler_gnu=yes
3000else
3001 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003002sed 's/^/| /' conftest.$ac_ext >&5
3003
Reid Spencera773bd52006-08-04 18:18:08 +00003004 ac_compiler_gnu=no
John Criswell7a73b802003-06-30 21:59:07 +00003005fi
Reid Spencera773bd52006-08-04 18:18:08 +00003006
3007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003008ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00003009
3010fi
Reid Spencera773bd52006-08-04 18:18:08 +00003011{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3012echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003013GCC=`test $ac_compiler_gnu = yes && echo yes`
3014ac_test_CFLAGS=${CFLAGS+set}
3015ac_save_CFLAGS=$CFLAGS
Reid Spencera773bd52006-08-04 18:18:08 +00003016{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3017echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003018if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
Reid Spencera773bd52006-08-04 18:18:08 +00003021 ac_save_c_werror_flag=$ac_c_werror_flag
3022 ac_c_werror_flag=yes
3023 ac_cv_prog_cc_g=no
3024 CFLAGS="-g"
3025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003026/* confdefs.h. */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003031
John Criswell7a73b802003-06-30 21:59:07 +00003032int
3033main ()
3034{
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003041if { (ac_try="$ac_compile"
3042case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045esac
3046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003048 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003049 grep -v '^ *+' conftest.er1 >conftest.err
3050 rm -f conftest.er1
3051 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3055 { (case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
3059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; } &&
3064 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003065 { (case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
3069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3070 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003074 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00003075else
3076 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003077sed 's/^/| /' conftest.$ac_ext >&5
3078
Reid Spencera773bd52006-08-04 18:18:08 +00003079 CFLAGS=""
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086
3087int
3088main ()
3089{
3090
3091 ;
3092 return 0;
3093}
3094_ACEOF
3095rm -f conftest.$ac_objext
3096if { (ac_try="$ac_compile"
3097case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100esac
3101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_compile") 2>conftest.er1
3103 ac_status=$?
3104 grep -v '^ *+' conftest.er1 >conftest.err
3105 rm -f conftest.er1
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3110 { (case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
3114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118 (exit $ac_status); }; } &&
3119 { ac_try='test -s conftest.$ac_objext'
3120 { (case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125 (eval "$ac_try") 2>&5
3126 ac_status=$?
3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128 (exit $ac_status); }; }; then
3129 :
3130else
3131 echo "$as_me: failed program was:" >&5
3132sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 ac_c_werror_flag=$ac_save_c_werror_flag
3135 CFLAGS="-g"
3136 cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142
3143int
3144main ()
3145{
3146
3147 ;
3148 return 0;
3149}
3150_ACEOF
3151rm -f conftest.$ac_objext
3152if { (ac_try="$ac_compile"
3153case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156esac
3157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_compile") 2>conftest.er1
3159 ac_status=$?
3160 grep -v '^ *+' conftest.er1 >conftest.err
3161 rm -f conftest.er1
3162 cat conftest.err >&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); } &&
3165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169esac
3170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; } &&
3175 { ac_try='test -s conftest.$ac_objext'
3176 { (case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179esac
3180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_try") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }; }; then
3185 ac_cv_prog_cc_g=yes
3186else
3187 echo "$as_me: failed program was:" >&5
3188sed 's/^/| /' conftest.$ac_ext >&5
3189
3190
John Criswell7a73b802003-06-30 21:59:07 +00003191fi
Reid Spencera773bd52006-08-04 18:18:08 +00003192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003194fi
Reid Spencera773bd52006-08-04 18:18:08 +00003195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197fi
3198
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200 ac_c_werror_flag=$ac_save_c_werror_flag
3201fi
3202{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3203echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003204if test "$ac_test_CFLAGS" = set; then
3205 CFLAGS=$ac_save_CFLAGS
3206elif test $ac_cv_prog_cc_g = yes; then
3207 if test "$GCC" = yes; then
3208 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003209 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003210 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003211 fi
3212else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003213 if test "$GCC" = yes; then
3214 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00003215 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003216 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00003217 fi
3218fi
Reid Spencera773bd52006-08-04 18:18:08 +00003219{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3220echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3221if test "${ac_cv_prog_cc_c89+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223else
Reid Spencera773bd52006-08-04 18:18:08 +00003224 ac_cv_prog_cc_c89=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003225ac_save_CC=$CC
3226cat >conftest.$ac_ext <<_ACEOF
3227/* confdefs.h. */
3228_ACEOF
3229cat confdefs.h >>conftest.$ac_ext
3230cat >>conftest.$ac_ext <<_ACEOF
3231/* end confdefs.h. */
3232#include <stdarg.h>
3233#include <stdio.h>
3234#include <sys/types.h>
3235#include <sys/stat.h>
3236/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3237struct buf { int x; };
3238FILE * (*rcsopen) (struct buf *, struct stat *, int);
3239static char *e (p, i)
3240 char **p;
3241 int i;
3242{
3243 return p[i];
3244}
3245static char *f (char * (*g) (char **, int), char **p, ...)
3246{
3247 char *s;
3248 va_list v;
3249 va_start (v,p);
3250 s = g (p, va_arg (v,int));
3251 va_end (v);
3252 return s;
3253}
3254
3255/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3256 function prototypes and stuff, but not '\xHH' hex character constants.
3257 These don't provoke an error unfortunately, instead are silently treated
Reid Spencera773bd52006-08-04 18:18:08 +00003258 as 'x'. The following induces an error, until -std is added to get
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003259 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3260 array size at least. It's necessary to write '\x00'==0 to get something
Reid Spencera773bd52006-08-04 18:18:08 +00003261 that's true only with -std. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003262int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3263
Reid Spencera773bd52006-08-04 18:18:08 +00003264/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3265 inside strings and character constants. */
3266#define FOO(x) 'x'
3267int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3268
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003269int test (int i, double x);
3270struct s1 {int (*f) (int a);};
3271struct s2 {int (*f) (double a);};
3272int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3273int argc;
3274char **argv;
3275int
3276main ()
3277{
3278return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3279 ;
3280 return 0;
3281}
3282_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003283for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3284 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003285do
3286 CC="$ac_save_CC $ac_arg"
3287 rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003288if { (ac_try="$ac_compile"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
3293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003295 ac_status=$?
3296 grep -v '^ *+' conftest.er1 >conftest.err
3297 rm -f conftest.er1
3298 cat conftest.err >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3302 { (case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305esac
3306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003308 ac_status=$?
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003312 { (case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003318 ac_status=$?
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00003321 ac_cv_prog_cc_c89=$ac_arg
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003322else
3323 echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
Reid Spencera773bd52006-08-04 18:18:08 +00003326
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003327fi
Reid Spencera773bd52006-08-04 18:18:08 +00003328
3329rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003331done
Reid Spencera773bd52006-08-04 18:18:08 +00003332rm -f conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003333CC=$ac_save_CC
3334
3335fi
Reid Spencera773bd52006-08-04 18:18:08 +00003336# AC_CACHE_VAL
3337case "x$ac_cv_prog_cc_c89" in
3338 x)
3339 { echo "$as_me:$LINENO: result: none needed" >&5
3340echo "${ECHO_T}none needed" >&6; } ;;
3341 xno)
3342 { echo "$as_me:$LINENO: result: unsupported" >&5
3343echo "${ECHO_T}unsupported" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003344 *)
Reid Spencera773bd52006-08-04 18:18:08 +00003345 CC="$CC $ac_cv_prog_cc_c89"
3346 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3347echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003348esac
3349
John Criswell0c38eaf2003-09-10 15:17:25 +00003350
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003351ac_ext=c
3352ac_cpp='$CPP $CPPFLAGS'
3353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003358ac_ext=c
3359ac_cpp='$CPP $CPPFLAGS'
3360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3362ac_compiler_gnu=$ac_cv_c_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +00003363{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3364echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003365# On Suns, sometimes $CPP names a directory.
3366if test -n "$CPP" && test -d "$CPP"; then
3367 CPP=
3368fi
3369if test -z "$CPP"; then
3370 if test "${ac_cv_prog_CPP+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3372else
3373 # Double quotes because CPP needs to be expanded
3374 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3375 do
3376 ac_preproc_ok=false
3377for ac_c_preproc_warn_flag in '' yes
3378do
3379 # Use a header file that comes with gcc, so configuring glibc
3380 # with a fresh cross-compiler works.
3381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3382 # <limits.h> exists even on freestanding compilers.
3383 # On the NeXT, cc -E runs the code through the compiler's parser,
3384 # not just through cpp. "Syntax error" is here to catch this case.
3385 cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h. */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h. */
3391#ifdef __STDC__
3392# include <limits.h>
3393#else
3394# include <assert.h>
3395#endif
3396 Syntax error
3397_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003398if { (ac_try="$ac_cpp conftest.$ac_ext"
3399case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003405 ac_status=$?
3406 grep -v '^ *+' conftest.er1 >conftest.err
3407 rm -f conftest.er1
3408 cat conftest.err >&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); } >/dev/null; then
3411 if test -s conftest.err; then
3412 ac_cpp_err=$ac_c_preproc_warn_flag
3413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 else
3415 ac_cpp_err=
3416 fi
3417else
3418 ac_cpp_err=yes
3419fi
3420if test -z "$ac_cpp_err"; then
3421 :
3422else
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 # Broken: fails on valid input.
3427continue
3428fi
Reid Spencera773bd52006-08-04 18:18:08 +00003429
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003430rm -f conftest.err conftest.$ac_ext
3431
Reid Spencera773bd52006-08-04 18:18:08 +00003432 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003433 # can be detected and how.
3434 cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h. */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h. */
3440#include <ac_nonexistent.h>
3441_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003442if { (ac_try="$ac_cpp conftest.$ac_ext"
3443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
3447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null; then
3455 if test -s conftest.err; then
3456 ac_cpp_err=$ac_c_preproc_warn_flag
3457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 else
3459 ac_cpp_err=
3460 fi
3461else
3462 ac_cpp_err=yes
3463fi
3464if test -z "$ac_cpp_err"; then
3465 # Broken: success on invalid input.
3466continue
3467else
3468 echo "$as_me: failed program was:" >&5
3469sed 's/^/| /' conftest.$ac_ext >&5
3470
3471 # Passes both tests.
3472ac_preproc_ok=:
3473break
3474fi
Reid Spencera773bd52006-08-04 18:18:08 +00003475
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003476rm -f conftest.err conftest.$ac_ext
3477
3478done
3479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480rm -f conftest.err conftest.$ac_ext
3481if $ac_preproc_ok; then
3482 break
3483fi
3484
3485 done
3486 ac_cv_prog_CPP=$CPP
3487
3488fi
3489 CPP=$ac_cv_prog_CPP
3490else
3491 ac_cv_prog_CPP=$CPP
3492fi
Reid Spencera773bd52006-08-04 18:18:08 +00003493{ echo "$as_me:$LINENO: result: $CPP" >&5
3494echo "${ECHO_T}$CPP" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003495ac_preproc_ok=false
3496for ac_c_preproc_warn_flag in '' yes
3497do
3498 # Use a header file that comes with gcc, so configuring glibc
3499 # with a fresh cross-compiler works.
3500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3501 # <limits.h> exists even on freestanding compilers.
3502 # On the NeXT, cc -E runs the code through the compiler's parser,
3503 # not just through cpp. "Syntax error" is here to catch this case.
3504 cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h. */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h. */
3510#ifdef __STDC__
3511# include <limits.h>
3512#else
3513# include <assert.h>
3514#endif
3515 Syntax error
3516_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003517if { (ac_try="$ac_cpp conftest.$ac_ext"
3518case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521esac
3522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003524 ac_status=$?
3525 grep -v '^ *+' conftest.er1 >conftest.err
3526 rm -f conftest.er1
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 else
3534 ac_cpp_err=
3535 fi
3536else
3537 ac_cpp_err=yes
3538fi
3539if test -z "$ac_cpp_err"; then
3540 :
3541else
3542 echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 # Broken: fails on valid input.
3546continue
3547fi
Reid Spencera773bd52006-08-04 18:18:08 +00003548
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003549rm -f conftest.err conftest.$ac_ext
3550
Reid Spencera773bd52006-08-04 18:18:08 +00003551 # OK, works on sane cases. Now check whether nonexistent headers
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003552 # can be detected and how.
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559#include <ac_nonexistent.h>
3560_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00003561if { (ac_try="$ac_cpp conftest.$ac_ext"
3562case "(($ac_try" in
3563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564 *) ac_try_echo=$ac_try;;
3565esac
3566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003568 ac_status=$?
3569 grep -v '^ *+' conftest.er1 >conftest.err
3570 rm -f conftest.er1
3571 cat conftest.err >&5
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); } >/dev/null; then
3574 if test -s conftest.err; then
3575 ac_cpp_err=$ac_c_preproc_warn_flag
3576 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577 else
3578 ac_cpp_err=
3579 fi
3580else
3581 ac_cpp_err=yes
3582fi
3583if test -z "$ac_cpp_err"; then
3584 # Broken: success on invalid input.
3585continue
3586else
3587 echo "$as_me: failed program was:" >&5
3588sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 # Passes both tests.
3591ac_preproc_ok=:
3592break
3593fi
Reid Spencera773bd52006-08-04 18:18:08 +00003594
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003595rm -f conftest.err conftest.$ac_ext
3596
3597done
3598# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3599rm -f conftest.err conftest.$ac_ext
3600if $ac_preproc_ok; then
3601 :
3602else
3603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3604See \`config.log' for more details." >&5
3605echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3606See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3608fi
3609
John Criswell7a73b802003-06-30 21:59:07 +00003610ac_ext=c
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615
John Criswell7a73b802003-06-30 21:59:07 +00003616
Reid Spencera773bd52006-08-04 18:18:08 +00003617{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3618echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003619if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3621else
Reid Spencera773bd52006-08-04 18:18:08 +00003622 # Extract the first word of "grep ggrep" to use in msg output
3623if test -z "$GREP"; then
3624set dummy grep ggrep; ac_prog_name=$2
3625if test "${ac_cv_path_GREP+set}" = set; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
Reid Spencera773bd52006-08-04 18:18:08 +00003628 ac_path_GREP_found=false
3629# Loop through the user's path and test for each of PROGNAME-LIST
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Reid Spencera773bd52006-08-04 18:18:08 +00003631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003632do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
Reid Spencera773bd52006-08-04 18:18:08 +00003635 for ac_prog in grep ggrep; do
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003636 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +00003637 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3638 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3639 # Check for GNU ac_path_GREP and select it if it is found.
3640 # Check for GNU $ac_path_GREP
3641case `"$ac_path_GREP" --version 2>&1` in
3642*GNU*)
3643 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3644*)
3645 ac_count=0
3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3647 while :
3648 do
3649 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl"
3652 echo 'GREP' >> "conftest.nl"
3653 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655 ac_count=`expr $ac_count + 1`
3656 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_GREP="$ac_path_GREP"
3659 ac_path_GREP_max=$ac_count
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003660 fi
Reid Spencera773bd52006-08-04 18:18:08 +00003661 # 10*(2^10) chars as input seems more than enough
3662 test $ac_count -gt 10 && break
3663 done
3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665esac
3666
3667
3668 $ac_path_GREP_found && break 3
3669 done
3670done
3671
3672done
3673IFS=$as_save_IFS
3674
3675
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003676fi
Reid Spencera773bd52006-08-04 18:18:08 +00003677
3678GREP="$ac_cv_path_GREP"
3679if test -z "$GREP"; then
3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682 { (exit 1); exit 1; }; }
3683fi
3684
3685else
3686 ac_cv_path_GREP=$GREP
3687fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003688
John Criswell7a73b802003-06-30 21:59:07 +00003689
Reid Spencera773bd52006-08-04 18:18:08 +00003690fi
3691{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3692echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3693 GREP="$ac_cv_path_GREP"
3694
3695
3696{ echo "$as_me:$LINENO: checking for egrep" >&5
3697echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3698if test "${ac_cv_path_EGREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3702 then ac_cv_path_EGREP="$GREP -E"
3703 else
3704 # Extract the first word of "egrep" to use in msg output
3705if test -z "$EGREP"; then
3706set dummy egrep; ac_prog_name=$2
3707if test "${ac_cv_path_EGREP+set}" = set; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709else
3710 ac_path_EGREP_found=false
3711# Loop through the user's path and test for each of PROGNAME-LIST
3712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714do
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_prog in egrep; do
3718 for ac_exec_ext in '' $ac_executable_extensions; do
3719 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3720 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3721 # Check for GNU ac_path_EGREP and select it if it is found.
3722 # Check for GNU $ac_path_EGREP
3723case `"$ac_path_EGREP" --version 2>&1` in
3724*GNU*)
3725 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3726*)
3727 ac_count=0
3728 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729 while :
3730 do
3731 cat "conftest.in" "conftest.in" >"conftest.tmp"
3732 mv "conftest.tmp" "conftest.in"
3733 cp "conftest.in" "conftest.nl"
3734 echo 'EGREP' >> "conftest.nl"
3735 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3737 ac_count=`expr $ac_count + 1`
3738 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3739 # Best one so far, save it but keep looking for a better one
3740 ac_cv_path_EGREP="$ac_path_EGREP"
3741 ac_path_EGREP_max=$ac_count
3742 fi
3743 # 10*(2^10) chars as input seems more than enough
3744 test $ac_count -gt 10 && break
3745 done
3746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747esac
3748
3749
3750 $ac_path_EGREP_found && break 3
3751 done
3752done
3753
3754done
3755IFS=$as_save_IFS
3756
3757
3758fi
3759
3760EGREP="$ac_cv_path_EGREP"
3761if test -z "$EGREP"; then
3762 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3763echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3764 { (exit 1); exit 1; }; }
3765fi
3766
3767else
3768 ac_cv_path_EGREP=$EGREP
3769fi
3770
3771
3772 fi
3773fi
3774{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3775echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3776 EGREP="$ac_cv_path_EGREP"
3777
3778
3779{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3780echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003781if test "${ac_cv_header_stdc+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783else
3784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003785/* confdefs.h. */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003790#include <stdlib.h>
3791#include <stdarg.h>
3792#include <string.h>
3793#include <float.h>
3794
John Criswell0c38eaf2003-09-10 15:17:25 +00003795int
3796main ()
3797{
3798
3799 ;
3800 return 0;
3801}
John Criswell7a73b802003-06-30 21:59:07 +00003802_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003803rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00003804if { (ac_try="$ac_compile"
3805case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
3809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003811 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003816 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00003817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3818 { (case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821esac
3822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3823 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; } &&
3827 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00003828 { (case "(($ac_try" in
3829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3830 *) ac_try_echo=$ac_try;;
3831esac
3832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00003837 ac_cv_header_stdc=yes
3838else
3839 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003840sed 's/^/| /' conftest.$ac_ext >&5
3841
Reid Spencera773bd52006-08-04 18:18:08 +00003842 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00003843fi
Reid Spencera773bd52006-08-04 18:18:08 +00003844
3845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003846
3847if test $ac_cv_header_stdc = yes; then
3848 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003850/* confdefs.h. */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003855#include <string.h>
3856
3857_ACEOF
3858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003859 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003860 :
3861else
3862 ac_cv_header_stdc=no
3863fi
3864rm -f conftest*
3865
3866fi
3867
3868if test $ac_cv_header_stdc = yes; then
3869 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3870 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003871/* confdefs.h. */
3872_ACEOF
3873cat confdefs.h >>conftest.$ac_ext
3874cat >>conftest.$ac_ext <<_ACEOF
3875/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003876#include <stdlib.h>
3877
3878_ACEOF
3879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00003880 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00003881 :
3882else
3883 ac_cv_header_stdc=no
3884fi
3885rm -f conftest*
3886
3887fi
3888
3889if test $ac_cv_header_stdc = yes; then
3890 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3891 if test "$cross_compiling" = yes; then
3892 :
3893else
3894 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003895/* confdefs.h. */
3896_ACEOF
3897cat confdefs.h >>conftest.$ac_ext
3898cat >>conftest.$ac_ext <<_ACEOF
3899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003900#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +00003901#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003902#if ((' ' & 0x0FF) == 0x020)
3903# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3904# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3905#else
John Criswell0c38eaf2003-09-10 15:17:25 +00003906# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003907 (('a' <= (c) && (c) <= 'i') \
3908 || ('j' <= (c) && (c) <= 'r') \
3909 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00003910# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3911#endif
3912
3913#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3914int
3915main ()
3916{
3917 int i;
3918 for (i = 0; i < 256; i++)
3919 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00003920 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +00003921 return 2;
3922 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00003923}
3924_ACEOF
3925rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00003926if { (ac_try="$ac_link"
3927case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930esac
3931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3932 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003933 ac_status=$?
3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00003936 { (case "(($ac_try" in
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3939esac
3940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003942 ac_status=$?
3943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }; }; then
3945 :
3946else
3947 echo "$as_me: program exited with status $ac_status" >&5
3948echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003949sed 's/^/| /' conftest.$ac_ext >&5
3950
John Criswell7a73b802003-06-30 21:59:07 +00003951( exit $ac_status )
3952ac_cv_header_stdc=no
3953fi
Reid Spencera773bd52006-08-04 18:18:08 +00003954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3955fi
3956
3957
John Criswell7a73b802003-06-30 21:59:07 +00003958fi
3959fi
Reid Spencera773bd52006-08-04 18:18:08 +00003960{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3961echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00003962if test $ac_cv_header_stdc = yes; then
3963
3964cat >>confdefs.h <<\_ACEOF
3965#define STDC_HEADERS 1
3966_ACEOF
3967
3968fi
3969
Reid Spencera773bd52006-08-04 18:18:08 +00003970# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3981 inttypes.h stdint.h unistd.h
3982do
3983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3984{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3986if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h. */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h. */
3995$ac_includes_default
3996
3997#include <$ac_header>
3998_ACEOF
3999rm -f conftest.$ac_objext
4000if { (ac_try="$ac_compile"
4001case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004esac
4005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_compile") 2>conftest.er1
4007 ac_status=$?
4008 grep -v '^ *+' conftest.er1 >conftest.err
4009 rm -f conftest.er1
4010 cat conftest.err >&5
4011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012 (exit $ac_status); } &&
4013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4014 { (case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_try") 2>&5
4020 ac_status=$?
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; } &&
4023 { ac_try='test -s conftest.$ac_objext'
4024 { (case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027esac
4028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_try") 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4033 eval "$as_ac_Header=yes"
4034else
4035 echo "$as_me: failed program was:" >&5
4036sed 's/^/| /' conftest.$ac_ext >&5
4037
4038 eval "$as_ac_Header=no"
4039fi
4040
4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042fi
4043ac_res=`eval echo '${'$as_ac_Header'}'`
4044 { echo "$as_me:$LINENO: result: $ac_res" >&5
4045echo "${ECHO_T}$ac_res" >&6; }
4046if test `eval echo '${'$as_ac_Header'}'` = yes; then
4047 cat >>confdefs.h <<_ACEOF
4048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4049_ACEOF
4050
4051fi
4052
4053done
4054
4055
4056{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4057echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4058if test "${ac_cv_c_bigendian+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060else
4061 # See if sys/param.h defines the BYTE_ORDER macro.
4062cat >conftest.$ac_ext <<_ACEOF
4063/* confdefs.h. */
4064_ACEOF
4065cat confdefs.h >>conftest.$ac_ext
4066cat >>conftest.$ac_ext <<_ACEOF
4067/* end confdefs.h. */
4068#include <sys/types.h>
4069#include <sys/param.h>
4070
4071int
4072main ()
4073{
4074#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4075 bogus endian macros
4076#endif
4077
4078 ;
4079 return 0;
4080}
4081_ACEOF
4082rm -f conftest.$ac_objext
4083if { (ac_try="$ac_compile"
4084case "(($ac_try" in
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4087esac
4088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compile") 2>conftest.er1
4090 ac_status=$?
4091 grep -v '^ *+' conftest.er1 >conftest.err
4092 rm -f conftest.er1
4093 cat conftest.err >&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); } &&
4096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4100esac
4101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest.$ac_objext'
4107 { (case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
4111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4112 (eval "$ac_try") 2>&5
4113 ac_status=$?
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 # It does; now see whether it defined to BIG_ENDIAN or not.
4117cat >conftest.$ac_ext <<_ACEOF
4118/* confdefs.h. */
4119_ACEOF
4120cat confdefs.h >>conftest.$ac_ext
4121cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */
4123#include <sys/types.h>
4124#include <sys/param.h>
4125
4126int
4127main ()
4128{
4129#if BYTE_ORDER != BIG_ENDIAN
4130 not big endian
4131#endif
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137rm -f conftest.$ac_objext
4138if { (ac_try="$ac_compile"
4139case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4142esac
4143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4145 ac_status=$?
4146 grep -v '^ *+' conftest.er1 >conftest.err
4147 rm -f conftest.er1
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4155esac
4156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4165esac
4166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4168 ac_status=$?
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_cv_c_bigendian=yes
4172else
4173 echo "$as_me: failed program was:" >&5
4174sed 's/^/| /' conftest.$ac_ext >&5
4175
4176 ac_cv_c_bigendian=no
4177fi
4178
4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180else
4181 echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184 # It does not; compile a test program.
4185if test "$cross_compiling" = yes; then
4186 # try to guess the endianness by grepping values into an object file
4187 ac_cv_c_bigendian=unknown
4188 cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h. */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h. */
4194short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4195short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4196void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4197short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4198short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4199void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4200int
4201main ()
4202{
4203 _ascii (); _ebcdic ();
4204 ;
4205 return 0;
4206}
4207_ACEOF
4208rm -f conftest.$ac_objext
4209if { (ac_try="$ac_compile"
4210case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compile") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4223 { (case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_try") 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; } &&
4232 { ac_try='test -s conftest.$ac_objext'
4233 { (case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_try") 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; }; then
4242 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4243 ac_cv_c_bigendian=yes
4244fi
4245if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4246 if test "$ac_cv_c_bigendian" = unknown; then
4247 ac_cv_c_bigendian=no
4248 else
4249 # finding both strings is unlikely to happen, but who knows?
4250 ac_cv_c_bigendian=unknown
4251 fi
4252fi
4253else
4254 echo "$as_me: failed program was:" >&5
4255sed 's/^/| /' conftest.$ac_ext >&5
4256
4257
4258fi
4259
4260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261else
4262 cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h. */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h. */
4268$ac_includes_default
4269int
4270main ()
4271{
4272
4273 /* Are we little or big endian? From Harbison&Steele. */
4274 union
4275 {
4276 long int l;
4277 char c[sizeof (long int)];
4278 } u;
4279 u.l = 1;
4280 return u.c[sizeof (long int) - 1] == 1;
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
4286rm -f conftest$ac_exeext
4287if { (ac_try="$ac_link"
4288case "(($ac_try" in
4289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4290 *) ac_try_echo=$ac_try;;
4291esac
4292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4293 (eval "$ac_link") 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4297 { (case "(($ac_try" in
4298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299 *) ac_try_echo=$ac_try;;
4300esac
4301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4302 (eval "$ac_try") 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_c_bigendian=no
4307else
4308 echo "$as_me: program exited with status $ac_status" >&5
4309echo "$as_me: failed program was:" >&5
4310sed 's/^/| /' conftest.$ac_ext >&5
4311
4312( exit $ac_status )
4313ac_cv_c_bigendian=yes
4314fi
4315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4316fi
4317
4318
4319fi
4320
4321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4322fi
4323{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4324echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4325case $ac_cv_c_bigendian in
4326 yes)
4327 ENDIAN=big
4328 ;;
4329 no)
4330 ENDIAN=little
4331 ;;
4332 *)
4333 { { echo "$as_me:$LINENO: error: unknown endianness
4334presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4335echo "$as_me: error: unknown endianness
4336presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4337 { (exit 1); exit 1; }; } ;;
4338esac
4339
4340
4341if test "$cross_compiling" = yes; then
4342 LLVM_CROSS_COMPILING=1
4343
4344
4345{ echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4346echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4347if test "${ac_cv_build_exeext+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4349else
4350 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4351 ac_cv_build_exeext=.exe
4352else
4353 ac_build_prefix=${build_alias}-
4354
4355 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4356set dummy ${ac_build_prefix}gcc; ac_word=$2
4357{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4359if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362 if test -n "$BUILD_CC"; then
4363 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4364else
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376done
4377done
4378IFS=$as_save_IFS
4379
4380fi
4381fi
4382BUILD_CC=$ac_cv_prog_BUILD_CC
4383if test -n "$BUILD_CC"; then
4384 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4385echo "${ECHO_T}$BUILD_CC" >&6; }
4386else
4387 { echo "$as_me:$LINENO: result: no" >&5
4388echo "${ECHO_T}no" >&6; }
4389fi
4390
4391
4392 if test -z "$BUILD_CC"; then
4393 # Extract the first word of "gcc", so it can be a program name with args.
4394set dummy gcc; ac_word=$2
4395{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4397if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400 if test -n "$BUILD_CC"; then
4401 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4402else
4403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404for as_dir in $PATH
4405do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_BUILD_CC="gcc"
4411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414done
4415done
4416IFS=$as_save_IFS
4417
4418fi
4419fi
4420BUILD_CC=$ac_cv_prog_BUILD_CC
4421if test -n "$BUILD_CC"; then
4422 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4423echo "${ECHO_T}$BUILD_CC" >&6; }
4424else
4425 { echo "$as_me:$LINENO: result: no" >&5
4426echo "${ECHO_T}no" >&6; }
4427fi
4428
4429
4430 if test -z "$BUILD_CC"; then
4431 # Extract the first word of "cc", so it can be a program name with args.
4432set dummy cc; ac_word=$2
4433{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4435if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 if test -n "$BUILD_CC"; then
4439 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4440else
4441 ac_prog_rejected=no
4442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443for as_dir in $PATH
4444do
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450 ac_prog_rejected=yes
4451 continue
4452 fi
4453 ac_cv_prog_BUILD_CC="cc"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458done
4459IFS=$as_save_IFS
4460
4461if test $ac_prog_rejected = yes; then
4462 # We found a bogon in the path, so make sure we never use it.
4463 set dummy $ac_cv_prog_BUILD_CC
4464 shift
4465 if test $# != 0; then
4466 # We chose a different compiler from the bogus one.
4467 # However, it has the same basename, so the bogon will be chosen
4468 # first if we set BUILD_CC to just the basename; use the full file name.
4469 shift
4470 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4471 fi
4472fi
4473fi
4474fi
4475BUILD_CC=$ac_cv_prog_BUILD_CC
4476if test -n "$BUILD_CC"; then
4477 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4478echo "${ECHO_T}$BUILD_CC" >&6; }
4479else
4480 { echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6; }
4482fi
4483
4484
4485 fi
4486 fi
4487 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4488echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4489 { (exit 1); exit 1; }; }
4490 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491 rm -f conftest*
4492 echo 'int main () { return 0; }' > conftest.$ac_ext
4493 ac_cv_build_exeext=
4494 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4495 (eval $ac_build_link) 2>&5
4496 ac_status=$?
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; then
4499 for file in conftest.*; do
4500 case $file in
4501 *.c | *.o | *.obj) ;;
4502 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4503 esac
4504 done
4505 else
4506 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4507echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4508 { (exit 1); exit 1; }; }
4509 fi
4510 rm -f conftest*
4511 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4512fi
4513fi
4514
4515BUILD_EXEEXT=""
4516test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4517{ echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4518echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4519ac_build_exeext=$BUILD_EXEEXT
4520
4521else
4522 LLVM_CROSS_COMPILING=0
4523
4524fi
4525
4526if test -d "CVS" -o -d "${srcdir}/CVS"; then
4527 cvsbuild="yes"
4528 optimize="no"
4529 CVSBUILD=CVSBUILD=1
4530
4531else
4532 cvsbuild="no"
4533 optimize="yes"
4534fi
4535
4536
4537# Check whether --enable-optimized was given.
4538if test "${enable_optimized+set}" = set; then
4539 enableval=$enable_optimized;
4540else
4541 enableval=$optimize
4542fi
4543
4544if test ${enableval} = "no" ; then
4545 ENABLE_OPTIMIZED=
4546
4547else
4548 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4549
4550fi
4551
4552# Check whether --enable-assertions was given.
4553if test "${enable_assertions+set}" = set; then
4554 enableval=$enable_assertions;
4555else
4556 enableval="yes"
4557fi
4558
4559if test ${enableval} = "yes" ; then
4560 DISABLE_ASSERTIONS=
4561
4562else
4563 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4564
4565fi
4566
Reid Spencer8b2e1412006-11-17 03:32:33 +00004567# Check whether --enable-debug-runtime was given.
4568if test "${enable_debug_runtime+set}" = set; then
4569 enableval=$enable_debug_runtime;
4570else
4571 enableval=no
4572fi
4573
4574if test ${enableval} = "no" ; then
4575 DEBUG_RUNTIME=
4576
4577else
4578 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4579
4580fi
4581
Reid Spencera773bd52006-08-04 18:18:08 +00004582# Check whether --enable-jit was given.
4583if test "${enable_jit+set}" = set; then
4584 enableval=$enable_jit;
4585else
4586 enableval=default
4587fi
4588
4589if test ${enableval} = "no"
4590then
4591 JIT=
4592
4593else
4594 case "$llvm_cv_target_arch" in
4595 x86) TARGET_HAS_JIT=1
4596 ;;
4597 Sparc) TARGET_HAS_JIT=1
4598 ;;
4599 PowerPC) TARGET_HAS_JIT=1
4600 ;;
4601 x86_64) TARGET_HAS_JIT=0
4602 ;;
4603 Alpha) TARGET_HAS_JIT=1
4604 ;;
4605 IA64) TARGET_HAS_JIT=0
4606 ;;
4607 *) TARGET_HAS_JIT=0
4608 ;;
4609 esac
4610fi
4611
4612# Check whether --enable-doxygen was given.
4613if test "${enable_doxygen+set}" = set; then
4614 enableval=$enable_doxygen;
4615else
4616 enableval=default
4617fi
4618
4619case "$enableval" in
4620 yes) ENABLE_DOXYGEN=1
4621 ;;
4622 no) ENABLE_DOXYGEN=0
4623 ;;
4624 default) ENABLE_DOXYGEN=0
4625 ;;
4626 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4627echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4628 { (exit 1); exit 1; }; } ;;
4629esac
4630
4631# Check whether --enable-threads was given.
4632if test "${enable_threads+set}" = set; then
4633 enableval=$enable_threads;
4634else
Reid Spencer65c5d752006-11-05 17:08:18 +00004635 enableval=default
Reid Spencera773bd52006-08-04 18:18:08 +00004636fi
4637
4638case "$enableval" in
4639 yes) ENABLE_THREADS=1
4640 ;;
4641 no) ENABLE_THREADS=0
4642 ;;
Reid Spencer65c5d752006-11-05 17:08:18 +00004643 default) ENABLE_THREADS=1
4644 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00004645 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4646echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4648esac
4649
4650cat >>confdefs.h <<_ACEOF
4651#define ENABLE_THREADS $ENABLE_THREADS
4652_ACEOF
4653
4654
4655TARGETS_TO_BUILD=""
4656# Check whether --enable-targets was given.
4657if test "${enable_targets+set}" = set; then
4658 enableval=$enable_targets;
4659else
4660 enableval=all
4661fi
4662
4663case "$enableval" in
4664 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha IA64 ARM" ;;
4665 host-only)
4666 case "$llvm_cv_target_arch" in
4667 x86) TARGETS_TO_BUILD="X86" ;;
4668 x86_64) TARGETS_TO_BUILD="X86" ;;
4669 Sparc) TARGETS_TO_BUILD="Sparc" ;;
4670 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
4671 Alpha) TARGETS_TO_BUILD="Alpha" ;;
4672 IA64) TARGETS_TO_BUILD="IA64" ;;
4673 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4674echo "$as_me: error: Can not set target to build" >&2;}
4675 { (exit 1); exit 1; }; } ;;
4676 esac
4677 ;;
4678 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4679 case "$a_target" in
4680 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4681 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4682 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4683 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4684 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4685 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
4686 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4687echo "$as_me: error: Unrecognized target $a_target" >&2;}
4688 { (exit 1); exit 1; }; } ;;
4689 esac
4690 done
4691 ;;
4692esac
4693TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
4694TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4695
4696
Reid Spencer65c5d752006-11-05 17:08:18 +00004697# Check whether --enable-cbe-printf-a was given.
4698if test "${enable_cbe_printf_a+set}" = set; then
4699 enableval=$enable_cbe_printf_a;
4700else
4701 enableval=default
4702fi
4703
4704case "$enableval" in
4705 yes) ENABLE_CBE_PRINTF_A=1
4706 ;;
4707 no) ENABLE_CBE_PRINTF_A=0
4708 ;;
4709 default) ENABLE_CBE_PRINTF_A=1
4710 ;;
4711 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4712echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4713 { (exit 1); exit 1; }; } ;;
4714esac
4715
4716cat >>confdefs.h <<_ACEOF
4717#define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4718_ACEOF
4719
4720
Reid Spencera773bd52006-08-04 18:18:08 +00004721
4722# Check whether --with-llvmgccdir was given.
4723if test "${with_llvmgccdir+set}" = set; then
4724 withval=$with_llvmgccdir;
4725else
4726 withval=default
4727fi
4728
4729case "$withval" in
4730 default) WITH_LLVMGCCDIR=default ;;
4731 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4732 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4733echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4734 { (exit 1); exit 1; }; } ;;
4735esac
4736
4737
4738# Check whether --with-extra-options was given.
4739if test "${with_extra_options+set}" = set; then
4740 withval=$with_extra_options;
4741else
4742 withval=default
4743fi
4744
4745case "$withval" in
4746 default) EXTRA_OPTIONS= ;;
4747 *) EXTRA_OPTIONS=$withval ;;
4748esac
4749EXTRA_OPTIONS=$EXTRA_OPTIONS
4750
4751
4752
4753ac_ext=c
4754ac_cpp='$CPP $CPPFLAGS'
4755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4757ac_compiler_gnu=$ac_cv_c_compiler_gnu
4758{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4759echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4760# On Suns, sometimes $CPP names a directory.
4761if test -n "$CPP" && test -d "$CPP"; then
4762 CPP=
4763fi
4764if test -z "$CPP"; then
4765 if test "${ac_cv_prog_CPP+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768 # Double quotes because CPP needs to be expanded
4769 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4770 do
4771 ac_preproc_ok=false
4772for ac_c_preproc_warn_flag in '' yes
4773do
4774 # Use a header file that comes with gcc, so configuring glibc
4775 # with a fresh cross-compiler works.
4776 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4777 # <limits.h> exists even on freestanding compilers.
4778 # On the NeXT, cc -E runs the code through the compiler's parser,
4779 # not just through cpp. "Syntax error" is here to catch this case.
4780 cat >conftest.$ac_ext <<_ACEOF
4781/* confdefs.h. */
4782_ACEOF
4783cat confdefs.h >>conftest.$ac_ext
4784cat >>conftest.$ac_ext <<_ACEOF
4785/* end confdefs.h. */
4786#ifdef __STDC__
4787# include <limits.h>
4788#else
4789# include <assert.h>
4790#endif
4791 Syntax error
4792_ACEOF
4793if { (ac_try="$ac_cpp conftest.$ac_ext"
4794case "(($ac_try" in
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4797esac
4798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 ac_status=$?
4801 grep -v '^ *+' conftest.er1 >conftest.err
4802 rm -f conftest.er1
4803 cat conftest.err >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } >/dev/null; then
4806 if test -s conftest.err; then
4807 ac_cpp_err=$ac_c_preproc_warn_flag
4808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4809 else
4810 ac_cpp_err=
4811 fi
4812else
4813 ac_cpp_err=yes
4814fi
4815if test -z "$ac_cpp_err"; then
4816 :
4817else
4818 echo "$as_me: failed program was:" >&5
4819sed 's/^/| /' conftest.$ac_ext >&5
4820
4821 # Broken: fails on valid input.
4822continue
4823fi
4824
4825rm -f conftest.err conftest.$ac_ext
4826
4827 # OK, works on sane cases. Now check whether nonexistent headers
4828 # can be detected and how.
4829 cat >conftest.$ac_ext <<_ACEOF
4830/* confdefs.h. */
4831_ACEOF
4832cat confdefs.h >>conftest.$ac_ext
4833cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */
4835#include <ac_nonexistent.h>
4836_ACEOF
4837if { (ac_try="$ac_cpp conftest.$ac_ext"
4838case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841esac
4842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null; then
4850 if test -s conftest.err; then
4851 ac_cpp_err=$ac_c_preproc_warn_flag
4852 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4853 else
4854 ac_cpp_err=
4855 fi
4856else
4857 ac_cpp_err=yes
4858fi
4859if test -z "$ac_cpp_err"; then
4860 # Broken: success on invalid input.
4861continue
4862else
4863 echo "$as_me: failed program was:" >&5
4864sed 's/^/| /' conftest.$ac_ext >&5
4865
4866 # Passes both tests.
4867ac_preproc_ok=:
4868break
4869fi
4870
4871rm -f conftest.err conftest.$ac_ext
4872
4873done
4874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4875rm -f conftest.err conftest.$ac_ext
4876if $ac_preproc_ok; then
4877 break
4878fi
4879
4880 done
4881 ac_cv_prog_CPP=$CPP
4882
4883fi
4884 CPP=$ac_cv_prog_CPP
4885else
4886 ac_cv_prog_CPP=$CPP
4887fi
4888{ echo "$as_me:$LINENO: result: $CPP" >&5
4889echo "${ECHO_T}$CPP" >&6; }
4890ac_preproc_ok=false
4891for ac_c_preproc_warn_flag in '' yes
4892do
4893 # Use a header file that comes with gcc, so configuring glibc
4894 # with a fresh cross-compiler works.
4895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4896 # <limits.h> exists even on freestanding compilers.
4897 # On the NeXT, cc -E runs the code through the compiler's parser,
4898 # not just through cpp. "Syntax error" is here to catch this case.
4899 cat >conftest.$ac_ext <<_ACEOF
4900/* confdefs.h. */
4901_ACEOF
4902cat confdefs.h >>conftest.$ac_ext
4903cat >>conftest.$ac_ext <<_ACEOF
4904/* end confdefs.h. */
4905#ifdef __STDC__
4906# include <limits.h>
4907#else
4908# include <assert.h>
4909#endif
4910 Syntax error
4911_ACEOF
4912if { (ac_try="$ac_cpp conftest.$ac_ext"
4913case "(($ac_try" in
4914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4915 *) ac_try_echo=$ac_try;;
4916esac
4917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4919 ac_status=$?
4920 grep -v '^ *+' conftest.er1 >conftest.err
4921 rm -f conftest.er1
4922 cat conftest.err >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); } >/dev/null; then
4925 if test -s conftest.err; then
4926 ac_cpp_err=$ac_c_preproc_warn_flag
4927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4928 else
4929 ac_cpp_err=
4930 fi
4931else
4932 ac_cpp_err=yes
4933fi
4934if test -z "$ac_cpp_err"; then
4935 :
4936else
4937 echo "$as_me: failed program was:" >&5
4938sed 's/^/| /' conftest.$ac_ext >&5
4939
4940 # Broken: fails on valid input.
4941continue
4942fi
4943
4944rm -f conftest.err conftest.$ac_ext
4945
4946 # OK, works on sane cases. Now check whether nonexistent headers
4947 # can be detected and how.
4948 cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h. */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h. */
4954#include <ac_nonexistent.h>
4955_ACEOF
4956if { (ac_try="$ac_cpp conftest.$ac_ext"
4957case "(($ac_try" in
4958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959 *) ac_try_echo=$ac_try;;
4960esac
4961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4963 ac_status=$?
4964 grep -v '^ *+' conftest.er1 >conftest.err
4965 rm -f conftest.er1
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null; then
4969 if test -s conftest.err; then
4970 ac_cpp_err=$ac_c_preproc_warn_flag
4971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4972 else
4973 ac_cpp_err=
4974 fi
4975else
4976 ac_cpp_err=yes
4977fi
4978if test -z "$ac_cpp_err"; then
4979 # Broken: success on invalid input.
4980continue
4981else
4982 echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
4985 # Passes both tests.
4986ac_preproc_ok=:
4987break
4988fi
4989
4990rm -f conftest.err conftest.$ac_ext
4991
4992done
4993# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4994rm -f conftest.err conftest.$ac_ext
4995if $ac_preproc_ok; then
4996 :
4997else
4998 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4999See \`config.log' for more details." >&5
5000echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5001See \`config.log' for more details." >&2;}
5002 { (exit 1); exit 1; }; }
5003fi
5004
5005ac_ext=c
5006ac_cpp='$CPP $CPPFLAGS'
5007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009ac_compiler_gnu=$ac_cv_c_compiler_gnu
5010
5011ac_ext=c
5012ac_cpp='$CPP $CPPFLAGS'
5013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016if test -n "$ac_tool_prefix"; then
5017 for ac_prog in gcc
5018 do
5019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5020set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5021{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023if test "${ac_cv_prog_CC+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 if test -n "$CC"; then
5027 ac_cv_prog_CC="$CC" # Let the user override the test.
5028else
5029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030for as_dir in $PATH
5031do
5032 IFS=$as_save_IFS
5033 test -z "$as_dir" && as_dir=.
5034 for ac_exec_ext in '' $ac_executable_extensions; do
5035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 break 2
5039 fi
5040done
5041done
5042IFS=$as_save_IFS
5043
5044fi
5045fi
5046CC=$ac_cv_prog_CC
5047if test -n "$CC"; then
5048 { echo "$as_me:$LINENO: result: $CC" >&5
5049echo "${ECHO_T}$CC" >&6; }
5050else
5051 { echo "$as_me:$LINENO: result: no" >&5
5052echo "${ECHO_T}no" >&6; }
5053fi
5054
5055
5056 test -n "$CC" && break
5057 done
5058fi
5059if test -z "$CC"; then
5060 ac_ct_CC=$CC
5061 for ac_prog in gcc
5062do
5063 # Extract the first word of "$ac_prog", so it can be a program name with args.
5064set dummy $ac_prog; ac_word=$2
5065{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069else
5070 if test -n "$ac_ct_CC"; then
5071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5072else
5073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074for as_dir in $PATH
5075do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_ac_ct_CC="$ac_prog"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084done
5085done
5086IFS=$as_save_IFS
5087
5088fi
5089fi
5090ac_ct_CC=$ac_cv_prog_ac_ct_CC
5091if test -n "$ac_ct_CC"; then
5092 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5093echo "${ECHO_T}$ac_ct_CC" >&6; }
5094else
5095 { echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6; }
5097fi
5098
5099
5100 test -n "$ac_ct_CC" && break
5101done
5102
5103 if test "x$ac_ct_CC" = x; then
5104 CC=""
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107yes:)
5108{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5109whose name does not start with the host triplet. If you think this
5110configuration is useful to you, please write to autoconf@gnu.org." >&5
5111echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5112whose name does not start with the host triplet. If you think this
5113configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5114ac_tool_warned=yes ;;
5115esac
5116 CC=$ac_ct_CC
5117 fi
5118fi
5119
5120
5121test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5122See \`config.log' for more details." >&5
5123echo "$as_me: error: no acceptable C compiler found in \$PATH
5124See \`config.log' for more details." >&2;}
5125 { (exit 1); exit 1; }; }
5126
5127# Provide some information about the compiler.
5128echo "$as_me:$LINENO: checking for C compiler version" >&5
5129ac_compiler=`set X $ac_compile; echo $2`
5130{ (ac_try="$ac_compiler --version >&5"
5131case "(($ac_try" in
5132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5133 *) ac_try_echo=$ac_try;;
5134esac
5135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5136 (eval "$ac_compiler --version >&5") 2>&5
5137 ac_status=$?
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }
5140{ (ac_try="$ac_compiler -v >&5"
5141case "(($ac_try" in
5142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5143 *) ac_try_echo=$ac_try;;
5144esac
5145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5146 (eval "$ac_compiler -v >&5") 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }
5150{ (ac_try="$ac_compiler -V >&5"
5151case "(($ac_try" in
5152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5153 *) ac_try_echo=$ac_try;;
5154esac
5155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5156 (eval "$ac_compiler -V >&5") 2>&5
5157 ac_status=$?
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }
5160
5161{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5162echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5163if test "${ac_cv_c_compiler_gnu+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165else
5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172
5173int
5174main ()
5175{
5176#ifndef __GNUC__
5177 choke me
5178#endif
5179
5180 ;
5181 return 0;
5182}
5183_ACEOF
5184rm -f conftest.$ac_objext
5185if { (ac_try="$ac_compile"
5186case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189esac
5190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_compile") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } &&
5198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5199 { (case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202esac
5203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204 (eval "$ac_try") 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; } &&
5208 { ac_try='test -s conftest.$ac_objext'
5209 { (case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_try") 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_compiler_gnu=yes
5219else
5220 echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
5223 ac_compiler_gnu=no
5224fi
5225
5226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5227ac_cv_c_compiler_gnu=$ac_compiler_gnu
5228
5229fi
5230{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5231echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5232GCC=`test $ac_compiler_gnu = yes && echo yes`
5233ac_test_CFLAGS=${CFLAGS+set}
5234ac_save_CFLAGS=$CFLAGS
5235{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5236echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5237if test "${ac_cv_prog_cc_g+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5239else
5240 ac_save_c_werror_flag=$ac_c_werror_flag
5241 ac_c_werror_flag=yes
5242 ac_cv_prog_cc_g=no
5243 CFLAGS="-g"
5244 cat >conftest.$ac_ext <<_ACEOF
5245/* confdefs.h. */
5246_ACEOF
5247cat confdefs.h >>conftest.$ac_ext
5248cat >>conftest.$ac_ext <<_ACEOF
5249/* end confdefs.h. */
5250
5251int
5252main ()
5253{
5254
5255 ;
5256 return 0;
5257}
5258_ACEOF
5259rm -f conftest.$ac_objext
5260if { (ac_try="$ac_compile"
5261case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264esac
5265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5266 (eval "$ac_compile") 2>conftest.er1
5267 ac_status=$?
5268 grep -v '^ *+' conftest.er1 >conftest.err
5269 rm -f conftest.er1
5270 cat conftest.err >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); } &&
5273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5274 { (case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_try") 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; } &&
5283 { ac_try='test -s conftest.$ac_objext'
5284 { (case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287esac
5288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_try") 2>&5
5290 ac_status=$?
5291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292 (exit $ac_status); }; }; then
5293 ac_cv_prog_cc_g=yes
5294else
5295 echo "$as_me: failed program was:" >&5
5296sed 's/^/| /' conftest.$ac_ext >&5
5297
5298 CFLAGS=""
5299 cat >conftest.$ac_ext <<_ACEOF
5300/* confdefs.h. */
5301_ACEOF
5302cat confdefs.h >>conftest.$ac_ext
5303cat >>conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305
5306int
5307main ()
5308{
5309
5310 ;
5311 return 0;
5312}
5313_ACEOF
5314rm -f conftest.$ac_objext
5315if { (ac_try="$ac_compile"
5316case "(($ac_try" in
5317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318 *) ac_try_echo=$ac_try;;
5319esac
5320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5321 (eval "$ac_compile") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5329 { (case "(($ac_try" in
5330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5332esac
5333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5334 (eval "$ac_try") 2>&5
5335 ac_status=$?
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342esac
5343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_try") 2>&5
5345 ac_status=$?
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 :
5349else
5350 echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353 ac_c_werror_flag=$ac_save_c_werror_flag
5354 CFLAGS="-g"
5355 cat >conftest.$ac_ext <<_ACEOF
5356/* confdefs.h. */
5357_ACEOF
5358cat confdefs.h >>conftest.$ac_ext
5359cat >>conftest.$ac_ext <<_ACEOF
5360/* end confdefs.h. */
5361
5362int
5363main ()
5364{
5365
5366 ;
5367 return 0;
5368}
5369_ACEOF
5370rm -f conftest.$ac_objext
5371if { (ac_try="$ac_compile"
5372case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375esac
5376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5377 (eval "$ac_compile") 2>conftest.er1
5378 ac_status=$?
5379 grep -v '^ *+' conftest.er1 >conftest.err
5380 rm -f conftest.er1
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } &&
5384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5385 { (case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388esac
5389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5390 (eval "$ac_try") 2>&5
5391 ac_status=$?
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); }; } &&
5394 { ac_try='test -s conftest.$ac_objext'
5395 { (case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398esac
5399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_try") 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; }; then
5404 ac_cv_prog_cc_g=yes
5405else
5406 echo "$as_me: failed program was:" >&5
5407sed 's/^/| /' conftest.$ac_ext >&5
5408
5409
5410fi
5411
5412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413fi
5414
5415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416fi
5417
5418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 ac_c_werror_flag=$ac_save_c_werror_flag
5420fi
5421{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5422echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5423if test "$ac_test_CFLAGS" = set; then
5424 CFLAGS=$ac_save_CFLAGS
5425elif test $ac_cv_prog_cc_g = yes; then
5426 if test "$GCC" = yes; then
5427 CFLAGS="-g -O2"
5428 else
5429 CFLAGS="-g"
5430 fi
5431else
5432 if test "$GCC" = yes; then
5433 CFLAGS="-O2"
5434 else
5435 CFLAGS=
5436 fi
5437fi
5438{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5439echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5440if test "${ac_cv_prog_cc_c89+set}" = set; then
5441 echo $ECHO_N "(cached) $ECHO_C" >&6
5442else
5443 ac_cv_prog_cc_c89=no
5444ac_save_CC=$CC
5445cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h. */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h. */
5451#include <stdarg.h>
5452#include <stdio.h>
5453#include <sys/types.h>
5454#include <sys/stat.h>
5455/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5456struct buf { int x; };
5457FILE * (*rcsopen) (struct buf *, struct stat *, int);
5458static char *e (p, i)
5459 char **p;
5460 int i;
5461{
5462 return p[i];
5463}
5464static char *f (char * (*g) (char **, int), char **p, ...)
5465{
5466 char *s;
5467 va_list v;
5468 va_start (v,p);
5469 s = g (p, va_arg (v,int));
5470 va_end (v);
5471 return s;
5472}
5473
5474/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5475 function prototypes and stuff, but not '\xHH' hex character constants.
5476 These don't provoke an error unfortunately, instead are silently treated
5477 as 'x'. The following induces an error, until -std is added to get
5478 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5479 array size at least. It's necessary to write '\x00'==0 to get something
5480 that's true only with -std. */
5481int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5482
5483/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5484 inside strings and character constants. */
5485#define FOO(x) 'x'
5486int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5487
5488int test (int i, double x);
5489struct s1 {int (*f) (int a);};
5490struct s2 {int (*f) (double a);};
5491int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5492int argc;
5493char **argv;
5494int
5495main ()
5496{
5497return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5498 ;
5499 return 0;
5500}
5501_ACEOF
5502for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5503 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5504do
5505 CC="$ac_save_CC $ac_arg"
5506 rm -f conftest.$ac_objext
5507if { (ac_try="$ac_compile"
5508case "(($ac_try" in
5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5510 *) ac_try_echo=$ac_try;;
5511esac
5512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5514 ac_status=$?
5515 grep -v '^ *+' conftest.er1 >conftest.err
5516 rm -f conftest.er1
5517 cat conftest.err >&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } &&
5520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5521 { (case "(($ac_try" in
5522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5523 *) ac_try_echo=$ac_try;;
5524esac
5525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5526 (eval "$ac_try") 2>&5
5527 ac_status=$?
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); }; } &&
5530 { ac_try='test -s conftest.$ac_objext'
5531 { (case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534esac
5535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_try") 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; }; then
5540 ac_cv_prog_cc_c89=$ac_arg
5541else
5542 echo "$as_me: failed program was:" >&5
5543sed 's/^/| /' conftest.$ac_ext >&5
5544
5545
5546fi
5547
5548rm -f core conftest.err conftest.$ac_objext
5549 test "x$ac_cv_prog_cc_c89" != "xno" && break
5550done
5551rm -f conftest.$ac_ext
5552CC=$ac_save_CC
5553
5554fi
5555# AC_CACHE_VAL
5556case "x$ac_cv_prog_cc_c89" in
5557 x)
5558 { echo "$as_me:$LINENO: result: none needed" >&5
5559echo "${ECHO_T}none needed" >&6; } ;;
5560 xno)
5561 { echo "$as_me:$LINENO: result: unsupported" >&5
5562echo "${ECHO_T}unsupported" >&6; } ;;
5563 *)
5564 CC="$CC $ac_cv_prog_cc_c89"
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5566echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5567esac
5568
5569
5570ac_ext=c
5571ac_cpp='$CPP $CPPFLAGS'
5572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_c_compiler_gnu
5575
5576ac_ext=cpp
5577ac_cpp='$CXXCPP $CPPFLAGS'
5578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5581if test -z "$CXX"; then
5582 if test -n "$CCC"; then
5583 CXX=$CCC
5584 else
5585 if test -n "$ac_tool_prefix"; then
5586 for ac_prog in g++
5587 do
5588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5590{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5592if test "${ac_cv_prog_CXX+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 if test -n "$CXX"; then
5596 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5597else
5598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599for as_dir in $PATH
5600do
5601 IFS=$as_save_IFS
5602 test -z "$as_dir" && as_dir=.
5603 for ac_exec_ext in '' $ac_executable_extensions; do
5604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5605 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 break 2
5608 fi
5609done
5610done
5611IFS=$as_save_IFS
5612
5613fi
5614fi
5615CXX=$ac_cv_prog_CXX
5616if test -n "$CXX"; then
5617 { echo "$as_me:$LINENO: result: $CXX" >&5
5618echo "${ECHO_T}$CXX" >&6; }
5619else
5620 { echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6; }
5622fi
5623
5624
5625 test -n "$CXX" && break
5626 done
5627fi
5628if test -z "$CXX"; then
5629 ac_ct_CXX=$CXX
5630 for ac_prog in g++
5631do
5632 # Extract the first word of "$ac_prog", so it can be a program name with args.
5633set dummy $ac_prog; ac_word=$2
5634{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5636if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639 if test -n "$ac_ct_CXX"; then
5640 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_ac_ct_CXX="$ac_prog"
5650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5651 break 2
5652 fi
5653done
5654done
5655IFS=$as_save_IFS
5656
5657fi
5658fi
5659ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5660if test -n "$ac_ct_CXX"; then
5661 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5662echo "${ECHO_T}$ac_ct_CXX" >&6; }
5663else
5664 { echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6; }
5666fi
5667
5668
5669 test -n "$ac_ct_CXX" && break
5670done
5671
5672 if test "x$ac_ct_CXX" = x; then
5673 CXX="g++"
5674 else
5675 case $cross_compiling:$ac_tool_warned in
5676yes:)
5677{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5678whose name does not start with the host triplet. If you think this
5679configuration is useful to you, please write to autoconf@gnu.org." >&5
5680echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5681whose name does not start with the host triplet. If you think this
5682configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5683ac_tool_warned=yes ;;
5684esac
5685 CXX=$ac_ct_CXX
5686 fi
5687fi
5688
5689 fi
5690fi
5691# Provide some information about the compiler.
5692echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5693ac_compiler=`set X $ac_compile; echo $2`
5694{ (ac_try="$ac_compiler --version >&5"
5695case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698esac
5699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_compiler --version >&5") 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); }
5704{ (ac_try="$ac_compiler -v >&5"
5705case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708esac
5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_compiler -v >&5") 2>&5
5711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }
5714{ (ac_try="$ac_compiler -V >&5"
5715case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_compiler -V >&5") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }
5724
5725{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5726echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5727if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 cat >conftest.$ac_ext <<_ACEOF
5731/* confdefs.h. */
5732_ACEOF
5733cat confdefs.h >>conftest.$ac_ext
5734cat >>conftest.$ac_ext <<_ACEOF
5735/* end confdefs.h. */
5736
5737int
5738main ()
5739{
5740#ifndef __GNUC__
5741 choke me
5742#endif
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } &&
5762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5763 { (case "(($ac_try" in
5764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5765 *) ac_try_echo=$ac_try;;
5766esac
5767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5768 (eval "$ac_try") 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; } &&
5772 { ac_try='test -s conftest.$ac_objext'
5773 { (case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776esac
5777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_try") 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_compiler_gnu=yes
5783else
5784 echo "$as_me: failed program was:" >&5
5785sed 's/^/| /' conftest.$ac_ext >&5
5786
5787 ac_compiler_gnu=no
5788fi
5789
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5792
5793fi
5794{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5795echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5796GXX=`test $ac_compiler_gnu = yes && echo yes`
5797ac_test_CXXFLAGS=${CXXFLAGS+set}
5798ac_save_CXXFLAGS=$CXXFLAGS
5799{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5800echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5801if test "${ac_cv_prog_cxx_g+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5805 ac_cxx_werror_flag=yes
5806 ac_cv_prog_cxx_g=no
5807 CXXFLAGS="-g"
5808 cat >conftest.$ac_ext <<_ACEOF
5809/* confdefs.h. */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
5813/* end confdefs.h. */
5814
5815int
5816main ()
5817{
5818
5819 ;
5820 return 0;
5821}
5822_ACEOF
5823rm -f conftest.$ac_objext
5824if { (ac_try="$ac_compile"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5838 { (case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_try") 2>&5
5844 ac_status=$?
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; } &&
5847 { ac_try='test -s conftest.$ac_objext'
5848 { (case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851esac
5852eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_try") 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_prog_cxx_g=yes
5858else
5859 echo "$as_me: failed program was:" >&5
5860sed 's/^/| /' conftest.$ac_ext >&5
5861
5862 CXXFLAGS=""
5863 cat >conftest.$ac_ext <<_ACEOF
5864/* confdefs.h. */
5865_ACEOF
5866cat confdefs.h >>conftest.$ac_ext
5867cat >>conftest.$ac_ext <<_ACEOF
5868/* end confdefs.h. */
5869
5870int
5871main ()
5872{
5873
5874 ;
5875 return 0;
5876}
5877_ACEOF
5878rm -f conftest.$ac_objext
5879if { (ac_try="$ac_compile"
5880case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883esac
5884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5885 (eval "$ac_compile") 2>conftest.er1
5886 ac_status=$?
5887 grep -v '^ *+' conftest.er1 >conftest.err
5888 rm -f conftest.er1
5889 cat conftest.err >&5
5890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5891 (exit $ac_status); } &&
5892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5893 { (case "(($ac_try" in
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5896esac
5897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_try") 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; } &&
5902 { ac_try='test -s conftest.$ac_objext'
5903 { (case "(($ac_try" in
5904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5905 *) ac_try_echo=$ac_try;;
5906esac
5907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_try") 2>&5
5909 ac_status=$?
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 :
5913else
5914 echo "$as_me: failed program was:" >&5
5915sed 's/^/| /' conftest.$ac_ext >&5
5916
5917 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5918 CXXFLAGS="-g"
5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925
5926int
5927main ()
5928{
5929
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934rm -f conftest.$ac_objext
5935if { (ac_try="$ac_compile"
5936case "(($ac_try" in
5937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5938 *) ac_try_echo=$ac_try;;
5939esac
5940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952esac
5953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5955 ac_status=$?
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5962esac
5963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5965 ac_status=$?
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5968 ac_cv_prog_cxx_g=yes
5969else
5970 echo "$as_me: failed program was:" >&5
5971sed 's/^/| /' conftest.$ac_ext >&5
5972
5973
5974fi
5975
5976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977fi
5978
5979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980fi
5981
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5984fi
5985{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5986echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5987if test "$ac_test_CXXFLAGS" = set; then
5988 CXXFLAGS=$ac_save_CXXFLAGS
5989elif test $ac_cv_prog_cxx_g = yes; then
5990 if test "$GXX" = yes; then
5991 CXXFLAGS="-g -O2"
5992 else
5993 CXXFLAGS="-g"
5994 fi
5995else
5996 if test "$GXX" = yes; then
5997 CXXFLAGS="-O2"
5998 else
5999 CXXFLAGS=
6000 fi
6001fi
6002ac_ext=c
6003ac_cpp='$CPP $CPPFLAGS'
6004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008{ echo "$as_me:$LINENO: checking " >&5
6009echo $ECHO_N "checking ... $ECHO_C" >&6; }
6010if test "${ac_cv_has_flex+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012else
6013 for ac_prog in flex lex
6014do
6015 # Extract the first word of "$ac_prog", so it can be a program name with args.
6016set dummy $ac_prog; ac_word=$2
6017{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6019if test "${ac_cv_prog_LEX+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6021else
6022 if test -n "$LEX"; then
6023 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6024else
6025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026for as_dir in $PATH
6027do
6028 IFS=$as_save_IFS
6029 test -z "$as_dir" && as_dir=.
6030 for ac_exec_ext in '' $ac_executable_extensions; do
6031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6032 ac_cv_prog_LEX="$ac_prog"
6033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 break 2
6035 fi
6036done
6037done
6038IFS=$as_save_IFS
6039
6040fi
6041fi
6042LEX=$ac_cv_prog_LEX
6043if test -n "$LEX"; then
6044 { echo "$as_me:$LINENO: result: $LEX" >&5
6045echo "${ECHO_T}$LEX" >&6; }
6046else
6047 { echo "$as_me:$LINENO: result: no" >&5
6048echo "${ECHO_T}no" >&6; }
6049fi
6050
6051
6052 test -n "$LEX" && break
6053done
6054test -n "$LEX" || LEX=":"
6055
6056if test -z "$LEXLIB"
6057then
6058 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
6059echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
6060if test "${ac_cv_lib_fl_yywrap+set}" = set; then
6061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063 ac_check_lib_save_LIBS=$LIBS
6064LIBS="-lfl $LIBS"
6065cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
6070/* end confdefs.h. */
6071
6072/* Override any GCC internal prototype to avoid an error.
6073 Use char because int might match the return type of a GCC
6074 builtin and then its argument prototype would still apply. */
6075#ifdef __cplusplus
6076extern "C"
6077#endif
6078char yywrap ();
6079int
6080main ()
6081{
6082return yywrap ();
6083 ;
6084 return 0;
6085}
6086_ACEOF
6087rm -f conftest.$ac_objext conftest$ac_exeext
6088if { (ac_try="$ac_link"
6089case "(($ac_try" in
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6092esac
6093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_link") 2>conftest.er1
6095 ac_status=$?
6096 grep -v '^ *+' conftest.er1 >conftest.err
6097 rm -f conftest.er1
6098 cat conftest.err >&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); } &&
6101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6102 { (case "(($ac_try" in
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6105esac
6106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_try") 2>&5
6108 ac_status=$?
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; } &&
6111 { ac_try='test -s conftest$ac_exeext'
6112 { (case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_try") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; }; then
6121 ac_cv_lib_fl_yywrap=yes
6122else
6123 echo "$as_me: failed program was:" >&5
6124sed 's/^/| /' conftest.$ac_ext >&5
6125
6126 ac_cv_lib_fl_yywrap=no
6127fi
6128
6129rm -f core conftest.err conftest.$ac_objext \
6130 conftest$ac_exeext conftest.$ac_ext
6131LIBS=$ac_check_lib_save_LIBS
6132fi
6133{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
6134echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
6135if test $ac_cv_lib_fl_yywrap = yes; then
6136 LEXLIB="-lfl"
6137else
6138 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
6139echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
6140if test "${ac_cv_lib_l_yywrap+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6142else
6143 ac_check_lib_save_LIBS=$LIBS
6144LIBS="-ll $LIBS"
6145cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h. */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h. */
6151
6152/* Override any GCC internal prototype to avoid an error.
6153 Use char because int might match the return type of a GCC
6154 builtin and then its argument prototype would still apply. */
6155#ifdef __cplusplus
6156extern "C"
6157#endif
6158char yywrap ();
6159int
6160main ()
6161{
6162return yywrap ();
6163 ;
6164 return 0;
6165}
6166_ACEOF
6167rm -f conftest.$ac_objext conftest$ac_exeext
6168if { (ac_try="$ac_link"
6169case "(($ac_try" in
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6172esac
6173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_link") 2>conftest.er1
6175 ac_status=$?
6176 grep -v '^ *+' conftest.er1 >conftest.err
6177 rm -f conftest.er1
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } &&
6181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6182 { (case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185esac
6186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_try") 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; } &&
6191 { ac_try='test -s conftest$ac_exeext'
6192 { (case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195esac
6196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_try") 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; }; then
6201 ac_cv_lib_l_yywrap=yes
6202else
6203 echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_lib_l_yywrap=no
6207fi
6208
6209rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211LIBS=$ac_check_lib_save_LIBS
6212fi
6213{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
6214echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
6215if test $ac_cv_lib_l_yywrap = yes; then
6216 LEXLIB="-ll"
6217fi
6218
6219fi
6220
6221fi
6222
6223if test "x$LEX" != "x:"; then
6224 { echo "$as_me:$LINENO: checking lex output file root" >&5
6225echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
6226if test "${ac_cv_prog_lex_root+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6228else
6229 # The minimal lex program is just a single line: %%. But some broken lexes
6230# (Solaris, I think it was) want two %% lines, so accommodate them.
6231cat >conftest.l <<_ACEOF
6232%%
6233%%
6234_ACEOF
6235{ (ac_try="$LEX conftest.l"
6236case "(($ac_try" in
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6239esac
6240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$LEX conftest.l") 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }
6245if test -f lex.yy.c; then
6246 ac_cv_prog_lex_root=lex.yy
6247elif test -f lexyy.c; then
6248 ac_cv_prog_lex_root=lexyy
6249else
6250 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6251echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6252 { (exit 1); exit 1; }; }
6253fi
6254fi
6255{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6256echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
6257rm -f conftest.l
6258LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6259
6260{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6261echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
6262if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6264else
6265 # POSIX says lex can declare yytext either as a pointer or an array; the
6266# default is implementation-dependent. Figure out which it is, since
6267# not all implementations provide the %pointer and %array declarations.
6268ac_cv_prog_lex_yytext_pointer=no
6269echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
6270ac_save_LIBS=$LIBS
6271LIBS="$LIBS $LEXLIB"
6272cat >conftest.$ac_ext <<_ACEOF
6273`cat $LEX_OUTPUT_ROOT.c`
6274_ACEOF
6275rm -f conftest.$ac_objext conftest$ac_exeext
6276if { (ac_try="$ac_link"
6277case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280esac
6281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_link") 2>conftest.er1
6283 ac_status=$?
6284 grep -v '^ *+' conftest.er1 >conftest.err
6285 rm -f conftest.er1
6286 cat conftest.err >&5
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); } &&
6289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6290 { (case "(($ac_try" in
6291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292 *) ac_try_echo=$ac_try;;
6293esac
6294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295 (eval "$ac_try") 2>&5
6296 ac_status=$?
6297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); }; } &&
6299 { ac_try='test -s conftest$ac_exeext'
6300 { (case "(($ac_try" in
6301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6302 *) ac_try_echo=$ac_try;;
6303esac
6304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6305 (eval "$ac_try") 2>&5
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }; }; then
6309 ac_cv_prog_lex_yytext_pointer=yes
6310else
6311 echo "$as_me: failed program was:" >&5
6312sed 's/^/| /' conftest.$ac_ext >&5
6313
6314
6315fi
6316
6317rm -f core conftest.err conftest.$ac_objext \
6318 conftest$ac_exeext conftest.$ac_ext
6319LIBS=$ac_save_LIBS
6320rm -f "${LEX_OUTPUT_ROOT}.c"
6321
6322fi
6323{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6324echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
6325if test $ac_cv_prog_lex_yytext_pointer = yes; then
6326
6327cat >>confdefs.h <<\_ACEOF
6328#define YYTEXT_POINTER 1
6329_ACEOF
6330
6331fi
6332
6333fi
6334
6335fi
6336{ echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
6337echo "${ECHO_T}$ac_cv_has_flex" >&6; }
6338if test "$LEX" != "flex"; then
6339 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
6340echo "$as_me: error: flex not found but required" >&2;}
6341 { (exit 1); exit 1; }; }
6342else
6343 FLEX=flex
6344
6345fi
6346
6347{ echo "$as_me:$LINENO: checking " >&5
6348echo $ECHO_N "checking ... $ECHO_C" >&6; }
6349if test "${llvm_cv_has_bison+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352 for ac_prog in 'bison -y' byacc
6353do
6354 # Extract the first word of "$ac_prog", so it can be a program name with args.
6355set dummy $ac_prog; ac_word=$2
6356{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6358if test "${ac_cv_prog_YACC+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 if test -n "$YACC"; then
6362 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367 IFS=$as_save_IFS
6368 test -z "$as_dir" && as_dir=.
6369 for ac_exec_ext in '' $ac_executable_extensions; do
6370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6371 ac_cv_prog_YACC="$ac_prog"
6372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373 break 2
6374 fi
6375done
6376done
6377IFS=$as_save_IFS
6378
6379fi
6380fi
6381YACC=$ac_cv_prog_YACC
6382if test -n "$YACC"; then
6383 { echo "$as_me:$LINENO: result: $YACC" >&5
6384echo "${ECHO_T}$YACC" >&6; }
6385else
6386 { echo "$as_me:$LINENO: result: no" >&5
6387echo "${ECHO_T}no" >&6; }
6388fi
6389
6390
6391 test -n "$YACC" && break
6392done
6393test -n "$YACC" || YACC="yacc"
6394
6395fi
6396{ echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
6397echo "${ECHO_T}$llvm_cv_has_bison" >&6; }
6398if test "$YACC" != "bison -y"; then
Reid Spencer4869d7f2006-08-24 22:41:20 +00006399
6400 { echo "$as_me:$LINENO: WARNING: bison not found, can't rebuild grammars" >&5
6401echo "$as_me: WARNING: bison not found, can't rebuild grammars" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00006402else
6403 BISON=bison
6404
6405fi
6406
6407{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6408echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6409if test "${lt_cv_path_NM+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412 if test -n "$NM"; then
6413 # Let the user override the test.
6414 lt_cv_path_NM="$NM"
6415else
6416 lt_nm_to_check="${ac_tool_prefix}nm"
6417 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6418 lt_nm_to_check="$lt_nm_to_check nm"
6419 fi
6420 for lt_tmp_nm in $lt_nm_to_check; do
6421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6422 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6423 IFS="$lt_save_ifs"
6424 test -z "$ac_dir" && ac_dir=.
6425 tmp_nm="$ac_dir/$lt_tmp_nm"
6426 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6427 # Check to see if the nm accepts a BSD-compat flag.
6428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6429 # nm: unknown option "B" ignored
6430 # Tru64's nm complains that /dev/null is an invalid object file
6431 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6432 */dev/null* | *'Invalid file or object type'*)
6433 lt_cv_path_NM="$tmp_nm -B"
6434 break
6435 ;;
6436 *)
6437 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6438 */dev/null*)
6439 lt_cv_path_NM="$tmp_nm -p"
6440 break
6441 ;;
6442 *)
6443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6444 continue # so that we can try to find one that supports BSD flags
6445 ;;
6446 esac
6447 ;;
6448 esac
6449 fi
6450 done
6451 IFS="$lt_save_ifs"
6452 done
6453 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6454fi
6455fi
6456{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6457echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6458NM="$lt_cv_path_NM"
6459
6460
6461
6462{ echo "$as_me:$LINENO: checking for GNU make" >&5
6463echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6464if test "${llvm_cv_gnu_make_command+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466else
6467 llvm_cv_gnu_make_command=''
6468 for a in "$MAKE" make gmake gnumake ; do
6469 if test -z "$a" ; then continue ; fi ;
6470 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6471 then
6472 llvm_cv_gnu_make_command=$a ;
6473 break;
6474 fi
6475 done
6476fi
6477{ echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6478echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6479 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6480 ifGNUmake='' ;
6481 else
6482 ifGNUmake='#' ;
6483 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6484echo "${ECHO_T}\"Not found\"" >&6; };
6485 fi
6486
6487
6488{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6489echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6490LN_S=$as_ln_s
6491if test "$LN_S" = "ln -s"; then
6492 { echo "$as_me:$LINENO: result: yes" >&5
6493echo "${ECHO_T}yes" >&6; }
6494else
6495 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6496echo "${ECHO_T}no, using $LN_S" >&6; }
6497fi
6498
6499# Extract the first word of "cmp", so it can be a program name with args.
6500set dummy cmp; ac_word=$2
6501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6503if test "${ac_cv_path_CMP+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505else
6506 case $CMP in
6507 [\\/]* | ?:[\\/]*)
6508 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6509 ;;
6510 *)
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6518 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523done
6524IFS=$as_save_IFS
6525
6526 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6527 ;;
6528esac
6529fi
6530CMP=$ac_cv_path_CMP
6531if test -n "$CMP"; then
6532 { echo "$as_me:$LINENO: result: $CMP" >&5
6533echo "${ECHO_T}$CMP" >&6; }
6534else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536echo "${ECHO_T}no" >&6; }
6537fi
6538
6539
6540# Extract the first word of "cp", so it can be a program name with args.
6541set dummy cp; ac_word=$2
6542{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544if test "${ac_cv_path_CP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 case $CP in
6548 [\\/]* | ?:[\\/]*)
6549 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6550 ;;
6551 *)
6552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553for as_dir in $PATH
6554do
6555 IFS=$as_save_IFS
6556 test -z "$as_dir" && as_dir=.
6557 for ac_exec_ext in '' $ac_executable_extensions; do
6558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6559 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6561 break 2
6562 fi
6563done
6564done
6565IFS=$as_save_IFS
6566
6567 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6568 ;;
6569esac
6570fi
6571CP=$ac_cv_path_CP
6572if test -n "$CP"; then
6573 { echo "$as_me:$LINENO: result: $CP" >&5
6574echo "${ECHO_T}$CP" >&6; }
6575else
6576 { echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6; }
6578fi
6579
6580
6581# Extract the first word of "date", so it can be a program name with args.
6582set dummy date; ac_word=$2
6583{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6585if test "${ac_cv_path_DATE+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
6588 case $DATE in
6589 [\\/]* | ?:[\\/]*)
6590 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6591 ;;
6592 *)
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594for as_dir in $PATH
6595do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604done
6605done
6606IFS=$as_save_IFS
6607
6608 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6609 ;;
6610esac
6611fi
6612DATE=$ac_cv_path_DATE
6613if test -n "$DATE"; then
6614 { echo "$as_me:$LINENO: result: $DATE" >&5
6615echo "${ECHO_T}$DATE" >&6; }
6616else
6617 { echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6; }
6619fi
6620
6621
6622# Extract the first word of "find", so it can be a program name with args.
6623set dummy find; ac_word=$2
6624{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626if test "${ac_cv_path_FIND+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629 case $FIND in
6630 [\\/]* | ?:[\\/]*)
6631 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6632 ;;
6633 *)
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637 IFS=$as_save_IFS
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643 break 2
6644 fi
6645done
6646done
6647IFS=$as_save_IFS
6648
6649 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6650 ;;
6651esac
6652fi
6653FIND=$ac_cv_path_FIND
6654if test -n "$FIND"; then
6655 { echo "$as_me:$LINENO: result: $FIND" >&5
6656echo "${ECHO_T}$FIND" >&6; }
6657else
6658 { echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6; }
6660fi
6661
6662
6663# Extract the first word of "grep", so it can be a program name with args.
6664set dummy grep; ac_word=$2
6665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6667if test "${ac_cv_path_GREP+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6669else
6670 case $GREP in
6671 [\\/]* | ?:[\\/]*)
6672 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6673 ;;
6674 *)
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676for as_dir in $PATH
6677do
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6685 fi
6686done
6687done
6688IFS=$as_save_IFS
6689
6690 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6691 ;;
6692esac
6693fi
6694GREP=$ac_cv_path_GREP
6695if test -n "$GREP"; then
6696 { echo "$as_me:$LINENO: result: $GREP" >&5
6697echo "${ECHO_T}$GREP" >&6; }
6698else
6699 { echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6; }
6701fi
6702
6703
6704# Extract the first word of "mkdir", so it can be a program name with args.
6705set dummy mkdir; ac_word=$2
6706{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708if test "${ac_cv_path_MKDIR+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710else
6711 case $MKDIR in
6712 [\\/]* | ?:[\\/]*)
6713 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6714 ;;
6715 *)
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717for as_dir in $PATH
6718do
6719 IFS=$as_save_IFS
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6723 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 break 2
6726 fi
6727done
6728done
6729IFS=$as_save_IFS
6730
6731 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6732 ;;
6733esac
6734fi
6735MKDIR=$ac_cv_path_MKDIR
6736if test -n "$MKDIR"; then
6737 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6738echo "${ECHO_T}$MKDIR" >&6; }
6739else
6740 { echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6; }
6742fi
6743
6744
6745# Extract the first word of "mv", so it can be a program name with args.
6746set dummy mv; ac_word=$2
6747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6749if test "${ac_cv_path_MV+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6751else
6752 case $MV in
6753 [\\/]* | ?:[\\/]*)
6754 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6755 ;;
6756 *)
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760 IFS=$as_save_IFS
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6766 break 2
6767 fi
6768done
6769done
6770IFS=$as_save_IFS
6771
6772 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6773 ;;
6774esac
6775fi
6776MV=$ac_cv_path_MV
6777if test -n "$MV"; then
6778 { echo "$as_me:$LINENO: result: $MV" >&5
6779echo "${ECHO_T}$MV" >&6; }
6780else
6781 { echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6; }
6783fi
6784
6785
6786if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6788set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791if test "${ac_cv_prog_RANLIB+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6793else
6794 if test -n "$RANLIB"; then
6795 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6796else
6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800 IFS=$as_save_IFS
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808done
6809done
6810IFS=$as_save_IFS
6811
6812fi
6813fi
6814RANLIB=$ac_cv_prog_RANLIB
6815if test -n "$RANLIB"; then
6816 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6817echo "${ECHO_T}$RANLIB" >&6; }
6818else
6819 { echo "$as_me:$LINENO: result: no" >&5
6820echo "${ECHO_T}no" >&6; }
6821fi
6822
6823
6824fi
6825if test -z "$ac_cv_prog_RANLIB"; then
6826 ac_ct_RANLIB=$RANLIB
6827 # Extract the first word of "ranlib", so it can be a program name with args.
6828set dummy ranlib; ac_word=$2
6829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834 if test -n "$ac_ct_RANLIB"; then
6835 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6836else
6837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6838for as_dir in $PATH
6839do
6840 IFS=$as_save_IFS
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_RANLIB="ranlib"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 break 2
6847 fi
6848done
6849done
6850IFS=$as_save_IFS
6851
6852fi
6853fi
6854ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6855if test -n "$ac_ct_RANLIB"; then
6856 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6857echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6858else
6859 { echo "$as_me:$LINENO: result: no" >&5
6860echo "${ECHO_T}no" >&6; }
6861fi
6862
6863 if test "x$ac_ct_RANLIB" = x; then
6864 RANLIB=":"
6865 else
6866 case $cross_compiling:$ac_tool_warned in
6867yes:)
6868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869whose name does not start with the host triplet. If you think this
6870configuration is useful to you, please write to autoconf@gnu.org." >&5
6871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872whose name does not start with the host triplet. If you think this
6873configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
6878else
6879 RANLIB="$ac_cv_prog_RANLIB"
6880fi
6881
6882# Extract the first word of "rm", so it can be a program name with args.
6883set dummy rm; ac_word=$2
6884{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886if test "${ac_cv_path_RM+set}" = set; then
6887 echo $ECHO_N "(cached) $ECHO_C" >&6
6888else
6889 case $RM in
6890 [\\/]* | ?:[\\/]*)
6891 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6892 ;;
6893 *)
6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6895for as_dir in $PATH
6896do
6897 IFS=$as_save_IFS
6898 test -z "$as_dir" && as_dir=.
6899 for ac_exec_ext in '' $ac_executable_extensions; do
6900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6901 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6903 break 2
6904 fi
6905done
6906done
6907IFS=$as_save_IFS
6908
6909 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6910 ;;
6911esac
6912fi
6913RM=$ac_cv_path_RM
6914if test -n "$RM"; then
6915 { echo "$as_me:$LINENO: result: $RM" >&5
6916echo "${ECHO_T}$RM" >&6; }
6917else
6918 { echo "$as_me:$LINENO: result: no" >&5
6919echo "${ECHO_T}no" >&6; }
6920fi
6921
6922
6923# Extract the first word of "sed", so it can be a program name with args.
6924set dummy sed; ac_word=$2
6925{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6927if test "${ac_cv_path_SED+set}" = set; then
6928 echo $ECHO_N "(cached) $ECHO_C" >&6
6929else
6930 case $SED in
6931 [\\/]* | ?:[\\/]*)
6932 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6933 ;;
6934 *)
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936for as_dir in $PATH
6937do
6938 IFS=$as_save_IFS
6939 test -z "$as_dir" && as_dir=.
6940 for ac_exec_ext in '' $ac_executable_extensions; do
6941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6942 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6944 break 2
6945 fi
6946done
6947done
6948IFS=$as_save_IFS
6949
6950 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6951 ;;
6952esac
6953fi
6954SED=$ac_cv_path_SED
6955if test -n "$SED"; then
6956 { echo "$as_me:$LINENO: result: $SED" >&5
6957echo "${ECHO_T}$SED" >&6; }
6958else
6959 { echo "$as_me:$LINENO: result: no" >&5
6960echo "${ECHO_T}no" >&6; }
6961fi
6962
6963
6964# Extract the first word of "tar", so it can be a program name with args.
6965set dummy tar; ac_word=$2
6966{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6968if test "${ac_cv_path_TAR+set}" = set; then
6969 echo $ECHO_N "(cached) $ECHO_C" >&6
6970else
6971 case $TAR in
6972 [\\/]* | ?:[\\/]*)
6973 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6974 ;;
6975 *)
6976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979 IFS=$as_save_IFS
6980 test -z "$as_dir" && as_dir=.
6981 for ac_exec_ext in '' $ac_executable_extensions; do
6982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6983 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 break 2
6986 fi
6987done
6988done
6989IFS=$as_save_IFS
6990
6991 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6992 ;;
6993esac
6994fi
6995TAR=$ac_cv_path_TAR
6996if test -n "$TAR"; then
6997 { echo "$as_me:$LINENO: result: $TAR" >&5
6998echo "${ECHO_T}$TAR" >&6; }
6999else
7000 { echo "$as_me:$LINENO: result: no" >&5
7001echo "${ECHO_T}no" >&6; }
7002fi
7003
7004
7005# Extract the first word of "pwd", so it can be a program name with args.
7006set dummy pwd; ac_word=$2
7007{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7009if test "${ac_cv_path_BINPWD+set}" = set; then
7010 echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012 case $BINPWD in
7013 [\\/]* | ?:[\\/]*)
7014 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7015 ;;
7016 *)
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018for as_dir in $PATH
7019do
7020 IFS=$as_save_IFS
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026 break 2
7027 fi
7028done
7029done
7030IFS=$as_save_IFS
7031
7032 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7033 ;;
7034esac
7035fi
7036BINPWD=$ac_cv_path_BINPWD
7037if test -n "$BINPWD"; then
7038 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7039echo "${ECHO_T}$BINPWD" >&6; }
7040else
7041 { echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6; }
7043fi
7044
7045
7046
7047# Extract the first word of "Graphviz", so it can be a program name with args.
7048set dummy Graphviz; ac_word=$2
7049{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053else
7054 case $GRAPHVIZ in
7055 [\\/]* | ?:[\\/]*)
7056 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7057 ;;
7058 *)
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060for as_dir in $PATH
7061do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7066 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070done
7071done
7072IFS=$as_save_IFS
7073
7074 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7075 ;;
7076esac
7077fi
7078GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7079if test -n "$GRAPHVIZ"; then
7080 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7081echo "${ECHO_T}$GRAPHVIZ" >&6; }
7082else
7083 { echo "$as_me:$LINENO: result: no" >&5
7084echo "${ECHO_T}no" >&6; }
7085fi
7086
7087
7088if test "$GRAPHVIZ" != "echo Graphviz" ; then
7089
7090cat >>confdefs.h <<\_ACEOF
7091#define HAVE_GRAPHVIZ 1
7092_ACEOF
7093
7094 if test "$llvm_cv_os_type" == "MingW" ; then
7095 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7096 fi
7097
7098cat >>confdefs.h <<_ACEOF
7099#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7100_ACEOF
7101
7102fi
7103# Extract the first word of "dot", so it can be a program name with args.
7104set dummy dot; ac_word=$2
7105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107if test "${ac_cv_path_DOT+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109else
7110 case $DOT in
7111 [\\/]* | ?:[\\/]*)
7112 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7113 ;;
7114 *)
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116for as_dir in $PATH
7117do
7118 IFS=$as_save_IFS
7119 test -z "$as_dir" && as_dir=.
7120 for ac_exec_ext in '' $ac_executable_extensions; do
7121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7122 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 break 2
7125 fi
7126done
7127done
7128IFS=$as_save_IFS
7129
7130 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7131 ;;
7132esac
7133fi
7134DOT=$ac_cv_path_DOT
7135if test -n "$DOT"; then
7136 { echo "$as_me:$LINENO: result: $DOT" >&5
7137echo "${ECHO_T}$DOT" >&6; }
7138else
7139 { echo "$as_me:$LINENO: result: no" >&5
7140echo "${ECHO_T}no" >&6; }
7141fi
7142
7143
7144if test "$DOT" != "echo dot" ; then
7145
7146cat >>confdefs.h <<\_ACEOF
7147#define HAVE_DOT 1
7148_ACEOF
7149
7150 if test "$llvm_cv_os_type" == "MingW" ; then
7151 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7152 fi
7153
7154cat >>confdefs.h <<_ACEOF
7155#define LLVM_PATH_DOT "$DOT${EXEEXT}"
7156_ACEOF
7157
7158fi
7159for ac_prog in gv gsview32
7160do
7161 # Extract the first word of "$ac_prog", so it can be a program name with args.
7162set dummy $ac_prog; ac_word=$2
7163{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7165if test "${ac_cv_path_GV+set}" = set; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168 case $GV in
7169 [\\/]* | ?:[\\/]*)
7170 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7171 ;;
7172 *)
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174for as_dir in $PATH
7175do
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7183 fi
7184done
7185done
7186IFS=$as_save_IFS
7187
7188 ;;
7189esac
7190fi
7191GV=$ac_cv_path_GV
7192if test -n "$GV"; then
7193 { echo "$as_me:$LINENO: result: $GV" >&5
7194echo "${ECHO_T}$GV" >&6; }
7195else
7196 { echo "$as_me:$LINENO: result: no" >&5
7197echo "${ECHO_T}no" >&6; }
7198fi
7199
7200
7201 test -n "$GV" && break
7202done
7203test -n "$GV" || GV="echo gv"
7204
7205if test "$GV" != "echo gv" ; then
7206
7207cat >>confdefs.h <<\_ACEOF
7208#define HAVE_GV 1
7209_ACEOF
7210
7211 if test "$llvm_cv_os_type" == "MingW" ; then
7212 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7213 fi
7214
7215cat >>confdefs.h <<_ACEOF
7216#define LLVM_PATH_GV "$GV${EXEEXT}"
7217_ACEOF
7218
7219fi
7220# Extract the first word of "dotty", so it can be a program name with args.
7221set dummy dotty; ac_word=$2
7222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7224if test "${ac_cv_path_DOTTY+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227 case $DOTTY in
7228 [\\/]* | ?:[\\/]*)
7229 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7230 ;;
7231 *)
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233for as_dir in $PATH
7234do
7235 IFS=$as_save_IFS
7236 test -z "$as_dir" && as_dir=.
7237 for ac_exec_ext in '' $ac_executable_extensions; do
7238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7239 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 break 2
7242 fi
7243done
7244done
7245IFS=$as_save_IFS
7246
7247 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7248 ;;
7249esac
7250fi
7251DOTTY=$ac_cv_path_DOTTY
7252if test -n "$DOTTY"; then
7253 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7254echo "${ECHO_T}$DOTTY" >&6; }
7255else
7256 { echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6; }
7258fi
7259
7260
7261if test "$DOTTY" != "echo dotty" ; then
7262
7263cat >>confdefs.h <<\_ACEOF
7264#define HAVE_DOTTY 1
7265_ACEOF
7266
7267 if test "$llvm_cv_os_type" == "MingW" ; then
7268 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7269 fi
7270
7271cat >>confdefs.h <<_ACEOF
7272#define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7273_ACEOF
7274
7275fi
7276
7277
7278# Extract the first word of "perl", so it can be a program name with args.
7279set dummy perl; ac_word=$2
7280{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282if test "${ac_cv_path_PERL+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7284else
7285 case $PERL in
7286 [\\/]* | ?:[\\/]*)
7287 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7288 ;;
7289 *)
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291for as_dir in $PATH
7292do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301done
7302done
7303IFS=$as_save_IFS
7304
7305 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7306 ;;
7307esac
7308fi
7309PERL=$ac_cv_path_PERL
7310if test -n "$PERL"; then
7311 { echo "$as_me:$LINENO: result: $PERL" >&5
7312echo "${ECHO_T}$PERL" >&6; }
7313else
7314 { echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6; }
7316fi
7317
7318
7319if test "$PERL" != "none"; then
7320 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7321echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7322 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7323 { echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6; }
7325 else
7326 PERL=none
7327 { echo "$as_me:$LINENO: result: not found" >&5
7328echo "${ECHO_T}not found" >&6; }
7329 fi
7330fi
7331
7332
7333if test x"$PERL" = xnone; then
7334 HAVE_PERL=0
7335
7336else
7337 HAVE_PERL=1
7338
7339fi
7340
7341# Find a good install program. We prefer a C program (faster),
7342# so one script is as good as another. But avoid the broken or
7343# incompatible versions:
7344# SysV /etc/install, /usr/sbin/install
7345# SunOS /usr/etc/install
7346# IRIX /sbin/install
7347# AIX /bin/install
7348# AmigaOS /C/install, which installs bootblocks on floppy discs
7349# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7350# AFS /usr/afsws/bin/install, which mishandles nonexistent args
7351# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7352# OS/2's system install, which has a completely different semantic
7353# ./install, which can be erroneously created by make from ./install.sh.
7354{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7355echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7356if test -z "$INSTALL"; then
7357if test "${ac_cv_path_install+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363 IFS=$as_save_IFS
7364 test -z "$as_dir" && as_dir=.
7365 # Account for people who put trailing slashes in PATH elements.
7366case $as_dir/ in
7367 ./ | .// | /cC/* | \
7368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7370 /usr/ucb/* ) ;;
7371 *)
7372 # OSF1 and SCO ODT 3.0 have their own names for install.
7373 # Don't use installbsd from OSF since it installs stuff as root
7374 # by default.
7375 for ac_prog in ginstall scoinst install; do
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7378 if test $ac_prog = install &&
7379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7380 # AIX install. It has an incompatible calling convention.
7381 :
7382 elif test $ac_prog = install &&
7383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7384 # program-specific install script used by HP pwplus--don't use.
7385 :
7386 else
7387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7388 break 3
7389 fi
7390 fi
7391 done
7392 done
7393 ;;
7394esac
7395done
7396IFS=$as_save_IFS
7397
7398
7399fi
7400 if test "${ac_cv_path_install+set}" = set; then
7401 INSTALL=$ac_cv_path_install
7402 else
7403 # As a last resort, use the slow shell script. Don't cache a
7404 # value for INSTALL within a source directory, because that will
7405 # break other packages using the cache if that directory is
7406 # removed, or if the value is a relative name.
7407 INSTALL=$ac_install_sh
7408 fi
7409fi
7410{ echo "$as_me:$LINENO: result: $INSTALL" >&5
7411echo "${ECHO_T}$INSTALL" >&6; }
7412
7413# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7414# It thinks the first close brace ends the variable substitution.
7415test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7416
7417test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7418
7419test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7420
7421
7422# Extract the first word of "bzip2", so it can be a program name with args.
7423set dummy bzip2; ac_word=$2
7424{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426if test "${ac_cv_path_BZIP2+set}" = set; then
7427 echo $ECHO_N "(cached) $ECHO_C" >&6
7428else
7429 case $BZIP2 in
7430 [\\/]* | ?:[\\/]*)
7431 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7432 ;;
7433 *)
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435for as_dir in $PATH
7436do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445done
7446done
7447IFS=$as_save_IFS
7448
7449 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="echo "Skipped: bzip2 not found""
7450 ;;
7451esac
7452fi
7453BZIP2=$ac_cv_path_BZIP2
7454if test -n "$BZIP2"; then
7455 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7456echo "${ECHO_T}$BZIP2" >&6; }
7457else
7458 { echo "$as_me:$LINENO: result: no" >&5
7459echo "${ECHO_T}no" >&6; }
7460fi
7461
7462
7463# Extract the first word of "doxygen", so it can be a program name with args.
7464set dummy doxygen; ac_word=$2
7465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7467if test "${ac_cv_path_DOXYGEN+set}" = set; then
7468 echo $ECHO_N "(cached) $ECHO_C" >&6
7469else
7470 case $DOXYGEN in
7471 [\\/]* | ?:[\\/]*)
7472 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7473 ;;
7474 *)
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476for as_dir in $PATH
7477do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7482 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486done
7487done
7488IFS=$as_save_IFS
7489
7490 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="echo "Skipped: doxygen not found""
7491 ;;
7492esac
7493fi
7494DOXYGEN=$ac_cv_path_DOXYGEN
7495if test -n "$DOXYGEN"; then
7496 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7497echo "${ECHO_T}$DOXYGEN" >&6; }
7498else
7499 { echo "$as_me:$LINENO: result: no" >&5
7500echo "${ECHO_T}no" >&6; }
7501fi
7502
7503
Reid Spencera773bd52006-08-04 18:18:08 +00007504# Extract the first word of "groff", so it can be a program name with args.
7505set dummy groff; ac_word=$2
7506{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7508if test "${ac_cv_path_GROFF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511 case $GROFF in
7512 [\\/]* | ?:[\\/]*)
7513 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7514 ;;
7515 *)
7516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517for as_dir in $PATH
7518do
7519 IFS=$as_save_IFS
7520 test -z "$as_dir" && as_dir=.
7521 for ac_exec_ext in '' $ac_executable_extensions; do
7522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7523 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 break 2
7526 fi
7527done
7528done
7529IFS=$as_save_IFS
7530
7531 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="echo "Skipped: groff not found""
7532 ;;
7533esac
7534fi
7535GROFF=$ac_cv_path_GROFF
7536if test -n "$GROFF"; then
7537 { echo "$as_me:$LINENO: result: $GROFF" >&5
7538echo "${ECHO_T}$GROFF" >&6; }
7539else
7540 { echo "$as_me:$LINENO: result: no" >&5
7541echo "${ECHO_T}no" >&6; }
7542fi
7543
7544
7545# Extract the first word of "gzip", so it can be a program name with args.
7546set dummy gzip; ac_word=$2
7547{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7549if test "${ac_cv_path_GZIP+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7551else
7552 case $GZIP in
7553 [\\/]* | ?:[\\/]*)
7554 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
7555 ;;
7556 *)
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558for as_dir in $PATH
7559do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
7565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568done
7569done
7570IFS=$as_save_IFS
7571
7572 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="echo "Skipped: gzip not found""
7573 ;;
7574esac
7575fi
7576GZIP=$ac_cv_path_GZIP
7577if test -n "$GZIP"; then
7578 { echo "$as_me:$LINENO: result: $GZIP" >&5
7579echo "${ECHO_T}$GZIP" >&6; }
7580else
7581 { echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6; }
7583fi
7584
7585
7586# Extract the first word of "pod2html", so it can be a program name with args.
7587set dummy pod2html; ac_word=$2
7588{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7590if test "${ac_cv_path_POD2HTML+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 case $POD2HTML in
7594 [\\/]* | ?:[\\/]*)
7595 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7596 ;;
7597 *)
7598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599for as_dir in $PATH
7600do
7601 IFS=$as_save_IFS
7602 test -z "$as_dir" && as_dir=.
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7605 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609done
7610done
7611IFS=$as_save_IFS
7612
7613 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="echo "Skipped: pod2html not found""
7614 ;;
7615esac
7616fi
7617POD2HTML=$ac_cv_path_POD2HTML
7618if test -n "$POD2HTML"; then
7619 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7620echo "${ECHO_T}$POD2HTML" >&6; }
7621else
7622 { echo "$as_me:$LINENO: result: no" >&5
7623echo "${ECHO_T}no" >&6; }
7624fi
7625
7626
7627# Extract the first word of "pod2man", so it can be a program name with args.
7628set dummy pod2man; ac_word=$2
7629{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7631if test "${ac_cv_path_POD2MAN+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7633else
7634 case $POD2MAN in
7635 [\\/]* | ?:[\\/]*)
7636 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7637 ;;
7638 *)
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642 IFS=$as_save_IFS
7643 test -z "$as_dir" && as_dir=.
7644 for ac_exec_ext in '' $ac_executable_extensions; do
7645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7646 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7648 break 2
7649 fi
7650done
7651done
7652IFS=$as_save_IFS
7653
7654 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="echo "Skipped: pod2man not found""
7655 ;;
7656esac
7657fi
7658POD2MAN=$ac_cv_path_POD2MAN
7659if test -n "$POD2MAN"; then
7660 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7661echo "${ECHO_T}$POD2MAN" >&6; }
7662else
7663 { echo "$as_me:$LINENO: result: no" >&5
7664echo "${ECHO_T}no" >&6; }
7665fi
7666
7667
7668# Extract the first word of "runtest", so it can be a program name with args.
7669set dummy runtest; ac_word=$2
7670{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7672if test "${ac_cv_path_RUNTEST+set}" = set; then
7673 echo $ECHO_N "(cached) $ECHO_C" >&6
7674else
7675 case $RUNTEST in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7678 ;;
7679 *)
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7687 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7690 fi
7691done
7692done
7693IFS=$as_save_IFS
7694
7695 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="echo "Skipped: runtest not found""
7696 ;;
7697esac
7698fi
7699RUNTEST=$ac_cv_path_RUNTEST
7700if test -n "$RUNTEST"; then
7701 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7702echo "${ECHO_T}$RUNTEST" >&6; }
7703else
7704 { echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6; }
7706fi
7707
7708
7709
7710no_itcl=true
7711{ echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7712echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7713
7714# Check whether --with-tclinclude was given.
7715if test "${with_tclinclude+set}" = set; then
7716 withval=$with_tclinclude; with_tclinclude=${withval}
7717else
7718 with_tclinclude=''
7719fi
7720
7721if test "${ac_cv_path_tclsh+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724
7725if test x"${with_tclinclude}" != x ; then
7726 if test -f ${with_tclinclude}/tclsh ; then
7727 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7728 elif test -f ${with_tclinclude}/src/tclsh ; then
7729 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7730 else
7731 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7732echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7733 { (exit 1); exit 1; }; }
7734 fi
7735fi
7736
7737if test x"${ac_cv_path_tclsh}" = x ; then
7738 { echo "$as_me:$LINENO: result: none" >&5
7739echo "${ECHO_T}none" >&6; }
7740 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
7741do
7742 # Extract the first word of "$ac_prog", so it can be a program name with args.
7743set dummy $ac_prog; ac_word=$2
7744{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7746if test "${ac_cv_path_TCLSH+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749 case $TCLSH in
7750 [\\/]* | ?:[\\/]*)
7751 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7752 ;;
7753 *)
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755for as_dir in $PATH
7756do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765done
7766done
7767IFS=$as_save_IFS
7768
7769 ;;
7770esac
7771fi
7772TCLSH=$ac_cv_path_TCLSH
7773if test -n "$TCLSH"; then
7774 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7775echo "${ECHO_T}$TCLSH" >&6; }
7776else
7777 { echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6; }
7779fi
7780
7781
7782 test -n "$TCLSH" && break
7783done
7784
7785 if test x"${TCLSH}" = x ; then
7786 ac_cv_path_tclsh='';
7787 else
7788 ac_cv_path_tclsh="${TCLSH}";
7789 fi
7790else
7791 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7792echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7793 TCLSH="${ac_cv_path_tclsh}"
7794
7795fi
7796
7797fi
7798
7799# Extract the first word of "zip", so it can be a program name with args.
7800set dummy zip; ac_word=$2
7801{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7803if test "${ac_cv_path_ZIP+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806 case $ZIP in
7807 [\\/]* | ?:[\\/]*)
7808 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7809 ;;
7810 *)
7811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814 IFS=$as_save_IFS
7815 test -z "$as_dir" && as_dir=.
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7818 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822done
7823done
7824IFS=$as_save_IFS
7825
7826 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="echo "Skipped: zip not found""
7827 ;;
7828esac
7829fi
7830ZIP=$ac_cv_path_ZIP
7831if test -n "$ZIP"; then
7832 { echo "$as_me:$LINENO: result: $ZIP" >&5
7833echo "${ECHO_T}$ZIP" >&6; }
7834else
7835 { echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6; }
7837fi
7838
7839
7840
7841{ echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7842echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7843if test "${llvm_cv_link_use_r+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846 ac_ext=c
7847ac_cpp='$CPP $CPPFLAGS'
7848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7850ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851
7852 oldcflags="$CFLAGS"
7853 CFLAGS="$CFLAGS -Wl,-R."
7854 cat >conftest.$ac_ext <<_ACEOF
7855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
7860
7861int
7862main ()
7863{
7864int main() { return 0; }
7865 ;
7866 return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext conftest$ac_exeext
7870if { (ac_try="$ac_link"
7871case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_link") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887esac
7888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; } &&
7893 { ac_try='test -s conftest$ac_exeext'
7894 { (case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897esac
7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_try") 2>&5
7900 ac_status=$?
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7903 llvm_cv_link_use_r=yes
7904else
7905 echo "$as_me: failed program was:" >&5
7906sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 llvm_cv_link_use_r=no
7909fi
7910
7911rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
7913 CFLAGS="$oldcflags"
7914 ac_ext=c
7915ac_cpp='$CPP $CPPFLAGS'
7916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919
7920
7921fi
7922{ echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7923echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7924if test "$llvm_cv_link_use_r" = yes ; then
7925
7926cat >>confdefs.h <<\_ACEOF
7927#define HAVE_LINK_R 1
7928_ACEOF
7929
7930 fi
7931
7932
7933
7934
7935{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7936echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7937if test "${ac_cv_c_const+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7939else
7940 cat >conftest.$ac_ext <<_ACEOF
7941/* confdefs.h. */
7942_ACEOF
7943cat confdefs.h >>conftest.$ac_ext
7944cat >>conftest.$ac_ext <<_ACEOF
7945/* end confdefs.h. */
7946
7947int
7948main ()
7949{
7950/* FIXME: Include the comments suggested by Paul. */
7951#ifndef __cplusplus
7952 /* Ultrix mips cc rejects this. */
7953 typedef int charset[2];
7954 const charset x;
7955 /* SunOS 4.1.1 cc rejects this. */
7956 char const *const *ccp;
7957 char **p;
7958 /* NEC SVR4.0.2 mips cc rejects this. */
7959 struct point {int x, y;};
7960 static struct point const zero = {0,0};
7961 /* AIX XL C 1.02.0.0 rejects this.
7962 It does not let you subtract one const X* pointer from another in
7963 an arm of an if-expression whose if-part is not a constant
7964 expression */
7965 const char *g = "string";
7966 ccp = &g + (g ? g-g : 0);
7967 /* HPUX 7.0 cc rejects these. */
7968 ++ccp;
7969 p = (char**) ccp;
7970 ccp = (char const *const *) p;
7971 { /* SCO 3.2v4 cc rejects this. */
7972 char *t;
7973 char const *s = 0 ? (char *) 0 : (char const *) 0;
7974
7975 *t++ = 0;
7976 if (s) return 0;
7977 }
7978 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7979 int x[] = {25, 17};
7980 const int *foo = &x[0];
7981 ++foo;
7982 }
7983 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7984 typedef const int *iptr;
7985 iptr p = 0;
7986 ++p;
7987 }
7988 { /* AIX XL C 1.02.0.0 rejects this saying
7989 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7990 struct s { int j; const int *ap[3]; };
7991 struct s *b; b->j = 5;
7992 }
7993 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7994 const int foo = 10;
7995 if (!foo) return 0;
7996 }
7997 return !x[0] && !zero.x;
7998#endif
7999
8000 ;
8001 return 0;
8002}
8003_ACEOF
8004rm -f conftest.$ac_objext
8005if { (ac_try="$ac_compile"
8006case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8019 { (case "(($ac_try" in
8020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8021 *) ac_try_echo=$ac_try;;
8022esac
8023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8024 (eval "$ac_try") 2>&5
8025 ac_status=$?
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); }; } &&
8028 { ac_try='test -s conftest.$ac_objext'
8029 { (case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_try") 2>&5
8035 ac_status=$?
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_cv_c_const=yes
8039else
8040 echo "$as_me: failed program was:" >&5
8041sed 's/^/| /' conftest.$ac_ext >&5
8042
8043 ac_cv_c_const=no
8044fi
8045
8046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047fi
8048{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8049echo "${ECHO_T}$ac_cv_c_const" >&6; }
8050if test $ac_cv_c_const = no; then
8051
8052cat >>confdefs.h <<\_ACEOF
8053#define const
8054_ACEOF
8055
8056fi
8057
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008058
8059
8060
8061
8062
8063ac_header_dirent=no
8064for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8065 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008066{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8067echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008069 echo $ECHO_N "(cached) $ECHO_C" >&6
8070else
8071 cat >conftest.$ac_ext <<_ACEOF
8072/* confdefs.h. */
8073_ACEOF
8074cat confdefs.h >>conftest.$ac_ext
8075cat >>conftest.$ac_ext <<_ACEOF
8076/* end confdefs.h. */
8077#include <sys/types.h>
8078#include <$ac_hdr>
8079
8080int
8081main ()
8082{
8083if ((DIR *) 0)
8084return 0;
8085 ;
8086 return 0;
8087}
8088_ACEOF
8089rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008090if { (ac_try="$ac_compile"
8091case "(($ac_try" in
8092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8093 *) ac_try_echo=$ac_try;;
8094esac
8095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008097 ac_status=$?
8098 grep -v '^ *+' conftest.er1 >conftest.err
8099 rm -f conftest.er1
8100 cat conftest.err >&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8104 { (case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008110 ac_status=$?
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008114 { (case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117esac
8118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 eval "$as_ac_Header=yes"
8124else
8125 echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
Reid Spencera773bd52006-08-04 18:18:08 +00008128 eval "$as_ac_Header=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008129fi
Reid Spencera773bd52006-08-04 18:18:08 +00008130
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008132fi
Reid Spencera773bd52006-08-04 18:18:08 +00008133ac_res=`eval echo '${'$as_ac_Header'}'`
8134 { echo "$as_me:$LINENO: result: $ac_res" >&5
8135echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008136if test `eval echo '${'$as_ac_Header'}'` = yes; then
8137 cat >>confdefs.h <<_ACEOF
8138#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8139_ACEOF
8140
8141ac_header_dirent=$ac_hdr; break
8142fi
8143
8144done
8145# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8146if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +00008147 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8148echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008149if test "${ac_cv_search_opendir+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152 ac_func_search_save_LIBS=$LIBS
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008153cat >conftest.$ac_ext <<_ACEOF
8154/* confdefs.h. */
8155_ACEOF
8156cat confdefs.h >>conftest.$ac_ext
8157cat >>conftest.$ac_ext <<_ACEOF
8158/* end confdefs.h. */
8159
Reid Spencera773bd52006-08-04 18:18:08 +00008160/* Override any GCC internal prototype to avoid an error.
8161 Use char because int might match the return type of a GCC
8162 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008163#ifdef __cplusplus
8164extern "C"
8165#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008166char opendir ();
8167int
8168main ()
8169{
Reid Spencera773bd52006-08-04 18:18:08 +00008170return opendir ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008171 ;
8172 return 0;
8173}
8174_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008175for ac_lib in '' dir; do
8176 if test -z "$ac_lib"; then
8177 ac_res="none required"
8178 else
8179 ac_res=-l$ac_lib
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +00008181 fi
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183if { (ac_try="$ac_link"
8184case "(($ac_try" in
8185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186 *) ac_try_echo=$ac_try;;
8187esac
8188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8189 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008190 ac_status=$?
8191 grep -v '^ *+' conftest.er1 >conftest.err
8192 rm -f conftest.er1
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8197 { (case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200esac
8201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); }; } &&
8206 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00008207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +00008216 ac_cv_search_opendir=$ac_res
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008217else
8218 echo "$as_me: failed program was:" >&5
8219sed 's/^/| /' conftest.$ac_ext >&5
8220
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008221
8222fi
8223
Reid Spencera773bd52006-08-04 18:18:08 +00008224rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext
8226 if test "${ac_cv_search_opendir+set}" = set; then
8227 break
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008228fi
John Criswell7a73b802003-06-30 21:59:07 +00008229done
Reid Spencera773bd52006-08-04 18:18:08 +00008230if test "${ac_cv_search_opendir+set}" = set; then
8231 :
8232else
8233 ac_cv_search_opendir=no
8234fi
8235rm conftest.$ac_ext
8236LIBS=$ac_func_search_save_LIBS
8237fi
8238{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8239echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8240ac_res=$ac_cv_search_opendir
8241if test "$ac_res" != no; then
8242 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell7a73b802003-06-30 21:59:07 +00008243
Reid Spencera773bd52006-08-04 18:18:08 +00008244fi
8245
8246else
8247 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8248echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8249if test "${ac_cv_search_opendir+set}" = set; then
8250 echo $ECHO_N "(cached) $ECHO_C" >&6
8251else
8252 ac_func_search_save_LIBS=$LIBS
8253cat >conftest.$ac_ext <<_ACEOF
8254/* confdefs.h. */
8255_ACEOF
8256cat confdefs.h >>conftest.$ac_ext
8257cat >>conftest.$ac_ext <<_ACEOF
8258/* end confdefs.h. */
8259
8260/* Override any GCC internal prototype to avoid an error.
8261 Use char because int might match the return type of a GCC
8262 builtin and then its argument prototype would still apply. */
8263#ifdef __cplusplus
8264extern "C"
8265#endif
8266char opendir ();
8267int
8268main ()
8269{
8270return opendir ();
8271 ;
8272 return 0;
8273}
8274_ACEOF
8275for ac_lib in '' x; do
8276 if test -z "$ac_lib"; then
8277 ac_res="none required"
8278 else
8279 ac_res=-l$ac_lib
8280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8281 fi
8282 rm -f conftest.$ac_objext conftest$ac_exeext
8283if { (ac_try="$ac_link"
8284case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8287esac
8288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_link") 2>conftest.er1
8290 ac_status=$?
8291 grep -v '^ *+' conftest.er1 >conftest.err
8292 rm -f conftest.er1
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8297 { (case "(($ac_try" in
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8300esac
8301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_try") 2>&5
8303 ac_status=$?
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); }; } &&
8306 { ac_try='test -s conftest$ac_exeext'
8307 { (case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310esac
8311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_try") 2>&5
8313 ac_status=$?
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); }; }; then
8316 ac_cv_search_opendir=$ac_res
8317else
8318 echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321
8322fi
8323
8324rm -f core conftest.err conftest.$ac_objext \
8325 conftest$ac_exeext
8326 if test "${ac_cv_search_opendir+set}" = set; then
8327 break
8328fi
8329done
8330if test "${ac_cv_search_opendir+set}" = set; then
8331 :
8332else
8333 ac_cv_search_opendir=no
8334fi
8335rm conftest.$ac_ext
8336LIBS=$ac_func_search_save_LIBS
8337fi
8338{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8339echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8340ac_res=$ac_cv_search_opendir
8341if test "$ac_res" != no; then
8342 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8343
8344fi
8345
8346fi
John Criswell7a73b802003-06-30 21:59:07 +00008347
8348
8349for ac_header in dlfcn.h
8350do
8351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +00008352if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8355if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +00008356 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00008357fi
Reid Spencera773bd52006-08-04 18:18:08 +00008358ac_res=`eval echo '${'$as_ac_Header'}'`
8359 { echo "$as_me:$LINENO: result: $ac_res" >&5
8360echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +00008361else
Brian Gaeke0a621332004-09-08 20:38:05 +00008362 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +00008363{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008365cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008371$ac_includes_default
8372#include <$ac_header>
8373_ACEOF
8374rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +00008375if { (ac_try="$ac_compile"
8376case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379esac
8380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008382 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00008388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389 { (case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; } &&
8398 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +00008399 { (case "(($ac_try" in
8400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8401 *) ac_try_echo=$ac_try;;
8402esac
8403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8404 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008408 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00008409else
8410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008411sed 's/^/| /' conftest.$ac_ext >&5
8412
Reid Spencera773bd52006-08-04 18:18:08 +00008413 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00008414fi
Reid Spencera773bd52006-08-04 18:18:08 +00008415
8416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8417{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8418echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008419
8420# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +00008421{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8422echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008423cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
8429#include <$ac_header>
8430_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +00008431if { (ac_try="$ac_cpp conftest.$ac_ext"
8432case "(($ac_try" in
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8435esac
8436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke0a621332004-09-08 20:38:05 +00008438 ac_status=$?
8439 grep -v '^ *+' conftest.er1 >conftest.err
8440 rm -f conftest.er1
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } >/dev/null; then
8444 if test -s conftest.err; then
8445 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00008446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00008447 else
8448 ac_cpp_err=
8449 fi
8450else
8451 ac_cpp_err=yes
8452fi
8453if test -z "$ac_cpp_err"; then
8454 ac_header_preproc=yes
8455else
8456 echo "$as_me: failed program was:" >&5
8457sed 's/^/| /' conftest.$ac_ext >&5
8458
8459 ac_header_preproc=no
8460fi
Reid Spencera773bd52006-08-04 18:18:08 +00008461
Brian Gaeke0a621332004-09-08 20:38:05 +00008462rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +00008463{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8464echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008465
8466# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8468 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00008469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8473 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008474 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00008475 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00008476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00008484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00008486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +00008488 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00008489## ----------------------------------- ##
8490## Report this to llvmbugs@cs.uiuc.edu ##
8491## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00008492_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +00008493 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke0a621332004-09-08 20:38:05 +00008494 ;;
8495esac
Reid Spencera773bd52006-08-04 18:18:08 +00008496{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008499 echo $ECHO_N "(cached) $ECHO_C" >&6
8500else
Reid Spencer2706f8c2004-09-19 23:53:36 +00008501 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00008502fi
Reid Spencera773bd52006-08-04 18:18:08 +00008503ac_res=`eval echo '${'$as_ac_Header'}'`
8504 { echo "$as_me:$LINENO: result: $ac_res" >&5
8505echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke0a621332004-09-08 20:38:05 +00008506
8507fi
John Criswell7a73b802003-06-30 21:59:07 +00008508if test `eval echo '${'$as_ac_Header'}'` = yes; then
8509 cat >>confdefs.h <<_ACEOF
8510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8511_ACEOF
8512
8513fi
8514
8515done
8516
Reid Spencera773bd52006-08-04 18:18:08 +00008517# Check whether --enable-ltdl-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008518if test "${enable_ltdl_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +00008519 enableval=$enable_ltdl_install;
8520fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008521
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008522
8523
8524
8525if test x"${enable_ltdl_install-no}" != xno; then
8526 INSTALL_LTDL_TRUE=
8527 INSTALL_LTDL_FALSE='#'
8528else
8529 INSTALL_LTDL_TRUE='#'
8530 INSTALL_LTDL_FALSE=
8531fi
8532
8533
8534
8535if test x"${enable_ltdl_convenience-no}" != xno; then
8536 CONVENIENCE_LTDL_TRUE=
8537 CONVENIENCE_LTDL_FALSE='#'
8538else
8539 CONVENIENCE_LTDL_TRUE='#'
8540 CONVENIENCE_LTDL_FALSE=
8541fi
8542
8543
Reid Spencera773bd52006-08-04 18:18:08 +00008544{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8545echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008546library_names_spec=
8547libname_spec='lib$name'
8548soname_spec=
8549shrext_cmds=".so"
8550postinstall_cmds=
8551postuninstall_cmds=
8552finish_cmds=
8553finish_eval=
8554shlibpath_var=
8555shlibpath_overrides_runpath=unknown
8556version_type=none
8557dynamic_linker="$host_os ld.so"
8558sys_lib_dlsearch_path_spec="/lib /usr/lib"
8559if test "$GCC" = yes; then
8560 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8561 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8562 # if the path contains ";" then we assume it to be the separator
8563 # otherwise default to the standard path separator (i.e. ":") - it is
8564 # assumed that no part of a normal pathname contains ";" but that should
8565 # okay in the real world where ";" in dirpaths is itself problematic.
8566 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8567 else
8568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8569 fi
8570else
8571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8572fi
8573need_lib_prefix=unknown
8574hardcode_into_libs=no
8575
8576# when you set need_version to no, make sure it does not cause -set_version
8577# flags to be left without arguments
8578need_version=unknown
8579
8580case $host_os in
8581aix3*)
8582 version_type=linux
8583 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8584 shlibpath_var=LIBPATH
8585
8586 # AIX 3 has no versioning support, so we append a major version to the name.
8587 soname_spec='${libname}${release}${shared_ext}$major'
8588 ;;
8589
8590aix4* | aix5*)
8591 version_type=linux
8592 need_lib_prefix=no
8593 need_version=no
8594 hardcode_into_libs=yes
8595 if test "$host_cpu" = ia64; then
8596 # AIX 5 supports IA64
8597 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8598 shlibpath_var=LD_LIBRARY_PATH
8599 else
8600 # With GCC up to 2.95.x, collect2 would create an import file
8601 # for dependence libraries. The import file would start with
8602 # the line `#! .'. This would cause the generated library to
8603 # depend on `.', always an invalid library. This was fixed in
8604 # development snapshots of GCC prior to 3.0.
8605 case $host_os in
8606 aix4 | aix4.[01] | aix4.[01].*)
8607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8608 echo ' yes '
8609 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8610 :
8611 else
8612 can_build_shared=no
8613 fi
8614 ;;
8615 esac
8616 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8617 # soname into executable. Probably we can add versioning support to
8618 # collect2, so additional links can be useful in future.
8619 if test "$aix_use_runtimelinking" = yes; then
8620 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8621 # instead of lib<name>.a to let people know that these are not
8622 # typical AIX shared libraries.
8623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8624 else
8625 # We preserve .a as extension for shared libraries through AIX4.2
8626 # and later when we are not doing run time linking.
8627 library_names_spec='${libname}${release}.a $libname.a'
8628 soname_spec='${libname}${release}${shared_ext}$major'
8629 fi
8630 shlibpath_var=LIBPATH
8631 fi
8632 ;;
8633
8634amigaos*)
8635 library_names_spec='$libname.ixlibrary $libname.a'
8636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8637 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'
8638 ;;
8639
8640beos*)
8641 library_names_spec='${libname}${shared_ext}'
8642 dynamic_linker="$host_os ld.so"
8643 shlibpath_var=LIBRARY_PATH
8644 ;;
8645
8646bsdi[45]*)
8647 version_type=linux
8648 need_version=no
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8652 shlibpath_var=LD_LIBRARY_PATH
8653 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8654 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8655 # the default ld.so.conf also contains /usr/contrib/lib and
8656 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8657 # libtool to hard-code these into programs
8658 ;;
8659
8660cygwin* | mingw* | pw32*)
8661 version_type=windows
8662 shrext_cmds=".dll"
8663 need_version=no
8664 need_lib_prefix=no
8665
8666 case $GCC,$host_os in
8667 yes,cygwin* | yes,mingw* | yes,pw32*)
8668 library_names_spec='$libname.dll.a'
8669 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8670 postinstall_cmds='base_file=`basename \${file}`~
8671 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8672 dldir=$destdir/`dirname \$dlpath`~
8673 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +00008674 $install_prog $dir/$dlname \$dldir/$dlname~
8675 chmod a+x \$dldir/$dlname'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8677 dlpath=$dir/\$dldll~
8678 $rm \$dlpath'
8679 shlibpath_overrides_runpath=yes
8680
8681 case $host_os in
8682 cygwin*)
8683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8686 ;;
8687 mingw*)
8688 # MinGW DLLs use traditional 'lib' prefix
8689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8692 # It is most probably a Windows format PATH printed by
8693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8694 # path with ; separators, and with drive letters. We can handle the
8695 # drive letters (cygwin fileutils understands them), so leave them,
8696 # especially as we might pass files found there to a mingw objdump,
8697 # which wouldn't understand a cygwinified path. Ahh.
8698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8699 else
8700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8701 fi
8702 ;;
8703 pw32*)
8704 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +00008705 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 +00008706 ;;
8707 esac
8708 ;;
8709
8710 *)
8711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8712 ;;
8713 esac
8714 dynamic_linker='Win32 ld.exe'
8715 # FIXME: first we should search . and the directory the executable is in
8716 shlibpath_var=PATH
8717 ;;
8718
8719darwin* | rhapsody*)
8720 dynamic_linker="$host_os dyld"
8721 version_type=darwin
8722 need_lib_prefix=no
8723 need_version=no
8724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8725 soname_spec='${libname}${release}${major}$shared_ext'
8726 shlibpath_overrides_runpath=yes
8727 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +00008728 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8730 if test "$GCC" = yes; then
8731 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"`
8732 else
8733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8734 fi
8735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8736 ;;
8737
8738dgux*)
8739 version_type=linux
8740 need_lib_prefix=no
8741 need_version=no
8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8743 soname_spec='${libname}${release}${shared_ext}$major'
8744 shlibpath_var=LD_LIBRARY_PATH
8745 ;;
8746
8747freebsd1*)
8748 dynamic_linker=no
8749 ;;
8750
8751kfreebsd*-gnu)
8752 version_type=linux
8753 need_lib_prefix=no
8754 need_version=no
8755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8756 soname_spec='${libname}${release}${shared_ext}$major'
8757 shlibpath_var=LD_LIBRARY_PATH
8758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8760 dynamic_linker='GNU ld.so'
8761 ;;
8762
Reid Spencera773bd52006-08-04 18:18:08 +00008763freebsd* | dragonfly*)
8764 # DragonFly does not have aout. When/if they implement a new
8765 # versioning mechanism, adjust this.
8766 if test -x /usr/bin/objformat; then
8767 objformat=`/usr/bin/objformat`
8768 else
8769 case $host_os in
8770 freebsd[123]*) objformat=aout ;;
8771 *) objformat=elf ;;
8772 esac
8773 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008774 version_type=freebsd-$objformat
8775 case $version_type in
8776 freebsd-elf*)
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8778 need_version=no
8779 need_lib_prefix=no
8780 ;;
8781 freebsd-*)
8782 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8783 need_version=yes
8784 ;;
8785 esac
8786 shlibpath_var=LD_LIBRARY_PATH
8787 case $host_os in
8788 freebsd2*)
8789 shlibpath_overrides_runpath=yes
8790 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008791 freebsd3.[01]* | freebsdelf3.[01]*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8794 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008795 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8796 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008797 shlibpath_overrides_runpath=no
8798 hardcode_into_libs=yes
8799 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00008800 freebsd*) # from 4.6 on
8801 shlibpath_overrides_runpath=yes
8802 hardcode_into_libs=yes
8803 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008804 esac
8805 ;;
8806
8807gnu*)
8808 version_type=linux
8809 need_lib_prefix=no
8810 need_version=no
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8813 shlibpath_var=LD_LIBRARY_PATH
8814 hardcode_into_libs=yes
8815 ;;
8816
8817hpux9* | hpux10* | hpux11*)
8818 # Give a soname corresponding to the major version so that dld.sl refuses to
8819 # link against other versions.
8820 version_type=sunos
8821 need_lib_prefix=no
8822 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +00008823 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008824 ia64*)
8825 shrext_cmds='.so'
8826 hardcode_into_libs=yes
8827 dynamic_linker="$host_os dld.so"
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8831 soname_spec='${libname}${release}${shared_ext}$major'
8832 if test "X$HPUX_IA64_MODE" = X32; then
8833 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8834 else
8835 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8836 fi
8837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8838 ;;
8839 hppa*64*)
8840 shrext_cmds='.sl'
8841 hardcode_into_libs=yes
8842 dynamic_linker="$host_os dld.sl"
8843 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8844 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8848 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8849 ;;
8850 *)
8851 shrext_cmds='.sl'
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=SHLIB_PATH
8854 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 ;;
8858 esac
8859 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8860 postinstall_cmds='chmod 555 $lib'
8861 ;;
8862
Reid Spencera773bd52006-08-04 18:18:08 +00008863interix3*)
8864 version_type=linux
8865 need_lib_prefix=no
8866 need_version=no
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8870 shlibpath_var=LD_LIBRARY_PATH
8871 shlibpath_overrides_runpath=no
8872 hardcode_into_libs=yes
8873 ;;
8874
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008875irix5* | irix6* | nonstopux*)
8876 case $host_os in
8877 nonstopux*) version_type=nonstopux ;;
8878 *)
8879 if test "$lt_cv_prog_gnu_ld" = yes; then
8880 version_type=linux
8881 else
8882 version_type=irix
8883 fi ;;
8884 esac
8885 need_lib_prefix=no
8886 need_version=no
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8889 case $host_os in
8890 irix5* | nonstopux*)
8891 libsuff= shlibsuff=
8892 ;;
8893 *)
8894 case $LD in # libtool.m4 will add one of these switches to LD
8895 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8896 libsuff= shlibsuff= libmagic=32-bit;;
8897 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8898 libsuff=32 shlibsuff=N32 libmagic=N32;;
8899 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8900 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8901 *) libsuff= shlibsuff= libmagic=never-match;;
8902 esac
8903 ;;
8904 esac
8905 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8906 shlibpath_overrides_runpath=no
8907 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8908 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8909 hardcode_into_libs=yes
8910 ;;
8911
8912# No shared lib support for Linux oldld, aout, or coff.
8913linux*oldld* | linux*aout* | linux*coff*)
8914 dynamic_linker=no
8915 ;;
8916
8917# This must be Linux ELF.
8918linux*)
8919 version_type=linux
8920 need_lib_prefix=no
8921 need_version=no
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=no
8927 # This implies no fast_install, which is unacceptable.
8928 # Some rework will be needed to allow for fast_install
8929 # before this can be enabled.
8930 hardcode_into_libs=yes
8931
8932 # Append ld.so.conf contents to the search path
8933 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +00008934 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 +00008935 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8936 fi
8937
8938 # We used to test for /lib/ld.so.1 and disable shared libraries on
8939 # powerpc, because MkLinux only supported shared libraries with the
8940 # GNU dynamic linker. Since this was broken with cross compilers,
8941 # most powerpc-linux boxes support dynamic linking these days and
8942 # people can always --disable-shared, the test was removed, and we
8943 # assume the GNU/Linux dynamic linker is in use.
8944 dynamic_linker='GNU/Linux ld.so'
8945 ;;
8946
8947knetbsd*-gnu)
8948 version_type=linux
8949 need_lib_prefix=no
8950 need_version=no
8951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8952 soname_spec='${libname}${release}${shared_ext}$major'
8953 shlibpath_var=LD_LIBRARY_PATH
8954 shlibpath_overrides_runpath=no
8955 hardcode_into_libs=yes
8956 dynamic_linker='GNU ld.so'
8957 ;;
8958
8959netbsd*)
8960 version_type=sunos
8961 need_lib_prefix=no
8962 need_version=no
8963 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8965 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8966 dynamic_linker='NetBSD (a.out) ld.so'
8967 else
8968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8969 soname_spec='${libname}${release}${shared_ext}$major'
8970 dynamic_linker='NetBSD ld.elf_so'
8971 fi
8972 shlibpath_var=LD_LIBRARY_PATH
8973 shlibpath_overrides_runpath=yes
8974 hardcode_into_libs=yes
8975 ;;
8976
8977newsos6)
8978 version_type=linux
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 shlibpath_var=LD_LIBRARY_PATH
8981 shlibpath_overrides_runpath=yes
8982 ;;
8983
8984nto-qnx*)
8985 version_type=linux
8986 need_lib_prefix=no
8987 need_version=no
8988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 shlibpath_var=LD_LIBRARY_PATH
8991 shlibpath_overrides_runpath=yes
8992 ;;
8993
8994openbsd*)
8995 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +00008996 sys_lib_dlsearch_path_spec="/usr/lib"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008997 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +00008998 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8999 case $host_os in
9000 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9001 *) need_version=no ;;
9002 esac
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9004 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9007 case $host_os in
9008 openbsd2.[89] | openbsd2.[89].*)
9009 shlibpath_overrides_runpath=no
9010 ;;
9011 *)
9012 shlibpath_overrides_runpath=yes
9013 ;;
9014 esac
9015 else
9016 shlibpath_overrides_runpath=yes
9017 fi
9018 ;;
9019
9020os2*)
9021 libname_spec='$name'
9022 shrext_cmds=".dll"
9023 need_lib_prefix=no
9024 library_names_spec='$libname${shared_ext} $libname.a'
9025 dynamic_linker='OS/2 ld.exe'
9026 shlibpath_var=LIBPATH
9027 ;;
9028
9029osf3* | osf4* | osf5*)
9030 version_type=osf
9031 need_lib_prefix=no
9032 need_version=no
9033 soname_spec='${libname}${release}${shared_ext}$major'
9034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9037 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9038 ;;
9039
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009040solaris*)
9041 version_type=linux
9042 need_lib_prefix=no
9043 need_version=no
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 shlibpath_var=LD_LIBRARY_PATH
9047 shlibpath_overrides_runpath=yes
9048 hardcode_into_libs=yes
9049 # ldd complains unless libraries are executable
9050 postinstall_cmds='chmod +x $lib'
9051 ;;
9052
9053sunos4*)
9054 version_type=sunos
9055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9056 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9059 if test "$with_gnu_ld" = yes; then
9060 need_lib_prefix=no
9061 fi
9062 need_version=yes
9063 ;;
9064
Reid Spencera773bd52006-08-04 18:18:08 +00009065sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009066 version_type=linux
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 soname_spec='${libname}${release}${shared_ext}$major'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 case $host_vendor in
9071 sni)
9072 shlibpath_overrides_runpath=no
9073 need_lib_prefix=no
9074 export_dynamic_flag_spec='${wl}-Blargedynsym'
9075 runpath_var=LD_RUN_PATH
9076 ;;
9077 siemens)
9078 need_lib_prefix=no
9079 ;;
9080 motorola)
9081 need_lib_prefix=no
9082 need_version=no
9083 shlibpath_overrides_runpath=no
9084 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9085 ;;
9086 esac
9087 ;;
9088
9089sysv4*MP*)
9090 if test -d /usr/nec ;then
9091 version_type=linux
9092 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9093 soname_spec='$libname${shared_ext}.$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 fi
9096 ;;
9097
Reid Spencera773bd52006-08-04 18:18:08 +00009098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9099 version_type=freebsd-elf
9100 need_lib_prefix=no
9101 need_version=no
9102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9103 soname_spec='${libname}${release}${shared_ext}$major'
9104 shlibpath_var=LD_LIBRARY_PATH
9105 hardcode_into_libs=yes
9106 if test "$with_gnu_ld" = yes; then
9107 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9108 shlibpath_overrides_runpath=no
9109 else
9110 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9111 shlibpath_overrides_runpath=yes
9112 case $host_os in
9113 sco3.2v5*)
9114 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9115 ;;
9116 esac
9117 fi
9118 sys_lib_dlsearch_path_spec='/usr/lib'
9119 ;;
9120
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009121uts4*)
9122 version_type=linux
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 shlibpath_var=LD_LIBRARY_PATH
9126 ;;
9127
9128*)
9129 dynamic_linker=no
9130 ;;
9131esac
Reid Spencera773bd52006-08-04 18:18:08 +00009132{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9133echo "${ECHO_T}$dynamic_linker" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009134test "$dynamic_linker" = no && can_build_shared=no
9135
Reid Spencera773bd52006-08-04 18:18:08 +00009136variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9137if test "$GCC" = yes; then
9138 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9139fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009140
Reid Spencera773bd52006-08-04 18:18:08 +00009141
9142{ echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9143echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009144if test "${libltdl_cv_shlibext+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9146else
9147
9148module=yes
9149eval libltdl_cv_shlibext=$shrext_cmds
9150
9151fi
Reid Spencera773bd52006-08-04 18:18:08 +00009152{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9153echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009154if test -n "$libltdl_cv_shlibext"; then
9155
9156cat >>confdefs.h <<_ACEOF
9157#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9158_ACEOF
9159
9160fi
9161
9162
Reid Spencera773bd52006-08-04 18:18:08 +00009163{ echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9164echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009165if test "${libltdl_cv_shlibpath_var+set}" = set; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168 libltdl_cv_shlibpath_var="$shlibpath_var"
9169fi
Reid Spencera773bd52006-08-04 18:18:08 +00009170{ echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9171echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009172if test -n "$libltdl_cv_shlibpath_var"; then
9173
9174cat >>confdefs.h <<_ACEOF
9175#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9176_ACEOF
9177
9178fi
9179
9180
Reid Spencera773bd52006-08-04 18:18:08 +00009181{ echo "$as_me:$LINENO: checking for the default library search path" >&5
9182echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009183if test "${libltdl_cv_sys_search_path+set}" = set; then
9184 echo $ECHO_N "(cached) $ECHO_C" >&6
9185else
9186 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9187fi
Reid Spencera773bd52006-08-04 18:18:08 +00009188{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9189echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009190if test -n "$libltdl_cv_sys_search_path"; then
9191 sys_search_path=
9192 for dir in $libltdl_cv_sys_search_path; do
9193 if test -z "$sys_search_path"; then
9194 sys_search_path="$dir"
9195 else
9196 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9197 fi
9198 done
9199
9200cat >>confdefs.h <<_ACEOF
9201#define LTDL_SYSSEARCHPATH "$sys_search_path"
9202_ACEOF
9203
9204fi
9205
Reid Spencera773bd52006-08-04 18:18:08 +00009206{ echo "$as_me:$LINENO: checking for objdir" >&5
9207echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009208if test "${libltdl_cv_objdir+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210else
9211 libltdl_cv_objdir="$objdir"
9212 if test -n "$objdir"; then
9213 :
9214 else
9215 rm -f .libs 2>/dev/null
9216 mkdir .libs 2>/dev/null
9217 if test -d .libs; then
9218 libltdl_cv_objdir=.libs
9219 else
9220 # MS-DOS does not allow filenames that begin with a dot.
9221 libltdl_cv_objdir=_libs
9222 fi
9223 rmdir .libs 2>/dev/null
9224 fi
9225
9226fi
Reid Spencera773bd52006-08-04 18:18:08 +00009227{ echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9228echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009229
9230cat >>confdefs.h <<_ACEOF
9231#define LTDL_OBJDIR "$libltdl_cv_objdir/"
9232_ACEOF
9233
9234
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009235
9236
9237
9238
9239# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +00009240{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9241echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009242if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9243 echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245
9246# These are sane defaults that work on at least a few old systems.
9247# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9248
9249# Character class describing NM global symbol codes.
9250symcode='[BCDEGRST]'
9251
9252# Regexp to match symbols that can be accessed directly from C.
9253sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9254
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009255# Transform an extracted symbol line into a proper C declaration
9256lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9257
9258# Transform an extracted symbol line into symbol name and symbol address
9259lt_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'"
9260
9261# Define system-specific variables.
9262case $host_os in
9263aix*)
9264 symcode='[BCDT]'
9265 ;;
9266cygwin* | mingw* | pw32*)
9267 symcode='[ABCDGISTW]'
9268 ;;
9269hpux*) # Its linker distinguishes data from code symbols
9270 if test "$host_cpu" = ia64; then
9271 symcode='[ABCDEGRST]'
9272 fi
9273 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9274 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'"
9275 ;;
9276linux*)
9277 if test "$host_cpu" = ia64; then
9278 symcode='[ABCDGIRSTW]'
9279 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9280 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'"
9281 fi
9282 ;;
9283irix* | nonstopux*)
9284 symcode='[BCDEGRST]'
9285 ;;
9286osf*)
9287 symcode='[BCDEGQRST]'
9288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009289solaris*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009290 symcode='[BDRT]'
9291 ;;
Reid Spencera773bd52006-08-04 18:18:08 +00009292sco3.2v5*)
9293 symcode='[DT]'
9294 ;;
9295sysv4.2uw2*)
9296 symcode='[DT]'
9297 ;;
9298sysv5* | sco5v6* | unixware* | OpenUNIX*)
9299 symcode='[ABDT]'
9300 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009301sysv4)
9302 symcode='[DFNSTU]'
9303 ;;
9304esac
9305
9306# Handle CRLF in mingw tool chain
9307opt_cr=
9308case $build_os in
9309mingw*)
9310 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9311 ;;
9312esac
9313
9314# If we're using GNU nm, then use its standard symbol codes.
9315case `$NM -V 2>&1` in
9316*GNU* | *'with BFD'*)
9317 symcode='[ABCDGIRSTW]' ;;
9318esac
9319
9320# Try without a prefix undercore, then with it.
9321for ac_symprfx in "" "_"; do
9322
Reid Spencera773bd52006-08-04 18:18:08 +00009323 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9324 symxfrm="\\1 $ac_symprfx\\2 \\2"
9325
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009326 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +00009327 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 +00009328
9329 # Check to see that the pipe works correctly.
9330 pipe_works=no
9331
9332 rm -f conftest*
9333 cat > conftest.$ac_ext <<EOF
9334#ifdef __cplusplus
9335extern "C" {
9336#endif
9337char nm_test_var;
9338void nm_test_func(){}
9339#ifdef __cplusplus
9340}
9341#endif
9342int main(){nm_test_var='a';nm_test_func();return(0);}
9343EOF
9344
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346 (eval $ac_compile) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; then
9350 # Now try to grab the symbols.
9351 nlist=conftest.nm
9352 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9353 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } && test -s "$nlist"; then
9357 # Try sorting and uniquifying the output.
9358 if sort "$nlist" | uniq > "$nlist"T; then
9359 mv -f "$nlist"T "$nlist"
9360 else
9361 rm -f "$nlist"T
9362 fi
9363
9364 # Make sure that we snagged all the symbols we need.
9365 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9366 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9367 cat <<EOF > conftest.$ac_ext
9368#ifdef __cplusplus
9369extern "C" {
9370#endif
9371
9372EOF
9373 # Now generate the symbol file.
9374 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9375
9376 cat <<EOF >> conftest.$ac_ext
9377#if defined (__STDC__) && __STDC__
9378# define lt_ptr_t void *
9379#else
9380# define lt_ptr_t char *
9381# define const
9382#endif
9383
9384/* The mapping between symbol names and symbols. */
9385const struct {
9386 const char *name;
9387 lt_ptr_t address;
9388}
9389lt_preloaded_symbols[] =
9390{
9391EOF
9392 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9393 cat <<\EOF >> conftest.$ac_ext
9394 {0, (lt_ptr_t) 0}
9395};
9396
9397#ifdef __cplusplus
9398}
9399#endif
9400EOF
9401 # Now try linking the two files.
9402 mv conftest.$ac_objext conftstm.$ac_objext
9403 lt_save_LIBS="$LIBS"
9404 lt_save_CFLAGS="$CFLAGS"
9405 LIBS="conftstm.$ac_objext"
9406 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9408 (eval $ac_link) 2>&5
9409 ac_status=$?
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9412 pipe_works=yes
9413 fi
9414 LIBS="$lt_save_LIBS"
9415 CFLAGS="$lt_save_CFLAGS"
9416 else
9417 echo "cannot find nm_test_func in $nlist" >&5
9418 fi
9419 else
9420 echo "cannot find nm_test_var in $nlist" >&5
9421 fi
9422 else
9423 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9424 fi
9425 else
9426 echo "$progname: failed program was:" >&5
9427 cat conftest.$ac_ext >&5
9428 fi
9429 rm -f conftest* conftst*
9430
9431 # Do not use the global_symbol_pipe unless it works.
9432 if test "$pipe_works" = yes; then
9433 break
9434 else
9435 lt_cv_sys_global_symbol_pipe=
9436 fi
9437done
9438
9439fi
9440
9441if test -z "$lt_cv_sys_global_symbol_pipe"; then
9442 lt_cv_sys_global_symbol_to_cdecl=
9443fi
9444if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +00009445 { echo "$as_me:$LINENO: result: failed" >&5
9446echo "${ECHO_T}failed" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009447else
Reid Spencera773bd52006-08-04 18:18:08 +00009448 { echo "$as_me:$LINENO: result: ok" >&5
9449echo "${ECHO_T}ok" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009450fi
9451
9452
Reid Spencera773bd52006-08-04 18:18:08 +00009453{ echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9454echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009455if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9459 libltdl_cv_preloaded_symbols=yes
9460 else
9461 libltdl_cv_preloaded_symbols=no
9462 fi
9463
9464fi
Reid Spencera773bd52006-08-04 18:18:08 +00009465{ echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9466echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009467if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9468
9469cat >>confdefs.h <<\_ACEOF
9470#define HAVE_PRELOADED_SYMBOLS 1
9471_ACEOF
9472
9473fi
9474
9475LIBADD_DL=
9476
9477ac_ext=c
9478ac_cpp='$CPP $CPPFLAGS'
9479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481ac_compiler_gnu=$ac_cv_c_compiler_gnu
9482
9483
Reid Spencera773bd52006-08-04 18:18:08 +00009484{ echo "$as_me:$LINENO: checking for shl_load" >&5
9485echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009486if test "${ac_cv_func_shl_load+set}" = set; then
9487 echo $ECHO_N "(cached) $ECHO_C" >&6
9488else
9489 cat >conftest.$ac_ext <<_ACEOF
9490/* confdefs.h. */
9491_ACEOF
9492cat confdefs.h >>conftest.$ac_ext
9493cat >>conftest.$ac_ext <<_ACEOF
9494/* end confdefs.h. */
9495/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9497#define shl_load innocuous_shl_load
9498
9499/* System header to define __stub macros and hopefully few prototypes,
9500 which can conflict with char shl_load (); below.
9501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9502 <limits.h> exists even on freestanding compilers. */
9503
9504#ifdef __STDC__
9505# include <limits.h>
9506#else
9507# include <assert.h>
9508#endif
9509
9510#undef shl_load
9511
Reid Spencera773bd52006-08-04 18:18:08 +00009512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009515#ifdef __cplusplus
9516extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009517#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009518char shl_load ();
9519/* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +00009522#if defined __stub_shl_load || defined __stub___shl_load
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009523choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009524#endif
9525
9526int
9527main ()
9528{
Reid Spencera773bd52006-08-04 18:18:08 +00009529return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009530 ;
9531 return 0;
9532}
9533_ACEOF
9534rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009535if { (ac_try="$ac_link"
9536case "(($ac_try" in
9537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538 *) ac_try_echo=$ac_try;;
9539esac
9540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9541 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9549 { (case "(($ac_try" in
9550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9551 *) ac_try_echo=$ac_try;;
9552esac
9553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009555 ac_status=$?
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); }; } &&
9558 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009559 { (case "(($ac_try" in
9560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561 *) ac_try_echo=$ac_try;;
9562esac
9563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009565 ac_status=$?
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_func_shl_load=yes
9569else
9570 echo "$as_me: failed program was:" >&5
9571sed 's/^/| /' conftest.$ac_ext >&5
9572
Reid Spencera773bd52006-08-04 18:18:08 +00009573 ac_cv_func_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009574fi
Reid Spencera773bd52006-08-04 18:18:08 +00009575
9576rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009577 conftest$ac_exeext conftest.$ac_ext
9578fi
Reid Spencera773bd52006-08-04 18:18:08 +00009579{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9580echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009581if test $ac_cv_func_shl_load = yes; then
9582
9583cat >>confdefs.h <<\_ACEOF
9584#define HAVE_SHL_LOAD 1
9585_ACEOF
9586
9587else
Reid Spencera773bd52006-08-04 18:18:08 +00009588 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9589echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009590if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592else
9593 ac_check_lib_save_LIBS=$LIBS
9594LIBS="-ldld $LIBS"
9595cat >conftest.$ac_ext <<_ACEOF
9596/* confdefs.h. */
9597_ACEOF
9598cat confdefs.h >>conftest.$ac_ext
9599cat >>conftest.$ac_ext <<_ACEOF
9600/* end confdefs.h. */
9601
Reid Spencera773bd52006-08-04 18:18:08 +00009602/* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009605#ifdef __cplusplus
9606extern "C"
9607#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009608char shl_load ();
9609int
9610main ()
9611{
Reid Spencera773bd52006-08-04 18:18:08 +00009612return shl_load ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009613 ;
9614 return 0;
9615}
9616_ACEOF
9617rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009618if { (ac_try="$ac_link"
9619case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622esac
9623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9632 { (case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635esac
9636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009638 ac_status=$?
9639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640 (exit $ac_status); }; } &&
9641 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009642 { (case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645esac
9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009648 ac_status=$?
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); }; }; then
9651 ac_cv_lib_dld_shl_load=yes
9652else
9653 echo "$as_me: failed program was:" >&5
9654sed 's/^/| /' conftest.$ac_ext >&5
9655
Reid Spencera773bd52006-08-04 18:18:08 +00009656 ac_cv_lib_dld_shl_load=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009657fi
Reid Spencera773bd52006-08-04 18:18:08 +00009658
9659rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009660 conftest$ac_exeext conftest.$ac_ext
9661LIBS=$ac_check_lib_save_LIBS
9662fi
Reid Spencera773bd52006-08-04 18:18:08 +00009663{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9664echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009665if test $ac_cv_lib_dld_shl_load = yes; then
9666
9667cat >>confdefs.h <<\_ACEOF
9668#define HAVE_SHL_LOAD 1
9669_ACEOF
9670
9671 LIBADD_DL="$LIBADD_DL -ldld"
9672else
Reid Spencera773bd52006-08-04 18:18:08 +00009673 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9674echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009675if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677else
9678 ac_check_lib_save_LIBS=$LIBS
9679LIBS="-ldl $LIBS"
9680cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686
Reid Spencera773bd52006-08-04 18:18:08 +00009687/* Override any GCC internal prototype to avoid an error.
9688 Use char because int might match the return type of a GCC
9689 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009690#ifdef __cplusplus
9691extern "C"
9692#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009693char dlopen ();
9694int
9695main ()
9696{
Reid Spencera773bd52006-08-04 18:18:08 +00009697return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009703if { (ac_try="$ac_link"
9704case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9717 { (case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009723 ac_status=$?
9724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; } &&
9726 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009727 { (case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730esac
9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009733 ac_status=$?
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_dl_dlopen=yes
9737else
9738 echo "$as_me: failed program was:" >&5
9739sed 's/^/| /' conftest.$ac_ext >&5
9740
Reid Spencera773bd52006-08-04 18:18:08 +00009741 ac_cv_lib_dl_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009742fi
Reid Spencera773bd52006-08-04 18:18:08 +00009743
9744rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009745 conftest$ac_exeext conftest.$ac_ext
9746LIBS=$ac_check_lib_save_LIBS
9747fi
Reid Spencera773bd52006-08-04 18:18:08 +00009748{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9749echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009750if test $ac_cv_lib_dl_dlopen = yes; then
9751
9752cat >>confdefs.h <<\_ACEOF
9753#define HAVE_LIBDL 1
9754_ACEOF
9755
9756 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9757else
9758 cat >conftest.$ac_ext <<_ACEOF
9759/* confdefs.h. */
9760_ACEOF
9761cat confdefs.h >>conftest.$ac_ext
9762cat >>conftest.$ac_ext <<_ACEOF
9763/* end confdefs.h. */
9764#if HAVE_DLFCN_H
9765# include <dlfcn.h>
9766#endif
9767
9768int
9769main ()
9770{
9771dlopen(0, 0);
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009777if { (ac_try="$ac_link"
9778case "(($ac_try" in
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9781esac
9782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9783 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009784 ac_status=$?
9785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
9788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9791 { (case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794esac
9795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9796 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009797 ac_status=$?
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009801 { (case "(($ac_try" in
9802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803 *) ac_try_echo=$ac_try;;
9804esac
9805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009807 ac_status=$?
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }; }; then
9810
9811cat >>confdefs.h <<\_ACEOF
9812#define HAVE_LIBDL 1
9813_ACEOF
9814 libltdl_cv_func_dlopen="yes"
9815else
9816 echo "$as_me: failed program was:" >&5
9817sed 's/^/| /' conftest.$ac_ext >&5
9818
Reid Spencera773bd52006-08-04 18:18:08 +00009819 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9820echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009821if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9823else
9824 ac_check_lib_save_LIBS=$LIBS
9825LIBS="-lsvld $LIBS"
9826cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832
Reid Spencera773bd52006-08-04 18:18:08 +00009833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009836#ifdef __cplusplus
9837extern "C"
9838#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009839char dlopen ();
9840int
9841main ()
9842{
Reid Spencera773bd52006-08-04 18:18:08 +00009843return dlopen ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009849if { (ac_try="$ac_link"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9863 { (case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866esac
9867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009869 ac_status=$?
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; } &&
9872 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009873 { (case "(($ac_try" in
9874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9875 *) ac_try_echo=$ac_try;;
9876esac
9877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9878 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009879 ac_status=$?
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); }; }; then
9882 ac_cv_lib_svld_dlopen=yes
9883else
9884 echo "$as_me: failed program was:" >&5
9885sed 's/^/| /' conftest.$ac_ext >&5
9886
Reid Spencera773bd52006-08-04 18:18:08 +00009887 ac_cv_lib_svld_dlopen=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009888fi
Reid Spencera773bd52006-08-04 18:18:08 +00009889
9890rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009891 conftest$ac_exeext conftest.$ac_ext
9892LIBS=$ac_check_lib_save_LIBS
9893fi
Reid Spencera773bd52006-08-04 18:18:08 +00009894{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9895echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009896if test $ac_cv_lib_svld_dlopen = yes; then
9897
9898cat >>confdefs.h <<\_ACEOF
9899#define HAVE_LIBDL 1
9900_ACEOF
9901
9902 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9903else
Reid Spencera773bd52006-08-04 18:18:08 +00009904 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9905echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009906if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9907 echo $ECHO_N "(cached) $ECHO_C" >&6
9908else
9909 ac_check_lib_save_LIBS=$LIBS
9910LIBS="-ldld $LIBS"
9911cat >conftest.$ac_ext <<_ACEOF
9912/* confdefs.h. */
9913_ACEOF
9914cat confdefs.h >>conftest.$ac_ext
9915cat >>conftest.$ac_ext <<_ACEOF
9916/* end confdefs.h. */
9917
Reid Spencera773bd52006-08-04 18:18:08 +00009918/* Override any GCC internal prototype to avoid an error.
9919 Use char because int might match the return type of a GCC
9920 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009921#ifdef __cplusplus
9922extern "C"
9923#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009924char dld_link ();
9925int
9926main ()
9927{
Reid Spencera773bd52006-08-04 18:18:08 +00009928return dld_link ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009929 ;
9930 return 0;
9931}
9932_ACEOF
9933rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +00009934if { (ac_try="$ac_link"
9935case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938esac
9939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9940 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009941 ac_status=$?
9942 grep -v '^ *+' conftest.er1 >conftest.err
9943 rm -f conftest.er1
9944 cat conftest.err >&5
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +00009947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9948 { (case "(($ac_try" in
9949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9950 *) ac_try_echo=$ac_try;;
9951esac
9952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9953 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009954 ac_status=$?
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); }; } &&
9957 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +00009958 { (case "(($ac_try" in
9959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9960 *) ac_try_echo=$ac_try;;
9961esac
9962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9963 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 ac_cv_lib_dld_dld_link=yes
9968else
9969 echo "$as_me: failed program was:" >&5
9970sed 's/^/| /' conftest.$ac_ext >&5
9971
Reid Spencera773bd52006-08-04 18:18:08 +00009972 ac_cv_lib_dld_dld_link=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009973fi
Reid Spencera773bd52006-08-04 18:18:08 +00009974
9975rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009976 conftest$ac_exeext conftest.$ac_ext
9977LIBS=$ac_check_lib_save_LIBS
9978fi
Reid Spencera773bd52006-08-04 18:18:08 +00009979{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9980echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009981if test $ac_cv_lib_dld_dld_link = yes; then
9982
9983cat >>confdefs.h <<\_ACEOF
9984#define HAVE_DLD 1
9985_ACEOF
9986
9987 LIBADD_DL="$LIBADD_DL -ldld"
9988else
Reid Spencera773bd52006-08-04 18:18:08 +00009989 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9990echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +00009991if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993else
9994 cat >conftest.$ac_ext <<_ACEOF
9995/* confdefs.h. */
9996_ACEOF
9997cat confdefs.h >>conftest.$ac_ext
9998cat >>conftest.$ac_ext <<_ACEOF
9999/* end confdefs.h. */
10000/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002#define _dyld_func_lookup innocuous__dyld_func_lookup
10003
10004/* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char _dyld_func_lookup (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10008
10009#ifdef __STDC__
10010# include <limits.h>
10011#else
10012# include <assert.h>
10013#endif
10014
10015#undef _dyld_func_lookup
10016
Reid Spencera773bd52006-08-04 18:18:08 +000010017/* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010020#ifdef __cplusplus
10021extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010022#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010023char _dyld_func_lookup ();
10024/* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010027#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010028choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010029#endif
10030
10031int
10032main ()
10033{
Reid Spencera773bd52006-08-04 18:18:08 +000010034return _dyld_func_lookup ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010040if { (ac_try="$ac_link"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10054 { (case "(($ac_try" in
10055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10056 *) ac_try_echo=$ac_try;;
10057esac
10058eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10059 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010060 ac_status=$?
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010064 { (case "(($ac_try" in
10065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066 *) ac_try_echo=$ac_try;;
10067esac
10068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; }; then
10073 ac_cv_func__dyld_func_lookup=yes
10074else
10075 echo "$as_me: failed program was:" >&5
10076sed 's/^/| /' conftest.$ac_ext >&5
10077
Reid Spencera773bd52006-08-04 18:18:08 +000010078 ac_cv_func__dyld_func_lookup=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010079fi
Reid Spencera773bd52006-08-04 18:18:08 +000010080
10081rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010082 conftest$ac_exeext conftest.$ac_ext
10083fi
Reid Spencera773bd52006-08-04 18:18:08 +000010084{ echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10085echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010086if test $ac_cv_func__dyld_func_lookup = yes; then
10087
10088cat >>confdefs.h <<\_ACEOF
10089#define HAVE_DYLD 1
10090_ACEOF
10091
10092fi
10093
10094
10095fi
10096
10097
10098fi
10099
10100
10101fi
Reid Spencera773bd52006-08-04 18:18:08 +000010102
10103rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010104 conftest$ac_exeext conftest.$ac_ext
10105
10106fi
10107
10108
10109fi
10110
10111
10112fi
10113
10114
10115if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10116then
10117 lt_save_LIBS="$LIBS"
10118 LIBS="$LIBS $LIBADD_DL"
10119
10120for ac_func in dlerror
10121do
10122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010123{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10125if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010126 echo $ECHO_N "(cached) $ECHO_C" >&6
10127else
10128 cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h. */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h. */
10134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10136#define $ac_func innocuous_$ac_func
10137
10138/* System header to define __stub macros and hopefully few prototypes,
10139 which can conflict with char $ac_func (); below.
10140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10141 <limits.h> exists even on freestanding compilers. */
10142
10143#ifdef __STDC__
10144# include <limits.h>
10145#else
10146# include <assert.h>
10147#endif
10148
10149#undef $ac_func
10150
Reid Spencera773bd52006-08-04 18:18:08 +000010151/* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010154#ifdef __cplusplus
10155extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010156#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010157char $ac_func ();
10158/* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010161#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010162choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010163#endif
10164
10165int
10166main ()
10167{
Reid Spencera773bd52006-08-04 18:18:08 +000010168return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010169 ;
10170 return 0;
10171}
10172_ACEOF
10173rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010174if { (ac_try="$ac_link"
10175case "(($ac_try" in
10176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10177 *) ac_try_echo=$ac_try;;
10178esac
10179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10180 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010181 ac_status=$?
10182 grep -v '^ *+' conftest.er1 >conftest.err
10183 rm -f conftest.er1
10184 cat conftest.err >&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010187 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10188 { (case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
10192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010194 ac_status=$?
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); }; } &&
10197 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010198 { (case "(($ac_try" in
10199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10201esac
10202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 eval "$as_ac_var=yes"
10208else
10209 echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
Reid Spencera773bd52006-08-04 18:18:08 +000010212 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010213fi
Reid Spencera773bd52006-08-04 18:18:08 +000010214
10215rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010216 conftest$ac_exeext conftest.$ac_ext
10217fi
Reid Spencera773bd52006-08-04 18:18:08 +000010218ac_res=`eval echo '${'$as_ac_var'}'`
10219 { echo "$as_me:$LINENO: result: $ac_res" >&5
10220echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010221if test `eval echo '${'$as_ac_var'}'` = yes; then
10222 cat >>confdefs.h <<_ACEOF
10223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10224_ACEOF
10225
10226fi
10227done
10228
10229 LIBS="$lt_save_LIBS"
10230fi
10231ac_ext=c
10232ac_cpp='$CPP $CPPFLAGS'
10233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10235ac_compiler_gnu=$ac_cv_c_compiler_gnu
10236
10237
10238
Reid Spencera773bd52006-08-04 18:18:08 +000010239{ echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10240echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010241if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10242 echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244 ac_cv_sys_symbol_underscore=no
10245 cat > conftest.$ac_ext <<EOF
10246void nm_test_func(){}
10247int main(){nm_test_func;return 0;}
10248EOF
10249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10250 (eval $ac_compile) 2>&5
10251 ac_status=$?
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; then
10254 # Now try to grab the symbols.
10255 ac_nlist=conftest.nm
10256 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10257 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && test -s "$ac_nlist"; then
10261 # See whether the symbols have a leading underscore.
10262 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10263 ac_cv_sys_symbol_underscore=yes
10264 else
10265 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10266 :
10267 else
10268 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10269 fi
10270 fi
10271 else
10272 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10273 fi
10274 else
10275 echo "configure: failed program was:" >&5
10276 cat conftest.c >&5
10277 fi
10278 rm -rf conftest*
10279
10280fi
Reid Spencera773bd52006-08-04 18:18:08 +000010281{ echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10282echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010283
10284
10285if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10286 if test x"$libltdl_cv_func_dlopen" = xyes ||
10287 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
Reid Spencera773bd52006-08-04 18:18:08 +000010288 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10289echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010290if test "${libltdl_cv_need_uscore+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10292else
10293 libltdl_cv_need_uscore=unknown
10294 save_LIBS="$LIBS"
10295 LIBS="$LIBS $LIBADD_DL"
10296 if test "$cross_compiling" = yes; then :
10297 libltdl_cv_need_uscore=cross
10298else
10299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10300 lt_status=$lt_dlunknown
10301 cat > conftest.$ac_ext <<EOF
Reid Spencer1000b732006-12-01 00:37:14 +000010302#line 10302 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010303#include "confdefs.h"
10304
10305#if HAVE_DLFCN_H
10306#include <dlfcn.h>
10307#endif
10308
10309#include <stdio.h>
10310
10311#ifdef RTLD_GLOBAL
10312# define LT_DLGLOBAL RTLD_GLOBAL
10313#else
10314# ifdef DL_GLOBAL
10315# define LT_DLGLOBAL DL_GLOBAL
10316# else
10317# define LT_DLGLOBAL 0
10318# endif
10319#endif
10320
10321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10322 find out it does not work in some platform. */
10323#ifndef LT_DLLAZY_OR_NOW
10324# ifdef RTLD_LAZY
10325# define LT_DLLAZY_OR_NOW RTLD_LAZY
10326# else
10327# ifdef DL_LAZY
10328# define LT_DLLAZY_OR_NOW DL_LAZY
10329# else
10330# ifdef RTLD_NOW
10331# define LT_DLLAZY_OR_NOW RTLD_NOW
10332# else
10333# ifdef DL_NOW
10334# define LT_DLLAZY_OR_NOW DL_NOW
10335# else
10336# define LT_DLLAZY_OR_NOW 0
10337# endif
10338# endif
10339# endif
10340# endif
10341#endif
10342
10343#ifdef __cplusplus
10344extern "C" void exit (int);
10345#endif
10346
10347void fnord() { int i=42;}
10348int main ()
10349{
10350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10351 int status = $lt_dlunknown;
10352
10353 if (self)
10354 {
10355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10357 /* dlclose (self); */
10358 }
Reid Spencera773bd52006-08-04 18:18:08 +000010359 else
10360 puts (dlerror ());
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010361
10362 exit (status);
10363}
10364EOF
10365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10366 (eval $ac_link) 2>&5
10367 ac_status=$?
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000010370 (./conftest; exit; ) >&5 2>/dev/null
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 lt_status=$?
10372 case x$lt_status in
10373 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10374 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010375 x$lt_dlunknown|x*) ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010376 esac
10377 else :
10378 # compilation failed
10379
10380 fi
10381fi
10382rm -fr conftest*
10383
10384 LIBS="$save_LIBS"
10385
10386fi
Reid Spencera773bd52006-08-04 18:18:08 +000010387{ echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10388echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010389 fi
10390fi
10391
10392if test x"$libltdl_cv_need_uscore" = xyes; then
10393
10394cat >>confdefs.h <<\_ACEOF
10395#define NEED_USCORE 1
10396_ACEOF
10397
10398fi
10399
10400
Reid Spencera773bd52006-08-04 18:18:08 +000010401{ echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10402echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010403if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405else
10406 # PORTME does your system automatically load deplibs for dlopen?
10407 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10408 # For now, we just catch OSes we know something about -- in the
10409 # future, we'll try test this programmatically.
10410 libltdl_cv_sys_dlopen_deplibs=unknown
10411 case "$host_os" in
10412 aix3*|aix4.1.*|aix4.2.*)
10413 # Unknown whether this is true for these versions of AIX, but
10414 # we want this `case' here to explicitly catch those versions.
10415 libltdl_cv_sys_dlopen_deplibs=unknown
10416 ;;
10417 aix[45]*)
10418 libltdl_cv_sys_dlopen_deplibs=yes
10419 ;;
10420 darwin*)
10421 # Assuming the user has installed a libdl from somewhere, this is true
10422 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10423 libltdl_cv_sys_dlopen_deplibs=yes
10424 ;;
10425 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10426 # GNU and its variants, using gnu ld.so (Glibc)
10427 libltdl_cv_sys_dlopen_deplibs=yes
10428 ;;
10429 hpux10*|hpux11*)
10430 libltdl_cv_sys_dlopen_deplibs=yes
10431 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010432 interix*)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10434 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010435 irix[12345]*|irix6.[01]*)
10436 # Catch all versions of IRIX before 6.2, and indicate that we don't
10437 # know how it worked for any of those versions.
10438 libltdl_cv_sys_dlopen_deplibs=unknown
10439 ;;
10440 irix*)
10441 # The case above catches anything before 6.2, and it's known that
10442 # at 6.2 and later dlopen does load deplibs.
10443 libltdl_cv_sys_dlopen_deplibs=yes
10444 ;;
10445 netbsd*)
10446 libltdl_cv_sys_dlopen_deplibs=yes
10447 ;;
10448 openbsd*)
10449 libltdl_cv_sys_dlopen_deplibs=yes
10450 ;;
10451 osf[1234]*)
10452 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10453 # it did *not* use an RPATH in a shared library to find objects the
10454 # library depends on, so we explictly say `no'.
10455 libltdl_cv_sys_dlopen_deplibs=no
10456 ;;
10457 osf5.0|osf5.0a|osf5.1)
10458 # dlopen *does* load deplibs and with the right loader patch applied
10459 # it even uses RPATH in a shared library to search for shared objects
10460 # that the library depends on, but there's no easy way to know if that
10461 # patch is installed. Since this is the case, all we can really
10462 # say is unknown -- it depends on the patch being installed. If
10463 # it is, this changes to `yes'. Without it, it would be `no'.
10464 libltdl_cv_sys_dlopen_deplibs=unknown
10465 ;;
10466 osf*)
10467 # the two cases above should catch all versions of osf <= 5.1. Read
10468 # the comments above for what we know about them.
10469 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10470 # is used to find them so we can finally say `yes'.
10471 libltdl_cv_sys_dlopen_deplibs=yes
10472 ;;
10473 solaris*)
10474 libltdl_cv_sys_dlopen_deplibs=yes
10475 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000010476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10477 libltdl_cv_sys_dlopen_deplibs=yes
10478 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010479 esac
10480
10481fi
Reid Spencera773bd52006-08-04 18:18:08 +000010482{ echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10483echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010484if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10485
10486cat >>confdefs.h <<\_ACEOF
10487#define LTDL_DLOPEN_DEPLIBS 1
10488_ACEOF
10489
10490fi
10491
10492
10493for ac_header in argz.h
10494do
10495as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010496if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501fi
Reid Spencera773bd52006-08-04 18:18:08 +000010502ac_res=`eval echo '${'$as_ac_Header'}'`
10503 { echo "$as_me:$LINENO: result: $ac_res" >&5
10504echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010505else
10506 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010507{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010509cat >conftest.$ac_ext <<_ACEOF
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515$ac_includes_default
10516#include <$ac_header>
10517_ACEOF
10518rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010519if { (ac_try="$ac_compile"
10520case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523esac
10524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536esac
10537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010539 ac_status=$?
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010543 { (case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10546esac
10547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010549 ac_status=$?
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_header_compiler=yes
10553else
10554 echo "$as_me: failed program was:" >&5
10555sed 's/^/| /' conftest.$ac_ext >&5
10556
Reid Spencera773bd52006-08-04 18:18:08 +000010557 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010558fi
Reid Spencera773bd52006-08-04 18:18:08 +000010559
10560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10561{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10562echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010563
10564# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010565{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10566echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010567cat >conftest.$ac_ext <<_ACEOF
10568/* confdefs.h. */
10569_ACEOF
10570cat confdefs.h >>conftest.$ac_ext
10571cat >>conftest.$ac_ext <<_ACEOF
10572/* end confdefs.h. */
10573#include <$ac_header>
10574_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010575if { (ac_try="$ac_cpp conftest.$ac_ext"
10576case "(($ac_try" in
10577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10578 *) ac_try_echo=$ac_try;;
10579esac
10580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } >/dev/null; then
10588 if test -s conftest.err; then
10589 ac_cpp_err=$ac_c_preproc_warn_flag
10590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10591 else
10592 ac_cpp_err=
10593 fi
10594else
10595 ac_cpp_err=yes
10596fi
10597if test -z "$ac_cpp_err"; then
10598 ac_header_preproc=yes
10599else
10600 echo "$as_me: failed program was:" >&5
10601sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 ac_header_preproc=no
10604fi
Reid Spencera773bd52006-08-04 18:18:08 +000010605
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010606rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000010607{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10608echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010609
10610# So? What about this header?
10611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 yes:no: )
10613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10617 ac_header_preproc=yes
10618 ;;
10619 no:yes:* )
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000010632 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010633## ----------------------------------- ##
10634## Report this to llvmbugs@cs.uiuc.edu ##
10635## ----------------------------------- ##
10636_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000010637 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010638 ;;
10639esac
Reid Spencera773bd52006-08-04 18:18:08 +000010640{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10642if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645 eval "$as_ac_Header=\$ac_header_preproc"
10646fi
Reid Spencera773bd52006-08-04 18:18:08 +000010647ac_res=`eval echo '${'$as_ac_Header'}'`
10648 { echo "$as_me:$LINENO: result: $ac_res" >&5
10649echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010650
10651fi
10652if test `eval echo '${'$as_ac_Header'}'` = yes; then
10653 cat >>confdefs.h <<_ACEOF
10654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10655_ACEOF
10656
10657fi
10658
10659done
10660
10661
Reid Spencera773bd52006-08-04 18:18:08 +000010662{ echo "$as_me:$LINENO: checking for error_t" >&5
10663echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010664if test "${ac_cv_type_error_t+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h. */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h. */
10673#if HAVE_ARGZ_H
10674# include <argz.h>
10675#endif
10676
Reid Spencera773bd52006-08-04 18:18:08 +000010677typedef error_t ac__type_new_;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010678int
10679main ()
10680{
Reid Spencera773bd52006-08-04 18:18:08 +000010681if ((ac__type_new_ *) 0)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010682 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000010683if (sizeof (ac__type_new_))
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010684 return 0;
10685 ;
10686 return 0;
10687}
10688_ACEOF
10689rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010690if { (ac_try="$ac_compile"
10691case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10694esac
10695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010697 ac_status=$?
10698 grep -v '^ *+' conftest.er1 >conftest.err
10699 rm -f conftest.er1
10700 cat conftest.err >&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10704 { (case "(($ac_try" in
10705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10707esac
10708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010710 ac_status=$?
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); }; } &&
10713 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010714 { (case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10717esac
10718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010720 ac_status=$?
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 ac_cv_type_error_t=yes
10724else
10725 echo "$as_me: failed program was:" >&5
10726sed 's/^/| /' conftest.$ac_ext >&5
10727
Reid Spencera773bd52006-08-04 18:18:08 +000010728 ac_cv_type_error_t=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010729fi
Reid Spencera773bd52006-08-04 18:18:08 +000010730
10731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010732fi
Reid Spencera773bd52006-08-04 18:18:08 +000010733{ echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10734echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010735if test $ac_cv_type_error_t = yes; then
10736
10737cat >>confdefs.h <<_ACEOF
10738#define HAVE_ERROR_T 1
10739_ACEOF
10740
10741
10742else
10743
10744cat >>confdefs.h <<\_ACEOF
10745#define error_t int
10746_ACEOF
10747
10748fi
10749
10750
10751
10752
10753
10754
10755
10756for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10757do
10758as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010759{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10760echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10761if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010762 echo $ECHO_N "(cached) $ECHO_C" >&6
10763else
10764 cat >conftest.$ac_ext <<_ACEOF
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10772#define $ac_func innocuous_$ac_func
10773
10774/* System header to define __stub macros and hopefully few prototypes,
10775 which can conflict with char $ac_func (); below.
10776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10777 <limits.h> exists even on freestanding compilers. */
10778
10779#ifdef __STDC__
10780# include <limits.h>
10781#else
10782# include <assert.h>
10783#endif
10784
10785#undef $ac_func
10786
Reid Spencera773bd52006-08-04 18:18:08 +000010787/* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010790#ifdef __cplusplus
10791extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010792#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010793char $ac_func ();
10794/* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000010797#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010798choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010799#endif
10800
10801int
10802main ()
10803{
Reid Spencera773bd52006-08-04 18:18:08 +000010804return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010805 ;
10806 return 0;
10807}
10808_ACEOF
10809rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000010810if { (ac_try="$ac_link"
10811case "(($ac_try" in
10812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813 *) ac_try_echo=$ac_try;;
10814esac
10815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010817 ac_status=$?
10818 grep -v '^ *+' conftest.er1 >conftest.err
10819 rm -f conftest.er1
10820 cat conftest.err >&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824 { (case "(($ac_try" in
10825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10827esac
10828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010830 ac_status=$?
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; } &&
10833 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000010834 { (case "(($ac_try" in
10835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836 *) ac_try_echo=$ac_try;;
10837esac
10838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; }; then
10843 eval "$as_ac_var=yes"
10844else
10845 echo "$as_me: failed program was:" >&5
10846sed 's/^/| /' conftest.$ac_ext >&5
10847
Reid Spencera773bd52006-08-04 18:18:08 +000010848 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010849fi
Reid Spencera773bd52006-08-04 18:18:08 +000010850
10851rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010852 conftest$ac_exeext conftest.$ac_ext
10853fi
Reid Spencera773bd52006-08-04 18:18:08 +000010854ac_res=`eval echo '${'$as_ac_var'}'`
10855 { echo "$as_me:$LINENO: result: $ac_res" >&5
10856echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010857if test `eval echo '${'$as_ac_var'}'` = yes; then
10858 cat >>confdefs.h <<_ACEOF
10859#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10860_ACEOF
10861
10862fi
10863done
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10893 stdio.h unistd.h
10894do
10895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000010896if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10897 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901fi
Reid Spencera773bd52006-08-04 18:18:08 +000010902ac_res=`eval echo '${'$as_ac_Header'}'`
10903 { echo "$as_me:$LINENO: result: $ac_res" >&5
10904echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010905else
10906 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000010907{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10908echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010909cat >conftest.$ac_ext <<_ACEOF
10910/* confdefs.h. */
10911_ACEOF
10912cat confdefs.h >>conftest.$ac_ext
10913cat >>conftest.$ac_ext <<_ACEOF
10914/* end confdefs.h. */
10915$ac_includes_default
10916#include <$ac_header>
10917_ACEOF
10918rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000010919if { (ac_try="$ac_compile"
10920case "(($ac_try" in
10921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10922 *) ac_try_echo=$ac_try;;
10923esac
10924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10925 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000010932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10933 { (case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936esac
10937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010939 ac_status=$?
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; } &&
10942 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000010943 { (case "(($ac_try" in
10944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10946esac
10947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 ac_header_compiler=yes
10953else
10954 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
Reid Spencera773bd52006-08-04 18:18:08 +000010957 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010958fi
Reid Spencera773bd52006-08-04 18:18:08 +000010959
10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10962echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010963
10964# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000010965{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10966echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010967cat >conftest.$ac_ext <<_ACEOF
10968/* confdefs.h. */
10969_ACEOF
10970cat confdefs.h >>conftest.$ac_ext
10971cat >>conftest.$ac_ext <<_ACEOF
10972/* end confdefs.h. */
10973#include <$ac_header>
10974_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000010975if { (ac_try="$ac_cpp conftest.$ac_ext"
10976case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010982 ac_status=$?
10983 grep -v '^ *+' conftest.er1 >conftest.err
10984 rm -f conftest.er1
10985 cat conftest.err >&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); } >/dev/null; then
10988 if test -s conftest.err; then
10989 ac_cpp_err=$ac_c_preproc_warn_flag
10990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10991 else
10992 ac_cpp_err=
10993 fi
10994else
10995 ac_cpp_err=yes
10996fi
10997if test -z "$ac_cpp_err"; then
10998 ac_header_preproc=yes
10999else
11000 echo "$as_me: failed program was:" >&5
11001sed 's/^/| /' conftest.$ac_ext >&5
11002
11003 ac_header_preproc=no
11004fi
Reid Spencera773bd52006-08-04 18:18:08 +000011005
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011006rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011007{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11008echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011009
11010# So? What about this header?
11011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11012 yes:no: )
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11014echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11016echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11017 ac_header_preproc=yes
11018 ;;
11019 no:yes:* )
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11021echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11023echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11025echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11027echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11029echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11031echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011032 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011033## ----------------------------------- ##
11034## Report this to llvmbugs@cs.uiuc.edu ##
11035## ----------------------------------- ##
11036_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011037 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011038 ;;
11039esac
Reid Spencera773bd52006-08-04 18:18:08 +000011040{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11042if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011043 echo $ECHO_N "(cached) $ECHO_C" >&6
11044else
11045 eval "$as_ac_Header=\$ac_header_preproc"
11046fi
Reid Spencera773bd52006-08-04 18:18:08 +000011047ac_res=`eval echo '${'$as_ac_Header'}'`
11048 { echo "$as_me:$LINENO: result: $ac_res" >&5
11049echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011050
11051fi
11052if test `eval echo '${'$as_ac_Header'}'` = yes; then
11053 cat >>confdefs.h <<_ACEOF
11054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11055_ACEOF
11056
11057fi
11058
11059done
11060
11061
11062
11063
11064
11065for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11066do
11067as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073fi
Reid Spencera773bd52006-08-04 18:18:08 +000011074ac_res=`eval echo '${'$as_ac_Header'}'`
11075 { echo "$as_me:$LINENO: result: $ac_res" >&5
11076echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011077else
11078 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011079{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011081cat >conftest.$ac_ext <<_ACEOF
11082/* confdefs.h. */
11083_ACEOF
11084cat confdefs.h >>conftest.$ac_ext
11085cat >>conftest.$ac_ext <<_ACEOF
11086/* end confdefs.h. */
11087$ac_includes_default
11088#include <$ac_header>
11089_ACEOF
11090rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011091if { (ac_try="$ac_compile"
11092case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11095esac
11096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011098 ac_status=$?
11099 grep -v '^ *+' conftest.er1 >conftest.err
11100 rm -f conftest.er1
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11108esac
11109eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011115 { (case "(($ac_try" in
11116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11117 *) ac_try_echo=$ac_try;;
11118esac
11119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_header_compiler=yes
11125else
11126 echo "$as_me: failed program was:" >&5
11127sed 's/^/| /' conftest.$ac_ext >&5
11128
Reid Spencera773bd52006-08-04 18:18:08 +000011129 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011130fi
Reid Spencera773bd52006-08-04 18:18:08 +000011131
11132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11133{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11134echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011135
11136# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011137{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145#include <$ac_header>
11146_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011147if { (ac_try="$ac_cpp conftest.$ac_ext"
11148case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11151esac
11152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011154 ac_status=$?
11155 grep -v '^ *+' conftest.er1 >conftest.err
11156 rm -f conftest.er1
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } >/dev/null; then
11160 if test -s conftest.err; then
11161 ac_cpp_err=$ac_c_preproc_warn_flag
11162 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11163 else
11164 ac_cpp_err=
11165 fi
11166else
11167 ac_cpp_err=yes
11168fi
11169if test -z "$ac_cpp_err"; then
11170 ac_header_preproc=yes
11171else
11172 echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
11175 ac_header_preproc=no
11176fi
Reid Spencera773bd52006-08-04 18:18:08 +000011177
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011178rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11180echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011181
11182# So? What about this header?
11183case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11184 yes:no: )
11185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11189 ac_header_preproc=yes
11190 ;;
11191 no:yes:* )
11192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011204 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011205## ----------------------------------- ##
11206## Report this to llvmbugs@cs.uiuc.edu ##
11207## ----------------------------------- ##
11208_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011209 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011210 ;;
11211esac
Reid Spencera773bd52006-08-04 18:18:08 +000011212{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11214if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216else
11217 eval "$as_ac_Header=\$ac_header_preproc"
11218fi
Reid Spencera773bd52006-08-04 18:18:08 +000011219ac_res=`eval echo '${'$as_ac_Header'}'`
11220 { echo "$as_me:$LINENO: result: $ac_res" >&5
11221echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011222
11223fi
11224if test `eval echo '${'$as_ac_Header'}'` = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11227_ACEOF
11228
11229fi
11230
11231done
11232
11233
11234
11235for ac_header in string.h strings.h
11236do
11237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243fi
Reid Spencera773bd52006-08-04 18:18:08 +000011244ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011247else
11248 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000011249{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11250echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011251cat >conftest.$ac_ext <<_ACEOF
11252/* confdefs.h. */
11253_ACEOF
11254cat confdefs.h >>conftest.$ac_ext
11255cat >>conftest.$ac_ext <<_ACEOF
11256/* end confdefs.h. */
11257$ac_includes_default
11258#include <$ac_header>
11259_ACEOF
11260rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000011261if { (ac_try="$ac_compile"
11262case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265esac
11266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_compile") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011268 ac_status=$?
11269 grep -v '^ *+' conftest.er1 >conftest.err
11270 rm -f conftest.er1
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275 { (case "(($ac_try" in
11276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277 *) ac_try_echo=$ac_try;;
11278esac
11279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011281 ac_status=$?
11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); }; } &&
11284 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000011285 { (case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288esac
11289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011291 ac_status=$?
11292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); }; }; then
11294 ac_header_compiler=yes
11295else
11296 echo "$as_me: failed program was:" >&5
11297sed 's/^/| /' conftest.$ac_ext >&5
11298
Reid Spencera773bd52006-08-04 18:18:08 +000011299 ac_header_compiler=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011300fi
Reid Spencera773bd52006-08-04 18:18:08 +000011301
11302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11303{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11304echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011305
11306# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000011307{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11308echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011309cat >conftest.$ac_ext <<_ACEOF
11310/* confdefs.h. */
11311_ACEOF
11312cat confdefs.h >>conftest.$ac_ext
11313cat >>conftest.$ac_ext <<_ACEOF
11314/* end confdefs.h. */
11315#include <$ac_header>
11316_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000011317if { (ac_try="$ac_cpp conftest.$ac_ext"
11318case "(($ac_try" in
11319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11320 *) ac_try_echo=$ac_try;;
11321esac
11322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011324 ac_status=$?
11325 grep -v '^ *+' conftest.er1 >conftest.err
11326 rm -f conftest.er1
11327 cat conftest.err >&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); } >/dev/null; then
11330 if test -s conftest.err; then
11331 ac_cpp_err=$ac_c_preproc_warn_flag
11332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11333 else
11334 ac_cpp_err=
11335 fi
11336else
11337 ac_cpp_err=yes
11338fi
11339if test -z "$ac_cpp_err"; then
11340 ac_header_preproc=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345 ac_header_preproc=no
11346fi
Reid Spencera773bd52006-08-04 18:18:08 +000011347
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011348rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000011349{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011351
11352# So? What about this header?
11353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 yes:no: )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11360 ;;
11361 no:yes:* )
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000011374 ( cat <<\_ASBOX
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011375## ----------------------------------- ##
11376## Report this to llvmbugs@cs.uiuc.edu ##
11377## ----------------------------------- ##
11378_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000011379 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011380 ;;
11381esac
Reid Spencera773bd52006-08-04 18:18:08 +000011382{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11384if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011385 echo $ECHO_N "(cached) $ECHO_C" >&6
11386else
11387 eval "$as_ac_Header=\$ac_header_preproc"
11388fi
Reid Spencera773bd52006-08-04 18:18:08 +000011389ac_res=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011392
11393fi
11394if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397_ACEOF
11398 break
11399fi
11400
11401done
11402
11403
11404
11405
11406for ac_func in strchr index
11407do
11408as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011409{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11410echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011412 echo $ECHO_N "(cached) $ECHO_C" >&6
11413else
11414 cat >conftest.$ac_ext <<_ACEOF
11415/* confdefs.h. */
11416_ACEOF
11417cat confdefs.h >>conftest.$ac_ext
11418cat >>conftest.$ac_ext <<_ACEOF
11419/* end confdefs.h. */
11420/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422#define $ac_func innocuous_$ac_func
11423
11424/* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11428
11429#ifdef __STDC__
11430# include <limits.h>
11431#else
11432# include <assert.h>
11433#endif
11434
11435#undef $ac_func
11436
Reid Spencera773bd52006-08-04 18:18:08 +000011437/* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011440#ifdef __cplusplus
11441extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011442#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011443char $ac_func ();
11444/* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011447#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011448choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011449#endif
11450
11451int
11452main ()
11453{
Reid Spencera773bd52006-08-04 18:18:08 +000011454return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011460if { (ac_try="$ac_link"
11461case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464esac
11465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11474 { (case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011484 { (case "(($ac_try" in
11485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11487esac
11488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011490 ac_status=$?
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); }; }; then
11493 eval "$as_ac_var=yes"
11494else
11495 echo "$as_me: failed program was:" >&5
11496sed 's/^/| /' conftest.$ac_ext >&5
11497
Reid Spencera773bd52006-08-04 18:18:08 +000011498 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011499fi
Reid Spencera773bd52006-08-04 18:18:08 +000011500
11501rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011502 conftest$ac_exeext conftest.$ac_ext
11503fi
Reid Spencera773bd52006-08-04 18:18:08 +000011504ac_res=`eval echo '${'$as_ac_var'}'`
11505 { echo "$as_me:$LINENO: result: $ac_res" >&5
11506echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011507if test `eval echo '${'$as_ac_var'}'` = yes; then
11508 cat >>confdefs.h <<_ACEOF
11509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11510_ACEOF
11511 break
11512fi
11513done
11514
11515
11516
11517for ac_func in strrchr rindex
11518do
11519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011520{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11522if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
11525 cat >conftest.$ac_ext <<_ACEOF
11526/* confdefs.h. */
11527_ACEOF
11528cat confdefs.h >>conftest.$ac_ext
11529cat >>conftest.$ac_ext <<_ACEOF
11530/* end confdefs.h. */
11531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11533#define $ac_func innocuous_$ac_func
11534
11535/* System header to define __stub macros and hopefully few prototypes,
11536 which can conflict with char $ac_func (); below.
11537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11538 <limits.h> exists even on freestanding compilers. */
11539
11540#ifdef __STDC__
11541# include <limits.h>
11542#else
11543# include <assert.h>
11544#endif
11545
11546#undef $ac_func
11547
Reid Spencera773bd52006-08-04 18:18:08 +000011548/* Override any GCC internal prototype to avoid an error.
11549 Use char because int might match the return type of a GCC
11550 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011551#ifdef __cplusplus
11552extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011553#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011554char $ac_func ();
11555/* The GNU C library defines this for functions which it implements
11556 to always fail with ENOSYS. Some functions are actually named
11557 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011558#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011559choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011560#endif
11561
11562int
11563main ()
11564{
Reid Spencera773bd52006-08-04 18:18:08 +000011565return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011566 ;
11567 return 0;
11568}
11569_ACEOF
11570rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011571if { (ac_try="$ac_link"
11572case "(($ac_try" in
11573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11575esac
11576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11577 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11585 { (case "(($ac_try" in
11586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11587 *) ac_try_echo=$ac_try;;
11588esac
11589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11590 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011591 ac_status=$?
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011595 { (case "(($ac_try" in
11596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11598esac
11599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11600 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011601 ac_status=$?
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; }; then
11604 eval "$as_ac_var=yes"
11605else
11606 echo "$as_me: failed program was:" >&5
11607sed 's/^/| /' conftest.$ac_ext >&5
11608
Reid Spencera773bd52006-08-04 18:18:08 +000011609 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011610fi
Reid Spencera773bd52006-08-04 18:18:08 +000011611
11612rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011613 conftest$ac_exeext conftest.$ac_ext
11614fi
Reid Spencera773bd52006-08-04 18:18:08 +000011615ac_res=`eval echo '${'$as_ac_var'}'`
11616 { echo "$as_me:$LINENO: result: $ac_res" >&5
11617echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011618if test `eval echo '${'$as_ac_var'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11621_ACEOF
11622 break
11623fi
11624done
11625
11626
11627
11628for ac_func in memcpy bcopy
11629do
11630as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011631{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11632echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11633if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011634 echo $ECHO_N "(cached) $ECHO_C" >&6
11635else
11636 cat >conftest.$ac_ext <<_ACEOF
11637/* confdefs.h. */
11638_ACEOF
11639cat confdefs.h >>conftest.$ac_ext
11640cat >>conftest.$ac_ext <<_ACEOF
11641/* end confdefs.h. */
11642/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11644#define $ac_func innocuous_$ac_func
11645
11646/* System header to define __stub macros and hopefully few prototypes,
11647 which can conflict with char $ac_func (); below.
11648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11649 <limits.h> exists even on freestanding compilers. */
11650
11651#ifdef __STDC__
11652# include <limits.h>
11653#else
11654# include <assert.h>
11655#endif
11656
11657#undef $ac_func
11658
Reid Spencera773bd52006-08-04 18:18:08 +000011659/* Override any GCC internal prototype to avoid an error.
11660 Use char because int might match the return type of a GCC
11661 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011662#ifdef __cplusplus
11663extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011664#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011665char $ac_func ();
11666/* The GNU C library defines this for functions which it implements
11667 to always fail with ENOSYS. Some functions are actually named
11668 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011669#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011670choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011671#endif
11672
11673int
11674main ()
11675{
Reid Spencera773bd52006-08-04 18:18:08 +000011676return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011677 ;
11678 return 0;
11679}
11680_ACEOF
11681rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011682if { (ac_try="$ac_link"
11683case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686esac
11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709esac
11710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 eval "$as_ac_var=yes"
11716else
11717 echo "$as_me: failed program was:" >&5
11718sed 's/^/| /' conftest.$ac_ext >&5
11719
Reid Spencera773bd52006-08-04 18:18:08 +000011720 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011721fi
Reid Spencera773bd52006-08-04 18:18:08 +000011722
11723rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011724 conftest$ac_exeext conftest.$ac_ext
11725fi
Reid Spencera773bd52006-08-04 18:18:08 +000011726ac_res=`eval echo '${'$as_ac_var'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011729if test `eval echo '${'$as_ac_var'}'` = yes; then
11730 cat >>confdefs.h <<_ACEOF
11731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11732_ACEOF
11733 break
11734fi
11735done
11736
11737
11738
11739for ac_func in memmove strcmp
11740do
11741as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011742{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11743echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11744if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011745 echo $ECHO_N "(cached) $ECHO_C" >&6
11746else
11747 cat >conftest.$ac_ext <<_ACEOF
11748/* confdefs.h. */
11749_ACEOF
11750cat confdefs.h >>conftest.$ac_ext
11751cat >>conftest.$ac_ext <<_ACEOF
11752/* end confdefs.h. */
11753/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11755#define $ac_func innocuous_$ac_func
11756
11757/* System header to define __stub macros and hopefully few prototypes,
11758 which can conflict with char $ac_func (); below.
11759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11760 <limits.h> exists even on freestanding compilers. */
11761
11762#ifdef __STDC__
11763# include <limits.h>
11764#else
11765# include <assert.h>
11766#endif
11767
11768#undef $ac_func
11769
Reid Spencera773bd52006-08-04 18:18:08 +000011770/* Override any GCC internal prototype to avoid an error.
11771 Use char because int might match the return type of a GCC
11772 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011773#ifdef __cplusplus
11774extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011775#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011776char $ac_func ();
11777/* The GNU C library defines this for functions which it implements
11778 to always fail with ENOSYS. Some functions are actually named
11779 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011780#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011781choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011782#endif
11783
11784int
11785main ()
11786{
Reid Spencera773bd52006-08-04 18:18:08 +000011787return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011788 ;
11789 return 0;
11790}
11791_ACEOF
11792rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011793if { (ac_try="$ac_link"
11794case "(($ac_try" in
11795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11797esac
11798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11810esac
11811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011813 ac_status=$?
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; } &&
11816 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 eval "$as_ac_var=yes"
11827else
11828 echo "$as_me: failed program was:" >&5
11829sed 's/^/| /' conftest.$ac_ext >&5
11830
Reid Spencera773bd52006-08-04 18:18:08 +000011831 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011832fi
Reid Spencera773bd52006-08-04 18:18:08 +000011833
11834rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011835 conftest$ac_exeext conftest.$ac_ext
11836fi
Reid Spencera773bd52006-08-04 18:18:08 +000011837ac_res=`eval echo '${'$as_ac_var'}'`
11838 { echo "$as_me:$LINENO: result: $ac_res" >&5
11839echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011840if test `eval echo '${'$as_ac_var'}'` = yes; then
11841 cat >>confdefs.h <<_ACEOF
11842#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11843_ACEOF
11844
11845fi
11846done
11847
11848
11849
11850
11851for ac_func in closedir opendir readdir
11852do
11853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000011854{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011857 echo $ECHO_N "(cached) $ECHO_C" >&6
11858else
11859 cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867#define $ac_func innocuous_$ac_func
11868
11869/* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11873
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879
11880#undef $ac_func
11881
Reid Spencera773bd52006-08-04 18:18:08 +000011882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011885#ifdef __cplusplus
11886extern "C"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011887#endif
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011888char $ac_func ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000011892#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011893choke me
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011894#endif
11895
11896int
11897main ()
11898{
Reid Spencera773bd52006-08-04 18:18:08 +000011899return $ac_func ();
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000011905if { (ac_try="$ac_link"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11911 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000011918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11919 { (case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922esac
11923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000011929 { (case "(($ac_try" in
11930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931 *) ac_try_echo=$ac_try;;
11932esac
11933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011935 ac_status=$?
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 eval "$as_ac_var=yes"
11939else
11940 echo "$as_me: failed program was:" >&5
11941sed 's/^/| /' conftest.$ac_ext >&5
11942
Reid Spencera773bd52006-08-04 18:18:08 +000011943 eval "$as_ac_var=no"
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011944fi
Reid Spencera773bd52006-08-04 18:18:08 +000011945
11946rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011947 conftest$ac_exeext conftest.$ac_ext
11948fi
Reid Spencera773bd52006-08-04 18:18:08 +000011949ac_res=`eval echo '${'$as_ac_var'}'`
11950 { echo "$as_me:$LINENO: result: $ac_res" >&5
11951echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011952if test `eval echo '${'$as_ac_var'}'` = yes; then
11953 cat >>confdefs.h <<_ACEOF
11954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955_ACEOF
11956
11957fi
11958done
11959
11960
Reid Spencera773bd52006-08-04 18:18:08 +000011961# Check whether --enable-shared was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011962if test "${enable_shared+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011963 enableval=$enable_shared; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011964 case $enableval in
11965 yes) enable_shared=yes ;;
11966 no) enable_shared=no ;;
11967 *)
11968 enable_shared=no
11969 # Look at the argument we got. We use all the common list separators.
11970 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11971 for pkg in $enableval; do
11972 IFS="$lt_save_ifs"
11973 if test "X$pkg" = "X$p"; then
11974 enable_shared=yes
11975 fi
11976 done
11977 IFS="$lt_save_ifs"
11978 ;;
11979 esac
11980else
11981 enable_shared=yes
Reid Spencera773bd52006-08-04 18:18:08 +000011982fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011983
Reid Spencera773bd52006-08-04 18:18:08 +000011984
11985# Check whether --enable-static was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011986if test "${enable_static+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000011987 enableval=$enable_static; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011988 case $enableval in
11989 yes) enable_static=yes ;;
11990 no) enable_static=no ;;
11991 *)
11992 enable_static=no
11993 # Look at the argument we got. We use all the common list separators.
11994 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11995 for pkg in $enableval; do
11996 IFS="$lt_save_ifs"
11997 if test "X$pkg" = "X$p"; then
11998 enable_static=yes
11999 fi
12000 done
12001 IFS="$lt_save_ifs"
12002 ;;
12003 esac
12004else
12005 enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012006fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012007
Reid Spencera773bd52006-08-04 18:18:08 +000012008
12009# Check whether --enable-fast-install was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012010if test "${enable_fast_install+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012011 enableval=$enable_fast_install; p=${PACKAGE-default}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012012 case $enableval in
12013 yes) enable_fast_install=yes ;;
12014 no) enable_fast_install=no ;;
12015 *)
12016 enable_fast_install=no
12017 # Look at the argument we got. We use all the common list separators.
12018 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12019 for pkg in $enableval; do
12020 IFS="$lt_save_ifs"
12021 if test "X$pkg" = "X$p"; then
12022 enable_fast_install=yes
12023 fi
12024 done
12025 IFS="$lt_save_ifs"
12026 ;;
12027 esac
12028else
12029 enable_fast_install=yes
Reid Spencera773bd52006-08-04 18:18:08 +000012030fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012031
Reid Spencera773bd52006-08-04 18:18:08 +000012032
12033{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
12034echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012035if test "${lt_cv_path_SED+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 # Loop through the user's path and test for sed and gsed.
12039# Then use that list of sed's as ones to test for truncation.
12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041for as_dir in $PATH
12042do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 for lt_ac_prog in sed gsed; do
12046 for ac_exec_ext in '' $ac_executable_extensions; do
12047 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12048 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12049 fi
12050 done
12051 done
12052done
12053lt_ac_max=0
12054lt_ac_count=0
12055# Add /usr/xpg4/bin/sed as it is typically found on Solaris
12056# along with /bin/sed that truncates output.
12057for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
Reid Spencera773bd52006-08-04 18:18:08 +000012058 test ! -f $lt_ac_sed && continue
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012059 cat /dev/null > conftest.in
12060 lt_ac_count=0
12061 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
12062 # Check for GNU sed and select it if it is found.
12063 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
12064 lt_cv_path_SED=$lt_ac_sed
12065 break
12066 fi
12067 while true; do
12068 cat conftest.in conftest.in >conftest.tmp
12069 mv conftest.tmp conftest.in
12070 cp conftest.in conftest.nl
12071 echo >>conftest.nl
12072 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
12073 cmp -s conftest.out conftest.nl || break
12074 # 10000 chars as input seems more than enough
12075 test $lt_ac_count -gt 10 && break
12076 lt_ac_count=`expr $lt_ac_count + 1`
12077 if test $lt_ac_count -gt $lt_ac_max; then
12078 lt_ac_max=$lt_ac_count
12079 lt_cv_path_SED=$lt_ac_sed
12080 fi
12081 done
12082done
12083
12084fi
12085
12086SED=$lt_cv_path_SED
Reid Spencera773bd52006-08-04 18:18:08 +000012087{ echo "$as_me:$LINENO: result: $SED" >&5
12088echo "${ECHO_T}$SED" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012089
12090
Reid Spencera773bd52006-08-04 18:18:08 +000012091# Check whether --with-gnu-ld was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012092if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012094else
12095 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000012096fi
12097
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012098ac_prog=ld
12099if test "$GCC" = yes; then
12100 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000012101 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
12102echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012103 case $host in
12104 *-*-mingw*)
12105 # gcc leaves a trailing carriage return which upsets mingw
12106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12107 *)
12108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12109 esac
12110 case $ac_prog in
12111 # Accept absolute paths.
12112 [\\/]* | ?:[\\/]*)
12113 re_direlt='/[^/][^/]*/\.\./'
12114 # Canonicalize the pathname of ld
12115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
12116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
12118 done
12119 test -z "$LD" && LD="$ac_prog"
12120 ;;
12121 "")
12122 # If it fails, then pretend we aren't using GCC.
12123 ac_prog=ld
12124 ;;
12125 *)
12126 # If it is relative, then search for the first ld in PATH.
12127 with_gnu_ld=unknown
12128 ;;
12129 esac
12130elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000012131 { echo "$as_me:$LINENO: checking for GNU ld" >&5
12132echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012133else
Reid Spencera773bd52006-08-04 18:18:08 +000012134 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
12135echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012136fi
12137if test "${lt_cv_path_LD+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140 if test -z "$LD"; then
12141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12142 for ac_dir in $PATH; do
12143 IFS="$lt_save_ifs"
12144 test -z "$ac_dir" && ac_dir=.
12145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12146 lt_cv_path_LD="$ac_dir/$ac_prog"
12147 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000012148 # but apparently some variants of GNU ld only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012149 # Break only if it was the GNU/non-GNU ld that we prefer.
12150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12151 *GNU* | *'with BFD'*)
12152 test "$with_gnu_ld" != no && break
12153 ;;
12154 *)
12155 test "$with_gnu_ld" != yes && break
12156 ;;
12157 esac
12158 fi
12159 done
12160 IFS="$lt_save_ifs"
12161else
12162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12163fi
12164fi
12165
12166LD="$lt_cv_path_LD"
12167if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012168 { echo "$as_me:$LINENO: result: $LD" >&5
12169echo "${ECHO_T}$LD" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012170else
Reid Spencera773bd52006-08-04 18:18:08 +000012171 { echo "$as_me:$LINENO: result: no" >&5
12172echo "${ECHO_T}no" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012173fi
12174test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12175echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12176 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000012177{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12178echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012179if test "${lt_cv_prog_gnu_ld+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
Reid Spencera773bd52006-08-04 18:18:08 +000012182 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012183case `$LD -v 2>&1 </dev/null` in
12184*GNU* | *'with BFD'*)
12185 lt_cv_prog_gnu_ld=yes
12186 ;;
12187*)
12188 lt_cv_prog_gnu_ld=no
12189 ;;
12190esac
12191fi
Reid Spencera773bd52006-08-04 18:18:08 +000012192{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12193echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012194with_gnu_ld=$lt_cv_prog_gnu_ld
12195
12196
Reid Spencera773bd52006-08-04 18:18:08 +000012197{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
12198echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012199if test "${lt_cv_ld_reload_flag+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201else
12202 lt_cv_ld_reload_flag='-r'
12203fi
Reid Spencera773bd52006-08-04 18:18:08 +000012204{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
12205echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012206reload_flag=$lt_cv_ld_reload_flag
12207case $reload_flag in
12208"" | " "*) ;;
12209*) reload_flag=" $reload_flag" ;;
12210esac
12211reload_cmds='$LD$reload_flag -o $output$reload_objs'
12212case $host_os in
12213 darwin*)
12214 if test "$GCC" = yes; then
Evan Chengf4334c72006-08-09 05:40:14 +000012215 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r $compiler_flags -o $output$reload_objs'
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012216 else
12217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12218 fi
12219 ;;
12220esac
12221
Reid Spencera773bd52006-08-04 18:18:08 +000012222{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
12223echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012224if test "${lt_cv_deplibs_check_method+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226else
12227 lt_cv_file_magic_cmd='$MAGIC_CMD'
12228lt_cv_file_magic_test_file=
12229lt_cv_deplibs_check_method='unknown'
12230# Need to set the preceding variable on all platforms that support
12231# interlibrary dependencies.
12232# 'none' -- dependencies not supported.
12233# `unknown' -- same as none, but documents that we really don't know.
12234# 'pass_all' -- all dependencies passed with no checks.
12235# 'test_compile' -- check by making test program.
12236# 'file_magic [[regex]]' -- check by looking for files in library path
12237# which responds to the $file_magic_cmd with a given extended regex.
12238# If you have `file' or equivalent on your system and you're not sure
12239# whether `pass_all' will *always* work, you probably want this one.
12240
12241case $host_os in
12242aix4* | aix5*)
12243 lt_cv_deplibs_check_method=pass_all
12244 ;;
12245
12246beos*)
12247 lt_cv_deplibs_check_method=pass_all
12248 ;;
12249
12250bsdi[45]*)
12251 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12252 lt_cv_file_magic_cmd='/usr/bin/file -L'
12253 lt_cv_file_magic_test_file=/shlib/libc.so
12254 ;;
12255
12256cygwin*)
12257 # func_win32_libid is a shell function defined in ltmain.sh
12258 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12259 lt_cv_file_magic_cmd='func_win32_libid'
12260 ;;
12261
12262mingw* | pw32*)
12263 # Base MSYS/MinGW do not provide the 'file' command needed by
12264 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
12265 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12266 lt_cv_file_magic_cmd='$OBJDUMP -f'
12267 ;;
12268
12269darwin* | rhapsody*)
12270 lt_cv_deplibs_check_method=pass_all
12271 ;;
12272
Reid Spencera773bd52006-08-04 18:18:08 +000012273freebsd* | kfreebsd*-gnu | dragonfly*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12275 case $host_cpu in
12276 i*86 )
12277 # Not sure whether the presence of OpenBSD here was a mistake.
12278 # Let's accept both of them until this is cleared up.
Reid Spencera773bd52006-08-04 18:18:08 +000012279 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 +000012280 lt_cv_file_magic_cmd=/usr/bin/file
12281 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12282 ;;
12283 esac
12284 else
12285 lt_cv_deplibs_check_method=pass_all
12286 fi
12287 ;;
12288
12289gnu*)
12290 lt_cv_deplibs_check_method=pass_all
12291 ;;
12292
12293hpux10.20* | hpux11*)
12294 lt_cv_file_magic_cmd=/usr/bin/file
Reid Spencera773bd52006-08-04 18:18:08 +000012295 case $host_cpu in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012296 ia64*)
12297 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12298 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12299 ;;
12300 hppa*64*)
12301 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]'
12302 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12303 ;;
12304 *)
12305 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12306 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12307 ;;
12308 esac
12309 ;;
12310
Reid Spencera773bd52006-08-04 18:18:08 +000012311interix3*)
12312 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12314 ;;
12315
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012316irix5* | irix6* | nonstopux*)
12317 case $LD in
12318 *-32|*"-32 ") libmagic=32-bit;;
12319 *-n32|*"-n32 ") libmagic=N32;;
12320 *-64|*"-64 ") libmagic=64-bit;;
12321 *) libmagic=never-match;;
12322 esac
12323 lt_cv_deplibs_check_method=pass_all
12324 ;;
12325
12326# This must be Linux ELF.
12327linux*)
12328 lt_cv_deplibs_check_method=pass_all
12329 ;;
12330
12331netbsd*)
12332 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
12333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12334 else
12335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12336 fi
12337 ;;
12338
12339newos6*)
12340 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12341 lt_cv_file_magic_cmd=/usr/bin/file
12342 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12343 ;;
12344
12345nto-qnx*)
12346 lt_cv_deplibs_check_method=unknown
12347 ;;
12348
12349openbsd*)
12350 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12351 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12352 else
12353 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12354 fi
12355 ;;
12356
12357osf3* | osf4* | osf5*)
12358 lt_cv_deplibs_check_method=pass_all
12359 ;;
12360
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012361solaris*)
12362 lt_cv_deplibs_check_method=pass_all
12363 ;;
12364
Reid Spencera773bd52006-08-04 18:18:08 +000012365sysv4 | sysv4.3*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012366 case $host_vendor in
12367 motorola)
12368 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]'
12369 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12370 ;;
12371 ncr)
12372 lt_cv_deplibs_check_method=pass_all
12373 ;;
12374 sequent)
12375 lt_cv_file_magic_cmd='/bin/file'
12376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12377 ;;
12378 sni)
12379 lt_cv_file_magic_cmd='/bin/file'
12380 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12381 lt_cv_file_magic_test_file=/lib/libc.so
12382 ;;
12383 siemens)
12384 lt_cv_deplibs_check_method=pass_all
12385 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012386 pc)
12387 lt_cv_deplibs_check_method=pass_all
12388 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012389 esac
12390 ;;
12391
Reid Spencera773bd52006-08-04 18:18:08 +000012392sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012393 lt_cv_deplibs_check_method=pass_all
12394 ;;
12395esac
12396
12397fi
Reid Spencera773bd52006-08-04 18:18:08 +000012398{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
12399echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012400file_magic_cmd=$lt_cv_file_magic_cmd
12401deplibs_check_method=$lt_cv_deplibs_check_method
12402test -z "$deplibs_check_method" && deplibs_check_method=unknown
12403
12404
12405
12406# If no C compiler was specified, use CC.
12407LTCC=${LTCC-"$CC"}
12408
Reid Spencera773bd52006-08-04 18:18:08 +000012409# If no C compiler flags were specified, use CFLAGS.
12410LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12411
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012412# Allow CC to be a program name with arguments.
12413compiler=$CC
12414
Reid Spencera773bd52006-08-04 18:18:08 +000012415# Check whether --enable-libtool-lock was given.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012416if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000012417 enableval=$enable_libtool_lock;
12418fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012419
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012420test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12421
12422# Some flags need to be propagated to the compiler or linker for good
12423# libtool support.
12424case $host in
12425ia64-*-hpux*)
12426 # Find out which ABI we are using.
12427 echo 'int i;' > conftest.$ac_ext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12429 (eval $ac_compile) 2>&5
12430 ac_status=$?
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); }; then
12433 case `/usr/bin/file conftest.$ac_objext` in
12434 *ELF-32*)
12435 HPUX_IA64_MODE="32"
12436 ;;
12437 *ELF-64*)
12438 HPUX_IA64_MODE="64"
12439 ;;
12440 esac
12441 fi
12442 rm -rf conftest*
12443 ;;
12444*-*-irix6*)
12445 # Find out which ABI we are using.
Reid Spencer1000b732006-12-01 00:37:14 +000012446 echo '#line 12446 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; then
12452 if test "$lt_cv_prog_gnu_ld" = yes; then
12453 case `/usr/bin/file conftest.$ac_objext` in
12454 *32-bit*)
12455 LD="${LD-ld} -melf32bsmip"
12456 ;;
12457 *N32*)
12458 LD="${LD-ld} -melf32bmipn32"
12459 ;;
12460 *64-bit*)
12461 LD="${LD-ld} -melf64bmip"
12462 ;;
12463 esac
12464 else
12465 case `/usr/bin/file conftest.$ac_objext` in
12466 *32-bit*)
12467 LD="${LD-ld} -32"
12468 ;;
12469 *N32*)
12470 LD="${LD-ld} -n32"
12471 ;;
12472 *64-bit*)
12473 LD="${LD-ld} -64"
12474 ;;
12475 esac
12476 fi
12477 fi
12478 rm -rf conftest*
12479 ;;
12480
12481x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
12482 # Find out which ABI we are using.
12483 echo 'int i;' > conftest.$ac_ext
12484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12485 (eval $ac_compile) 2>&5
12486 ac_status=$?
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); }; then
Reid Spencera773bd52006-08-04 18:18:08 +000012489 case `/usr/bin/file conftest.o` in
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012490 *32-bit*)
12491 case $host in
12492 x86_64-*linux*)
12493 LD="${LD-ld} -m elf_i386"
12494 ;;
12495 ppc64-*linux*|powerpc64-*linux*)
12496 LD="${LD-ld} -m elf32ppclinux"
12497 ;;
12498 s390x-*linux*)
12499 LD="${LD-ld} -m elf_s390"
12500 ;;
12501 sparc64-*linux*)
12502 LD="${LD-ld} -m elf32_sparc"
12503 ;;
12504 esac
12505 ;;
12506 *64-bit*)
12507 case $host in
12508 x86_64-*linux*)
12509 LD="${LD-ld} -m elf_x86_64"
12510 ;;
12511 ppc*-*linux*|powerpc*-*linux*)
12512 LD="${LD-ld} -m elf64ppc"
12513 ;;
12514 s390*-*linux*)
12515 LD="${LD-ld} -m elf64_s390"
12516 ;;
12517 sparc*-*linux*)
12518 LD="${LD-ld} -m elf64_sparc"
12519 ;;
12520 esac
12521 ;;
12522 esac
12523 fi
12524 rm -rf conftest*
12525 ;;
12526
12527*-*-sco3.2v5*)
12528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12529 SAVE_CFLAGS="$CFLAGS"
12530 CFLAGS="$CFLAGS -belf"
Reid Spencera773bd52006-08-04 18:18:08 +000012531 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
12532echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012533if test "${lt_cv_cc_needs_belf+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
12536 ac_ext=c
12537ac_cpp='$CPP $CPPFLAGS'
12538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540ac_compiler_gnu=$ac_cv_c_compiler_gnu
12541
12542 cat >conftest.$ac_ext <<_ACEOF
12543/* confdefs.h. */
12544_ACEOF
12545cat confdefs.h >>conftest.$ac_ext
12546cat >>conftest.$ac_ext <<_ACEOF
12547/* end confdefs.h. */
12548
Reid Spencera773bd52006-08-04 18:18:08 +000012549int
12550main ()
12551{
12552
12553 ;
12554 return 0;
12555}
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012556_ACEOF
12557rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000012558if { (ac_try="$ac_link"
12559case "(($ac_try" in
12560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12562esac
12563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_link") 2>conftest.er1
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000012571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12572 { (case "(($ac_try" in
12573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12574 *) ac_try_echo=$ac_try;;
12575esac
12576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12577 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; } &&
12581 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000012582 { (case "(($ac_try" in
12583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12584 *) ac_try_echo=$ac_try;;
12585esac
12586eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12587 (eval "$ac_try") 2>&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 lt_cv_cc_needs_belf=yes
12592else
12593 echo "$as_me: failed program was:" >&5
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
Reid Spencera773bd52006-08-04 18:18:08 +000012596 lt_cv_cc_needs_belf=no
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012597fi
Reid Spencera773bd52006-08-04 18:18:08 +000012598
12599rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012600 conftest$ac_exeext conftest.$ac_ext
12601 ac_ext=c
12602ac_cpp='$CPP $CPPFLAGS'
12603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12605ac_compiler_gnu=$ac_cv_c_compiler_gnu
12606
12607fi
Reid Spencera773bd52006-08-04 18:18:08 +000012608{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
12609echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012610 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12611 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12612 CFLAGS="$SAVE_CFLAGS"
12613 fi
12614 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000012615sparc*-*solaris*)
12616 # Find out which ABI we are using.
12617 echo 'int i;' > conftest.$ac_ext
12618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12619 (eval $ac_compile) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; then
12623 case `/usr/bin/file conftest.o` in
12624 *64-bit*)
12625 case $lt_cv_prog_gnu_ld in
12626 yes*) LD="${LD-ld} -m elf64_sparc" ;;
12627 *) LD="${LD-ld} -64" ;;
12628 esac
12629 ;;
12630 esac
12631 fi
12632 rm -rf conftest*
12633 ;;
12634
Reid Spencer2bc7bd52004-11-29 12:29:58 +000012635
12636esac
12637
12638need_locks="$enable_libtool_lock"
12639
12640
Reid Spencer2706f8c2004-09-19 23:53:36 +000012641
12642
12643if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12644 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12645 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000012646 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012647ac_cpp='$CXXCPP $CPPFLAGS'
12648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencera773bd52006-08-04 18:18:08 +000012651{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12652echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012653if test -z "$CXXCPP"; then
12654 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656else
John Criswell47fdd832003-07-14 16:52:07 +000012657 # Double quotes because CXXCPP needs to be expanded
12658 for CXXCPP in "$CXX -E" "/lib/cpp"
12659 do
12660 ac_preproc_ok=false
12661for ac_cxx_preproc_warn_flag in '' yes
12662do
12663 # Use a header file that comes with gcc, so configuring glibc
12664 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12666 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012667 # On the NeXT, cc -E runs the code through the compiler's parser,
12668 # not just through cpp. "Syntax error" is here to catch this case.
12669 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012670/* confdefs.h. */
12671_ACEOF
12672cat confdefs.h >>conftest.$ac_ext
12673cat >>conftest.$ac_ext <<_ACEOF
12674/* end confdefs.h. */
12675#ifdef __STDC__
12676# include <limits.h>
12677#else
12678# include <assert.h>
12679#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012680 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012681_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012682if { (ac_try="$ac_cpp conftest.$ac_ext"
12683case "(($ac_try" in
12684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12685 *) ac_try_echo=$ac_try;;
12686esac
12687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012689 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012690 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012691 rm -f conftest.er1
12692 cat conftest.err >&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } >/dev/null; then
12695 if test -s conftest.err; then
12696 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012697 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000012698 else
John Criswell47fdd832003-07-14 16:52:07 +000012699 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000012700 fi
John Criswell47fdd832003-07-14 16:52:07 +000012701else
12702 ac_cpp_err=yes
12703fi
12704if test -z "$ac_cpp_err"; then
12705 :
12706else
12707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012708sed 's/^/| /' conftest.$ac_ext >&5
12709
John Criswell47fdd832003-07-14 16:52:07 +000012710 # Broken: fails on valid input.
12711continue
12712fi
Reid Spencera773bd52006-08-04 18:18:08 +000012713
John Criswell47fdd832003-07-14 16:52:07 +000012714rm -f conftest.err conftest.$ac_ext
12715
Reid Spencera773bd52006-08-04 18:18:08 +000012716 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012717 # can be detected and how.
12718 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012724#include <ac_nonexistent.h>
12725_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012726if { (ac_try="$ac_cpp conftest.$ac_ext"
12727case "(($ac_try" in
12728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729 *) ac_try_echo=$ac_try;;
12730esac
12731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012733 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012734 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } >/dev/null; then
12739 if test -s conftest.err; then
12740 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012741 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012742 else
12743 ac_cpp_err=
12744 fi
12745else
12746 ac_cpp_err=yes
12747fi
12748if test -z "$ac_cpp_err"; then
12749 # Broken: success on invalid input.
12750continue
12751else
12752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012753sed 's/^/| /' conftest.$ac_ext >&5
12754
John Criswell47fdd832003-07-14 16:52:07 +000012755 # Passes both tests.
12756ac_preproc_ok=:
12757break
12758fi
Reid Spencera773bd52006-08-04 18:18:08 +000012759
John Criswell47fdd832003-07-14 16:52:07 +000012760rm -f conftest.err conftest.$ac_ext
12761
12762done
12763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12764rm -f conftest.err conftest.$ac_ext
12765if $ac_preproc_ok; then
12766 break
John Criswell7a73b802003-06-30 21:59:07 +000012767fi
12768
John Criswell47fdd832003-07-14 16:52:07 +000012769 done
12770 ac_cv_prog_CXXCPP=$CXXCPP
12771
12772fi
12773 CXXCPP=$ac_cv_prog_CXXCPP
12774else
12775 ac_cv_prog_CXXCPP=$CXXCPP
12776fi
Reid Spencera773bd52006-08-04 18:18:08 +000012777{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
12778echo "${ECHO_T}$CXXCPP" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012779ac_preproc_ok=false
12780for ac_cxx_preproc_warn_flag in '' yes
12781do
12782 # Use a header file that comes with gcc, so configuring glibc
12783 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000012784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12785 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000012786 # On the NeXT, cc -E runs the code through the compiler's parser,
12787 # not just through cpp. "Syntax error" is here to catch this case.
12788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012789/* confdefs.h. */
12790_ACEOF
12791cat confdefs.h >>conftest.$ac_ext
12792cat >>conftest.$ac_ext <<_ACEOF
12793/* end confdefs.h. */
12794#ifdef __STDC__
12795# include <limits.h>
12796#else
12797# include <assert.h>
12798#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012799 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000012800_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012801if { (ac_try="$ac_cpp conftest.$ac_ext"
12802case "(($ac_try" in
12803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12804 *) ac_try_echo=$ac_try;;
12805esac
12806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012808 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012809 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012810 rm -f conftest.er1
12811 cat conftest.err >&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); } >/dev/null; then
12814 if test -s conftest.err; then
12815 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012817 else
12818 ac_cpp_err=
12819 fi
12820else
12821 ac_cpp_err=yes
12822fi
12823if test -z "$ac_cpp_err"; then
12824 :
12825else
12826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012827sed 's/^/| /' conftest.$ac_ext >&5
12828
John Criswell47fdd832003-07-14 16:52:07 +000012829 # Broken: fails on valid input.
12830continue
12831fi
Reid Spencera773bd52006-08-04 18:18:08 +000012832
John Criswell47fdd832003-07-14 16:52:07 +000012833rm -f conftest.err conftest.$ac_ext
12834
Reid Spencera773bd52006-08-04 18:18:08 +000012835 # OK, works on sane cases. Now check whether nonexistent headers
John Criswell47fdd832003-07-14 16:52:07 +000012836 # can be detected and how.
12837 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012838/* confdefs.h. */
12839_ACEOF
12840cat confdefs.h >>conftest.$ac_ext
12841cat >>conftest.$ac_ext <<_ACEOF
12842/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012843#include <ac_nonexistent.h>
12844_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000012845if { (ac_try="$ac_cpp conftest.$ac_ext"
12846case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849esac
12850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012852 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000012853 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000012854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } >/dev/null; then
12858 if test -s conftest.err; then
12859 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000012860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000012861 else
12862 ac_cpp_err=
12863 fi
12864else
12865 ac_cpp_err=yes
12866fi
12867if test -z "$ac_cpp_err"; then
12868 # Broken: success on invalid input.
12869continue
12870else
12871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012872sed 's/^/| /' conftest.$ac_ext >&5
12873
John Criswell47fdd832003-07-14 16:52:07 +000012874 # Passes both tests.
12875ac_preproc_ok=:
12876break
12877fi
Reid Spencera773bd52006-08-04 18:18:08 +000012878
John Criswell47fdd832003-07-14 16:52:07 +000012879rm -f conftest.err conftest.$ac_ext
12880
12881done
12882# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12883rm -f conftest.err conftest.$ac_ext
12884if $ac_preproc_ok; then
12885 :
12886else
John Criswell0c38eaf2003-09-10 15:17:25 +000012887 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12888See \`config.log' for more details." >&5
12889echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
12890See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000012891 { (exit 1); exit 1; }; }
12892fi
12893
Reid Spencera773bd52006-08-04 18:18:08 +000012894ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000012895ac_cpp='$CXXCPP $CPPFLAGS'
12896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12899
Reid Spencer2706f8c2004-09-19 23:53:36 +000012900fi
12901
John Criswell47fdd832003-07-14 16:52:07 +000012902
12903ac_ext=f
12904ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12905ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12906ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12907if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012908 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 +000012909 do
12910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012912{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012914if test "${ac_cv_prog_F77+set}" = set; then
12915 echo $ECHO_N "(cached) $ECHO_C" >&6
12916else
12917 if test -n "$F77"; then
12918 ac_cv_prog_F77="$F77" # Let the user override the test.
12919else
12920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921for as_dir in $PATH
12922do
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012926 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 +000012927 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 break 2
12930 fi
12931done
12932done
Reid Spencera773bd52006-08-04 18:18:08 +000012933IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012934
12935fi
12936fi
12937F77=$ac_cv_prog_F77
12938if test -n "$F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012939 { echo "$as_me:$LINENO: result: $F77" >&5
12940echo "${ECHO_T}$F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012941else
Reid Spencera773bd52006-08-04 18:18:08 +000012942 { echo "$as_me:$LINENO: result: no" >&5
12943echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012944fi
12945
Reid Spencera773bd52006-08-04 18:18:08 +000012946
John Criswell47fdd832003-07-14 16:52:07 +000012947 test -n "$F77" && break
12948 done
12949fi
12950if test -z "$F77"; then
12951 ac_ct_F77=$F77
Reid Spencera773bd52006-08-04 18:18:08 +000012952 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 +000012953do
12954 # Extract the first word of "$ac_prog", so it can be a program name with args.
12955set dummy $ac_prog; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000012956{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012958if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
12961 if test -n "$ac_ct_F77"; then
12962 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12963else
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
12969 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000012970 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 +000012971 ac_cv_prog_ac_ct_F77="$ac_prog"
12972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12973 break 2
12974 fi
12975done
12976done
Reid Spencera773bd52006-08-04 18:18:08 +000012977IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000012978
12979fi
12980fi
12981ac_ct_F77=$ac_cv_prog_ac_ct_F77
12982if test -n "$ac_ct_F77"; then
Reid Spencera773bd52006-08-04 18:18:08 +000012983 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
12984echo "${ECHO_T}$ac_ct_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012985else
Reid Spencera773bd52006-08-04 18:18:08 +000012986 { echo "$as_me:$LINENO: result: no" >&5
12987echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000012988fi
12989
Reid Spencera773bd52006-08-04 18:18:08 +000012990
John Criswell47fdd832003-07-14 16:52:07 +000012991 test -n "$ac_ct_F77" && break
12992done
12993
Reid Spencera773bd52006-08-04 18:18:08 +000012994 if test "x$ac_ct_F77" = x; then
12995 F77=""
12996 else
12997 case $cross_compiling:$ac_tool_warned in
12998yes:)
12999{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13000whose name does not start with the host triplet. If you think this
13001configuration is useful to you, please write to autoconf@gnu.org." >&5
13002echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13003whose name does not start with the host triplet. If you think this
13004configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13005ac_tool_warned=yes ;;
13006esac
13007 F77=$ac_ct_F77
13008 fi
John Criswell47fdd832003-07-14 16:52:07 +000013009fi
13010
13011
13012# Provide some information about the compiler.
Reid Spencera773bd52006-08-04 18:18:08 +000013013echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013014ac_compiler=`set X $ac_compile; echo $2`
Reid Spencera773bd52006-08-04 18:18:08 +000013015{ (ac_try="$ac_compiler --version >&5"
13016case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13019esac
13020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_compiler --version >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013025{ (ac_try="$ac_compiler -v >&5"
13026case "(($ac_try" in
13027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028 *) ac_try_echo=$ac_try;;
13029esac
13030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031 (eval "$ac_compiler -v >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }
Reid Spencera773bd52006-08-04 18:18:08 +000013035{ (ac_try="$ac_compiler -V >&5"
13036case "(($ac_try" in
13037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13038 *) ac_try_echo=$ac_try;;
13039esac
13040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13041 (eval "$ac_compiler -V >&5") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000013045rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000013046
13047# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000013048# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000013049ac_save_ext=$ac_ext
13050ac_ext=F
Reid Spencera773bd52006-08-04 18:18:08 +000013051{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
13052echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013053if test "${ac_cv_f77_compiler_gnu+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055else
13056 cat >conftest.$ac_ext <<_ACEOF
13057 program main
13058#ifndef __GNUC__
13059 choke me
13060#endif
13061
13062 end
13063_ACEOF
13064rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013065if { (ac_try="$ac_compile"
13066case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13069esac
13070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013072 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013078 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081 *) ac_try_echo=$ac_try;;
13082esac
13083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013085 ac_status=$?
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; } &&
13088 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013089 { (case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
13093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_compiler_gnu=yes
13099else
13100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013101sed 's/^/| /' conftest.$ac_ext >&5
13102
Reid Spencera773bd52006-08-04 18:18:08 +000013103 ac_compiler_gnu=no
John Criswell47fdd832003-07-14 16:52:07 +000013104fi
Reid Spencera773bd52006-08-04 18:18:08 +000013105
13106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013107ac_cv_f77_compiler_gnu=$ac_compiler_gnu
13108
13109fi
Reid Spencera773bd52006-08-04 18:18:08 +000013110{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
13111echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013112ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000013113ac_test_FFLAGS=${FFLAGS+set}
13114ac_save_FFLAGS=$FFLAGS
13115FFLAGS=
Reid Spencera773bd52006-08-04 18:18:08 +000013116{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
13117echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013118if test "${ac_cv_prog_f77_g+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13120else
13121 FFLAGS=-g
13122cat >conftest.$ac_ext <<_ACEOF
13123 program main
13124
13125 end
13126_ACEOF
13127rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000013128if { (ac_try="$ac_compile"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compile") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013135 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013136 grep -v '^ *+' conftest.er1 >conftest.err
13137 rm -f conftest.er1
13138 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000013141 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13142 { (case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013148 ac_status=$?
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); }; } &&
13151 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000013152 { (case "(($ac_try" in
13153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13154 *) ac_try_echo=$ac_try;;
13155esac
13156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13157 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013158 ac_status=$?
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); }; }; then
13161 ac_cv_prog_f77_g=yes
13162else
13163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013164sed 's/^/| /' conftest.$ac_ext >&5
13165
Reid Spencera773bd52006-08-04 18:18:08 +000013166 ac_cv_prog_f77_g=no
John Criswell47fdd832003-07-14 16:52:07 +000013167fi
Reid Spencera773bd52006-08-04 18:18:08 +000013168
13169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013170
13171fi
Reid Spencera773bd52006-08-04 18:18:08 +000013172{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
13173echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013174if test "$ac_test_FFLAGS" = set; then
13175 FFLAGS=$ac_save_FFLAGS
13176elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013177 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013178 FFLAGS="-g -O2"
13179 else
13180 FFLAGS="-g"
13181 fi
13182else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013183 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000013184 FFLAGS="-O2"
13185 else
13186 FFLAGS=
13187 fi
13188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013189
13190G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000013191ac_ext=c
13192ac_cpp='$CPP $CPPFLAGS'
13193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13195ac_compiler_gnu=$ac_cv_c_compiler_gnu
13196
13197
13198
13199# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
13200
13201# find the maximum length of command line arguments
Reid Spencera773bd52006-08-04 18:18:08 +000013202{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
13203echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013204if test "${lt_cv_sys_max_cmd_len+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13206else
13207 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000013208 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000013209
13210 case $build_os in
13211 msdosdjgpp*)
13212 # On DJGPP, this test can blow up pretty badly due to problems in libc
13213 # (any single argument exceeding 2000 bytes causes a buffer overrun
13214 # during glob expansion). Even if it were fixed, the result of this
13215 # check would be larger than it should be.
13216 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13217 ;;
13218
13219 gnu*)
13220 # Under GNU Hurd, this test is not required because there is
13221 # no limit to the length of command line arguments.
13222 # Libtool will interpret -1 as no limit whatsoever
13223 lt_cv_sys_max_cmd_len=-1;
13224 ;;
13225
13226 cygwin* | mingw*)
13227 # On Win9x/ME, this test blows up -- it succeeds, but takes
13228 # about 5 minutes as the teststring grows exponentially.
13229 # Worse, since 9x/ME are not pre-emptively multitasking,
13230 # you end up with a "frozen" computer, even though with patience
13231 # the test eventually succeeds (with a max line length of 256k).
13232 # Instead, let's just punt: use the minimum linelength reported by
13233 # all of the supported platforms: 8192 (on NT/2K/XP).
13234 lt_cv_sys_max_cmd_len=8192;
13235 ;;
13236
Reid Spencer2706f8c2004-09-19 23:53:36 +000013237 amigaos*)
13238 # On AmigaOS with pdksh, this test takes hours, literally.
13239 # So we just punt and use a minimum line length of 8192.
13240 lt_cv_sys_max_cmd_len=8192;
13241 ;;
13242
Reid Spencera773bd52006-08-04 18:18:08 +000013243 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013244 # This has been around since 386BSD, at least. Likely further.
13245 if test -x /sbin/sysctl; then
13246 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13247 elif test -x /usr/sbin/sysctl; then
13248 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13249 else
Reid Spencera773bd52006-08-04 18:18:08 +000013250 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
Reid Spencer2706f8c2004-09-19 23:53:36 +000013251 fi
13252 # And add a safety zone
13253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
Reid Spencera773bd52006-08-04 18:18:08 +000013254 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013255 ;;
13256
Reid Spencera773bd52006-08-04 18:18:08 +000013257 interix*)
13258 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13259 lt_cv_sys_max_cmd_len=196608
13260 ;;
13261
13262 osf*)
13263 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13264 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13265 # nice to cause kernel panics so lets avoid the loop below.
13266 # First set a reasonable default.
13267 lt_cv_sys_max_cmd_len=16384
13268 #
13269 if test -x /sbin/sysconfig; then
13270 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13271 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13272 esac
13273 fi
13274 ;;
13275 sco3.2v5*)
13276 lt_cv_sys_max_cmd_len=102400
13277 ;;
13278 sysv5* | sco5v6* | sysv4.2uw2*)
13279 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13280 if test -n "$kargmax"; then
13281 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13282 else
13283 lt_cv_sys_max_cmd_len=32768
13284 fi
13285 ;;
13286 *)
John Criswell47fdd832003-07-14 16:52:07 +000013287 # If test is not a shell built-in, we'll probably end up computing a
13288 # maximum length that is only half of the actual maximum length, but
13289 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013290 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13291 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
13292 = "XX$teststring") >/dev/null 2>&1 &&
13293 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000013294 lt_cv_sys_max_cmd_len=$new_result &&
13295 test $i != 17 # 1/2 MB should be enough
13296 do
13297 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000013298 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000013299 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000013300 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000013301 # Add a significant safety factor because C++ compilers can tack on massive
13302 # amounts of additional arguments before passing them to the linker.
13303 # It appears as though 1/2 is a usable value.
13304 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13305 ;;
13306 esac
13307
13308fi
13309
13310if test -n $lt_cv_sys_max_cmd_len ; then
Reid Spencera773bd52006-08-04 18:18:08 +000013311 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
13312echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013313else
Reid Spencera773bd52006-08-04 18:18:08 +000013314 { echo "$as_me:$LINENO: result: none" >&5
13315echo "${ECHO_T}none" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013316fi
13317
13318
13319
13320
13321# Check for command to grab the raw symbol name followed by C symbol from nm.
Reid Spencera773bd52006-08-04 18:18:08 +000013322{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
13323echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013324if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
13325 echo $ECHO_N "(cached) $ECHO_C" >&6
13326else
13327
13328# These are sane defaults that work on at least a few old systems.
13329# [They come from Ultrix. What could be older than Ultrix?!! ;)]
13330
13331# Character class describing NM global symbol codes.
13332symcode='[BCDEGRST]'
13333
13334# Regexp to match symbols that can be accessed directly from C.
13335sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13336
John Criswell47fdd832003-07-14 16:52:07 +000013337# Transform an extracted symbol line into a proper C declaration
13338lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
13339
13340# Transform an extracted symbol line into symbol name and symbol address
13341lt_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'"
13342
13343# Define system-specific variables.
13344case $host_os in
13345aix*)
13346 symcode='[BCDT]'
13347 ;;
13348cygwin* | mingw* | pw32*)
13349 symcode='[ABCDGISTW]'
13350 ;;
13351hpux*) # Its linker distinguishes data from code symbols
13352 if test "$host_cpu" = ia64; then
13353 symcode='[ABCDEGRST]'
13354 fi
13355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13356 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'"
13357 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013358linux*)
13359 if test "$host_cpu" = ia64; then
13360 symcode='[ABCDGIRSTW]'
13361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13362 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'"
13363 fi
13364 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013365irix* | nonstopux*)
13366 symcode='[BCDEGRST]'
13367 ;;
13368osf*)
13369 symcode='[BCDEGQRST]'
13370 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013371solaris*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013372 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000013373 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000013374sco3.2v5*)
13375 symcode='[DT]'
13376 ;;
13377sysv4.2uw2*)
13378 symcode='[DT]'
13379 ;;
13380sysv5* | sco5v6* | unixware* | OpenUNIX*)
13381 symcode='[ABDT]'
13382 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013383sysv4)
13384 symcode='[DFNSTU]'
13385 ;;
13386esac
13387
13388# Handle CRLF in mingw tool chain
13389opt_cr=
13390case $build_os in
13391mingw*)
13392 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13393 ;;
13394esac
13395
13396# If we're using GNU nm, then use its standard symbol codes.
13397case `$NM -V 2>&1` in
13398*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013399 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000013400esac
13401
13402# Try without a prefix undercore, then with it.
13403for ac_symprfx in "" "_"; do
13404
Reid Spencera773bd52006-08-04 18:18:08 +000013405 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13406 symxfrm="\\1 $ac_symprfx\\2 \\2"
13407
John Criswell47fdd832003-07-14 16:52:07 +000013408 # Write the raw and C identifiers.
Reid Spencera773bd52006-08-04 18:18:08 +000013409 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 +000013410
13411 # Check to see that the pipe works correctly.
13412 pipe_works=no
13413
13414 rm -f conftest*
13415 cat > conftest.$ac_ext <<EOF
13416#ifdef __cplusplus
13417extern "C" {
13418#endif
13419char nm_test_var;
13420void nm_test_func(){}
13421#ifdef __cplusplus
13422}
13423#endif
13424int main(){nm_test_var='a';nm_test_func();return(0);}
13425EOF
13426
13427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13428 (eval $ac_compile) 2>&5
13429 ac_status=$?
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; then
13432 # Now try to grab the symbols.
13433 nlist=conftest.nm
13434 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
13435 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } && test -s "$nlist"; then
13439 # Try sorting and uniquifying the output.
13440 if sort "$nlist" | uniq > "$nlist"T; then
13441 mv -f "$nlist"T "$nlist"
13442 else
13443 rm -f "$nlist"T
13444 fi
13445
13446 # Make sure that we snagged all the symbols we need.
13447 if grep ' nm_test_var$' "$nlist" >/dev/null; then
13448 if grep ' nm_test_func$' "$nlist" >/dev/null; then
13449 cat <<EOF > conftest.$ac_ext
13450#ifdef __cplusplus
13451extern "C" {
13452#endif
13453
13454EOF
13455 # Now generate the symbol file.
13456 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
13457
13458 cat <<EOF >> conftest.$ac_ext
13459#if defined (__STDC__) && __STDC__
13460# define lt_ptr_t void *
13461#else
13462# define lt_ptr_t char *
13463# define const
13464#endif
13465
13466/* The mapping between symbol names and symbols. */
13467const struct {
13468 const char *name;
13469 lt_ptr_t address;
13470}
13471lt_preloaded_symbols[] =
13472{
13473EOF
13474 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
13475 cat <<\EOF >> conftest.$ac_ext
13476 {0, (lt_ptr_t) 0}
13477};
13478
13479#ifdef __cplusplus
13480}
13481#endif
13482EOF
13483 # Now try linking the two files.
13484 mv conftest.$ac_objext conftstm.$ac_objext
13485 lt_save_LIBS="$LIBS"
13486 lt_save_CFLAGS="$CFLAGS"
13487 LIBS="conftstm.$ac_objext"
13488 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13490 (eval $ac_link) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && test -s conftest${ac_exeext}; then
13494 pipe_works=yes
13495 fi
13496 LIBS="$lt_save_LIBS"
13497 CFLAGS="$lt_save_CFLAGS"
13498 else
13499 echo "cannot find nm_test_func in $nlist" >&5
13500 fi
13501 else
13502 echo "cannot find nm_test_var in $nlist" >&5
13503 fi
13504 else
13505 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13506 fi
13507 else
13508 echo "$progname: failed program was:" >&5
13509 cat conftest.$ac_ext >&5
13510 fi
13511 rm -f conftest* conftst*
13512
13513 # Do not use the global_symbol_pipe unless it works.
13514 if test "$pipe_works" = yes; then
13515 break
13516 else
13517 lt_cv_sys_global_symbol_pipe=
13518 fi
13519done
13520
13521fi
13522
13523if test -z "$lt_cv_sys_global_symbol_pipe"; then
13524 lt_cv_sys_global_symbol_to_cdecl=
13525fi
13526if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013527 { echo "$as_me:$LINENO: result: failed" >&5
13528echo "${ECHO_T}failed" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013529else
Reid Spencera773bd52006-08-04 18:18:08 +000013530 { echo "$as_me:$LINENO: result: ok" >&5
13531echo "${ECHO_T}ok" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013532fi
13533
Reid Spencera773bd52006-08-04 18:18:08 +000013534{ echo "$as_me:$LINENO: checking for objdir" >&5
13535echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013536if test "${lt_cv_objdir+set}" = set; then
13537 echo $ECHO_N "(cached) $ECHO_C" >&6
13538else
13539 rm -f .libs 2>/dev/null
13540mkdir .libs 2>/dev/null
13541if test -d .libs; then
13542 lt_cv_objdir=.libs
13543else
13544 # MS-DOS does not allow filenames that begin with a dot.
13545 lt_cv_objdir=_libs
13546fi
13547rmdir .libs 2>/dev/null
13548fi
Reid Spencera773bd52006-08-04 18:18:08 +000013549{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
13550echo "${ECHO_T}$lt_cv_objdir" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013551objdir=$lt_cv_objdir
13552
13553
13554
13555
13556
13557case $host_os in
13558aix3*)
13559 # AIX sometimes has problems with the GCC collect2 program. For some
13560 # reason, if we set the COLLECT_NAMES environment variable, the problems
13561 # vanish in a puff of smoke.
13562 if test "X${COLLECT_NAMES+set}" != Xset; then
13563 COLLECT_NAMES=
13564 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000013565 fi
13566 ;;
13567esac
13568
John Criswell47fdd832003-07-14 16:52:07 +000013569# Sed substitution that helps us do robust quoting. It backslashifies
13570# metacharacters that are still active within double-quoted strings.
Reid Spencera773bd52006-08-04 18:18:08 +000013571Xsed='sed -e 1s/^X//'
John Criswell47fdd832003-07-14 16:52:07 +000013572sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
13573
13574# Same as above, but do not quote variable references.
13575double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
13576
13577# Sed substitution to delay expansion of an escaped shell variable in a
13578# double_quote_subst'ed string.
13579delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
13580
13581# Sed substitution to avoid accidental globbing in evaled expressions
13582no_glob_subst='s/\*/\\\*/g'
13583
13584# Constants:
13585rm="rm -f"
13586
13587# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000013588default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000013589can_build_shared=yes
13590
Reid Spencera773bd52006-08-04 18:18:08 +000013591# All known linkers require a `.a' archive for static linking (except MSVC,
John Criswell47fdd832003-07-14 16:52:07 +000013592# which needs '.lib').
13593libext=a
13594ltmain="$ac_aux_dir/ltmain.sh"
13595ofile="$default_ofile"
13596with_gnu_ld="$lt_cv_prog_gnu_ld"
13597
13598if test -n "$ac_tool_prefix"; then
13599 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13600set dummy ${ac_tool_prefix}ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013601{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013603if test "${ac_cv_prog_AR+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605else
13606 if test -n "$AR"; then
13607 ac_cv_prog_AR="$AR" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
13614 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013615 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 +000013616 ac_cv_prog_AR="${ac_tool_prefix}ar"
13617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13618 break 2
13619 fi
13620done
13621done
Reid Spencera773bd52006-08-04 18:18:08 +000013622IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013623
13624fi
13625fi
13626AR=$ac_cv_prog_AR
13627if test -n "$AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013628 { echo "$as_me:$LINENO: result: $AR" >&5
13629echo "${ECHO_T}$AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013630else
Reid Spencera773bd52006-08-04 18:18:08 +000013631 { echo "$as_me:$LINENO: result: no" >&5
13632echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013633fi
13634
Reid Spencera773bd52006-08-04 18:18:08 +000013635
John Criswell47fdd832003-07-14 16:52:07 +000013636fi
13637if test -z "$ac_cv_prog_AR"; then
13638 ac_ct_AR=$AR
13639 # Extract the first word of "ar", so it can be a program name with args.
13640set dummy ar; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013641{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013643if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645else
13646 if test -n "$ac_ct_AR"; then
13647 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13648else
13649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650for as_dir in $PATH
13651do
13652 IFS=$as_save_IFS
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013655 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 +000013656 ac_cv_prog_ac_ct_AR="ar"
13657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13658 break 2
13659 fi
13660done
13661done
Reid Spencera773bd52006-08-04 18:18:08 +000013662IFS=$as_save_IFS
John Criswell47fdd832003-07-14 16:52:07 +000013663
John Criswell47fdd832003-07-14 16:52:07 +000013664fi
13665fi
13666ac_ct_AR=$ac_cv_prog_ac_ct_AR
13667if test -n "$ac_ct_AR"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013668 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
13669echo "${ECHO_T}$ac_ct_AR" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013670else
Reid Spencera773bd52006-08-04 18:18:08 +000013671 { echo "$as_me:$LINENO: result: no" >&5
13672echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013673fi
13674
Reid Spencera773bd52006-08-04 18:18:08 +000013675 if test "x$ac_ct_AR" = x; then
13676 AR="false"
13677 else
13678 case $cross_compiling:$ac_tool_warned in
13679yes:)
13680{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13681whose name does not start with the host triplet. If you think this
13682configuration is useful to you, please write to autoconf@gnu.org." >&5
13683echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13684whose name does not start with the host triplet. If you think this
13685configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13686ac_tool_warned=yes ;;
13687esac
13688 AR=$ac_ct_AR
13689 fi
John Criswell47fdd832003-07-14 16:52:07 +000013690else
13691 AR="$ac_cv_prog_AR"
13692fi
13693
John Criswell7a73b802003-06-30 21:59:07 +000013694if test -n "$ac_tool_prefix"; then
13695 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13696set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013697{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013699if test "${ac_cv_prog_RANLIB+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
13702 if test -n "$RANLIB"; then
13703 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13704else
13705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706for as_dir in $PATH
13707do
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013711 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 +000013712 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13715 fi
13716done
13717done
Reid Spencera773bd52006-08-04 18:18:08 +000013718IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013719
13720fi
13721fi
13722RANLIB=$ac_cv_prog_RANLIB
13723if test -n "$RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013724 { echo "$as_me:$LINENO: result: $RANLIB" >&5
13725echo "${ECHO_T}$RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013726else
Reid Spencera773bd52006-08-04 18:18:08 +000013727 { echo "$as_me:$LINENO: result: no" >&5
13728echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013729fi
13730
Reid Spencera773bd52006-08-04 18:18:08 +000013731
John Criswell7a73b802003-06-30 21:59:07 +000013732fi
13733if test -z "$ac_cv_prog_RANLIB"; then
13734 ac_ct_RANLIB=$RANLIB
13735 # Extract the first word of "ranlib", so it can be a program name with args.
13736set dummy ranlib; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013737{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013739if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
13740 echo $ECHO_N "(cached) $ECHO_C" >&6
13741else
13742 if test -n "$ac_ct_RANLIB"; then
13743 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13744else
13745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746for as_dir in $PATH
13747do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
13750 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013751 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 +000013752 ac_cv_prog_ac_ct_RANLIB="ranlib"
13753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13754 break 2
13755 fi
13756done
13757done
Reid Spencera773bd52006-08-04 18:18:08 +000013758IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013759
John Criswell7a73b802003-06-30 21:59:07 +000013760fi
13761fi
13762ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13763if test -n "$ac_ct_RANLIB"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013764 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
13765echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013766else
Reid Spencera773bd52006-08-04 18:18:08 +000013767 { echo "$as_me:$LINENO: result: no" >&5
13768echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013769fi
13770
Reid Spencera773bd52006-08-04 18:18:08 +000013771 if test "x$ac_ct_RANLIB" = x; then
13772 RANLIB=":"
13773 else
13774 case $cross_compiling:$ac_tool_warned in
13775yes:)
13776{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13777whose name does not start with the host triplet. If you think this
13778configuration is useful to you, please write to autoconf@gnu.org." >&5
13779echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13780whose name does not start with the host triplet. If you think this
13781configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13782ac_tool_warned=yes ;;
13783esac
13784 RANLIB=$ac_ct_RANLIB
13785 fi
John Criswell7a73b802003-06-30 21:59:07 +000013786else
13787 RANLIB="$ac_cv_prog_RANLIB"
13788fi
13789
13790if test -n "$ac_tool_prefix"; then
13791 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13792set dummy ${ac_tool_prefix}strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013795if test "${ac_cv_prog_STRIP+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 if test -n "$STRIP"; then
13799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13800else
13801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13802for as_dir in $PATH
13803do
13804 IFS=$as_save_IFS
13805 test -z "$as_dir" && as_dir=.
13806 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013807 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 +000013808 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13810 break 2
13811 fi
13812done
13813done
Reid Spencera773bd52006-08-04 18:18:08 +000013814IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013815
13816fi
13817fi
13818STRIP=$ac_cv_prog_STRIP
13819if test -n "$STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013820 { echo "$as_me:$LINENO: result: $STRIP" >&5
13821echo "${ECHO_T}$STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013822else
Reid Spencera773bd52006-08-04 18:18:08 +000013823 { echo "$as_me:$LINENO: result: no" >&5
13824echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013825fi
13826
Reid Spencera773bd52006-08-04 18:18:08 +000013827
John Criswell7a73b802003-06-30 21:59:07 +000013828fi
13829if test -z "$ac_cv_prog_STRIP"; then
13830 ac_ct_STRIP=$STRIP
13831 # Extract the first word of "strip", so it can be a program name with args.
13832set dummy strip; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000013833{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013835if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838 if test -n "$ac_ct_STRIP"; then
13839 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13840else
13841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000013847 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 +000013848 ac_cv_prog_ac_ct_STRIP="strip"
13849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13850 break 2
13851 fi
13852done
13853done
Reid Spencera773bd52006-08-04 18:18:08 +000013854IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000013855
John Criswell7a73b802003-06-30 21:59:07 +000013856fi
13857fi
13858ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13859if test -n "$ac_ct_STRIP"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013860 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13861echo "${ECHO_T}$ac_ct_STRIP" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013862else
Reid Spencera773bd52006-08-04 18:18:08 +000013863 { echo "$as_me:$LINENO: result: no" >&5
13864echo "${ECHO_T}no" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000013865fi
13866
Reid Spencera773bd52006-08-04 18:18:08 +000013867 if test "x$ac_ct_STRIP" = x; then
13868 STRIP=":"
13869 else
13870 case $cross_compiling:$ac_tool_warned in
13871yes:)
13872{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13873whose name does not start with the host triplet. If you think this
13874configuration is useful to you, please write to autoconf@gnu.org." >&5
13875echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13876whose name does not start with the host triplet. If you think this
13877configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13878ac_tool_warned=yes ;;
13879esac
13880 STRIP=$ac_ct_STRIP
13881 fi
John Criswell7a73b802003-06-30 21:59:07 +000013882else
13883 STRIP="$ac_cv_prog_STRIP"
13884fi
13885
13886
John Criswell7a73b802003-06-30 21:59:07 +000013887old_CC="$CC"
13888old_CFLAGS="$CFLAGS"
13889
13890# Set sane defaults for various variables
13891test -z "$AR" && AR=ar
13892test -z "$AR_FLAGS" && AR_FLAGS=cru
13893test -z "$AS" && AS=as
13894test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000013895test -z "$LTCC" && LTCC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000013896test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
John Criswell7a73b802003-06-30 21:59:07 +000013897test -z "$DLLTOOL" && DLLTOOL=dlltool
13898test -z "$LD" && LD=ld
13899test -z "$LN_S" && LN_S="ln -s"
13900test -z "$MAGIC_CMD" && MAGIC_CMD=file
13901test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000013902test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000013903test -z "$OBJDUMP" && OBJDUMP=objdump
13904test -z "$RANLIB" && RANLIB=:
13905test -z "$STRIP" && STRIP=:
13906test -z "$ac_objext" && ac_objext=o
13907
John Criswell7a73b802003-06-30 21:59:07 +000013908# Determine commands to create old-style static archives.
13909old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
13910old_postinstall_cmds='chmod 644 $oldlib'
13911old_postuninstall_cmds=
13912
13913if test -n "$RANLIB"; then
13914 case $host_os in
13915 openbsd*)
Reid Spencera773bd52006-08-04 18:18:08 +000013916 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013917 ;;
13918 *)
Reid Spencera773bd52006-08-04 18:18:08 +000013919 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013920 ;;
13921 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000013922 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000013923fi
13924
Reid Spencera773bd52006-08-04 18:18:08 +000013925for cc_temp in $compiler""; do
13926 case $cc_temp in
13927 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13928 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13929 \-*) ;;
13930 *) break;;
13931 esac
13932done
13933cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13934
Reid Spencer2706f8c2004-09-19 23:53:36 +000013935
John Criswell47fdd832003-07-14 16:52:07 +000013936# Only perform the check for file, if the check method requires it
13937case $deplibs_check_method in
13938file_magic*)
13939 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Reid Spencera773bd52006-08-04 18:18:08 +000013940 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
13941echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013942if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
13943 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000013944else
John Criswell47fdd832003-07-14 16:52:07 +000013945 case $MAGIC_CMD in
13946[\\/*] | ?:[\\/]*)
13947 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13948 ;;
13949*)
13950 lt_save_MAGIC_CMD="$MAGIC_CMD"
13951 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13952 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13953 for ac_dir in $ac_dummy; do
13954 IFS="$lt_save_ifs"
13955 test -z "$ac_dir" && ac_dir=.
13956 if test -f $ac_dir/${ac_tool_prefix}file; then
13957 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13958 if test -n "$file_magic_test_file"; then
13959 case $deplibs_check_method in
13960 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000013961 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000013962 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13963 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13964 $EGREP "$file_magic_regex" > /dev/null; then
13965 :
13966 else
13967 cat <<EOF 1>&2
13968
13969*** Warning: the command libtool uses to detect shared libraries,
13970*** $file_magic_cmd, produces output that libtool cannot recognize.
13971*** The result is that libtool may fail to recognize shared libraries
13972*** as such. This will affect the creation of libtool libraries that
13973*** depend on shared libraries, but programs linked with such libtool
13974*** libraries will work regardless of this problem. Nevertheless, you
13975*** may want to report the problem to your system manager and/or to
13976*** bug-libtool@gnu.org
13977
13978EOF
13979 fi ;;
13980 esac
13981 fi
13982 break
13983 fi
13984 done
13985 IFS="$lt_save_ifs"
13986 MAGIC_CMD="$lt_save_MAGIC_CMD"
13987 ;;
13988esac
John Criswell7a73b802003-06-30 21:59:07 +000013989fi
John Criswell7a73b802003-06-30 21:59:07 +000013990
John Criswell47fdd832003-07-14 16:52:07 +000013991MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13992if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000013993 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
13994echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013995else
Reid Spencera773bd52006-08-04 18:18:08 +000013996 { echo "$as_me:$LINENO: result: no" >&5
13997echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000013998fi
John Criswell7a73b802003-06-30 21:59:07 +000013999
John Criswell47fdd832003-07-14 16:52:07 +000014000if test -z "$lt_cv_path_MAGIC_CMD"; then
14001 if test -n "$ac_tool_prefix"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014002 { echo "$as_me:$LINENO: checking for file" >&5
14003echo $ECHO_N "checking for file... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014004if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006else
14007 case $MAGIC_CMD in
14008[\\/*] | ?:[\\/]*)
14009 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
14010 ;;
14011*)
14012 lt_save_MAGIC_CMD="$MAGIC_CMD"
14013 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14014 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14015 for ac_dir in $ac_dummy; do
14016 IFS="$lt_save_ifs"
14017 test -z "$ac_dir" && ac_dir=.
14018 if test -f $ac_dir/file; then
14019 lt_cv_path_MAGIC_CMD="$ac_dir/file"
14020 if test -n "$file_magic_test_file"; then
14021 case $deplibs_check_method in
14022 "file_magic "*)
Reid Spencera773bd52006-08-04 18:18:08 +000014023 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
John Criswell47fdd832003-07-14 16:52:07 +000014024 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14025 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14026 $EGREP "$file_magic_regex" > /dev/null; then
14027 :
14028 else
14029 cat <<EOF 1>&2
14030
14031*** Warning: the command libtool uses to detect shared libraries,
14032*** $file_magic_cmd, produces output that libtool cannot recognize.
14033*** The result is that libtool may fail to recognize shared libraries
14034*** as such. This will affect the creation of libtool libraries that
14035*** depend on shared libraries, but programs linked with such libtool
14036*** libraries will work regardless of this problem. Nevertheless, you
14037*** may want to report the problem to your system manager and/or to
14038*** bug-libtool@gnu.org
14039
14040EOF
14041 fi ;;
14042 esac
14043 fi
14044 break
14045 fi
14046 done
14047 IFS="$lt_save_ifs"
14048 MAGIC_CMD="$lt_save_MAGIC_CMD"
14049 ;;
14050esac
14051fi
14052
14053MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
14054if test -n "$MAGIC_CMD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000014055 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
14056echo "${ECHO_T}$MAGIC_CMD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014057else
Reid Spencera773bd52006-08-04 18:18:08 +000014058 { echo "$as_me:$LINENO: result: no" >&5
14059echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014060fi
14061
14062 else
14063 MAGIC_CMD=:
14064 fi
14065fi
14066
14067 fi
14068 ;;
14069esac
14070
Reid Spencer17795972004-11-18 09:47:37 +000014071enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000014072enable_win32_dll=no
14073
Reid Spencera773bd52006-08-04 18:18:08 +000014074# Check whether --enable-libtool-lock was given.
John Criswell47fdd832003-07-14 16:52:07 +000014075if test "${enable_libtool_lock+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014076 enableval=$enable_libtool_lock;
14077fi
John Criswell47fdd832003-07-14 16:52:07 +000014078
John Criswell47fdd832003-07-14 16:52:07 +000014079test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
14080
John Criswell7a73b802003-06-30 21:59:07 +000014081
Reid Spencera773bd52006-08-04 18:18:08 +000014082# Check whether --with-pic was given.
John Criswell7a73b802003-06-30 21:59:07 +000014083if test "${with_pic+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000014084 withval=$with_pic; pic_mode="$withval"
John Criswell7a73b802003-06-30 21:59:07 +000014085else
14086 pic_mode=default
Reid Spencera773bd52006-08-04 18:18:08 +000014087fi
14088
John Criswell7a73b802003-06-30 21:59:07 +000014089test -z "$pic_mode" && pic_mode=default
14090
John Criswell47fdd832003-07-14 16:52:07 +000014091# Use C for the default configuration in the libtool script
14092tagname=
14093lt_save_CC="$CC"
14094ac_ext=c
14095ac_cpp='$CPP $CPPFLAGS'
14096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14098ac_compiler_gnu=$ac_cv_c_compiler_gnu
14099
14100
14101# Source file extension for C test sources.
14102ac_ext=c
14103
14104# Object file extension for compiled C test sources.
14105objext=o
14106objext=$objext
14107
14108# Code to be used in simple compile tests
14109lt_simple_compile_test_code="int some_variable = 0;\n"
14110
14111# Code to be used in simple link tests
14112lt_simple_link_test_code='int main(){return(0);}\n'
14113
14114
14115# If no C compiler was specified, use CC.
14116LTCC=${LTCC-"$CC"}
14117
Reid Spencera773bd52006-08-04 18:18:08 +000014118# If no C compiler flags were specified, use CFLAGS.
14119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14120
John Criswell47fdd832003-07-14 16:52:07 +000014121# Allow CC to be a program name with arguments.
14122compiler=$CC
14123
14124
Reid Spencera773bd52006-08-04 18:18:08 +000014125# save warnings/boilerplate of simple test code
14126ac_outfile=conftest.$ac_objext
14127printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14128eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14129_lt_compiler_boilerplate=`cat conftest.err`
14130$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014131
Reid Spencera773bd52006-08-04 18:18:08 +000014132ac_outfile=conftest.$ac_objext
14133printf "$lt_simple_link_test_code" >conftest.$ac_ext
14134eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14135_lt_linker_boilerplate=`cat conftest.err`
14136$rm conftest*
John Criswell47fdd832003-07-14 16:52:07 +000014137
14138
John Criswell47fdd832003-07-14 16:52:07 +000014139
14140lt_prog_compiler_no_builtin_flag=
14141
14142if test "$GCC" = yes; then
14143 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
14144
Reid Spencer2706f8c2004-09-19 23:53:36 +000014145
Reid Spencera773bd52006-08-04 18:18:08 +000014146{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14147echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014148if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14150else
14151 lt_cv_prog_compiler_rtti_exceptions=no
14152 ac_outfile=conftest.$ac_objext
14153 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14154 lt_compiler_flag="-fno-rtti -fno-exceptions"
14155 # Insert the option either (1) after the last *FLAGS variable, or
14156 # (2) before a word containing "conftest.", or (3) at the end.
14157 # Note that $ac_compile itself does not contain backslashes and begins
14158 # with a dollar sign (not a hyphen), so the echo should work correctly.
14159 # The option is referenced via a variable to avoid confusing sed.
14160 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14163 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000014164 (eval echo "\"\$as_me:14164: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014165 (eval "$lt_compile" 2>conftest.err)
14166 ac_status=$?
14167 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000014168 echo "$as_me:14168: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014169 if (exit $ac_status) && test -s "$ac_outfile"; then
14170 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014171 # So say no if there are warnings other than the usual output.
14172 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014175 lt_cv_prog_compiler_rtti_exceptions=yes
14176 fi
14177 fi
14178 $rm conftest*
14179
14180fi
Reid Spencera773bd52006-08-04 18:18:08 +000014181{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14182echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014183
14184if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14185 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14186else
14187 :
14188fi
14189
14190fi
14191
14192lt_prog_compiler_wl=
14193lt_prog_compiler_pic=
14194lt_prog_compiler_static=
14195
Reid Spencera773bd52006-08-04 18:18:08 +000014196{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14197echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014198
14199 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014200 lt_prog_compiler_wl='-Wl,'
14201 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000014202
14203 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014204 aix*)
14205 # All AIX code is PIC.
14206 if test "$host_cpu" = ia64; then
14207 # AIX 5 now supports IA64 processor
14208 lt_prog_compiler_static='-Bstatic'
14209 fi
John Criswell7a73b802003-06-30 21:59:07 +000014210 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014211
John Criswell7a73b802003-06-30 21:59:07 +000014212 amigaos*)
14213 # FIXME: we need at least 68020 code to build shared libraries, but
14214 # adding the `-m68020' flag to GCC prevents building anything better,
14215 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000014216 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000014217 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014218
14219 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000014220 # PIC is the default for these OSes.
14221 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014222
14223 mingw* | pw32* | os2*)
14224 # This hack is so that the source file can tell whether it is being
14225 # built for inclusion in a dll (and should export symbols for example).
14226 lt_prog_compiler_pic='-DDLL_EXPORT'
14227 ;;
14228
John Criswell7a73b802003-06-30 21:59:07 +000014229 darwin* | rhapsody*)
14230 # PIC is the default on this platform
14231 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000014232 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000014233 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014234
Reid Spencera773bd52006-08-04 18:18:08 +000014235 interix3*)
14236 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14237 # Instead, we relocate shared libraries at runtime.
14238 ;;
14239
John Criswell47fdd832003-07-14 16:52:07 +000014240 msdosdjgpp*)
14241 # Just because we use GCC doesn't mean we suddenly get shared libraries
14242 # on systems that don't support them.
14243 lt_prog_compiler_can_build_shared=no
14244 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014245 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014246
John Criswell7a73b802003-06-30 21:59:07 +000014247 sysv4*MP*)
14248 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000014249 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000014250 fi
14251 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014252
14253 hpux*)
14254 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14255 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014256 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014257 hppa*64*|ia64*)
14258 # +Z the default
14259 ;;
14260 *)
14261 lt_prog_compiler_pic='-fPIC'
14262 ;;
14263 esac
14264 ;;
14265
John Criswell7a73b802003-06-30 21:59:07 +000014266 *)
John Criswell47fdd832003-07-14 16:52:07 +000014267 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000014268 ;;
14269 esac
14270 else
John Criswell47fdd832003-07-14 16:52:07 +000014271 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000014272 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014273 aix*)
14274 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014275 if test "$host_cpu" = ia64; then
14276 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000014277 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014278 else
John Criswell47fdd832003-07-14 16:52:07 +000014279 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000014280 fi
14281 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014282 darwin*)
14283 # PIC is the default on this platform
14284 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000014285 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014286 xlc*)
14287 lt_prog_compiler_pic='-qnocommon'
14288 lt_prog_compiler_wl='-Wl,'
14289 ;;
14290 esac
14291 ;;
John Criswell7a73b802003-06-30 21:59:07 +000014292
John Criswell47fdd832003-07-14 16:52:07 +000014293 mingw* | pw32* | os2*)
14294 # This hack is so that the source file can tell whether it is being
14295 # built for inclusion in a dll (and should export symbols for example).
14296 lt_prog_compiler_pic='-DDLL_EXPORT'
14297 ;;
14298
John Criswell7a73b802003-06-30 21:59:07 +000014299 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000014300 lt_prog_compiler_wl='-Wl,'
14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000014303 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000014304 hppa*64*|ia64*)
14305 # +Z the default
14306 ;;
14307 *)
14308 lt_prog_compiler_pic='+Z'
14309 ;;
14310 esac
14311 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14312 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000014313 ;;
14314
John Criswell47fdd832003-07-14 16:52:07 +000014315 irix5* | irix6* | nonstopux*)
14316 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014317 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000014318 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014319 ;;
14320
14321 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000014322 lt_prog_compiler_pic='-KPIC'
14323 lt_prog_compiler_static='-Bstatic'
14324 ;;
14325
14326 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000014327 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014328 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000014329 lt_prog_compiler_wl='-Wl,'
14330 lt_prog_compiler_pic='-KPIC'
14331 lt_prog_compiler_static='-static'
14332 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014333 pgcc* | pgf77* | pgf90* | pgf95*)
14334 # Portland Group compilers (*not* the Pentium gcc compiler,
14335 # which looks to be a dead project)
14336 lt_prog_compiler_wl='-Wl,'
14337 lt_prog_compiler_pic='-fpic'
14338 lt_prog_compiler_static='-Bstatic'
14339 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000014340 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000014341 lt_prog_compiler_wl='-Wl,'
14342 # All Alpha code is PIC.
14343 lt_prog_compiler_static='-non_shared'
14344 ;;
14345 esac
John Criswell7a73b802003-06-30 21:59:07 +000014346 ;;
14347
14348 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000014349 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000014350 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000014351 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000014352 ;;
14353
John Criswell7a73b802003-06-30 21:59:07 +000014354 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014355 lt_prog_compiler_pic='-KPIC'
14356 lt_prog_compiler_static='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000014357 case $cc_basename in
14358 f77* | f90* | f95*)
14359 lt_prog_compiler_wl='-Qoption ld ';;
14360 *)
14361 lt_prog_compiler_wl='-Wl,';;
14362 esac
John Criswell7a73b802003-06-30 21:59:07 +000014363 ;;
14364
14365 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000014366 lt_prog_compiler_wl='-Qoption ld '
14367 lt_prog_compiler_pic='-PIC'
14368 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014369 ;;
14370
Reid Spencera773bd52006-08-04 18:18:08 +000014371 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000014372 lt_prog_compiler_wl='-Wl,'
14373 lt_prog_compiler_pic='-KPIC'
14374 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014375 ;;
14376
14377 sysv4*MP*)
14378 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000014379 lt_prog_compiler_pic='-Kconform_pic'
14380 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000014381 fi
14382 ;;
14383
Reid Spencera773bd52006-08-04 18:18:08 +000014384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14385 lt_prog_compiler_wl='-Wl,'
14386 lt_prog_compiler_pic='-KPIC'
14387 lt_prog_compiler_static='-Bstatic'
14388 ;;
14389
14390 unicos*)
14391 lt_prog_compiler_wl='-Wl,'
14392 lt_prog_compiler_can_build_shared=no
14393 ;;
14394
John Criswell47fdd832003-07-14 16:52:07 +000014395 uts4*)
14396 lt_prog_compiler_pic='-pic'
14397 lt_prog_compiler_static='-Bstatic'
14398 ;;
14399
John Criswell7a73b802003-06-30 21:59:07 +000014400 *)
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014402 ;;
14403 esac
14404 fi
14405
Reid Spencera773bd52006-08-04 18:18:08 +000014406{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
14407echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014408
John Criswell47fdd832003-07-14 16:52:07 +000014409#
14410# Check to make sure the PIC flag actually works.
14411#
14412if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000014413
Reid Spencera773bd52006-08-04 18:18:08 +000014414{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14415echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014416if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014417 echo $ECHO_N "(cached) $ECHO_C" >&6
14418else
John Criswell47fdd832003-07-14 16:52:07 +000014419 lt_prog_compiler_pic_works=no
14420 ac_outfile=conftest.$ac_objext
14421 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14422 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14423 # Insert the option either (1) after the last *FLAGS variable, or
14424 # (2) before a word containing "conftest.", or (3) at the end.
14425 # Note that $ac_compile itself does not contain backslashes and begins
14426 # with a dollar sign (not a hyphen), so the echo should work correctly.
14427 # The option is referenced via a variable to avoid confusing sed.
14428 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14431 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000014432 (eval echo "\"\$as_me:14432: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014433 (eval "$lt_compile" 2>conftest.err)
14434 ac_status=$?
14435 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000014436 echo "$as_me:14436: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014437 if (exit $ac_status) && test -s "$ac_outfile"; then
14438 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000014439 # So say no if there are warnings other than the usual output.
14440 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014443 lt_prog_compiler_pic_works=yes
14444 fi
14445 fi
14446 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014447
John Criswell47fdd832003-07-14 16:52:07 +000014448fi
Reid Spencera773bd52006-08-04 18:18:08 +000014449{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
14450echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014451
John Criswell47fdd832003-07-14 16:52:07 +000014452if test x"$lt_prog_compiler_pic_works" = xyes; then
14453 case $lt_prog_compiler_pic in
14454 "" | " "*) ;;
14455 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14456 esac
John Criswell7a73b802003-06-30 21:59:07 +000014457else
John Criswell47fdd832003-07-14 16:52:07 +000014458 lt_prog_compiler_pic=
14459 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000014460fi
14461
John Criswell7a73b802003-06-30 21:59:07 +000014462fi
Reid Spencera773bd52006-08-04 18:18:08 +000014463case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000014464 # For platforms which do not support PIC, -DPIC is meaningless:
14465 *djgpp*)
14466 lt_prog_compiler_pic=
14467 ;;
14468 *)
14469 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14470 ;;
14471esac
John Criswell7a73b802003-06-30 21:59:07 +000014472
Reid Spencera773bd52006-08-04 18:18:08 +000014473#
14474# Check to make sure the static flag actually works.
14475#
14476wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14477{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14478echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14479if test "${lt_prog_compiler_static_works+set}" = set; then
14480 echo $ECHO_N "(cached) $ECHO_C" >&6
14481else
14482 lt_prog_compiler_static_works=no
14483 save_LDFLAGS="$LDFLAGS"
14484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14485 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14487 # The linker can only warn and ignore the option if not recognized
14488 # So say no if there are warnings
14489 if test -s conftest.err; then
14490 # Append any errors to the config.log.
14491 cat conftest.err 1>&5
14492 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14494 if diff conftest.exp conftest.er2 >/dev/null; then
14495 lt_prog_compiler_static_works=yes
14496 fi
14497 else
14498 lt_prog_compiler_static_works=yes
14499 fi
14500 fi
14501 $rm conftest*
14502 LDFLAGS="$save_LDFLAGS"
14503
14504fi
14505{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
14506echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
14507
14508if test x"$lt_prog_compiler_static_works" = xyes; then
14509 :
14510else
14511 lt_prog_compiler_static=
14512fi
14513
14514
14515{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14516echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014517if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000014518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519else
John Criswell47fdd832003-07-14 16:52:07 +000014520 lt_cv_prog_compiler_c_o=no
14521 $rm -r conftest 2>/dev/null
14522 mkdir conftest
14523 cd conftest
14524 mkdir out
14525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014526
John Criswell47fdd832003-07-14 16:52:07 +000014527 lt_compiler_flag="-o out/conftest2.$ac_objext"
14528 # Insert the option either (1) after the last *FLAGS variable, or
14529 # (2) before a word containing "conftest.", or (3) at the end.
14530 # Note that $ac_compile itself does not contain backslashes and begins
14531 # with a dollar sign (not a hyphen), so the echo should work correctly.
14532 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000014533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000014534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14535 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000014536 (eval echo "\"\$as_me:14536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014537 (eval "$lt_compile" 2>out/conftest.err)
14538 ac_status=$?
14539 cat out/conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000014540 echo "$as_me:14540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14542 then
14543 # The compiler can only warn and ignore the option if not recognized
14544 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000014545 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14546 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14547 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000014548 lt_cv_prog_compiler_c_o=yes
14549 fi
14550 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014551 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014552 $rm conftest*
14553 # SGI C++ compiler will create directory out/ii_files/ for
14554 # template instantiation
14555 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14556 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000014557 cd ..
14558 rmdir conftest
14559 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000014560
14561fi
Reid Spencera773bd52006-08-04 18:18:08 +000014562{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
14563echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014564
John Criswell7a73b802003-06-30 21:59:07 +000014565
John Criswell7a73b802003-06-30 21:59:07 +000014566hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000014567if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000014568 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000014569 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14570echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014571 hard_links=yes
14572 $rm conftest*
14573 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14574 touch conftest.a
14575 ln conftest.a conftest.b 2>&5 || hard_links=no
14576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000014577 { echo "$as_me:$LINENO: result: $hard_links" >&5
14578echo "${ECHO_T}$hard_links" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000014579 if test "$hard_links" = no; then
14580 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14581echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14582 need_locks=warn
14583 fi
14584else
14585 need_locks=no
14586fi
John Criswell7a73b802003-06-30 21:59:07 +000014587
Reid Spencera773bd52006-08-04 18:18:08 +000014588{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000014590
14591 runpath_var=
14592 allow_undefined_flag=
14593 enable_shared_with_static_runtimes=no
14594 archive_cmds=
14595 archive_expsym_cmds=
14596 old_archive_From_new_cmds=
14597 old_archive_from_expsyms_cmds=
14598 export_dynamic_flag_spec=
14599 whole_archive_flag_spec=
14600 thread_safe_flag_spec=
14601 hardcode_libdir_flag_spec=
14602 hardcode_libdir_flag_spec_ld=
14603 hardcode_libdir_separator=
14604 hardcode_direct=no
14605 hardcode_minus_L=no
14606 hardcode_shlibpath_var=unsupported
14607 link_all_deplibs=unknown
14608 hardcode_automatic=no
14609 module_cmds=
14610 module_expsym_cmds=
14611 always_export_symbols=no
14612 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14613 # include_expsyms should be a list of space-separated symbols to be *always*
14614 # included in the symbol list
14615 include_expsyms=
14616 # exclude_expsyms can be an extended regexp of symbols to exclude
14617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14619 # as well as any symbol that contains `d'.
14620 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
14621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14622 # platforms (ab)use it in PIC code, but their linkers get confused if
14623 # the symbol is explicitly referenced. Since portable code cannot
14624 # rely on this symbol name, it's probably fine to never include it in
14625 # preloaded symbol tables.
14626 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000014627 # Just being paranoid about ensuring that cc_basename is set.
14628 for cc_temp in $compiler""; do
14629 case $cc_temp in
14630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14632 \-*) ;;
14633 *) break;;
14634 esac
14635done
14636cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000014637
14638 case $host_os in
14639 cygwin* | mingw* | pw32*)
14640 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14641 # When not using gcc, we currently assume that we are using
14642 # Microsoft Visual C++.
14643 if test "$GCC" != yes; then
14644 with_gnu_ld=no
14645 fi
14646 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000014647 interix*)
14648 # we just hope/assume this is gcc and not c89 (= MSVC++)
14649 with_gnu_ld=yes
14650 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014651 openbsd*)
14652 with_gnu_ld=no
14653 ;;
14654 esac
14655
14656 ld_shlibs=yes
14657 if test "$with_gnu_ld" = yes; then
14658 # If archive_cmds runs LD, not CC, wlarc should be empty
14659 wlarc='${wl}'
14660
Reid Spencera773bd52006-08-04 18:18:08 +000014661 # Set some defaults for GNU ld with shared library support. These
14662 # are reset later if shared libraries are not supported. Putting them
14663 # here allows them to be overridden if necessary.
14664 runpath_var=LD_RUN_PATH
14665 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
14666 export_dynamic_flag_spec='${wl}--export-dynamic'
14667 # ancient GNU ld didn't support --whole-archive et. al.
14668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14669 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14670 else
14671 whole_archive_flag_spec=
14672 fi
14673 supports_anon_versioning=no
14674 case `$LD -v 2>/dev/null` in
14675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14678 *\ 2.11.*) ;; # other 2.11 versions
14679 *) supports_anon_versioning=yes ;;
14680 esac
14681
John Criswell47fdd832003-07-14 16:52:07 +000014682 # See if GNU ld supports shared libraries.
14683 case $host_os in
14684 aix3* | aix4* | aix5*)
14685 # On AIX/PPC, the GNU linker is very broken
14686 if test "$host_cpu" != ia64; then
14687 ld_shlibs=no
14688 cat <<EOF 1>&2
14689
14690*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14691*** to be unable to reliably create shared libraries on AIX.
14692*** Therefore, libtool is disabling shared libraries support. If you
14693*** really care for shared libraries, you may want to modify your PATH
14694*** so that a non-GNU linker is found, and then restart.
14695
14696EOF
14697 fi
14698 ;;
14699
14700 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000014701 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 +000014702 hardcode_libdir_flag_spec='-L$libdir'
14703 hardcode_minus_L=yes
14704
14705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14706 # that the semantics of dynamic libraries on AmigaOS, at least up
14707 # to version 4, is to share data among multiple programs linked
14708 # with the same dynamic library. Since this doesn't match the
14709 # behavior of shared libraries on other platforms, we can't use
14710 # them.
14711 ld_shlibs=no
14712 ;;
14713
14714 beos*)
14715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14716 allow_undefined_flag=unsupported
14717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14718 # support --undefined. This deserves some investigation. FIXME
14719 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14720 else
14721 ld_shlibs=no
14722 fi
14723 ;;
14724
14725 cygwin* | mingw* | pw32*)
14726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14727 # as there is no search path for DLLs.
14728 hardcode_libdir_flag_spec='-L$libdir'
14729 allow_undefined_flag=unsupported
14730 always_export_symbols=no
14731 enable_shared_with_static_runtimes=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014732 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 +000014733
14734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000014735 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 +000014736 # If the export-symbols file already is a .def file (1st line
14737 # is EXPORTS), use it as is; otherwise, prepend...
14738 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14739 cp $export_symbols $output_objdir/$soname.def;
14740 else
14741 echo EXPORTS > $output_objdir/$soname.def;
14742 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000014743 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000014744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14745 else
14746 ld_shlibs=no
14747 fi
14748 ;;
14749
14750 interix3*)
14751 hardcode_direct=no
14752 hardcode_shlibpath_var=no
14753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14754 export_dynamic_flag_spec='${wl}-E'
14755 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14756 # Instead, shared libraries are loaded at an image base (0x10000000 by
14757 # default) and relocated if they conflict, which is a slow very memory
14758 # consuming and fragmenting process. To avoid this, we pick a random,
14759 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14760 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14761 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14762 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'
14763 ;;
14764
14765 linux*)
14766 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14767 tmp_addflag=
14768 case $cc_basename,$host_cpu in
14769 pgcc*) # Portland Group C compiler
14770 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'
14771 tmp_addflag=' $pic_flag'
14772 ;;
14773 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14774 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'
14775 tmp_addflag=' $pic_flag -Mnomain' ;;
14776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14777 tmp_addflag=' -i_dynamic' ;;
14778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14779 tmp_addflag=' -i_dynamic -nofor_main' ;;
14780 ifc* | ifort*) # Intel Fortran compiler
14781 tmp_addflag=' -nofor_main' ;;
14782 esac
14783 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14784
14785 if test $supports_anon_versioning = yes; then
14786 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
14787 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14788 $echo "local: *; };" >> $output_objdir/$libname.ver~
14789 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14790 fi
John Criswell47fdd832003-07-14 16:52:07 +000014791 else
14792 ld_shlibs=no
14793 fi
14794 ;;
14795
14796 netbsd*)
14797 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14798 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14799 wlarc=
14800 else
14801 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14802 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14803 fi
14804 ;;
14805
Reid Spencera773bd52006-08-04 18:18:08 +000014806 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000014807 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14808 ld_shlibs=no
14809 cat <<EOF 1>&2
14810
14811*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14812*** create shared libraries on Solaris systems. Therefore, libtool
14813*** is disabling shared libraries support. We urge you to upgrade GNU
14814*** binutils to release 2.9.1 or newer. Another option is to modify
14815*** your PATH or compiler configuration so that the native linker is
14816*** used, and then restart.
14817
14818EOF
14819 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14821 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14822 else
14823 ld_shlibs=no
14824 fi
14825 ;;
14826
Reid Spencera773bd52006-08-04 18:18:08 +000014827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14828 case `$LD -v 2>&1` in
14829 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14830 ld_shlibs=no
14831 cat <<_LT_EOF 1>&2
14832
14833*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14834*** reliably create shared libraries on SCO systems. Therefore, libtool
14835*** is disabling shared libraries support. We urge you to upgrade GNU
14836*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14837*** your PATH or compiler configuration so that the native linker is
14838*** used, and then restart.
14839
14840_LT_EOF
14841 ;;
14842 *)
14843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14844 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14846 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14847 else
14848 ld_shlibs=no
14849 fi
14850 ;;
14851 esac
14852 ;;
14853
John Criswell47fdd832003-07-14 16:52:07 +000014854 sunos4*)
14855 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14856 wlarc=
14857 hardcode_direct=yes
14858 hardcode_shlibpath_var=no
14859 ;;
14860
14861 *)
14862 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14864 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14865 else
14866 ld_shlibs=no
14867 fi
14868 ;;
14869 esac
14870
Reid Spencera773bd52006-08-04 18:18:08 +000014871 if test "$ld_shlibs" = no; then
14872 runpath_var=
14873 hardcode_libdir_flag_spec=
14874 export_dynamic_flag_spec=
14875 whole_archive_flag_spec=
John Criswell47fdd832003-07-14 16:52:07 +000014876 fi
14877 else
14878 # PORTME fill in a description of your system's linker (not GNU ld)
14879 case $host_os in
14880 aix3*)
14881 allow_undefined_flag=unsupported
14882 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000014883 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 +000014884 # Note: this linker hardcodes the directories in LIBPATH if there
14885 # are no directories specified by -L.
14886 hardcode_minus_L=yes
Reid Spencera773bd52006-08-04 18:18:08 +000014887 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000014888 # Neither direct hardcoding nor static linking is supported with a
14889 # broken collect2.
14890 hardcode_direct=unsupported
14891 fi
14892 ;;
14893
14894 aix4* | aix5*)
14895 if test "$host_cpu" = ia64; then
14896 # On IA64, the linker does run time linking by default, so we don't
14897 # have to do anything special.
14898 aix_use_runtimelinking=no
14899 exp_sym_flag='-Bexport'
14900 no_entry_flag=""
14901 else
14902 # If we're using GNU nm, then we don't want the "-C" option.
14903 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14904 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14905 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'
14906 else
14907 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'
14908 fi
14909 aix_use_runtimelinking=no
14910
14911 # Test if we are trying to use run time linking or normal
14912 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14913 # need to do runtime linking.
14914 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14915 for ld_flag in $LDFLAGS; do
14916 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14917 aix_use_runtimelinking=yes
14918 break
14919 fi
14920 done
Reid Spencera773bd52006-08-04 18:18:08 +000014921 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014922 esac
14923
14924 exp_sym_flag='-bexport'
14925 no_entry_flag='-bnoentry'
14926 fi
14927
14928 # When large executables or shared objects are built, AIX ld can
14929 # have problems creating the table of contents. If linking a library
14930 # or program results in "error TOC overflow" add -mminimal-toc to
14931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14933
14934 archive_cmds=''
14935 hardcode_direct=yes
14936 hardcode_libdir_separator=':'
14937 link_all_deplibs=yes
14938
14939 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000014940 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000014941 # We only want to do this on AIX 4.2 and lower, the check
14942 # below for broken collect2 doesn't work under 4.3+
14943 collect2name=`${CC} -print-prog-name=collect2`
14944 if test -f "$collect2name" && \
14945 strings "$collect2name" | grep resolve_lib_name >/dev/null
14946 then
14947 # We have reworked collect2
14948 hardcode_direct=yes
14949 else
14950 # We have old collect2
14951 hardcode_direct=unsupported
14952 # It fails to find uninstalled libraries when the uninstalled
14953 # path is not listed in the libpath. Setting hardcode_minus_L
14954 # to unsupported forces relinking
14955 hardcode_minus_L=yes
14956 hardcode_libdir_flag_spec='-L$libdir'
14957 hardcode_libdir_separator=
14958 fi
Reid Spencera773bd52006-08-04 18:18:08 +000014959 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014960 esac
14961 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000014962 if test "$aix_use_runtimelinking" = yes; then
14963 shared_flag="$shared_flag "'${wl}-G'
14964 fi
John Criswell47fdd832003-07-14 16:52:07 +000014965 else
14966 # not using gcc
14967 if test "$host_cpu" = ia64; then
14968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14969 # chokes on -Wl,-G. The following line is correct:
14970 shared_flag='-G'
14971 else
Reid Spencera773bd52006-08-04 18:18:08 +000014972 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000014973 shared_flag='${wl}-G'
14974 else
14975 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000014976 fi
John Criswell47fdd832003-07-14 16:52:07 +000014977 fi
14978 fi
14979
14980 # It seems that -bexpall does not export symbols beginning with
14981 # underscore (_), so it is better to generate a list of symbols to export.
14982 always_export_symbols=yes
14983 if test "$aix_use_runtimelinking" = yes; then
14984 # Warning - without using the other runtime loading flags (-brtl),
14985 # -berok will link without error, but may produce a broken library.
14986 allow_undefined_flag='-berok'
14987 # Determine the default libpath from the value encoded in an empty executable.
14988 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014989/* confdefs.h. */
14990_ACEOF
14991cat confdefs.h >>conftest.$ac_ext
14992cat >>conftest.$ac_ext <<_ACEOF
14993/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014994
John Criswell7a73b802003-06-30 21:59:07 +000014995int
14996main ()
14997{
John Criswell47fdd832003-07-14 16:52:07 +000014998
John Criswell7a73b802003-06-30 21:59:07 +000014999 ;
15000 return 0;
15001}
15002_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000015003rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015004if { (ac_try="$ac_link"
15005case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15008esac
15009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000015011 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015012 grep -v '^ *+' conftest.er1 >conftest.err
15013 rm -f conftest.er1
15014 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000015015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031esac
15032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000015034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015037
John Criswell47fdd832003-07-14 16:52:07 +000015038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15039}'`
15040# Check for a 64-bit object if we didn't find anything.
15041if 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; }
15042}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015043else
15044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015045sed 's/^/| /' conftest.$ac_ext >&5
15046
Reid Spencera773bd52006-08-04 18:18:08 +000015047
John Criswell7a73b802003-06-30 21:59:07 +000015048fi
Reid Spencera773bd52006-08-04 18:18:08 +000015049
15050rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015051 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015052if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015053
John Criswell47fdd832003-07-14 16:52:07 +000015054 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000015055 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 +000015056 else
15057 if test "$host_cpu" = ia64; then
15058 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15059 allow_undefined_flag="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000015060 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 +000015061 else
15062 # Determine the default libpath from the value encoded in an empty executable.
15063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015064/* confdefs.h. */
15065_ACEOF
15066cat confdefs.h >>conftest.$ac_ext
15067cat >>conftest.$ac_ext <<_ACEOF
15068/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000015069
John Criswell47fdd832003-07-14 16:52:07 +000015070int
15071main ()
15072{
John Criswell7a73b802003-06-30 21:59:07 +000015073
John Criswell47fdd832003-07-14 16:52:07 +000015074 ;
15075 return 0;
15076}
15077_ACEOF
15078rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000015079if { (ac_try="$ac_link"
15080case "(($ac_try" in
15081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082 *) ac_try_echo=$ac_try;;
15083esac
15084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015087 grep -v '^ *+' conftest.er1 >conftest.err
15088 rm -f conftest.er1
15089 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000015092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15093 { (case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; } &&
15102 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000015103 { (case "(($ac_try" in
15104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105 *) ac_try_echo=$ac_try;;
15106esac
15107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15108 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000015112
John Criswell47fdd832003-07-14 16:52:07 +000015113aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15114}'`
15115# Check for a 64-bit object if we didn't find anything.
15116if 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; }
15117}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000015118else
John Criswell47fdd832003-07-14 16:52:07 +000015119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015120sed 's/^/| /' conftest.$ac_ext >&5
15121
Reid Spencera773bd52006-08-04 18:18:08 +000015122
John Criswell47fdd832003-07-14 16:52:07 +000015123fi
Reid Spencera773bd52006-08-04 18:18:08 +000015124
15125rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000015126 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000015128
John Criswell47fdd832003-07-14 16:52:07 +000015129 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15130 # Warning - without using the other run time loading flags,
15131 # -berok will link without error, but may produce a broken library.
15132 no_undefined_flag=' ${wl}-bernotok'
15133 allow_undefined_flag=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000015134 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000015135 whole_archive_flag_spec='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000015136 archive_cmds_need_lc=yes
Reid Spencera773bd52006-08-04 18:18:08 +000015137 # This is similar to how AIX traditionally builds its shared libraries.
15138 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 +000015139 fi
15140 fi
John Criswell7a73b802003-06-30 21:59:07 +000015141 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015142
15143 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015144 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 +000015145 hardcode_libdir_flag_spec='-L$libdir'
15146 hardcode_minus_L=yes
15147 # see comment about different semantics on the GNU ld section
15148 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000015149 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015150
Reid Spencer2706f8c2004-09-19 23:53:36 +000015151 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000015152 export_dynamic_flag_spec=-rdynamic
15153 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015154
John Criswell47fdd832003-07-14 16:52:07 +000015155 cygwin* | mingw* | pw32*)
15156 # When not using gcc, we currently assume that we are using
15157 # Microsoft Visual C++.
15158 # hardcode_libdir_flag_spec is actually meaningless, as there is
15159 # no search path for DLLs.
15160 hardcode_libdir_flag_spec=' '
15161 allow_undefined_flag=unsupported
15162 # Tell ltmain to make .lib files, not .a files.
15163 libext=lib
15164 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015165 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000015166 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000015167 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015168 # The linker will automatically build a .lib file if we build a DLL.
15169 old_archive_From_new_cmds='true'
15170 # FIXME: Should let the user specify the lib program.
15171 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
15172 fix_srcfile_path='`cygpath -w "$srcfile"`'
15173 enable_shared_with_static_runtimes=yes
15174 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015175
John Criswell47fdd832003-07-14 16:52:07 +000015176 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000015177 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015178 rhapsody* | darwin1.[012])
15179 allow_undefined_flag='${wl}-undefined ${wl}suppress'
15180 ;;
15181 *) # Darwin 1.3 on
15182 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15183 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15184 else
15185 case ${MACOSX_DEPLOYMENT_TARGET} in
15186 10.[012])
15187 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15188 ;;
15189 10.*)
15190 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
15191 ;;
15192 esac
15193 fi
15194 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015195 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000015196 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015197 hardcode_direct=no
15198 hardcode_automatic=yes
15199 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000015200 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000015201 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015202 if test "$GCC" = yes ; then
15203 output_verbose_link_cmd='echo'
15204 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15205 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015206 # 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 +000015207 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}'
15208 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 +000015209 else
Reid Spencera773bd52006-08-04 18:18:08 +000015210 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015211 xlc*)
15212 output_verbose_link_cmd='echo'
15213 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15214 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000015215 # 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 +000015216 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}'
15217 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 +000015218 ;;
15219 *)
15220 ld_shlibs=no
15221 ;;
15222 esac
John Criswell7a73b802003-06-30 21:59:07 +000015223 fi
John Criswell47fdd832003-07-14 16:52:07 +000015224 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015225
John Criswell47fdd832003-07-14 16:52:07 +000015226 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000015227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015228 hardcode_libdir_flag_spec='-L$libdir'
15229 hardcode_shlibpath_var=no
15230 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015231
John Criswell47fdd832003-07-14 16:52:07 +000015232 freebsd1*)
15233 ld_shlibs=no
15234 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015235
John Criswell47fdd832003-07-14 16:52:07 +000015236 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15237 # support. Future versions do this automatically, but an explicit c++rt0.o
15238 # does not break anything, and helps significantly (at the cost of a little
15239 # extra space).
15240 freebsd2.2*)
15241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15242 hardcode_libdir_flag_spec='-R$libdir'
15243 hardcode_direct=yes
15244 hardcode_shlibpath_var=no
15245 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015246
John Criswell47fdd832003-07-14 16:52:07 +000015247 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15248 freebsd2*)
15249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15250 hardcode_direct=yes
15251 hardcode_minus_L=yes
15252 hardcode_shlibpath_var=no
15253 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015254
John Criswell47fdd832003-07-14 16:52:07 +000015255 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000015256 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000015257 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15258 hardcode_libdir_flag_spec='-R$libdir'
15259 hardcode_direct=yes
15260 hardcode_shlibpath_var=no
15261 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015262
John Criswell47fdd832003-07-14 16:52:07 +000015263 hpux9*)
15264 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015265 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 +000015266 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015267 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 +000015268 fi
15269 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15270 hardcode_libdir_separator=:
15271 hardcode_direct=yes
15272
15273 # hardcode_minus_L: Not really in the search PATH,
15274 # but as the default location of the library.
15275 hardcode_minus_L=yes
15276 export_dynamic_flag_spec='${wl}-E'
15277 ;;
15278
Reid Spencera773bd52006-08-04 18:18:08 +000015279 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000015280 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015281 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15282 else
15283 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15284 fi
15285 if test "$with_gnu_ld" = no; then
15286 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15287 hardcode_libdir_separator=:
15288
15289 hardcode_direct=yes
15290 export_dynamic_flag_spec='${wl}-E'
15291
15292 # hardcode_minus_L: Not really in the search PATH,
15293 # but as the default location of the library.
15294 hardcode_minus_L=yes
15295 fi
15296 ;;
15297
15298 hpux11*)
15299 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15300 case $host_cpu in
15301 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000015302 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15303 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015304 ia64*)
15305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15306 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015307 *)
15308 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15309 ;;
15310 esac
15311 else
Reid Spencera773bd52006-08-04 18:18:08 +000015312 case $host_cpu in
15313 hppa*64*)
15314 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15315 ;;
15316 ia64*)
15317 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015318 ;;
15319 *)
Reid Spencera773bd52006-08-04 18:18:08 +000015320 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 +000015321 ;;
15322 esac
15323 fi
15324 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000015325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15326 hardcode_libdir_separator=:
John Criswell47fdd832003-07-14 16:52:07 +000015327
Reid Spencera773bd52006-08-04 18:18:08 +000015328 case $host_cpu in
15329 hppa*64*|ia64*)
15330 hardcode_libdir_flag_spec_ld='+b $libdir'
15331 hardcode_direct=no
15332 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000015333 ;;
15334 *)
John Criswell47fdd832003-07-14 16:52:07 +000015335 hardcode_direct=yes
15336 export_dynamic_flag_spec='${wl}-E'
15337
15338 # hardcode_minus_L: Not really in the search PATH,
15339 # but as the default location of the library.
15340 hardcode_minus_L=yes
15341 ;;
15342 esac
15343 fi
15344 ;;
15345
15346 irix5* | irix6* | nonstopux*)
15347 if test "$GCC" = yes; then
15348 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'
15349 else
15350 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'
15351 hardcode_libdir_flag_spec_ld='-rpath $libdir'
15352 fi
15353 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15354 hardcode_libdir_separator=:
15355 link_all_deplibs=yes
15356 ;;
15357
15358 netbsd*)
15359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15361 else
15362 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15363 fi
15364 hardcode_libdir_flag_spec='-R$libdir'
15365 hardcode_direct=yes
15366 hardcode_shlibpath_var=no
15367 ;;
15368
15369 newsos6)
15370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15371 hardcode_direct=yes
15372 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15373 hardcode_libdir_separator=:
15374 hardcode_shlibpath_var=no
15375 ;;
15376
15377 openbsd*)
15378 hardcode_direct=yes
15379 hardcode_shlibpath_var=no
15380 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15381 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015382 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 +000015383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15384 export_dynamic_flag_spec='${wl}-E'
15385 else
15386 case $host_os in
15387 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15388 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15389 hardcode_libdir_flag_spec='-R$libdir'
15390 ;;
15391 *)
15392 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15394 ;;
15395 esac
15396 fi
15397 ;;
15398
15399 os2*)
15400 hardcode_libdir_flag_spec='-L$libdir'
15401 hardcode_minus_L=yes
15402 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000015403 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 +000015404 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15405 ;;
15406
15407 osf3*)
15408 if test "$GCC" = yes; then
15409 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15410 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'
15411 else
15412 allow_undefined_flag=' -expect_unresolved \*'
15413 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'
15414 fi
15415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15416 hardcode_libdir_separator=:
15417 ;;
15418
15419 osf4* | osf5*) # as osf3* with the addition of -msym flag
15420 if test "$GCC" = yes; then
15421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
15422 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'
15423 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15424 else
15425 allow_undefined_flag=' -expect_unresolved \*'
15426 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 +000015427 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 +000015428 $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 +000015429
John Criswell47fdd832003-07-14 16:52:07 +000015430 # Both c and cxx compiler support -rpath directly
15431 hardcode_libdir_flag_spec='-rpath $libdir'
15432 fi
15433 hardcode_libdir_separator=:
15434 ;;
15435
John Criswell47fdd832003-07-14 16:52:07 +000015436 solaris*)
15437 no_undefined_flag=' -z text'
15438 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015439 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000015440 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015441 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15442 $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 +000015443 else
Reid Spencera773bd52006-08-04 18:18:08 +000015444 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000015445 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000015446 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15447 $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 +000015448 fi
15449 hardcode_libdir_flag_spec='-R$libdir'
15450 hardcode_shlibpath_var=no
15451 case $host_os in
15452 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015453 *)
15454 # The compiler driver will combine linker options so we
15455 # cannot just pass the convience library names through
15456 # without $wl, iff we do not link with $LD.
15457 # Luckily, gcc supports the same syntax we need for Sun Studio.
15458 # Supported since Solaris 2.6 (maybe 2.5.1?)
15459 case $wlarc in
15460 '')
15461 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
15462 *)
15463 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' ;;
15464 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000015465 esac
15466 link_all_deplibs=yes
15467 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015468
John Criswell47fdd832003-07-14 16:52:07 +000015469 sunos4*)
15470 if test "x$host_vendor" = xsequent; then
15471 # Use $CC to link under sequent, because it throws in some extra .o
15472 # files that make .init and .fini sections work.
15473 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15474 else
15475 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15476 fi
15477 hardcode_libdir_flag_spec='-L$libdir'
15478 hardcode_direct=yes
15479 hardcode_minus_L=yes
15480 hardcode_shlibpath_var=no
15481 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015482
John Criswell47fdd832003-07-14 16:52:07 +000015483 sysv4)
15484 case $host_vendor in
15485 sni)
15486 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15487 hardcode_direct=yes # is this really true???
15488 ;;
15489 siemens)
15490 ## LD is ld it makes a PLAMLIB
15491 ## CC just makes a GrossModule.
15492 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15493 reload_cmds='$CC -r -o $output$reload_objs'
15494 hardcode_direct=no
15495 ;;
15496 motorola)
15497 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15498 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15499 ;;
15500 esac
15501 runpath_var='LD_RUN_PATH'
15502 hardcode_shlibpath_var=no
15503 ;;
15504
15505 sysv4.3*)
15506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15507 hardcode_shlibpath_var=no
15508 export_dynamic_flag_spec='-Bexport'
15509 ;;
15510
15511 sysv4*MP*)
15512 if test -d /usr/nec; then
15513 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15514 hardcode_shlibpath_var=no
15515 runpath_var=LD_RUN_PATH
15516 hardcode_runpath_var=yes
15517 ld_shlibs=yes
15518 fi
15519 ;;
15520
Reid Spencera773bd52006-08-04 18:18:08 +000015521 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15522 no_undefined_flag='${wl}-z,text'
15523 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015524 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015525 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000015526
John Criswell47fdd832003-07-14 16:52:07 +000015527 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000015528 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15529 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 +000015530 else
Reid Spencera773bd52006-08-04 18:18:08 +000015531 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15532 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 +000015533 fi
John Criswell47fdd832003-07-14 16:52:07 +000015534 ;;
15535
Reid Spencera773bd52006-08-04 18:18:08 +000015536 sysv5* | sco3.2v5* | sco5v6*)
15537 # Note: We can NOT use -z defs as we might desire, because we do not
15538 # link with -lc, and that would cause any symbols used from libc to
15539 # always be unresolved, which means just about no library would
15540 # ever link correctly. If we're not using GNU ld we use -z text
15541 # though, which does catch some bad symbols but isn't as heavy-handed
15542 # as -z defs.
15543 no_undefined_flag='${wl}-z,text'
15544 allow_undefined_flag='${wl}-z,nodefs'
15545 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000015546 hardcode_shlibpath_var=no
Reid Spencera773bd52006-08-04 18:18:08 +000015547 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15548 hardcode_libdir_separator=':'
15549 link_all_deplibs=yes
15550 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000015551 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000015552
15553 if test "$GCC" = yes; then
15554 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15555 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15556 else
15557 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15558 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 fi
John Criswell47fdd832003-07-14 16:52:07 +000015560 ;;
15561
15562 uts4*)
15563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15564 hardcode_libdir_flag_spec='-L$libdir'
15565 hardcode_shlibpath_var=no
15566 ;;
15567
15568 *)
15569 ld_shlibs=no
15570 ;;
15571 esac
15572 fi
15573
Reid Spencera773bd52006-08-04 18:18:08 +000015574{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
15575echo "${ECHO_T}$ld_shlibs" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015576test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000015577
John Criswell47fdd832003-07-14 16:52:07 +000015578#
15579# Do we need to explicitly link libc?
15580#
15581case "x$archive_cmds_need_lc" in
15582x|xyes)
15583 # Assume -lc should be added
15584 archive_cmds_need_lc=yes
15585
15586 if test "$enable_shared" = yes && test "$GCC" = yes; then
15587 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015588 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000015589 # FIXME: we may have to deal with multi-command sequences.
15590 ;;
15591 '$CC '*)
15592 # Test whether the compiler implicitly links with -lc since on some
15593 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15594 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000015595 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15596echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015597 $rm conftest*
15598 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15599
15600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15601 (eval $ac_compile) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } 2>conftest.err; then
15605 soname=conftest
15606 lib=conftest
15607 libobjs=conftest.$ac_objext
15608 deplibs=
15609 wl=$lt_prog_compiler_wl
Reid Spencera773bd52006-08-04 18:18:08 +000015610 pic_flag=$lt_prog_compiler_pic
John Criswell47fdd832003-07-14 16:52:07 +000015611 compiler_flags=-v
15612 linker_flags=-v
15613 verstring=
15614 output_objdir=.
15615 libname=conftest
15616 lt_save_allow_undefined_flag=$allow_undefined_flag
15617 allow_undefined_flag=
15618 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15619 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); }
15623 then
15624 archive_cmds_need_lc=no
15625 else
15626 archive_cmds_need_lc=yes
15627 fi
15628 allow_undefined_flag=$lt_save_allow_undefined_flag
15629 else
15630 cat conftest.err 1>&5
15631 fi
15632 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000015633 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
15634echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000015635 ;;
15636 esac
15637 fi
15638 ;;
15639esac
15640
Reid Spencera773bd52006-08-04 18:18:08 +000015641{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15642echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000015643library_names_spec=
15644libname_spec='lib$name'
15645soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000015646shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000015647postinstall_cmds=
15648postuninstall_cmds=
15649finish_cmds=
15650finish_eval=
15651shlibpath_var=
15652shlibpath_overrides_runpath=unknown
15653version_type=none
15654dynamic_linker="$host_os ld.so"
15655sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015656if test "$GCC" = yes; then
15657 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15658 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15659 # if the path contains ";" then we assume it to be the separator
15660 # otherwise default to the standard path separator (i.e. ":") - it is
15661 # assumed that no part of a normal pathname contains ";" but that should
15662 # okay in the real world where ";" in dirpaths is itself problematic.
15663 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15664 else
15665 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15666 fi
15667else
15668 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15669fi
15670need_lib_prefix=unknown
15671hardcode_into_libs=no
15672
15673# when you set need_version to no, make sure it does not cause -set_version
15674# flags to be left without arguments
15675need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000015676
15677case $host_os in
15678aix3*)
15679 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015680 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000015681 shlibpath_var=LIBPATH
15682
John Criswell47fdd832003-07-14 16:52:07 +000015683 # AIX 3 has no versioning support, so we append a major version to the name.
15684 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015685 ;;
15686
15687aix4* | aix5*)
15688 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000015689 need_lib_prefix=no
15690 need_version=no
15691 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000015692 if test "$host_cpu" = ia64; then
15693 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000015694 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015695 shlibpath_var=LD_LIBRARY_PATH
15696 else
15697 # With GCC up to 2.95.x, collect2 would create an import file
15698 # for dependence libraries. The import file would start with
15699 # the line `#! .'. This would cause the generated library to
15700 # depend on `.', always an invalid library. This was fixed in
15701 # development snapshots of GCC prior to 3.0.
15702 case $host_os in
15703 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000015704 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15705 echo ' yes '
15706 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15707 :
15708 else
15709 can_build_shared=no
15710 fi
15711 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015712 esac
John Criswell47fdd832003-07-14 16:52:07 +000015713 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15714 # soname into executable. Probably we can add versioning support to
15715 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000015716 if test "$aix_use_runtimelinking" = yes; then
15717 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15718 # instead of lib<name>.a to let people know that these are not
15719 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000015720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015721 else
15722 # We preserve .a as extension for shared libraries through AIX4.2
15723 # and later when we are not doing run time linking.
15724 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000015725 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015726 fi
15727 shlibpath_var=LIBPATH
15728 fi
15729 ;;
15730
15731amigaos*)
15732 library_names_spec='$libname.ixlibrary $libname.a'
15733 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015734 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 +000015735 ;;
15736
15737beos*)
John Criswell47fdd832003-07-14 16:52:07 +000015738 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015739 dynamic_linker="$host_os ld.so"
15740 shlibpath_var=LIBRARY_PATH
15741 ;;
15742
Reid Spencer2706f8c2004-09-19 23:53:36 +000015743bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000015744 version_type=linux
15745 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15747 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015748 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15749 shlibpath_var=LD_LIBRARY_PATH
15750 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15751 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000015752 # the default ld.so.conf also contains /usr/contrib/lib and
15753 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15754 # libtool to hard-code these into programs
15755 ;;
15756
15757cygwin* | mingw* | pw32*)
15758 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000015759 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000015760 need_version=no
15761 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000015762
John Criswell7a73b802003-06-30 21:59:07 +000015763 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015764 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000015765 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000015766 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000015767 postinstall_cmds='base_file=`basename \${file}`~
15768 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15769 dldir=$destdir/`dirname \$dlpath`~
15770 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000015771 $install_prog $dir/$dlname \$dldir/$dlname~
15772 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000015773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15774 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000015775 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000015776 shlibpath_overrides_runpath=yes
15777
15778 case $host_os in
15779 cygwin*)
15780 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15781 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 +000015782 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000015783 ;;
15784 mingw*)
15785 # MinGW DLLs use traditional 'lib' prefix
15786 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15787 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15788 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15789 # It is most probably a Windows format PATH printed by
15790 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15791 # path with ; separators, and with drive letters. We can handle the
15792 # drive letters (cygwin fileutils understands them), so leave them,
15793 # especially as we might pass files found there to a mingw objdump,
15794 # which wouldn't understand a cygwinified path. Ahh.
15795 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15796 else
15797 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15798 fi
15799 ;;
15800 pw32*)
15801 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000015802 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 +000015803 ;;
15804 esac
John Criswell7a73b802003-06-30 21:59:07 +000015805 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015806
John Criswell7a73b802003-06-30 21:59:07 +000015807 *)
John Criswell47fdd832003-07-14 16:52:07 +000015808 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000015809 ;;
15810 esac
15811 dynamic_linker='Win32 ld.exe'
15812 # FIXME: first we should search . and the directory the executable is in
15813 shlibpath_var=PATH
15814 ;;
15815
15816darwin* | rhapsody*)
15817 dynamic_linker="$host_os dyld"
15818 version_type=darwin
15819 need_lib_prefix=no
15820 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000015821 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000015822 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000015823 shlibpath_overrides_runpath=yes
15824 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000015825 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000015826 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015827 if test "$GCC" = yes; then
15828 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"`
15829 else
15830 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000015831 fi
15832 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15833 ;;
15834
15835dgux*)
15836 version_type=linux
15837 need_lib_prefix=no
15838 need_version=no
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15840 soname_spec='${libname}${release}${shared_ext}$major'
15841 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000015842 ;;
15843
15844freebsd1*)
15845 dynamic_linker=no
15846 ;;
15847
Reid Spencer2706f8c2004-09-19 23:53:36 +000015848kfreebsd*-gnu)
15849 version_type=linux
15850 need_lib_prefix=no
15851 need_version=no
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 shlibpath_overrides_runpath=no
15856 hardcode_into_libs=yes
15857 dynamic_linker='GNU ld.so'
15858 ;;
15859
Reid Spencera773bd52006-08-04 18:18:08 +000015860freebsd* | dragonfly*)
15861 # DragonFly does not have aout. When/if they implement a new
15862 # versioning mechanism, adjust this.
15863 if test -x /usr/bin/objformat; then
15864 objformat=`/usr/bin/objformat`
15865 else
15866 case $host_os in
15867 freebsd[123]*) objformat=aout ;;
15868 *) objformat=elf ;;
15869 esac
15870 fi
John Criswell7a73b802003-06-30 21:59:07 +000015871 version_type=freebsd-$objformat
15872 case $version_type in
15873 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000015874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000015875 need_version=no
15876 need_lib_prefix=no
15877 ;;
15878 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000015879 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000015880 need_version=yes
15881 ;;
15882 esac
15883 shlibpath_var=LD_LIBRARY_PATH
15884 case $host_os in
15885 freebsd2*)
15886 shlibpath_overrides_runpath=yes
15887 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015888 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000015889 shlibpath_overrides_runpath=yes
15890 hardcode_into_libs=yes
15891 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015892 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15893 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell7a73b802003-06-30 21:59:07 +000015894 shlibpath_overrides_runpath=no
15895 hardcode_into_libs=yes
15896 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000015897 freebsd*) # from 4.6 on
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15900 ;;
John Criswell7a73b802003-06-30 21:59:07 +000015901 esac
15902 ;;
15903
15904gnu*)
15905 version_type=linux
15906 need_lib_prefix=no
15907 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000015910 shlibpath_var=LD_LIBRARY_PATH
15911 hardcode_into_libs=yes
15912 ;;
15913
15914hpux9* | hpux10* | hpux11*)
15915 # Give a soname corresponding to the major version so that dld.sl refuses to
15916 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000015917 version_type=sunos
15918 need_lib_prefix=no
15919 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000015920 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000015921 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015922 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000015923 hardcode_into_libs=yes
15924 dynamic_linker="$host_os dld.so"
15925 shlibpath_var=LD_LIBRARY_PATH
15926 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 if test "X$HPUX_IA64_MODE" = X32; then
15930 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15931 else
15932 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15933 fi
15934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935 ;;
15936 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015937 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015938 hardcode_into_libs=yes
15939 dynamic_linker="$host_os dld.sl"
15940 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15945 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15946 ;;
15947 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015948 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000015949 dynamic_linker="$host_os dld.sl"
15950 shlibpath_var=SHLIB_PATH
15951 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 soname_spec='${libname}${release}${shared_ext}$major'
15954 ;;
15955 esac
John Criswell7a73b802003-06-30 21:59:07 +000015956 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15957 postinstall_cmds='chmod 555 $lib'
15958 ;;
15959
Reid Spencera773bd52006-08-04 18:18:08 +000015960interix3*)
15961 version_type=linux
15962 need_lib_prefix=no
15963 need_version=no
15964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15965 soname_spec='${libname}${release}${shared_ext}$major'
15966 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15967 shlibpath_var=LD_LIBRARY_PATH
15968 shlibpath_overrides_runpath=no
15969 hardcode_into_libs=yes
15970 ;;
15971
John Criswell47fdd832003-07-14 16:52:07 +000015972irix5* | irix6* | nonstopux*)
15973 case $host_os in
15974 nonstopux*) version_type=nonstopux ;;
15975 *)
15976 if test "$lt_cv_prog_gnu_ld" = yes; then
15977 version_type=linux
15978 else
15979 version_type=irix
15980 fi ;;
15981 esac
John Criswell7a73b802003-06-30 21:59:07 +000015982 need_lib_prefix=no
15983 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000015984 soname_spec='${libname}${release}${shared_ext}$major'
15985 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 +000015986 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000015987 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000015988 libsuff= shlibsuff=
15989 ;;
15990 *)
15991 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000015992 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15993 libsuff= shlibsuff= libmagic=32-bit;;
15994 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15995 libsuff=32 shlibsuff=N32 libmagic=N32;;
15996 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15997 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000015998 *) libsuff= shlibsuff= libmagic=never-match;;
15999 esac
16000 ;;
16001 esac
16002 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16003 shlibpath_overrides_runpath=no
16004 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16005 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000016006 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000016007 ;;
16008
16009# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000016010linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000016011 dynamic_linker=no
16012 ;;
16013
16014# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000016015linux*)
John Criswell7a73b802003-06-30 21:59:07 +000016016 version_type=linux
16017 need_lib_prefix=no
16018 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16020 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16022 shlibpath_var=LD_LIBRARY_PATH
16023 shlibpath_overrides_runpath=no
16024 # This implies no fast_install, which is unacceptable.
16025 # Some rework will be needed to allow for fast_install
16026 # before this can be enabled.
16027 hardcode_into_libs=yes
16028
Reid Spencer2706f8c2004-09-19 23:53:36 +000016029 # Append ld.so.conf contents to the search path
16030 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000016031 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 +000016032 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16033 fi
16034
John Criswell7a73b802003-06-30 21:59:07 +000016035 # We used to test for /lib/ld.so.1 and disable shared libraries on
16036 # powerpc, because MkLinux only supported shared libraries with the
16037 # GNU dynamic linker. Since this was broken with cross compilers,
16038 # most powerpc-linux boxes support dynamic linking these days and
16039 # people can always --disable-shared, the test was removed, and we
16040 # assume the GNU/Linux dynamic linker is in use.
16041 dynamic_linker='GNU/Linux ld.so'
16042 ;;
16043
Reid Spencer2706f8c2004-09-19 23:53:36 +000016044knetbsd*-gnu)
16045 version_type=linux
16046 need_lib_prefix=no
16047 need_version=no
16048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 hardcode_into_libs=yes
16053 dynamic_linker='GNU ld.so'
16054 ;;
16055
John Criswell7a73b802003-06-30 21:59:07 +000016056netbsd*)
16057 version_type=sunos
16058 need_lib_prefix=no
16059 need_version=no
16060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000016061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16063 dynamic_linker='NetBSD (a.out) ld.so'
16064 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016066 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016067 dynamic_linker='NetBSD ld.elf_so'
16068 fi
16069 shlibpath_var=LD_LIBRARY_PATH
16070 shlibpath_overrides_runpath=yes
16071 hardcode_into_libs=yes
16072 ;;
16073
16074newsos6)
16075 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 shlibpath_var=LD_LIBRARY_PATH
16078 shlibpath_overrides_runpath=yes
16079 ;;
16080
Reid Spencer2706f8c2004-09-19 23:53:36 +000016081nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000016082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=yes
16089 ;;
16090
16091openbsd*)
16092 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000016093 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell7a73b802003-06-30 21:59:07 +000016094 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000016095 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16096 case $host_os in
16097 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16098 *) need_version=no ;;
16099 esac
John Criswell47fdd832003-07-14 16:52:07 +000016100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16101 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16102 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000016103 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 +000016104 case $host_os in
16105 openbsd2.[89] | openbsd2.[89].*)
16106 shlibpath_overrides_runpath=no
16107 ;;
16108 *)
16109 shlibpath_overrides_runpath=yes
16110 ;;
16111 esac
John Criswell7a73b802003-06-30 21:59:07 +000016112 else
16113 shlibpath_overrides_runpath=yes
16114 fi
John Criswell7a73b802003-06-30 21:59:07 +000016115 ;;
16116
16117os2*)
16118 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000016120 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000016121 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000016122 dynamic_linker='OS/2 ld.exe'
16123 shlibpath_var=LIBPATH
16124 ;;
16125
16126osf3* | osf4* | osf5*)
16127 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000016128 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016129 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016130 soname_spec='${libname}${release}${shared_ext}$major'
16131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000016132 shlibpath_var=LD_LIBRARY_PATH
16133 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16134 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16135 ;;
16136
John Criswell7a73b802003-06-30 21:59:07 +000016137solaris*)
16138 version_type=linux
16139 need_lib_prefix=no
16140 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16142 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016143 shlibpath_var=LD_LIBRARY_PATH
16144 shlibpath_overrides_runpath=yes
16145 hardcode_into_libs=yes
16146 # ldd complains unless libraries are executable
16147 postinstall_cmds='chmod +x $lib'
16148 ;;
16149
16150sunos4*)
16151 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000016152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000016153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16154 shlibpath_var=LD_LIBRARY_PATH
16155 shlibpath_overrides_runpath=yes
16156 if test "$with_gnu_ld" = yes; then
16157 need_lib_prefix=no
16158 fi
16159 need_version=yes
16160 ;;
16161
Reid Spencera773bd52006-08-04 18:18:08 +000016162sysv4 | sysv4.3*)
John Criswell7a73b802003-06-30 21:59:07 +000016163 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16165 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000016166 shlibpath_var=LD_LIBRARY_PATH
16167 case $host_vendor in
16168 sni)
16169 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000016170 need_lib_prefix=no
16171 export_dynamic_flag_spec='${wl}-Blargedynsym'
16172 runpath_var=LD_RUN_PATH
16173 ;;
16174 siemens)
16175 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000016176 ;;
16177 motorola)
16178 need_lib_prefix=no
16179 need_version=no
16180 shlibpath_overrides_runpath=no
16181 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16182 ;;
16183 esac
16184 ;;
16185
John Criswell7a73b802003-06-30 21:59:07 +000016186sysv4*MP*)
16187 if test -d /usr/nec ;then
16188 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000016189 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16190 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000016191 shlibpath_var=LD_LIBRARY_PATH
16192 fi
16193 ;;
16194
Reid Spencera773bd52006-08-04 18:18:08 +000016195sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16196 version_type=freebsd-elf
16197 need_lib_prefix=no
16198 need_version=no
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16203 if test "$with_gnu_ld" = yes; then
16204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16205 shlibpath_overrides_runpath=no
16206 else
16207 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16208 shlibpath_overrides_runpath=yes
16209 case $host_os in
16210 sco3.2v5*)
16211 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16212 ;;
16213 esac
16214 fi
16215 sys_lib_dlsearch_path_spec='/usr/lib'
16216 ;;
16217
John Criswell47fdd832003-07-14 16:52:07 +000016218uts4*)
16219 version_type=linux
16220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16221 soname_spec='${libname}${release}${shared_ext}$major'
16222 shlibpath_var=LD_LIBRARY_PATH
16223 ;;
16224
John Criswell7a73b802003-06-30 21:59:07 +000016225*)
16226 dynamic_linker=no
16227 ;;
16228esac
Reid Spencera773bd52006-08-04 18:18:08 +000016229{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16230echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016231test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000016232
Reid Spencera773bd52006-08-04 18:18:08 +000016233variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16234if test "$GCC" = yes; then
16235 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16236fi
16237
16238{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16239echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016240hardcode_action=
16241if test -n "$hardcode_libdir_flag_spec" || \
16242 test -n "$runpath_var" || \
16243 test "X$hardcode_automatic" = "Xyes" ; then
16244
16245 # We can hardcode non-existant directories.
16246 if test "$hardcode_direct" != no &&
16247 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16248 # have to relink, otherwise we might link with an installed library
16249 # when we should be linking with a yet-to-be-installed one
16250 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
16251 test "$hardcode_minus_L" != no; then
16252 # Linking always hardcodes the temporary library directory.
16253 hardcode_action=relink
16254 else
16255 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16256 hardcode_action=immediate
16257 fi
16258else
16259 # We cannot hardcode anything, or else we can only hardcode existing
16260 # directories.
16261 hardcode_action=unsupported
16262fi
Reid Spencera773bd52006-08-04 18:18:08 +000016263{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
16264echo "${ECHO_T}$hardcode_action" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016265
16266if test "$hardcode_action" = relink; then
16267 # Fast installation is not supported
16268 enable_fast_install=no
16269elif test "$shlibpath_overrides_runpath" = yes ||
16270 test "$enable_shared" = no; then
16271 # Fast installation is not necessary
16272 enable_fast_install=needless
16273fi
16274
16275striplib=
16276old_striplib=
Reid Spencera773bd52006-08-04 18:18:08 +000016277{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16278echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016279if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Reid Spencera773bd52006-08-04 18:18:08 +000016282 { echo "$as_me:$LINENO: result: yes" >&5
16283echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016284else
16285# FIXME - insert some real tests, host_os isn't really good enough
16286 case $host_os in
16287 darwin*)
16288 if test -n "$STRIP" ; then
16289 striplib="$STRIP -x"
Reid Spencera773bd52006-08-04 18:18:08 +000016290 { echo "$as_me:$LINENO: result: yes" >&5
16291echo "${ECHO_T}yes" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016292 else
Reid Spencera773bd52006-08-04 18:18:08 +000016293 { echo "$as_me:$LINENO: result: no" >&5
16294echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016295fi
16296 ;;
16297 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016298 { echo "$as_me:$LINENO: result: no" >&5
16299echo "${ECHO_T}no" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000016300 ;;
16301 esac
16302fi
16303
John Criswell7a73b802003-06-30 21:59:07 +000016304if test "x$enable_dlopen" != xyes; then
16305 enable_dlopen=unknown
16306 enable_dlopen_self=unknown
16307 enable_dlopen_self_static=unknown
16308else
16309 lt_cv_dlopen=no
16310 lt_cv_dlopen_libs=
16311
16312 case $host_os in
16313 beos*)
16314 lt_cv_dlopen="load_add_on"
16315 lt_cv_dlopen_libs=
16316 lt_cv_dlopen_self=yes
16317 ;;
16318
John Criswell47fdd832003-07-14 16:52:07 +000016319 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000016320 lt_cv_dlopen="LoadLibrary"
16321 lt_cv_dlopen_libs=
16322 ;;
16323
John Criswell47fdd832003-07-14 16:52:07 +000016324 cygwin*)
16325 lt_cv_dlopen="dlopen"
16326 lt_cv_dlopen_libs=
16327 ;;
16328
16329 darwin*)
16330 # if libdl is installed we need to link against it
Reid Spencera773bd52006-08-04 18:18:08 +000016331 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16332echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016333if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16334 echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336 ac_check_lib_save_LIBS=$LIBS
16337LIBS="-ldl $LIBS"
16338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016344
Reid Spencera773bd52006-08-04 18:18:08 +000016345/* Override any GCC internal prototype to avoid an error.
16346 Use char because int might match the return type of a GCC
16347 builtin and then its argument prototype would still apply. */
John Criswell47fdd832003-07-14 16:52:07 +000016348#ifdef __cplusplus
16349extern "C"
16350#endif
John Criswell47fdd832003-07-14 16:52:07 +000016351char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016352int
16353main ()
16354{
Reid Spencera773bd52006-08-04 18:18:08 +000016355return dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016356 ;
16357 return 0;
16358}
16359_ACEOF
16360rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016361if { (ac_try="$ac_link"
16362case "(($ac_try" in
16363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364 *) ac_try_echo=$ac_try;;
16365esac
16366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016368 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016369 grep -v '^ *+' conftest.er1 >conftest.err
16370 rm -f conftest.er1
16371 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16375 { (case "(($ac_try" in
16376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16377 *) ac_try_echo=$ac_try;;
16378esac
16379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16380 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016381 ac_status=$?
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); }; } &&
16384 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016385 { (case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16390 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016391 ac_status=$?
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); }; }; then
16394 ac_cv_lib_dl_dlopen=yes
16395else
16396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016397sed 's/^/| /' conftest.$ac_ext >&5
16398
Reid Spencera773bd52006-08-04 18:18:08 +000016399 ac_cv_lib_dl_dlopen=no
John Criswell47fdd832003-07-14 16:52:07 +000016400fi
Reid Spencera773bd52006-08-04 18:18:08 +000016401
16402rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016403 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016404LIBS=$ac_check_lib_save_LIBS
16405fi
Reid Spencera773bd52006-08-04 18:18:08 +000016406{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16407echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000016408if test $ac_cv_lib_dl_dlopen = yes; then
16409 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16410else
16411
16412 lt_cv_dlopen="dyld"
16413 lt_cv_dlopen_libs=
16414 lt_cv_dlopen_self=yes
16415
16416fi
16417
16418 ;;
16419
John Criswell7a73b802003-06-30 21:59:07 +000016420 *)
Reid Spencera773bd52006-08-04 18:18:08 +000016421 { echo "$as_me:$LINENO: checking for shl_load" >&5
16422echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016423if test "${ac_cv_func_shl_load+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425else
16426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016432/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16434#define shl_load innocuous_shl_load
16435
John Criswell7a73b802003-06-30 21:59:07 +000016436/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016437 which can conflict with char shl_load (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016440
John Criswell0c38eaf2003-09-10 15:17:25 +000016441#ifdef __STDC__
16442# include <limits.h>
16443#else
16444# include <assert.h>
16445#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016446
16447#undef shl_load
16448
Reid Spencera773bd52006-08-04 18:18:08 +000016449/* Override any GCC internal prototype to avoid an error.
16450 Use char because int might match the return type of a GCC
16451 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016452#ifdef __cplusplus
16453extern "C"
16454#endif
John Criswell7a73b802003-06-30 21:59:07 +000016455char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016456/* The GNU C library defines this for functions which it implements
16457 to always fail with ENOSYS. Some functions are actually named
16458 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016459#if defined __stub_shl_load || defined __stub___shl_load
John Criswell7a73b802003-06-30 21:59:07 +000016460choke me
John Criswell7a73b802003-06-30 21:59:07 +000016461#endif
16462
John Criswell0c38eaf2003-09-10 15:17:25 +000016463int
16464main ()
16465{
Reid Spencera773bd52006-08-04 18:18:08 +000016466return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016467 ;
16468 return 0;
16469}
16470_ACEOF
16471rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016472if { (ac_try="$ac_link"
16473case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476esac
16477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016479 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016480 grep -v '^ *+' conftest.er1 >conftest.err
16481 rm -f conftest.er1
16482 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16486 { (case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16489esac
16490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016492 ac_status=$?
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016496 { (case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16499esac
16500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 ac_cv_func_shl_load=yes
16506else
16507 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016508sed 's/^/| /' conftest.$ac_ext >&5
16509
Reid Spencera773bd52006-08-04 18:18:08 +000016510 ac_cv_func_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016511fi
Reid Spencera773bd52006-08-04 18:18:08 +000016512
16513rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016514 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016515fi
Reid Spencera773bd52006-08-04 18:18:08 +000016516{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16517echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016518if test $ac_cv_func_shl_load = yes; then
16519 lt_cv_dlopen="shl_load"
16520else
Reid Spencera773bd52006-08-04 18:18:08 +000016521 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16522echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016523if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525else
16526 ac_check_lib_save_LIBS=$LIBS
16527LIBS="-ldld $LIBS"
16528cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016529/* confdefs.h. */
16530_ACEOF
16531cat confdefs.h >>conftest.$ac_ext
16532cat >>conftest.$ac_ext <<_ACEOF
16533/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016534
Reid Spencera773bd52006-08-04 18:18:08 +000016535/* Override any GCC internal prototype to avoid an error.
16536 Use char because int might match the return type of a GCC
16537 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016538#ifdef __cplusplus
16539extern "C"
16540#endif
John Criswell7a73b802003-06-30 21:59:07 +000016541char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016542int
16543main ()
16544{
Reid Spencera773bd52006-08-04 18:18:08 +000016545return shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000016546 ;
16547 return 0;
16548}
16549_ACEOF
16550rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016551if { (ac_try="$ac_link"
16552case "(($ac_try" in
16553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554 *) ac_try_echo=$ac_try;;
16555esac
16556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016559 grep -v '^ *+' conftest.er1 >conftest.err
16560 rm -f conftest.er1
16561 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568esac
16569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; } &&
16574 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016575 { (case "(($ac_try" in
16576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577 *) ac_try_echo=$ac_try;;
16578esac
16579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016581 ac_status=$?
16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583 (exit $ac_status); }; }; then
16584 ac_cv_lib_dld_shl_load=yes
16585else
16586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016587sed 's/^/| /' conftest.$ac_ext >&5
16588
Reid Spencera773bd52006-08-04 18:18:08 +000016589 ac_cv_lib_dld_shl_load=no
John Criswell7a73b802003-06-30 21:59:07 +000016590fi
Reid Spencera773bd52006-08-04 18:18:08 +000016591
16592rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016593 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016594LIBS=$ac_check_lib_save_LIBS
16595fi
Reid Spencera773bd52006-08-04 18:18:08 +000016596{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16597echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016598if test $ac_cv_lib_dld_shl_load = yes; then
16599 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16600else
Reid Spencera773bd52006-08-04 18:18:08 +000016601 { echo "$as_me:$LINENO: checking for dlopen" >&5
16602echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016603if test "${ac_cv_func_dlopen+set}" = set; then
16604 echo $ECHO_N "(cached) $ECHO_C" >&6
16605else
16606 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016607/* confdefs.h. */
16608_ACEOF
16609cat confdefs.h >>conftest.$ac_ext
16610cat >>conftest.$ac_ext <<_ACEOF
16611/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016612/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16614#define dlopen innocuous_dlopen
16615
John Criswell7a73b802003-06-30 21:59:07 +000016616/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016617 which can conflict with char dlopen (); below.
16618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16619 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000016620
John Criswell0c38eaf2003-09-10 15:17:25 +000016621#ifdef __STDC__
16622# include <limits.h>
16623#else
16624# include <assert.h>
16625#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626
16627#undef dlopen
16628
Reid Spencera773bd52006-08-04 18:18:08 +000016629/* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016632#ifdef __cplusplus
16633extern "C"
16634#endif
John Criswell7a73b802003-06-30 21:59:07 +000016635char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016636/* The GNU C library defines this for functions which it implements
16637 to always fail with ENOSYS. Some functions are actually named
16638 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000016639#if defined __stub_dlopen || defined __stub___dlopen
John Criswell7a73b802003-06-30 21:59:07 +000016640choke me
John Criswell7a73b802003-06-30 21:59:07 +000016641#endif
16642
John Criswell0c38eaf2003-09-10 15:17:25 +000016643int
16644main ()
16645{
Reid Spencera773bd52006-08-04 18:18:08 +000016646return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016652if { (ac_try="$ac_link"
16653case "(($ac_try" in
16654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16655 *) ac_try_echo=$ac_try;;
16656esac
16657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16658 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016660 grep -v '^ *+' conftest.er1 >conftest.err
16661 rm -f conftest.er1
16662 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16666 { (case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16669esac
16670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; } &&
16675 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16679esac
16680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_func_dlopen=yes
16686else
16687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016688sed 's/^/| /' conftest.$ac_ext >&5
16689
Reid Spencera773bd52006-08-04 18:18:08 +000016690 ac_cv_func_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016691fi
Reid Spencera773bd52006-08-04 18:18:08 +000016692
16693rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016694 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016695fi
Reid Spencera773bd52006-08-04 18:18:08 +000016696{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16697echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016698if test $ac_cv_func_dlopen = yes; then
16699 lt_cv_dlopen="dlopen"
16700else
Reid Spencera773bd52006-08-04 18:18:08 +000016701 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705else
16706 ac_check_lib_save_LIBS=$LIBS
16707LIBS="-ldl $LIBS"
16708cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016714
Reid Spencera773bd52006-08-04 18:18:08 +000016715/* Override any GCC internal prototype to avoid an error.
16716 Use char because int might match the return type of a GCC
16717 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016718#ifdef __cplusplus
16719extern "C"
16720#endif
John Criswell7a73b802003-06-30 21:59:07 +000016721char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016722int
16723main ()
16724{
Reid Spencera773bd52006-08-04 18:18:08 +000016725return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016726 ;
16727 return 0;
16728}
16729_ACEOF
16730rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016731if { (ac_try="$ac_link"
16732case "(($ac_try" in
16733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16734 *) ac_try_echo=$ac_try;;
16735esac
16736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16737 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739 grep -v '^ *+' conftest.er1 >conftest.err
16740 rm -f conftest.er1
16741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16745 { (case "(($ac_try" in
16746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747 *) ac_try_echo=$ac_try;;
16748esac
16749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16750 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016751 ac_status=$?
16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753 (exit $ac_status); }; } &&
16754 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016755 { (case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758esac
16759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
16764 ac_cv_lib_dl_dlopen=yes
16765else
16766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016767sed 's/^/| /' conftest.$ac_ext >&5
16768
Reid Spencera773bd52006-08-04 18:18:08 +000016769 ac_cv_lib_dl_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016770fi
Reid Spencera773bd52006-08-04 18:18:08 +000016771
16772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016773 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016774LIBS=$ac_check_lib_save_LIBS
16775fi
Reid Spencera773bd52006-08-04 18:18:08 +000016776{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016778if test $ac_cv_lib_dl_dlopen = yes; then
16779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16780else
Reid Spencera773bd52006-08-04 18:18:08 +000016781 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16782echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016783if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785else
16786 ac_check_lib_save_LIBS=$LIBS
16787LIBS="-lsvld $LIBS"
16788cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016794
Reid Spencera773bd52006-08-04 18:18:08 +000016795/* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016798#ifdef __cplusplus
16799extern "C"
16800#endif
John Criswell7a73b802003-06-30 21:59:07 +000016801char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016802int
16803main ()
16804{
Reid Spencera773bd52006-08-04 18:18:08 +000016805return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000016806 ;
16807 return 0;
16808}
16809_ACEOF
16810rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016811if { (ac_try="$ac_link"
16812case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815esac
16816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016818 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016835 { (case "(($ac_try" in
16836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837 *) ac_try_echo=$ac_try;;
16838esac
16839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016841 ac_status=$?
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; }; then
16844 ac_cv_lib_svld_dlopen=yes
16845else
16846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016847sed 's/^/| /' conftest.$ac_ext >&5
16848
Reid Spencera773bd52006-08-04 18:18:08 +000016849 ac_cv_lib_svld_dlopen=no
John Criswell7a73b802003-06-30 21:59:07 +000016850fi
Reid Spencera773bd52006-08-04 18:18:08 +000016851
16852rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016853 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016854LIBS=$ac_check_lib_save_LIBS
16855fi
Reid Spencera773bd52006-08-04 18:18:08 +000016856{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16857echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016858if test $ac_cv_lib_svld_dlopen = yes; then
16859 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16860else
Reid Spencera773bd52006-08-04 18:18:08 +000016861 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16862echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016863if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16865else
16866 ac_check_lib_save_LIBS=$LIBS
16867LIBS="-ldld $LIBS"
16868cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016869/* confdefs.h. */
16870_ACEOF
16871cat confdefs.h >>conftest.$ac_ext
16872cat >>conftest.$ac_ext <<_ACEOF
16873/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000016874
Reid Spencera773bd52006-08-04 18:18:08 +000016875/* Override any GCC internal prototype to avoid an error.
16876 Use char because int might match the return type of a GCC
16877 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000016878#ifdef __cplusplus
16879extern "C"
16880#endif
John Criswell7a73b802003-06-30 21:59:07 +000016881char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016882int
16883main ()
16884{
Reid Spencera773bd52006-08-04 18:18:08 +000016885return dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000016886 ;
16887 return 0;
16888}
16889_ACEOF
16890rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000016891if { (ac_try="$ac_link"
16892case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16895esac
16896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000016898 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000016902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000016904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908esac
16909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000016915 { (case "(($ac_try" in
16916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917 *) ac_try_echo=$ac_try;;
16918esac
16919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16920 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000016921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_lib_dld_dld_link=yes
16925else
16926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016927sed 's/^/| /' conftest.$ac_ext >&5
16928
Reid Spencera773bd52006-08-04 18:18:08 +000016929 ac_cv_lib_dld_dld_link=no
John Criswell7a73b802003-06-30 21:59:07 +000016930fi
Reid Spencera773bd52006-08-04 18:18:08 +000016931
16932rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000016933 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000016934LIBS=$ac_check_lib_save_LIBS
16935fi
Reid Spencera773bd52006-08-04 18:18:08 +000016936{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16937echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016938if test $ac_cv_lib_dld_dld_link = yes; then
16939 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16940fi
16941
16942
16943fi
16944
16945
16946fi
16947
16948
16949fi
16950
16951
16952fi
16953
16954
16955fi
16956
16957 ;;
16958 esac
16959
16960 if test "x$lt_cv_dlopen" != xno; then
16961 enable_dlopen=yes
16962 else
16963 enable_dlopen=no
16964 fi
16965
16966 case $lt_cv_dlopen in
16967 dlopen)
16968 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000016969 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000016970
16971 save_LDFLAGS="$LDFLAGS"
Reid Spencera773bd52006-08-04 18:18:08 +000016972 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
John Criswell7a73b802003-06-30 21:59:07 +000016973
16974 save_LIBS="$LIBS"
16975 LIBS="$lt_cv_dlopen_libs $LIBS"
16976
Reid Spencera773bd52006-08-04 18:18:08 +000016977 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16978echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000016979if test "${lt_cv_dlopen_self+set}" = set; then
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 if test "$cross_compiling" = yes; then :
16983 lt_cv_dlopen_self=cross
16984else
John Criswell47fdd832003-07-14 16:52:07 +000016985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000016986 lt_status=$lt_dlunknown
16987 cat > conftest.$ac_ext <<EOF
Reid Spencer1000b732006-12-01 00:37:14 +000016988#line 16988 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000016989#include "confdefs.h"
16990
16991#if HAVE_DLFCN_H
16992#include <dlfcn.h>
16993#endif
16994
16995#include <stdio.h>
16996
16997#ifdef RTLD_GLOBAL
16998# define LT_DLGLOBAL RTLD_GLOBAL
16999#else
17000# ifdef DL_GLOBAL
17001# define LT_DLGLOBAL DL_GLOBAL
17002# else
17003# define LT_DLGLOBAL 0
17004# endif
17005#endif
17006
17007/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17008 find out it does not work in some platform. */
17009#ifndef LT_DLLAZY_OR_NOW
17010# ifdef RTLD_LAZY
17011# define LT_DLLAZY_OR_NOW RTLD_LAZY
17012# else
17013# ifdef DL_LAZY
17014# define LT_DLLAZY_OR_NOW DL_LAZY
17015# else
17016# ifdef RTLD_NOW
17017# define LT_DLLAZY_OR_NOW RTLD_NOW
17018# else
17019# ifdef DL_NOW
17020# define LT_DLLAZY_OR_NOW DL_NOW
17021# else
17022# define LT_DLLAZY_OR_NOW 0
17023# endif
17024# endif
17025# endif
17026# endif
17027#endif
17028
17029#ifdef __cplusplus
17030extern "C" void exit (int);
17031#endif
17032
17033void fnord() { int i=42;}
17034int main ()
17035{
17036 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17037 int status = $lt_dlunknown;
17038
17039 if (self)
17040 {
17041 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17042 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17043 /* dlclose (self); */
17044 }
Reid Spencera773bd52006-08-04 18:18:08 +000017045 else
17046 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017047
17048 exit (status);
17049}
17050EOF
17051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17052 (eval $ac_link) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017056 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017057 lt_status=$?
17058 case x$lt_status in
17059 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17060 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017061 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017062 esac
17063 else :
17064 # compilation failed
17065 lt_cv_dlopen_self=no
17066 fi
17067fi
17068rm -fr conftest*
17069
17070
17071fi
Reid Spencera773bd52006-08-04 18:18:08 +000017072{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17073echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017074
17075 if test "x$lt_cv_dlopen_self" = xyes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017076 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17077 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17078echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017079if test "${lt_cv_dlopen_self_static+set}" = set; then
17080 echo $ECHO_N "(cached) $ECHO_C" >&6
17081else
17082 if test "$cross_compiling" = yes; then :
17083 lt_cv_dlopen_self_static=cross
17084else
John Criswell47fdd832003-07-14 16:52:07 +000017085 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000017086 lt_status=$lt_dlunknown
17087 cat > conftest.$ac_ext <<EOF
Reid Spencer1000b732006-12-01 00:37:14 +000017088#line 17088 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000017089#include "confdefs.h"
17090
17091#if HAVE_DLFCN_H
17092#include <dlfcn.h>
17093#endif
17094
17095#include <stdio.h>
17096
17097#ifdef RTLD_GLOBAL
17098# define LT_DLGLOBAL RTLD_GLOBAL
17099#else
17100# ifdef DL_GLOBAL
17101# define LT_DLGLOBAL DL_GLOBAL
17102# else
17103# define LT_DLGLOBAL 0
17104# endif
17105#endif
17106
17107/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17108 find out it does not work in some platform. */
17109#ifndef LT_DLLAZY_OR_NOW
17110# ifdef RTLD_LAZY
17111# define LT_DLLAZY_OR_NOW RTLD_LAZY
17112# else
17113# ifdef DL_LAZY
17114# define LT_DLLAZY_OR_NOW DL_LAZY
17115# else
17116# ifdef RTLD_NOW
17117# define LT_DLLAZY_OR_NOW RTLD_NOW
17118# else
17119# ifdef DL_NOW
17120# define LT_DLLAZY_OR_NOW DL_NOW
17121# else
17122# define LT_DLLAZY_OR_NOW 0
17123# endif
17124# endif
17125# endif
17126# endif
17127#endif
17128
17129#ifdef __cplusplus
17130extern "C" void exit (int);
17131#endif
17132
17133void fnord() { int i=42;}
17134int main ()
17135{
17136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17137 int status = $lt_dlunknown;
17138
17139 if (self)
17140 {
17141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17142 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17143 /* dlclose (self); */
17144 }
Reid Spencera773bd52006-08-04 18:18:08 +000017145 else
17146 puts (dlerror ());
John Criswell7a73b802003-06-30 21:59:07 +000017147
17148 exit (status);
17149}
17150EOF
17151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17152 (eval $ac_link) 2>&5
17153 ac_status=$?
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000017156 (./conftest; exit; ) >&5 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000017157 lt_status=$?
17158 case x$lt_status in
17159 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17160 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Reid Spencera773bd52006-08-04 18:18:08 +000017161 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
John Criswell7a73b802003-06-30 21:59:07 +000017162 esac
17163 else :
17164 # compilation failed
17165 lt_cv_dlopen_self_static=no
17166 fi
17167fi
17168rm -fr conftest*
17169
17170
17171fi
Reid Spencera773bd52006-08-04 18:18:08 +000017172{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17173echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017174 fi
17175
17176 CPPFLAGS="$save_CPPFLAGS"
17177 LDFLAGS="$save_LDFLAGS"
17178 LIBS="$save_LIBS"
17179 ;;
17180 esac
17181
17182 case $lt_cv_dlopen_self in
17183 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17184 *) enable_dlopen_self=unknown ;;
17185 esac
17186
17187 case $lt_cv_dlopen_self_static in
17188 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17189 *) enable_dlopen_self_static=unknown ;;
17190 esac
17191fi
17192
17193
Reid Spencera773bd52006-08-04 18:18:08 +000017194# Report which library types will actually be built
17195{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17196echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
17197{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
17198echo "${ECHO_T}$can_build_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017199
Reid Spencera773bd52006-08-04 18:18:08 +000017200{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17201echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017202test "$can_build_shared" = "no" && enable_shared=no
17203
17204# On AIX, shared libraries and static libraries use the same namespace, and
17205# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000017206case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000017207aix3*)
17208 test "$enable_shared" = yes && enable_static=no
17209 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000017210 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000017211 postinstall_cmds='$RANLIB $lib'
17212 fi
17213 ;;
17214
Reid Spencer2706f8c2004-09-19 23:53:36 +000017215aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000017216 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17217 test "$enable_shared" = yes && enable_static=no
17218 fi
John Criswell7a73b802003-06-30 21:59:07 +000017219 ;;
John Criswell47fdd832003-07-14 16:52:07 +000017220esac
Reid Spencera773bd52006-08-04 18:18:08 +000017221{ echo "$as_me:$LINENO: result: $enable_shared" >&5
17222echo "${ECHO_T}$enable_shared" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000017223
Reid Spencera773bd52006-08-04 18:18:08 +000017224{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17225echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017226# Make sure either enable_shared or enable_static is yes.
17227test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000017228{ echo "$as_me:$LINENO: result: $enable_static" >&5
17229echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017230
17231# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000017232# libtool distribution, otherwise you forgot to ship ltmain.sh
17233# with your package, and you will get complaints that there are
17234# no rules to generate ltmain.sh.
17235if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000017236 # See if we are running on zsh, and set the options which allow our commands through
17237 # without removal of \ escapes.
17238 if test -n "${ZSH_VERSION+set}" ; then
17239 setopt NO_GLOB_SUBST
17240 fi
John Criswell7a73b802003-06-30 21:59:07 +000017241 # Now quote all the things that may contain metacharacters while being
17242 # careful not to overquote the AC_SUBSTed values. We take copies of the
17243 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000017244 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 +000017245 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000017246 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17247 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17248 deplibs_check_method reload_flag reload_cmds need_locks \
17249 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17250 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000017251 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000017252 old_postinstall_cmds old_postuninstall_cmds \
17253 compiler \
17254 CC \
17255 LD \
17256 lt_prog_compiler_wl \
17257 lt_prog_compiler_pic \
17258 lt_prog_compiler_static \
17259 lt_prog_compiler_no_builtin_flag \
17260 export_dynamic_flag_spec \
17261 thread_safe_flag_spec \
17262 whole_archive_flag_spec \
17263 enable_shared_with_static_runtimes \
17264 old_archive_cmds \
17265 old_archive_from_new_cmds \
17266 predep_objects \
17267 postdep_objects \
17268 predeps \
17269 postdeps \
17270 compiler_lib_search_path \
17271 archive_cmds \
17272 archive_expsym_cmds \
17273 postinstall_cmds \
17274 postuninstall_cmds \
17275 old_archive_from_expsyms_cmds \
17276 allow_undefined_flag \
17277 no_undefined_flag \
17278 export_symbols_cmds \
17279 hardcode_libdir_flag_spec \
17280 hardcode_libdir_flag_spec_ld \
17281 hardcode_libdir_separator \
17282 hardcode_automatic \
17283 module_cmds \
17284 module_expsym_cmds \
17285 lt_cv_prog_compiler_c_o \
17286 exclude_expsyms \
17287 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000017288
17289 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000017290 old_archive_cmds | \
17291 old_archive_from_new_cmds | \
17292 archive_cmds | \
17293 archive_expsym_cmds | \
17294 module_cmds | \
17295 module_expsym_cmds | \
17296 old_archive_from_expsyms_cmds | \
17297 export_symbols_cmds | \
17298 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000017299 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000017300 old_postinstall_cmds | old_postuninstall_cmds | \
17301 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000017302 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017303 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 +000017304 ;;
17305 *)
17306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17307 ;;
17308 esac
17309 done
17310
John Criswell47fdd832003-07-14 16:52:07 +000017311 case $lt_echo in
17312 *'\$0 --fallback-echo"')
17313 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17314 ;;
17315 esac
17316
17317cfgfile="${ofile}T"
17318 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
17319 $rm -f "$cfgfile"
17320 { echo "$as_me:$LINENO: creating $ofile" >&5
17321echo "$as_me: creating $ofile" >&6;}
17322
17323 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017324#! $SHELL
17325
John Criswell47fdd832003-07-14 16:52:07 +000017326# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000017327# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
17328# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17329#
John Criswell47fdd832003-07-14 16:52:07 +000017330# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
17331# Free Software Foundation, Inc.
17332#
17333# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000017334# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
17335#
17336# This program is free software; you can redistribute it and/or modify
17337# it under the terms of the GNU General Public License as published by
17338# the Free Software Foundation; either version 2 of the License, or
17339# (at your option) any later version.
17340#
17341# This program is distributed in the hope that it will be useful, but
17342# WITHOUT ANY WARRANTY; without even the implied warranty of
17343# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17344# General Public License for more details.
17345#
17346# You should have received a copy of the GNU General Public License
17347# along with this program; if not, write to the Free Software
Reid Spencera773bd52006-08-04 18:18:08 +000017348# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
John Criswell7a73b802003-06-30 21:59:07 +000017349#
17350# As a special exception to the GNU General Public License, if you
17351# distribute this file as part of a program that contains a
17352# configuration script generated by Autoconf, you may include it under
17353# the same distribution terms that you use for the rest of that program.
17354
John Criswell47fdd832003-07-14 16:52:07 +000017355# A sed program that does not truncate output.
17356SED=$lt_SED
17357
John Criswell7a73b802003-06-30 21:59:07 +000017358# Sed that helps us avoid accidentally triggering echo(1) options like -n.
Reid Spencera773bd52006-08-04 18:18:08 +000017359Xsed="$SED -e 1s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000017360
17361# The HP-UX ksh and POSIX shell print the target directory to stdout
17362# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000017364
John Criswell47fdd832003-07-14 16:52:07 +000017365# The names of the tagged configurations supported by this script.
17366available_tags=
17367
John Criswell7a73b802003-06-30 21:59:07 +000017368# ### BEGIN LIBTOOL CONFIG
17369
17370# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17371
17372# Shell to use when invoking shell scripts.
17373SHELL=$lt_SHELL
17374
17375# Whether or not to build shared libraries.
17376build_libtool_libs=$enable_shared
17377
17378# Whether or not to build static libraries.
17379build_old_libs=$enable_static
17380
17381# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000017382build_libtool_need_lc=$archive_cmds_need_lc
17383
17384# Whether or not to disallow shared libs when runtime libs are static
17385allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000017386
17387# Whether or not to optimize for fast installation.
17388fast_install=$enable_fast_install
17389
17390# The host system.
17391host_alias=$host_alias
17392host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000017393host_os=$host_os
17394
17395# The build system.
17396build_alias=$build_alias
17397build=$build
17398build_os=$build_os
John Criswell7a73b802003-06-30 21:59:07 +000017399
17400# An echo program that does not interpret backslashes.
17401echo=$lt_echo
17402
17403# The archiver.
17404AR=$lt_AR
17405AR_FLAGS=$lt_AR_FLAGS
17406
John Criswell47fdd832003-07-14 16:52:07 +000017407# A C compiler.
17408LTCC=$lt_LTCC
17409
Reid Spencera773bd52006-08-04 18:18:08 +000017410# LTCC compiler flags.
17411LTCFLAGS=$lt_LTCFLAGS
17412
John Criswell47fdd832003-07-14 16:52:07 +000017413# A language-specific compiler.
17414CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000017415
17416# Is the compiler the GNU C compiler?
17417with_gcc=$GCC
17418
John Criswell47fdd832003-07-14 16:52:07 +000017419# An ERE matcher.
17420EGREP=$lt_EGREP
17421
John Criswell7a73b802003-06-30 21:59:07 +000017422# The linker used to build libraries.
17423LD=$lt_LD
17424
17425# Whether we need hard or soft links.
17426LN_S=$lt_LN_S
17427
17428# A BSD-compatible nm program.
17429NM=$lt_NM
17430
17431# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000017432STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000017433
17434# Used to examine libraries when file_magic_cmd begins "file"
17435MAGIC_CMD=$MAGIC_CMD
17436
17437# Used on cygwin: DLL creation program.
17438DLLTOOL="$DLLTOOL"
17439
17440# Used on cygwin: object dumper.
17441OBJDUMP="$OBJDUMP"
17442
17443# Used on cygwin: assembler.
17444AS="$AS"
17445
17446# The name of the directory that contains temporary libtool files.
17447objdir=$objdir
17448
17449# How to create reloadable object files.
17450reload_flag=$lt_reload_flag
17451reload_cmds=$lt_reload_cmds
17452
17453# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000017454wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000017455
17456# Object file suffix (normally "o").
17457objext="$ac_objext"
17458
17459# Old archive suffix (normally "a").
17460libext="$libext"
17461
John Criswell47fdd832003-07-14 16:52:07 +000017462# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000017463shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000017464
John Criswell7a73b802003-06-30 21:59:07 +000017465# Executable file suffix (normally "").
17466exeext="$exeext"
17467
17468# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000017469pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000017470pic_mode=$pic_mode
17471
John Criswell47fdd832003-07-14 16:52:07 +000017472# What is the maximum length of a command?
17473max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000017474
John Criswell47fdd832003-07-14 16:52:07 +000017475# Does compiler simultaneously support -c and -o options?
17476compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000017477
Reid Spencera773bd52006-08-04 18:18:08 +000017478# Must we lock files when doing compilation?
John Criswell7a73b802003-06-30 21:59:07 +000017479need_locks=$lt_need_locks
17480
17481# Do we need the lib prefix for modules?
17482need_lib_prefix=$need_lib_prefix
17483
17484# Do we need a version for libraries?
17485need_version=$need_version
17486
17487# Whether dlopen is supported.
17488dlopen_support=$enable_dlopen
17489
17490# Whether dlopen of programs is supported.
17491dlopen_self=$enable_dlopen_self
17492
17493# Whether dlopen of statically linked programs is supported.
17494dlopen_self_static=$enable_dlopen_self_static
17495
17496# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000017497link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000017498
17499# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000017500no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000017501
17502# Compiler flag to allow reflexive dlopens.
17503export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17504
17505# Compiler flag to generate shared objects directly from archives.
17506whole_archive_flag_spec=$lt_whole_archive_flag_spec
17507
17508# Compiler flag to generate thread-safe objects.
17509thread_safe_flag_spec=$lt_thread_safe_flag_spec
17510
17511# Library versioning type.
17512version_type=$version_type
17513
17514# Format of library name prefix.
17515libname_spec=$lt_libname_spec
17516
17517# List of archive names. First name is the real one, the rest are links.
17518# The last name is the one that the linker finds with -lNAME.
17519library_names_spec=$lt_library_names_spec
17520
17521# The coded name of the library, if different from the real name.
17522soname_spec=$lt_soname_spec
17523
17524# Commands used to build and install an old-style archive.
17525RANLIB=$lt_RANLIB
17526old_archive_cmds=$lt_old_archive_cmds
17527old_postinstall_cmds=$lt_old_postinstall_cmds
17528old_postuninstall_cmds=$lt_old_postuninstall_cmds
17529
17530# Create an old-style archive from a shared archive.
17531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17532
17533# Create a temporary old-style archive to link instead of a shared archive.
17534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17535
17536# Commands used to build and install a shared archive.
17537archive_cmds=$lt_archive_cmds
17538archive_expsym_cmds=$lt_archive_expsym_cmds
17539postinstall_cmds=$lt_postinstall_cmds
17540postuninstall_cmds=$lt_postuninstall_cmds
17541
John Criswell47fdd832003-07-14 16:52:07 +000017542# Commands used to build a loadable module (assumed same as above if empty)
17543module_cmds=$lt_module_cmds
17544module_expsym_cmds=$lt_module_expsym_cmds
17545
John Criswell7a73b802003-06-30 21:59:07 +000017546# Commands to strip libraries.
17547old_striplib=$lt_old_striplib
17548striplib=$lt_striplib
17549
John Criswell47fdd832003-07-14 16:52:07 +000017550# Dependencies to place before the objects being linked to create a
17551# shared library.
17552predep_objects=$lt_predep_objects
17553
17554# Dependencies to place after the objects being linked to create a
17555# shared library.
17556postdep_objects=$lt_postdep_objects
17557
17558# Dependencies to place before the objects being linked to create a
17559# shared library.
17560predeps=$lt_predeps
17561
17562# Dependencies to place after the objects being linked to create a
17563# shared library.
17564postdeps=$lt_postdeps
17565
17566# The library search path used internally by the compiler when linking
17567# a shared library.
17568compiler_lib_search_path=$lt_compiler_lib_search_path
17569
John Criswell7a73b802003-06-30 21:59:07 +000017570# Method to check whether dependent libraries are shared objects.
17571deplibs_check_method=$lt_deplibs_check_method
17572
17573# Command to use when deplibs_check_method == file_magic.
17574file_magic_cmd=$lt_file_magic_cmd
17575
17576# Flag that allows shared libraries with undefined symbols to be built.
17577allow_undefined_flag=$lt_allow_undefined_flag
17578
17579# Flag that forces no undefined symbols.
17580no_undefined_flag=$lt_no_undefined_flag
17581
17582# Commands used to finish a libtool library installation in a directory.
17583finish_cmds=$lt_finish_cmds
17584
17585# Same as above, but a single script fragment to be evaled but not shown.
17586finish_eval=$lt_finish_eval
17587
17588# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000017589global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000017590
17591# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000017592global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000017593
17594# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000017595global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000017596
17597# This is the shared library runtime path variable.
17598runpath_var=$runpath_var
17599
17600# This is the shared library path variable.
17601shlibpath_var=$shlibpath_var
17602
17603# Is shlibpath searched before the hard-coded library search path?
17604shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17605
17606# How to hardcode a shared library path into an executable.
17607hardcode_action=$hardcode_action
17608
17609# Whether we should hardcode library paths into libraries.
17610hardcode_into_libs=$hardcode_into_libs
17611
17612# Flag to hardcode \$libdir into a binary during linking.
17613# This must work even if \$libdir does not exist.
17614hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17615
John Criswell47fdd832003-07-14 16:52:07 +000017616# If ld is used when linking, flag to hardcode \$libdir into
17617# a binary during linking. This must work even if \$libdir does
17618# not exist.
17619hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17620
John Criswell7a73b802003-06-30 21:59:07 +000017621# Whether we need a single -rpath flag with a separated argument.
17622hardcode_libdir_separator=$lt_hardcode_libdir_separator
17623
John Criswell47fdd832003-07-14 16:52:07 +000017624# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000017625# resulting binary.
17626hardcode_direct=$hardcode_direct
17627
17628# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17629# resulting binary.
17630hardcode_minus_L=$hardcode_minus_L
17631
17632# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17633# the resulting binary.
17634hardcode_shlibpath_var=$hardcode_shlibpath_var
17635
John Criswell47fdd832003-07-14 16:52:07 +000017636# Set to yes if building a shared library automatically hardcodes DIR into the library
17637# and all subsequent libraries and executables linked against it.
17638hardcode_automatic=$hardcode_automatic
17639
John Criswell7a73b802003-06-30 21:59:07 +000017640# Variables whose values should be saved in libtool wrapper scripts and
17641# restored at relink time.
17642variables_saved_for_relink="$variables_saved_for_relink"
17643
17644# Whether libtool must link a program against all its dependency libraries.
17645link_all_deplibs=$link_all_deplibs
17646
17647# Compile-time system search path for libraries
17648sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17649
17650# Run-time system search path for libraries
17651sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17652
17653# Fix the shell variable \$srcfile for the compiler.
17654fix_srcfile_path="$fix_srcfile_path"
17655
17656# Set to yes if exported symbols are required.
17657always_export_symbols=$always_export_symbols
17658
17659# The commands to list exported symbols.
17660export_symbols_cmds=$lt_export_symbols_cmds
17661
17662# The commands to extract the exported symbol list from a shared archive.
17663extract_expsyms_cmds=$lt_extract_expsyms_cmds
17664
17665# Symbols that should not be listed in the preloaded symbols.
17666exclude_expsyms=$lt_exclude_expsyms
17667
17668# Symbols that must always be exported.
17669include_expsyms=$lt_include_expsyms
17670
17671# ### END LIBTOOL CONFIG
17672
17673__EOF__
17674
John Criswell47fdd832003-07-14 16:52:07 +000017675
John Criswell7a73b802003-06-30 21:59:07 +000017676 case $host_os in
17677 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000017678 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000017679
17680# AIX sometimes has problems with the GCC collect2 program. For some
17681# reason, if we set the COLLECT_NAMES environment variable, the problems
17682# vanish in a puff of smoke.
17683if test "X${COLLECT_NAMES+set}" != Xset; then
17684 COLLECT_NAMES=
17685 export COLLECT_NAMES
17686fi
17687EOF
17688 ;;
17689 esac
17690
John Criswell7a73b802003-06-30 21:59:07 +000017691 # We use sed instead of cat because bash on DJGPP gets confused if
17692 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17693 # text mode, it properly converts lines to CR/LF. This bash problem
17694 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000017695 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000017696
John Criswell47fdd832003-07-14 16:52:07 +000017697 mv -f "$cfgfile" "$ofile" || \
17698 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000017699 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000017700
17701else
17702 # If there is no Makefile yet, we rely on a make rule to execute
17703 # `config.status --recheck' to rerun these tests and create the
17704 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017705 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17706 if test -f "$ltmain_in"; then
17707 test -f Makefile && make "$ltmain"
17708 fi
John Criswell7a73b802003-06-30 21:59:07 +000017709fi
John Criswell7a73b802003-06-30 21:59:07 +000017710
17711
John Criswell47fdd832003-07-14 16:52:07 +000017712ac_ext=c
17713ac_cpp='$CPP $CPPFLAGS'
17714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17716ac_compiler_gnu=$ac_cv_c_compiler_gnu
17717
17718CC="$lt_save_CC"
17719
17720
Reid Spencera773bd52006-08-04 18:18:08 +000017721# Check whether --with-tags was given.
John Criswell47fdd832003-07-14 16:52:07 +000017722if test "${with_tags+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017723 withval=$with_tags; tagnames="$withval"
17724fi
17725
John Criswell47fdd832003-07-14 16:52:07 +000017726
17727if test -f "$ltmain" && test -n "$tagnames"; then
17728 if test ! -f "${ofile}"; then
17729 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
17730echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
17731 fi
17732
17733 if test -z "$LTCC"; then
17734 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
17735 if test -z "$LTCC"; then
17736 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
17737echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
17738 else
17739 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
17740echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
17741 fi
17742 fi
Reid Spencera773bd52006-08-04 18:18:08 +000017743 if test -z "$LTCFLAGS"; then
17744 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
17745 fi
John Criswell47fdd832003-07-14 16:52:07 +000017746
17747 # Extract list of available tagged configurations in $ofile.
17748 # Note that this assumes the entire list is on one line.
17749 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
17750
17751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
17752 for tagname in $tagnames; do
17753 IFS="$lt_save_ifs"
17754 # Check whether tagname contains only valid characters
17755 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
17756 "") ;;
17757 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
17758echo "$as_me: error: invalid tag name: $tagname" >&2;}
17759 { (exit 1); exit 1; }; }
17760 ;;
17761 esac
17762
17763 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
17764 then
17765 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
17766echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
17767 { (exit 1); exit 1; }; }
17768 fi
17769
17770 # Update the list of available tags.
17771 if test -n "$tagname"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017772 echo appending configuration tag \"$tagname\" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000017773
17774 case $tagname in
17775 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017776 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17778 (test "X$CXX" != "Xg++"))) ; then
Reid Spencera773bd52006-08-04 18:18:08 +000017779 ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017780ac_cpp='$CXXCPP $CPPFLAGS'
17781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17784
17785
17786
17787
17788archive_cmds_need_lc_CXX=no
17789allow_undefined_flag_CXX=
17790always_export_symbols_CXX=no
17791archive_expsym_cmds_CXX=
17792export_dynamic_flag_spec_CXX=
17793hardcode_direct_CXX=no
17794hardcode_libdir_flag_spec_CXX=
17795hardcode_libdir_flag_spec_ld_CXX=
17796hardcode_libdir_separator_CXX=
17797hardcode_minus_L_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000017798hardcode_shlibpath_var_CXX=unsupported
John Criswell47fdd832003-07-14 16:52:07 +000017799hardcode_automatic_CXX=no
17800module_cmds_CXX=
17801module_expsym_cmds_CXX=
17802link_all_deplibs_CXX=unknown
17803old_archive_cmds_CXX=$old_archive_cmds
17804no_undefined_flag_CXX=
17805whole_archive_flag_spec_CXX=
17806enable_shared_with_static_runtimes_CXX=no
17807
17808# Dependencies to place before and after the object being linked:
17809predep_objects_CXX=
17810postdep_objects_CXX=
17811predeps_CXX=
17812postdeps_CXX=
17813compiler_lib_search_path_CXX=
17814
17815# Source file extension for C++ test sources.
Reid Spencera773bd52006-08-04 18:18:08 +000017816ac_ext=cpp
John Criswell47fdd832003-07-14 16:52:07 +000017817
17818# Object file extension for compiled C++ test sources.
17819objext=o
17820objext_CXX=$objext
17821
17822# Code to be used in simple compile tests
17823lt_simple_compile_test_code="int some_variable = 0;\n"
17824
17825# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000017826lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
John Criswell47fdd832003-07-14 16:52:07 +000017827
17828# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17829
17830# If no C compiler was specified, use CC.
17831LTCC=${LTCC-"$CC"}
17832
Reid Spencera773bd52006-08-04 18:18:08 +000017833# If no C compiler flags were specified, use CFLAGS.
17834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17835
John Criswell47fdd832003-07-14 16:52:07 +000017836# Allow CC to be a program name with arguments.
17837compiler=$CC
17838
17839
Reid Spencera773bd52006-08-04 18:18:08 +000017840# save warnings/boilerplate of simple test code
17841ac_outfile=conftest.$ac_objext
17842printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17844_lt_compiler_boilerplate=`cat conftest.err`
17845$rm conftest*
17846
17847ac_outfile=conftest.$ac_objext
17848printf "$lt_simple_link_test_code" >conftest.$ac_ext
17849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17850_lt_linker_boilerplate=`cat conftest.err`
17851$rm conftest*
17852
17853
John Criswell47fdd832003-07-14 16:52:07 +000017854# Allow CC to be a program name with arguments.
17855lt_save_CC=$CC
17856lt_save_LD=$LD
17857lt_save_GCC=$GCC
17858GCC=$GXX
17859lt_save_with_gnu_ld=$with_gnu_ld
17860lt_save_path_LD=$lt_cv_path_LD
17861if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17862 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17863else
Reid Spencera773bd52006-08-04 18:18:08 +000017864 $as_unset lt_cv_prog_gnu_ld
John Criswell47fdd832003-07-14 16:52:07 +000017865fi
17866if test -n "${lt_cv_path_LDCXX+set}"; then
17867 lt_cv_path_LD=$lt_cv_path_LDCXX
17868else
Reid Spencera773bd52006-08-04 18:18:08 +000017869 $as_unset lt_cv_path_LD
John Criswell47fdd832003-07-14 16:52:07 +000017870fi
17871test -z "${LDCXX+set}" || LD=$LDCXX
17872CC=${CXX-"c++"}
17873compiler=$CC
17874compiler_CXX=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000017875for cc_temp in $compiler""; do
17876 case $cc_temp in
17877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17879 \-*) ;;
17880 *) break;;
17881 esac
17882done
17883cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17884
John Criswell47fdd832003-07-14 16:52:07 +000017885
17886# We don't want -fno-exception wen compiling C++ code, so set the
17887# no_builtin_flag separately
17888if test "$GXX" = yes; then
17889 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17890else
17891 lt_prog_compiler_no_builtin_flag_CXX=
17892fi
17893
17894if test "$GXX" = yes; then
17895 # Set up default GNU C++ configuration
17896
17897
Reid Spencera773bd52006-08-04 18:18:08 +000017898# Check whether --with-gnu-ld was given.
John Criswell47fdd832003-07-14 16:52:07 +000017899if test "${with_gnu_ld+set}" = set; then
Reid Spencera773bd52006-08-04 18:18:08 +000017900 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +000017901else
17902 with_gnu_ld=no
Reid Spencera773bd52006-08-04 18:18:08 +000017903fi
17904
John Criswell47fdd832003-07-14 16:52:07 +000017905ac_prog=ld
17906if test "$GCC" = yes; then
17907 # Check if gcc -print-prog-name=ld gives a path.
Reid Spencera773bd52006-08-04 18:18:08 +000017908 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
17909echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017910 case $host in
17911 *-*-mingw*)
17912 # gcc leaves a trailing carriage return which upsets mingw
17913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17914 *)
17915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17916 esac
17917 case $ac_prog in
17918 # Accept absolute paths.
17919 [\\/]* | ?:[\\/]*)
17920 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017921 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000017922 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
17923 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17924 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
17925 done
17926 test -z "$LD" && LD="$ac_prog"
17927 ;;
17928 "")
17929 # If it fails, then pretend we aren't using GCC.
17930 ac_prog=ld
17931 ;;
17932 *)
17933 # If it is relative, then search for the first ld in PATH.
17934 with_gnu_ld=unknown
17935 ;;
17936 esac
17937elif test "$with_gnu_ld" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000017938 { echo "$as_me:$LINENO: checking for GNU ld" >&5
17939echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017940else
Reid Spencera773bd52006-08-04 18:18:08 +000017941 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
17942echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017943fi
17944if test "${lt_cv_path_LD+set}" = set; then
17945 echo $ECHO_N "(cached) $ECHO_C" >&6
17946else
17947 if test -z "$LD"; then
17948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17949 for ac_dir in $PATH; do
17950 IFS="$lt_save_ifs"
17951 test -z "$ac_dir" && ac_dir=.
17952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17953 lt_cv_path_LD="$ac_dir/$ac_prog"
17954 # Check to see if the program is GNU ld. I'd rather use --version,
Reid Spencera773bd52006-08-04 18:18:08 +000017955 # but apparently some variants of GNU ld only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +000017956 # Break only if it was the GNU/non-GNU ld that we prefer.
17957 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17958 *GNU* | *'with BFD'*)
17959 test "$with_gnu_ld" != no && break
17960 ;;
17961 *)
17962 test "$with_gnu_ld" != yes && break
17963 ;;
17964 esac
17965 fi
17966 done
17967 IFS="$lt_save_ifs"
17968else
17969 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17970fi
17971fi
17972
17973LD="$lt_cv_path_LD"
17974if test -n "$LD"; then
Reid Spencera773bd52006-08-04 18:18:08 +000017975 { echo "$as_me:$LINENO: result: $LD" >&5
17976echo "${ECHO_T}$LD" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017977else
Reid Spencera773bd52006-08-04 18:18:08 +000017978 { echo "$as_me:$LINENO: result: no" >&5
17979echo "${ECHO_T}no" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017980fi
17981test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
17982echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
17983 { (exit 1); exit 1; }; }
Reid Spencera773bd52006-08-04 18:18:08 +000017984{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
17985echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000017986if test "${lt_cv_prog_gnu_ld+set}" = set; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17988else
Reid Spencera773bd52006-08-04 18:18:08 +000017989 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017990case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000017991*GNU* | *'with BFD'*)
17992 lt_cv_prog_gnu_ld=yes
17993 ;;
17994*)
17995 lt_cv_prog_gnu_ld=no
17996 ;;
17997esac
17998fi
Reid Spencera773bd52006-08-04 18:18:08 +000017999{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18000echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018001with_gnu_ld=$lt_cv_prog_gnu_ld
18002
18003
18004
18005 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18006 # archiving commands below assume that GNU ld is being used.
18007 if test "$with_gnu_ld" = yes; then
18008 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18009 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'
18010
18011 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18013
18014 # If archive_cmds runs LD, not CC, wlarc should be empty
18015 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18016 # investigate it a little bit more. (MM)
18017 wlarc='${wl}'
18018
18019 # ancient GNU ld didn't support --whole-archive et. al.
18020 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
18021 grep 'no-whole-archive' > /dev/null; then
18022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18023 else
18024 whole_archive_flag_spec_CXX=
18025 fi
18026 else
18027 with_gnu_ld=no
18028 wlarc=
18029
18030 # A generic and very simple default shared library creation
18031 # command for GNU C++ for the case where it uses the native
18032 # linker, instead of GNU ld. If possible, this setting should
18033 # overridden to take advantage of the native linker features on
18034 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018035 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000018036 fi
18037
18038 # Commands to make compiler produce verbose output that lists
18039 # what "hidden" libraries, object files and flags are used when
18040 # linking a shared library.
18041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18042
18043else
18044 GXX=no
18045 with_gnu_ld=no
18046 wlarc=
18047fi
18048
18049# PORTME: fill in a description of your system's C++ link characteristics
Reid Spencera773bd52006-08-04 18:18:08 +000018050{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18051echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000018052ld_shlibs_CXX=yes
18053case $host_os in
18054 aix3*)
18055 # FIXME: insert proper C++ library support
18056 ld_shlibs_CXX=no
18057 ;;
18058 aix4* | aix5*)
18059 if test "$host_cpu" = ia64; then
18060 # On IA64, the linker does run time linking by default, so we don't
18061 # have to do anything special.
18062 aix_use_runtimelinking=no
18063 exp_sym_flag='-Bexport'
18064 no_entry_flag=""
18065 else
18066 aix_use_runtimelinking=no
18067
18068 # Test if we are trying to use run time linking or normal
18069 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18070 # need to do runtime linking.
18071 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18072 for ld_flag in $LDFLAGS; do
18073 case $ld_flag in
18074 *-brtl*)
18075 aix_use_runtimelinking=yes
18076 break
18077 ;;
18078 esac
18079 done
Reid Spencera773bd52006-08-04 18:18:08 +000018080 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018081 esac
18082
18083 exp_sym_flag='-bexport'
18084 no_entry_flag='-bnoentry'
18085 fi
18086
18087 # When large executables or shared objects are built, AIX ld can
18088 # have problems creating the table of contents. If linking a library
18089 # or program results in "error TOC overflow" add -mminimal-toc to
18090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18092
18093 archive_cmds_CXX=''
18094 hardcode_direct_CXX=yes
18095 hardcode_libdir_separator_CXX=':'
18096 link_all_deplibs_CXX=yes
18097
18098 if test "$GXX" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000018099 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000018100 # We only want to do this on AIX 4.2 and lower, the check
18101 # below for broken collect2 doesn't work under 4.3+
18102 collect2name=`${CC} -print-prog-name=collect2`
18103 if test -f "$collect2name" && \
18104 strings "$collect2name" | grep resolve_lib_name >/dev/null
18105 then
18106 # We have reworked collect2
18107 hardcode_direct_CXX=yes
18108 else
18109 # We have old collect2
18110 hardcode_direct_CXX=unsupported
18111 # It fails to find uninstalled libraries when the uninstalled
18112 # path is not listed in the libpath. Setting hardcode_minus_L
18113 # to unsupported forces relinking
18114 hardcode_minus_L_CXX=yes
18115 hardcode_libdir_flag_spec_CXX='-L$libdir'
18116 hardcode_libdir_separator_CXX=
18117 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018118 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018119 esac
18120 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000018121 if test "$aix_use_runtimelinking" = yes; then
18122 shared_flag="$shared_flag "'${wl}-G'
18123 fi
John Criswell47fdd832003-07-14 16:52:07 +000018124 else
18125 # not using gcc
18126 if test "$host_cpu" = ia64; then
18127 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18128 # chokes on -Wl,-G. The following line is correct:
18129 shared_flag='-G'
18130 else
18131 if test "$aix_use_runtimelinking" = yes; then
18132 shared_flag='${wl}-G'
18133 else
18134 shared_flag='${wl}-bM:SRE'
18135 fi
18136 fi
18137 fi
18138
18139 # It seems that -bexpall does not export symbols beginning with
18140 # underscore (_), so it is better to generate a list of symbols to export.
18141 always_export_symbols_CXX=yes
18142 if test "$aix_use_runtimelinking" = yes; then
18143 # Warning - without using the other runtime loading flags (-brtl),
18144 # -berok will link without error, but may produce a broken library.
18145 allow_undefined_flag_CXX='-berok'
18146 # Determine the default libpath from the value encoded in an empty executable.
18147 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018148/* confdefs.h. */
18149_ACEOF
18150cat confdefs.h >>conftest.$ac_ext
18151cat >>conftest.$ac_ext <<_ACEOF
18152/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018153
John Criswell47fdd832003-07-14 16:52:07 +000018154int
18155main ()
18156{
18157
18158 ;
18159 return 0;
18160}
18161_ACEOF
18162rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018163if { (ac_try="$ac_link"
18164case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167esac
18168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018170 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018187 { (case "(($ac_try" in
18188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189 *) ac_try_echo=$ac_try;;
18190esac
18191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; }; then
18196
18197aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18198}'`
18199# Check for a 64-bit object if we didn't find anything.
18200if 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; }
18201}'`; fi
18202else
18203 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018204sed 's/^/| /' conftest.$ac_ext >&5
18205
Reid Spencera773bd52006-08-04 18:18:08 +000018206
John Criswell47fdd832003-07-14 16:52:07 +000018207fi
Reid Spencera773bd52006-08-04 18:18:08 +000018208
18209rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018210 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18212
18213 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18214
Reid Spencera773bd52006-08-04 18:18:08 +000018215 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 +000018216 else
18217 if test "$host_cpu" = ia64; then
18218 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18219 allow_undefined_flag_CXX="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000018220 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 +000018221 else
18222 # Determine the default libpath from the value encoded in an empty executable.
18223 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018224/* confdefs.h. */
18225_ACEOF
18226cat confdefs.h >>conftest.$ac_ext
18227cat >>conftest.$ac_ext <<_ACEOF
18228/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018229
John Criswell47fdd832003-07-14 16:52:07 +000018230int
18231main ()
18232{
18233
18234 ;
18235 return 0;
18236}
18237_ACEOF
18238rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000018239if { (ac_try="$ac_link"
18240case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18243esac
18244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000018252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256esac
18257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000018263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18266esac
18267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000018269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272
18273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18274}'`
18275# Check for a 64-bit object if we didn't find anything.
18276if 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; }
18277}'`; fi
18278else
18279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018280sed 's/^/| /' conftest.$ac_ext >&5
18281
Reid Spencera773bd52006-08-04 18:18:08 +000018282
John Criswell47fdd832003-07-14 16:52:07 +000018283fi
Reid Spencera773bd52006-08-04 18:18:08 +000018284
18285rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000018286 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018287if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18288
18289 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18290 # Warning - without using the other run time loading flags,
18291 # -berok will link without error, but may produce a broken library.
18292 no_undefined_flag_CXX=' ${wl}-bernotok'
18293 allow_undefined_flag_CXX=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000018294 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000018295 whole_archive_flag_spec_CXX='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000018296 archive_cmds_need_lc_CXX=yes
Reid Spencera773bd52006-08-04 18:18:08 +000018297 # This is similar to how AIX traditionally builds its shared libraries.
18298 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 +000018299 fi
18300 fi
18301 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018302
18303 beos*)
18304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18305 allow_undefined_flag_CXX=unsupported
18306 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18307 # support --undefined. This deserves some investigation. FIXME
18308 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18309 else
18310 ld_shlibs_CXX=no
18311 fi
18312 ;;
18313
John Criswell47fdd832003-07-14 16:52:07 +000018314 chorus*)
18315 case $cc_basename in
18316 *)
18317 # FIXME: insert proper C++ library support
18318 ld_shlibs_CXX=no
18319 ;;
18320 esac
18321 ;;
18322
18323 cygwin* | mingw* | pw32*)
18324 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18325 # as there is no search path for DLLs.
18326 hardcode_libdir_flag_spec_CXX='-L$libdir'
18327 allow_undefined_flag_CXX=unsupported
18328 always_export_symbols_CXX=no
18329 enable_shared_with_static_runtimes_CXX=yes
18330
18331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000018332 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 +000018333 # If the export-symbols file already is a .def file (1st line
18334 # is EXPORTS), use it as is; otherwise, prepend...
18335 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18336 cp $export_symbols $output_objdir/$soname.def;
18337 else
18338 echo EXPORTS > $output_objdir/$soname.def;
18339 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000018340 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000018341 $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 +000018342 else
18343 ld_shlibs_CXX=no
18344 fi
18345 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018346 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000018347 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018348 rhapsody* | darwin1.[012])
18349 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
18350 ;;
18351 *) # Darwin 1.3 on
18352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18353 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18354 else
18355 case ${MACOSX_DEPLOYMENT_TARGET} in
18356 10.[012])
18357 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18358 ;;
18359 10.*)
18360 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
18361 ;;
18362 esac
18363 fi
18364 ;;
18365 esac
18366 archive_cmds_need_lc_CXX=no
18367 hardcode_direct_CXX=no
18368 hardcode_automatic_CXX=yes
18369 hardcode_shlibpath_var_CXX=unsupported
18370 whole_archive_flag_spec_CXX=''
18371 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018372
Reid Spencer2706f8c2004-09-19 23:53:36 +000018373 if test "$GXX" = yes ; then
18374 lt_int_apple_cc_single_mod=no
18375 output_verbose_link_cmd='echo'
18376 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
18377 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000018378 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018379 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018380 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 +000018381 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018382 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 +000018383 fi
18384 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018385 # 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 +000018386 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018387 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 +000018388 else
Reid Spencer177dbe22004-10-13 01:01:03 +000018389 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 +000018390 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000018391 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 +000018392 else
Reid Spencera773bd52006-08-04 18:18:08 +000018393 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018394 xlc*)
18395 output_verbose_link_cmd='echo'
18396 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'
18397 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000018398 # 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 +000018399 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}'
18400 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 +000018401 ;;
18402 *)
18403 ld_shlibs_CXX=no
18404 ;;
18405 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000018406 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018407 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018408
18409 dgux*)
18410 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018411 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000018412 # FIXME: insert proper C++ library support
18413 ld_shlibs_CXX=no
18414 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018415 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018416 # Green Hills C++ Compiler
18417 # FIXME: insert proper C++ library support
18418 ld_shlibs_CXX=no
18419 ;;
18420 *)
18421 # FIXME: insert proper C++ library support
18422 ld_shlibs_CXX=no
18423 ;;
18424 esac
18425 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018426 freebsd[12]*)
John Criswell47fdd832003-07-14 16:52:07 +000018427 # C++ shared libraries reported to be fairly broken before switch to ELF
18428 ld_shlibs_CXX=no
18429 ;;
18430 freebsd-elf*)
18431 archive_cmds_need_lc_CXX=no
18432 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018433 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000018434 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18435 # conventions
18436 ld_shlibs_CXX=yes
18437 ;;
18438 gnu*)
18439 ;;
18440 hpux9*)
18441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18442 hardcode_libdir_separator_CXX=:
18443 export_dynamic_flag_spec_CXX='${wl}-E'
18444 hardcode_direct_CXX=yes
18445 hardcode_minus_L_CXX=yes # Not in the search PATH,
18446 # but as the default
18447 # location of the library.
18448
18449 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018450 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018451 # FIXME: insert proper C++ library support
18452 ld_shlibs_CXX=no
18453 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018454 aCC*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018455 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 +000018456 # Commands to make compiler produce verbose output that lists
18457 # what "hidden" libraries, object files and flags are used when
18458 # linking a shared library.
18459 #
18460 # There doesn't appear to be a way to prevent this compiler from
18461 # explicitly linking system object files so we need to strip them
18462 # from the output so that they don't get included in the library
18463 # dependencies.
Reid Spencera773bd52006-08-04 18:18:08 +000018464 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 +000018465 ;;
18466 *)
18467 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018468 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 +000018469 else
18470 # FIXME: insert proper C++ library support
18471 ld_shlibs_CXX=no
18472 fi
18473 ;;
18474 esac
18475 ;;
18476 hpux10*|hpux11*)
18477 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018478 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18479 hardcode_libdir_separator_CXX=:
18480
18481 case $host_cpu in
18482 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018483 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
John Criswell47fdd832003-07-14 16:52:07 +000018484 ;;
18485 *)
John Criswell47fdd832003-07-14 16:52:07 +000018486 export_dynamic_flag_spec_CXX='${wl}-E'
18487 ;;
18488 esac
18489 fi
Reid Spencera773bd52006-08-04 18:18:08 +000018490 case $host_cpu in
18491 hppa*64*|ia64*)
John Criswell47fdd832003-07-14 16:52:07 +000018492 hardcode_direct_CXX=no
18493 hardcode_shlibpath_var_CXX=no
18494 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018495 *)
18496 hardcode_direct_CXX=yes
18497 hardcode_minus_L_CXX=yes # Not in the search PATH,
18498 # but as the default
18499 # location of the library.
18500 ;;
18501 esac
18502
18503 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018504 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018505 # FIXME: insert proper C++ library support
18506 ld_shlibs_CXX=no
18507 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018508 aCC*)
18509 case $host_cpu in
18510 hppa*64*)
18511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18512 ;;
18513 ia64*)
18514 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 +000018515 ;;
18516 *)
18517 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18518 ;;
18519 esac
18520 # Commands to make compiler produce verbose output that lists
18521 # what "hidden" libraries, object files and flags are used when
18522 # linking a shared library.
18523 #
18524 # There doesn't appear to be a way to prevent this compiler from
18525 # explicitly linking system object files so we need to strip them
18526 # from the output so that they don't get included in the library
18527 # dependencies.
18528 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'
18529 ;;
18530 *)
18531 if test "$GXX" = yes; then
18532 if test $with_gnu_ld = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018533 case $host_cpu in
18534 hppa*64*)
18535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18536 ;;
18537 ia64*)
18538 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 +000018539 ;;
18540 *)
18541 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'
18542 ;;
18543 esac
18544 fi
18545 else
18546 # FIXME: insert proper C++ library support
18547 ld_shlibs_CXX=no
18548 fi
18549 ;;
18550 esac
18551 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018552 interix3*)
18553 hardcode_direct_CXX=no
18554 hardcode_shlibpath_var_CXX=no
18555 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18556 export_dynamic_flag_spec_CXX='${wl}-E'
18557 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18558 # Instead, shared libraries are loaded at an image base (0x10000000 by
18559 # default) and relocated if they conflict, which is a slow very memory
18560 # consuming and fragmenting process. To avoid this, we pick a random,
18561 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18562 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18563 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'
18564 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'
18565 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018566 irix5* | irix6*)
18567 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018568 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018569 # SGI C++
Reid Spencera773bd52006-08-04 18:18:08 +000018570 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 +000018571
18572 # Archives containing C++ object files must be created using
18573 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18574 # necessary to make sure instantiated templates are included
18575 # in the archive.
18576 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18577 ;;
18578 *)
18579 if test "$GXX" = yes; then
18580 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000018581 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 +000018582 else
18583 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'
18584 fi
18585 fi
18586 link_all_deplibs_CXX=yes
18587 ;;
18588 esac
18589 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18590 hardcode_libdir_separator_CXX=:
18591 ;;
18592 linux*)
18593 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018594 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018595 # Kuck and Associates, Inc. (KAI) C++ Compiler
18596
18597 # KCC will only create a shared library if the output file
18598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18599 # to its proper name (with version) after linking.
18600 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'
18601 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'
18602 # Commands to make compiler produce verbose output that lists
18603 # what "hidden" libraries, object files and flags are used when
18604 # linking a shared library.
18605 #
18606 # There doesn't appear to be a way to prevent this compiler from
18607 # explicitly linking system object files so we need to strip them
18608 # from the output so that they don't get included in the library
18609 # dependencies.
18610 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'
18611
18612 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
18613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18614
18615 # Archives containing C++ object files must be created using
18616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18618 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018619 icpc*)
John Criswell47fdd832003-07-14 16:52:07 +000018620 # Intel C++
18621 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000018622 # version 8.0 and above of icpc choke on multiply defined symbols
18623 # if we add $predep_objects and $postdep_objects, however 7.1 and
18624 # earlier do not add the objects themselves.
18625 case `$CC -V 2>&1` in
18626 *"Version 7."*)
18627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628 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'
18629 ;;
18630 *) # Version 8.0 or newer
Reid Spencera773bd52006-08-04 18:18:08 +000018631 tmp_idyn=
18632 case $host_cpu in
18633 ia64*) tmp_idyn=' -i_dynamic';;
18634 esac
18635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18636 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 +000018637 ;;
18638 esac
John Criswell47fdd832003-07-14 16:52:07 +000018639 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000018640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18643 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018644 pgCC*)
18645 # Portland Group C++ compiler
18646 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18647 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'
18648
18649 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18650 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18651 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'
18652 ;;
18653 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018654 # Compaq C++
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 -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18657
18658 runpath_var=LD_RUN_PATH
18659 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18660 hardcode_libdir_separator_CXX=:
18661
18662 # Commands to make compiler produce verbose output that lists
18663 # what "hidden" libraries, object files and flags are used when
18664 # linking a shared library.
18665 #
18666 # There doesn't appear to be a way to prevent this compiler from
18667 # explicitly linking system object files so we need to strip them
18668 # from the output so that they don't get included in the library
18669 # dependencies.
18670 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'
18671 ;;
18672 esac
18673 ;;
18674 lynxos*)
18675 # FIXME: insert proper C++ library support
18676 ld_shlibs_CXX=no
18677 ;;
18678 m88k*)
18679 # FIXME: insert proper C++ library support
18680 ld_shlibs_CXX=no
18681 ;;
18682 mvs*)
18683 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018684 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018685 # FIXME: insert proper C++ library support
18686 ld_shlibs_CXX=no
18687 ;;
18688 *)
18689 # FIXME: insert proper C++ library support
18690 ld_shlibs_CXX=no
18691 ;;
18692 esac
18693 ;;
18694 netbsd*)
18695 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18696 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18697 wlarc=
18698 hardcode_libdir_flag_spec_CXX='-R$libdir'
18699 hardcode_direct_CXX=yes
18700 hardcode_shlibpath_var_CXX=no
18701 fi
18702 # Workaround some broken pre-1.5 toolchains
18703 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18704 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018705 openbsd2*)
18706 # C++ shared libraries are fairly broken
18707 ld_shlibs_CXX=no
18708 ;;
18709 openbsd*)
18710 hardcode_direct_CXX=yes
18711 hardcode_shlibpath_var_CXX=no
18712 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18714 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18715 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18716 export_dynamic_flag_spec_CXX='${wl}-E'
18717 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18718 fi
18719 output_verbose_link_cmd='echo'
18720 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018721 osf3*)
18722 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018723 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018724 # Kuck and Associates, Inc. (KAI) C++ Compiler
18725
18726 # KCC will only create a shared library if the output file
18727 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18728 # to its proper name (with version) after linking.
18729 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'
18730
18731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18732 hardcode_libdir_separator_CXX=:
18733
18734 # Archives containing C++ object files must be created using
18735 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18736 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18737
18738 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018739 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018740 # Rational C++ 2.4.1
18741 # FIXME: insert proper C++ library support
18742 ld_shlibs_CXX=no
18743 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018744 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018745 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018746 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 +000018747
18748 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18749 hardcode_libdir_separator_CXX=:
18750
18751 # Commands to make compiler produce verbose output that lists
18752 # what "hidden" libraries, object files and flags are used when
18753 # linking a shared library.
18754 #
18755 # There doesn't appear to be a way to prevent this compiler from
18756 # explicitly linking system object files so we need to strip them
18757 # from the output so that they don't get included in the library
18758 # dependencies.
18759 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'
18760 ;;
18761 *)
18762 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18763 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018764 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 +000018765
18766 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18767 hardcode_libdir_separator_CXX=:
18768
18769 # Commands to make compiler produce verbose output that lists
18770 # what "hidden" libraries, object files and flags are used when
18771 # linking a shared library.
18772 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18773
18774 else
18775 # FIXME: insert proper C++ library support
18776 ld_shlibs_CXX=no
18777 fi
18778 ;;
18779 esac
18780 ;;
18781 osf4* | osf5*)
18782 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018783 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018784 # Kuck and Associates, Inc. (KAI) C++ Compiler
18785
18786 # KCC will only create a shared library if the output file
18787 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18788 # to its proper name (with version) after linking.
18789 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'
18790
18791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18792 hardcode_libdir_separator_CXX=:
18793
18794 # Archives containing C++ object files must be created using
18795 # the KAI C++ compiler.
18796 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
18797 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018798 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018799 # Rational C++ 2.4.1
18800 # FIXME: insert proper C++ library support
18801 ld_shlibs_CXX=no
18802 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018803 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000018804 allow_undefined_flag_CXX=' -expect_unresolved \*'
Reid Spencera773bd52006-08-04 18:18:08 +000018805 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 +000018806 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18807 echo "-hidden">> $lib.exp~
Reid Spencera773bd52006-08-04 18:18:08 +000018808 $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 +000018809 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000018810
18811 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18812 hardcode_libdir_separator_CXX=:
18813
18814 # Commands to make compiler produce verbose output that lists
18815 # what "hidden" libraries, object files and flags are used when
18816 # linking a shared library.
18817 #
18818 # There doesn't appear to be a way to prevent this compiler from
18819 # explicitly linking system object files so we need to strip them
18820 # from the output so that they don't get included in the library
18821 # dependencies.
18822 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'
18823 ;;
18824 *)
18825 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18826 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
Reid Spencera773bd52006-08-04 18:18:08 +000018827 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 +000018828
18829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18830 hardcode_libdir_separator_CXX=:
18831
18832 # Commands to make compiler produce verbose output that lists
18833 # what "hidden" libraries, object files and flags are used when
18834 # linking a shared library.
18835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
18836
18837 else
18838 # FIXME: insert proper C++ library support
18839 ld_shlibs_CXX=no
18840 fi
18841 ;;
18842 esac
18843 ;;
18844 psos*)
18845 # FIXME: insert proper C++ library support
18846 ld_shlibs_CXX=no
18847 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018848 sunos4*)
18849 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018850 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018851 # Sun C++ 4.x
18852 # FIXME: insert proper C++ library support
18853 ld_shlibs_CXX=no
18854 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018855 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000018856 # Lucid
18857 # FIXME: insert proper C++ library support
18858 ld_shlibs_CXX=no
18859 ;;
18860 *)
18861 # FIXME: insert proper C++ library support
18862 ld_shlibs_CXX=no
18863 ;;
18864 esac
18865 ;;
18866 solaris*)
18867 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018868 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000018869 # Sun C++ 4.2, 5.x and Centerline C++
Reid Spencera773bd52006-08-04 18:18:08 +000018870 archive_cmds_need_lc_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000018871 no_undefined_flag_CXX=' -zdefs'
Reid Spencera773bd52006-08-04 18:18:08 +000018872 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 +000018873 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 +000018874 $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 +000018875
18876 hardcode_libdir_flag_spec_CXX='-R$libdir'
18877 hardcode_shlibpath_var_CXX=no
18878 case $host_os in
Reid Spencera773bd52006-08-04 18:18:08 +000018879 solaris2.[0-5] | solaris2.[0-5].*) ;;
John Criswell47fdd832003-07-14 16:52:07 +000018880 *)
18881 # The C++ compiler is used as linker so we must use $wl
18882 # flag to pass the commands to the underlying system
Reid Spencera773bd52006-08-04 18:18:08 +000018883 # linker. We must also pass each convience library through
18884 # to the system linker between allextract/defaultextract.
18885 # The C++ compiler will combine linker options so we
18886 # cannot just pass the convience library names through
18887 # without $wl.
John Criswell47fdd832003-07-14 16:52:07 +000018888 # Supported since Solaris 2.6 (maybe 2.5.1?)
Reid Spencera773bd52006-08-04 18:18:08 +000018889 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 +000018890 ;;
18891 esac
18892 link_all_deplibs_CXX=yes
18893
Reid Spencera773bd52006-08-04 18:18:08 +000018894 output_verbose_link_cmd='echo'
John Criswell47fdd832003-07-14 16:52:07 +000018895
18896 # Archives containing C++ object files must be created using
18897 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18898 # necessary to make sure instantiated templates are included
18899 # in the archive.
18900 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18901 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018902 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000018903 # Green Hills C++ Compiler
18904 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18905
18906 # The C++ compiler must be used to create the archive.
18907 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18908 ;;
18909 *)
18910 # GNU C++ compiler with Solaris linker
18911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18912 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18913 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000018914 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 +000018915 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18916 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
18917
John Criswell47fdd832003-07-14 16:52:07 +000018918 # Commands to make compiler produce verbose output that lists
18919 # what "hidden" libraries, object files and flags are used when
18920 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018921 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000018922 else
18923 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18924 # platform.
18925 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 +000018926 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18927 $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 +000018928
18929 # Commands to make compiler produce verbose output that lists
18930 # what "hidden" libraries, object files and flags are used when
18931 # linking a shared library.
18932 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
18933 fi
18934
18935 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18936 fi
18937 ;;
18938 esac
18939 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000018940 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18941 no_undefined_flag_CXX='${wl}-z,text'
John Criswell47fdd832003-07-14 16:52:07 +000018942 archive_cmds_need_lc_CXX=no
Reid Spencera773bd52006-08-04 18:18:08 +000018943 hardcode_shlibpath_var_CXX=no
18944 runpath_var='LD_RUN_PATH'
18945
18946 case $cc_basename in
18947 CC*)
18948 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18949 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18950 ;;
18951 *)
18952 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18953 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18954 ;;
18955 esac
18956 ;;
18957 sysv5* | sco3.2v5* | sco5v6*)
18958 # Note: We can NOT use -z defs as we might desire, because we do not
18959 # link with -lc, and that would cause any symbols used from libc to
18960 # always be unresolved, which means just about no library would
18961 # ever link correctly. If we're not using GNU ld we use -z text
18962 # though, which does catch some bad symbols but isn't as heavy-handed
18963 # as -z defs.
18964 # For security reasons, it is highly recommended that you always
18965 # use absolute paths for naming shared libraries, and exclude the
18966 # DT_RUNPATH tag from executables and libraries. But doing so
18967 # requires that you compile everything twice, which is a pain.
18968 # So that behaviour is only enabled if SCOABSPATH is set to a
18969 # non-empty value in the environment. Most likely only useful for
18970 # creating official distributions of packages.
18971 # This is a hack until libtool officially supports absolute path
18972 # names for shared libraries.
18973 no_undefined_flag_CXX='${wl}-z,text'
18974 allow_undefined_flag_CXX='${wl}-z,nodefs'
18975 archive_cmds_need_lc_CXX=no
18976 hardcode_shlibpath_var_CXX=no
18977 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18978 hardcode_libdir_separator_CXX=':'
18979 link_all_deplibs_CXX=yes
18980 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18981 runpath_var='LD_RUN_PATH'
18982
18983 case $cc_basename in
18984 CC*)
18985 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18986 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18987 ;;
18988 *)
18989 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18991 ;;
18992 esac
John Criswell47fdd832003-07-14 16:52:07 +000018993 ;;
18994 tandem*)
18995 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000018996 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000018997 # NonStop-UX NCC 3.20
18998 # FIXME: insert proper C++ library support
18999 ld_shlibs_CXX=no
19000 ;;
19001 *)
19002 # FIXME: insert proper C++ library support
19003 ld_shlibs_CXX=no
19004 ;;
19005 esac
19006 ;;
19007 vxworks*)
19008 # FIXME: insert proper C++ library support
19009 ld_shlibs_CXX=no
19010 ;;
19011 *)
19012 # FIXME: insert proper C++ library support
19013 ld_shlibs_CXX=no
19014 ;;
19015esac
Reid Spencera773bd52006-08-04 18:18:08 +000019016{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19017echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019018test "$ld_shlibs_CXX" = no && can_build_shared=no
19019
19020GCC_CXX="$GXX"
19021LD_CXX="$LD"
19022
John Criswell47fdd832003-07-14 16:52:07 +000019023
19024cat > conftest.$ac_ext <<EOF
19025class Foo
19026{
19027public:
19028 Foo (void) { a = 0; }
19029private:
19030 int a;
19031};
19032EOF
19033
19034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19035 (eval $ac_compile) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; then
19039 # Parse the compiler output and extract the necessary
19040 # objects, libraries and library flags.
19041
19042 # Sentinel used to keep track of whether or not we are before
19043 # the conftest object file.
19044 pre_test_object_deps_done=no
19045
19046 # The `*' in the case matches for architectures that use `case' in
19047 # $output_verbose_cmd can trigger glob expansion during the loop
19048 # eval without this substitution.
Reid Spencera773bd52006-08-04 18:18:08 +000019049 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
John Criswell47fdd832003-07-14 16:52:07 +000019050
19051 for p in `eval $output_verbose_link_cmd`; do
19052 case $p in
19053
19054 -L* | -R* | -l*)
19055 # Some compilers place space between "-{L,R}" and the path.
19056 # Remove the space.
19057 if test $p = "-L" \
19058 || test $p = "-R"; then
19059 prev=$p
19060 continue
19061 else
19062 prev=
19063 fi
19064
19065 if test "$pre_test_object_deps_done" = no; then
19066 case $p in
19067 -L* | -R*)
19068 # Internal compiler library paths should come after those
19069 # provided the user. The postdeps already come after the
19070 # user supplied libs so there is no need to process them.
19071 if test -z "$compiler_lib_search_path_CXX"; then
19072 compiler_lib_search_path_CXX="${prev}${p}"
19073 else
19074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19075 fi
19076 ;;
19077 # The "-l" case would never come before the object being
19078 # linked, so don't bother handling this case.
19079 esac
19080 else
19081 if test -z "$postdeps_CXX"; then
19082 postdeps_CXX="${prev}${p}"
19083 else
19084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19085 fi
19086 fi
19087 ;;
19088
19089 *.$objext)
19090 # This assumes that the test object file only shows up
19091 # once in the compiler output.
19092 if test "$p" = "conftest.$objext"; then
19093 pre_test_object_deps_done=yes
19094 continue
19095 fi
19096
19097 if test "$pre_test_object_deps_done" = no; then
19098 if test -z "$predep_objects_CXX"; then
19099 predep_objects_CXX="$p"
19100 else
19101 predep_objects_CXX="$predep_objects_CXX $p"
19102 fi
19103 else
19104 if test -z "$postdep_objects_CXX"; then
19105 postdep_objects_CXX="$p"
19106 else
19107 postdep_objects_CXX="$postdep_objects_CXX $p"
19108 fi
19109 fi
19110 ;;
19111
19112 *) ;; # Ignore the rest.
19113
19114 esac
19115 done
19116
19117 # Clean up.
19118 rm -f a.out a.exe
19119else
19120 echo "libtool.m4: error: problem compiling CXX test program"
19121fi
19122
19123$rm -f confest.$objext
19124
Reid Spencera773bd52006-08-04 18:18:08 +000019125# PORTME: override above test on systems where it is broken
19126case $host_os in
19127interix3*)
19128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19129 # hack all around it, let's just trust "g++" to DTRT.
19130 predep_objects_CXX=
19131 postdep_objects_CXX=
19132 postdeps_CXX=
19133 ;;
19134
19135solaris*)
19136 case $cc_basename in
19137 CC*)
19138 # Adding this requires a known-good setup of shared libraries for
19139 # Sun compiler versions before 5.6, else PIC objects from an old
19140 # archive will be linked into the output, leading to subtle bugs.
19141 postdeps_CXX='-lCstd -lCrun'
19142 ;;
19143 esac
19144 ;;
19145esac
19146
19147
John Criswell47fdd832003-07-14 16:52:07 +000019148case " $postdeps_CXX " in
19149*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19150esac
19151
19152lt_prog_compiler_wl_CXX=
19153lt_prog_compiler_pic_CXX=
19154lt_prog_compiler_static_CXX=
19155
Reid Spencera773bd52006-08-04 18:18:08 +000019156{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19157echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019158
19159 # C++ specific cases for pic, static, wl, etc.
19160 if test "$GXX" = yes; then
19161 lt_prog_compiler_wl_CXX='-Wl,'
19162 lt_prog_compiler_static_CXX='-static'
19163
19164 case $host_os in
19165 aix*)
19166 # All AIX code is PIC.
19167 if test "$host_cpu" = ia64; then
19168 # AIX 5 now supports IA64 processor
19169 lt_prog_compiler_static_CXX='-Bstatic'
19170 fi
19171 ;;
19172 amigaos*)
19173 # FIXME: we need at least 68020 code to build shared libraries, but
19174 # adding the `-m68020' flag to GCC prevents building anything better,
19175 # like `-m68040'.
19176 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19177 ;;
19178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19179 # PIC is the default for these OSes.
19180 ;;
19181 mingw* | os2* | pw32*)
19182 # This hack is so that the source file can tell whether it is being
19183 # built for inclusion in a dll (and should export symbols for example).
19184 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19185 ;;
19186 darwin* | rhapsody*)
19187 # PIC is the default on this platform
19188 # Common symbols not allowed in MH_DYLIB files
19189 lt_prog_compiler_pic_CXX='-fno-common'
19190 ;;
19191 *djgpp*)
19192 # DJGPP does not support shared libraries at all
19193 lt_prog_compiler_pic_CXX=
19194 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019195 interix3*)
19196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19197 # Instead, we relocate shared libraries at runtime.
19198 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019199 sysv4*MP*)
19200 if test -d /usr/nec; then
19201 lt_prog_compiler_pic_CXX=-Kconform_pic
19202 fi
19203 ;;
19204 hpux*)
19205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19206 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000019207 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019208 hppa*64*|ia64*)
19209 ;;
19210 *)
19211 lt_prog_compiler_pic_CXX='-fPIC'
19212 ;;
19213 esac
19214 ;;
19215 *)
19216 lt_prog_compiler_pic_CXX='-fPIC'
19217 ;;
19218 esac
19219 else
19220 case $host_os in
19221 aix4* | aix5*)
19222 # All AIX code is PIC.
19223 if test "$host_cpu" = ia64; then
19224 # AIX 5 now supports IA64 processor
19225 lt_prog_compiler_static_CXX='-Bstatic'
19226 else
19227 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19228 fi
19229 ;;
19230 chorus*)
19231 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019232 cxch68*)
John Criswell47fdd832003-07-14 16:52:07 +000019233 # Green Hills C++ Compiler
19234 # _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"
19235 ;;
19236 esac
19237 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019238 darwin*)
19239 # PIC is the default on this platform
19240 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000019241 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019242 xlc*)
19243 lt_prog_compiler_pic_CXX='-qnocommon'
19244 lt_prog_compiler_wl_CXX='-Wl,'
19245 ;;
19246 esac
19247 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019248 dgux*)
19249 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019250 ec++*)
John Criswell47fdd832003-07-14 16:52:07 +000019251 lt_prog_compiler_pic_CXX='-KPIC'
19252 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019253 ghcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019254 # Green Hills C++ Compiler
19255 lt_prog_compiler_pic_CXX='-pic'
19256 ;;
19257 *)
19258 ;;
19259 esac
19260 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019261 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000019262 # FreeBSD uses GNU C++
19263 ;;
19264 hpux9* | hpux10* | hpux11*)
19265 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019266 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019267 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
John Criswell47fdd832003-07-14 16:52:07 +000019269 if test "$host_cpu" != ia64; then
19270 lt_prog_compiler_pic_CXX='+Z'
19271 fi
19272 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019273 aCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019274 lt_prog_compiler_wl_CXX='-Wl,'
Reid Spencera773bd52006-08-04 18:18:08 +000019275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19276 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019277 hppa*64*|ia64*)
19278 # +Z the default
19279 ;;
19280 *)
19281 lt_prog_compiler_pic_CXX='+Z'
19282 ;;
19283 esac
19284 ;;
19285 *)
19286 ;;
19287 esac
19288 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019289 interix*)
19290 # This is c89, which is MS Visual C++ (no shared libs)
19291 # Anyone wants to do a port?
19292 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019293 irix5* | irix6* | nonstopux*)
19294 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019295 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019296 lt_prog_compiler_wl_CXX='-Wl,'
19297 lt_prog_compiler_static_CXX='-non_shared'
19298 # CC pic flag -KPIC is the default.
19299 ;;
19300 *)
19301 ;;
19302 esac
19303 ;;
19304 linux*)
19305 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019306 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019307 # KAI C++ Compiler
19308 lt_prog_compiler_wl_CXX='--backend -Wl,'
19309 lt_prog_compiler_pic_CXX='-fPIC'
19310 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019311 icpc* | ecpc*)
John Criswell47fdd832003-07-14 16:52:07 +000019312 # Intel C++
19313 lt_prog_compiler_wl_CXX='-Wl,'
19314 lt_prog_compiler_pic_CXX='-KPIC'
19315 lt_prog_compiler_static_CXX='-static'
19316 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019317 pgCC*)
19318 # Portland Group C++ compiler.
19319 lt_prog_compiler_wl_CXX='-Wl,'
19320 lt_prog_compiler_pic_CXX='-fpic'
19321 lt_prog_compiler_static_CXX='-Bstatic'
19322 ;;
19323 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019324 # Compaq C++
19325 # Make sure the PIC flag is empty. It appears that all Alpha
19326 # Linux and Compaq Tru64 Unix objects are PIC.
19327 lt_prog_compiler_pic_CXX=
19328 lt_prog_compiler_static_CXX='-non_shared'
19329 ;;
19330 *)
19331 ;;
19332 esac
19333 ;;
19334 lynxos*)
19335 ;;
19336 m88k*)
19337 ;;
19338 mvs*)
19339 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019340 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019341 lt_prog_compiler_pic_CXX='-W c,exportall'
19342 ;;
19343 *)
19344 ;;
19345 esac
19346 ;;
19347 netbsd*)
19348 ;;
19349 osf3* | osf4* | osf5*)
19350 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019351 KCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019352 lt_prog_compiler_wl_CXX='--backend -Wl,'
19353 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019354 RCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019355 # Rational C++ 2.4.1
19356 lt_prog_compiler_pic_CXX='-pic'
19357 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019358 cxx*)
John Criswell47fdd832003-07-14 16:52:07 +000019359 # Digital/Compaq C++
19360 lt_prog_compiler_wl_CXX='-Wl,'
19361 # Make sure the PIC flag is empty. It appears that all Alpha
19362 # Linux and Compaq Tru64 Unix objects are PIC.
19363 lt_prog_compiler_pic_CXX=
19364 lt_prog_compiler_static_CXX='-non_shared'
19365 ;;
19366 *)
19367 ;;
19368 esac
19369 ;;
19370 psos*)
19371 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019372 solaris*)
19373 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019374 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019375 # Sun C++ 4.2, 5.x and Centerline C++
19376 lt_prog_compiler_pic_CXX='-KPIC'
19377 lt_prog_compiler_static_CXX='-Bstatic'
19378 lt_prog_compiler_wl_CXX='-Qoption ld '
19379 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019380 gcx*)
John Criswell47fdd832003-07-14 16:52:07 +000019381 # Green Hills C++ Compiler
19382 lt_prog_compiler_pic_CXX='-PIC'
19383 ;;
19384 *)
19385 ;;
19386 esac
19387 ;;
19388 sunos4*)
19389 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019390 CC*)
John Criswell47fdd832003-07-14 16:52:07 +000019391 # Sun C++ 4.x
19392 lt_prog_compiler_pic_CXX='-pic'
19393 lt_prog_compiler_static_CXX='-Bstatic'
19394 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019395 lcc*)
John Criswell47fdd832003-07-14 16:52:07 +000019396 # Lucid
19397 lt_prog_compiler_pic_CXX='-pic'
19398 ;;
19399 *)
19400 ;;
19401 esac
19402 ;;
19403 tandem*)
19404 case $cc_basename in
Reid Spencera773bd52006-08-04 18:18:08 +000019405 NCC*)
John Criswell47fdd832003-07-14 16:52:07 +000019406 # NonStop-UX NCC 3.20
19407 lt_prog_compiler_pic_CXX='-KPIC'
19408 ;;
19409 *)
19410 ;;
19411 esac
19412 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19414 case $cc_basename in
19415 CC*)
19416 lt_prog_compiler_wl_CXX='-Wl,'
19417 lt_prog_compiler_pic_CXX='-KPIC'
19418 lt_prog_compiler_static_CXX='-Bstatic'
19419 ;;
19420 esac
John Criswell47fdd832003-07-14 16:52:07 +000019421 ;;
19422 vxworks*)
19423 ;;
19424 *)
19425 lt_prog_compiler_can_build_shared_CXX=no
19426 ;;
19427 esac
19428 fi
19429
Reid Spencera773bd52006-08-04 18:18:08 +000019430{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
19431echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019432
19433#
19434# Check to make sure the PIC flag actually works.
19435#
19436if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019437
Reid Spencera773bd52006-08-04 18:18:08 +000019438{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19439echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019440if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
19441 echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443 lt_prog_compiler_pic_works_CXX=no
19444 ac_outfile=conftest.$ac_objext
19445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19447 # Insert the option either (1) after the last *FLAGS variable, or
19448 # (2) before a word containing "conftest.", or (3) at the end.
19449 # Note that $ac_compile itself does not contain backslashes and begins
19450 # with a dollar sign (not a hyphen), so the echo should work correctly.
19451 # The option is referenced via a variable to avoid confusing sed.
19452 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19455 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000019456 (eval echo "\"\$as_me:19456: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019457 (eval "$lt_compile" 2>conftest.err)
19458 ac_status=$?
19459 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000019460 echo "$as_me:19460: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019461 if (exit $ac_status) && test -s "$ac_outfile"; then
19462 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000019463 # So say no if there are warnings other than the usual output.
19464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
19465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019467 lt_prog_compiler_pic_works_CXX=yes
19468 fi
19469 fi
19470 $rm conftest*
19471
19472fi
Reid Spencera773bd52006-08-04 18:18:08 +000019473{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
19474echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019475
19476if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
19477 case $lt_prog_compiler_pic_CXX in
19478 "" | " "*) ;;
19479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19480 esac
19481else
19482 lt_prog_compiler_pic_CXX=
19483 lt_prog_compiler_can_build_shared_CXX=no
19484fi
19485
19486fi
Reid Spencera773bd52006-08-04 18:18:08 +000019487case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000019488 # For platforms which do not support PIC, -DPIC is meaningless:
19489 *djgpp*)
19490 lt_prog_compiler_pic_CXX=
19491 ;;
19492 *)
19493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19494 ;;
19495esac
19496
Reid Spencera773bd52006-08-04 18:18:08 +000019497#
19498# Check to make sure the static flag actually works.
19499#
19500wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19501{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19502echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
19503if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
19504 echo $ECHO_N "(cached) $ECHO_C" >&6
19505else
19506 lt_prog_compiler_static_works_CXX=no
19507 save_LDFLAGS="$LDFLAGS"
19508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
19510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19511 # The linker can only warn and ignore the option if not recognized
19512 # So say no if there are warnings
19513 if test -s conftest.err; then
19514 # Append any errors to the config.log.
19515 cat conftest.err 1>&5
19516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
19517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19518 if diff conftest.exp conftest.er2 >/dev/null; then
19519 lt_prog_compiler_static_works_CXX=yes
19520 fi
19521 else
19522 lt_prog_compiler_static_works_CXX=yes
19523 fi
19524 fi
19525 $rm conftest*
19526 LDFLAGS="$save_LDFLAGS"
19527
19528fi
19529{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
19530echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
19531
19532if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
19533 :
19534else
19535 lt_prog_compiler_static_CXX=
19536fi
19537
19538
19539{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19540echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019541if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
19542 echo $ECHO_N "(cached) $ECHO_C" >&6
19543else
19544 lt_cv_prog_compiler_c_o_CXX=no
19545 $rm -r conftest 2>/dev/null
19546 mkdir conftest
19547 cd conftest
19548 mkdir out
19549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19550
John Criswell47fdd832003-07-14 16:52:07 +000019551 lt_compiler_flag="-o out/conftest2.$ac_objext"
19552 # Insert the option either (1) after the last *FLAGS variable, or
19553 # (2) before a word containing "conftest.", or (3) at the end.
19554 # Note that $ac_compile itself does not contain backslashes and begins
19555 # with a dollar sign (not a hyphen), so the echo should work correctly.
19556 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000019557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000019558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19559 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000019560 (eval echo "\"\$as_me:19560: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019561 (eval "$lt_compile" 2>out/conftest.err)
19562 ac_status=$?
19563 cat out/conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000019564 echo "$as_me:19564: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19566 then
19567 # The compiler can only warn and ignore the option if not recognized
19568 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000019569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000019572 lt_cv_prog_compiler_c_o_CXX=yes
19573 fi
19574 fi
Reid Spencera773bd52006-08-04 18:18:08 +000019575 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019576 $rm conftest*
19577 # SGI C++ compiler will create directory out/ii_files/ for
19578 # template instantiation
19579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19580 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019581 cd ..
19582 rmdir conftest
19583 $rm conftest*
19584
19585fi
Reid Spencera773bd52006-08-04 18:18:08 +000019586{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19587echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019588
19589
19590hard_links="nottested"
19591if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19592 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000019593 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19594echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019595 hard_links=yes
19596 $rm conftest*
19597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19598 touch conftest.a
19599 ln conftest.a conftest.b 2>&5 || hard_links=no
19600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000019601 { echo "$as_me:$LINENO: result: $hard_links" >&5
19602echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019603 if test "$hard_links" = no; then
19604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19605echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19606 need_locks=warn
19607 fi
19608else
19609 need_locks=no
19610fi
19611
Reid Spencera773bd52006-08-04 18:18:08 +000019612{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019614
19615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19616 case $host_os in
19617 aix4* | aix5*)
19618 # If we're using GNU nm, then we don't want the "-C" option.
19619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19621 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'
19622 else
19623 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'
19624 fi
19625 ;;
19626 pw32*)
19627 export_symbols_cmds_CXX="$ltdll_cmds"
19628 ;;
19629 cygwin* | mingw*)
Reid Spencera773bd52006-08-04 18:18:08 +000019630 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 +000019631 ;;
19632 *)
19633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19634 ;;
19635 esac
19636
Reid Spencera773bd52006-08-04 18:18:08 +000019637{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19638echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019639test "$ld_shlibs_CXX" = no && can_build_shared=no
19640
John Criswell47fdd832003-07-14 16:52:07 +000019641#
19642# Do we need to explicitly link libc?
19643#
19644case "x$archive_cmds_need_lc_CXX" in
19645x|xyes)
19646 # Assume -lc should be added
19647 archive_cmds_need_lc_CXX=yes
19648
19649 if test "$enable_shared" = yes && test "$GCC" = yes; then
19650 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019651 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019652 # FIXME: we may have to deal with multi-command sequences.
19653 ;;
19654 '$CC '*)
19655 # Test whether the compiler implicitly links with -lc since on some
19656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19657 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000019658 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19659echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019660 $rm conftest*
19661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19662
19663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19664 (eval $ac_compile) 2>&5
19665 ac_status=$?
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } 2>conftest.err; then
19668 soname=conftest
19669 lib=conftest
19670 libobjs=conftest.$ac_objext
19671 deplibs=
19672 wl=$lt_prog_compiler_wl_CXX
Reid Spencera773bd52006-08-04 18:18:08 +000019673 pic_flag=$lt_prog_compiler_pic_CXX
John Criswell47fdd832003-07-14 16:52:07 +000019674 compiler_flags=-v
19675 linker_flags=-v
19676 verstring=
19677 output_objdir=.
19678 libname=conftest
19679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19680 allow_undefined_flag_CXX=
19681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }
19686 then
19687 archive_cmds_need_lc_CXX=no
19688 else
19689 archive_cmds_need_lc_CXX=yes
19690 fi
19691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19692 else
19693 cat conftest.err 1>&5
19694 fi
19695 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000019696 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
19697echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019698 ;;
19699 esac
19700 fi
19701 ;;
19702esac
19703
Reid Spencera773bd52006-08-04 18:18:08 +000019704{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19705echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000019706library_names_spec=
19707libname_spec='lib$name'
19708soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019709shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019710postinstall_cmds=
19711postuninstall_cmds=
19712finish_cmds=
19713finish_eval=
19714shlibpath_var=
19715shlibpath_overrides_runpath=unknown
19716version_type=none
19717dynamic_linker="$host_os ld.so"
19718sys_lib_dlsearch_path_spec="/lib /usr/lib"
19719if test "$GCC" = yes; then
19720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19721 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19722 # if the path contains ";" then we assume it to be the separator
19723 # otherwise default to the standard path separator (i.e. ":") - it is
19724 # assumed that no part of a normal pathname contains ";" but that should
19725 # okay in the real world where ";" in dirpaths is itself problematic.
19726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19727 else
19728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19729 fi
19730else
19731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19732fi
19733need_lib_prefix=unknown
19734hardcode_into_libs=no
19735
19736# when you set need_version to no, make sure it does not cause -set_version
19737# flags to be left without arguments
19738need_version=unknown
19739
19740case $host_os in
19741aix3*)
19742 version_type=linux
19743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19744 shlibpath_var=LIBPATH
19745
19746 # AIX 3 has no versioning support, so we append a major version to the name.
19747 soname_spec='${libname}${release}${shared_ext}$major'
19748 ;;
19749
19750aix4* | aix5*)
19751 version_type=linux
19752 need_lib_prefix=no
19753 need_version=no
19754 hardcode_into_libs=yes
19755 if test "$host_cpu" = ia64; then
19756 # AIX 5 supports IA64
19757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19758 shlibpath_var=LD_LIBRARY_PATH
19759 else
19760 # With GCC up to 2.95.x, collect2 would create an import file
19761 # for dependence libraries. The import file would start with
19762 # the line `#! .'. This would cause the generated library to
19763 # depend on `.', always an invalid library. This was fixed in
19764 # development snapshots of GCC prior to 3.0.
19765 case $host_os in
19766 aix4 | aix4.[01] | aix4.[01].*)
19767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19768 echo ' yes '
19769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19770 :
19771 else
19772 can_build_shared=no
19773 fi
19774 ;;
19775 esac
19776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19777 # soname into executable. Probably we can add versioning support to
19778 # collect2, so additional links can be useful in future.
19779 if test "$aix_use_runtimelinking" = yes; then
19780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19781 # instead of lib<name>.a to let people know that these are not
19782 # typical AIX shared libraries.
19783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19784 else
19785 # We preserve .a as extension for shared libraries through AIX4.2
19786 # and later when we are not doing run time linking.
19787 library_names_spec='${libname}${release}.a $libname.a'
19788 soname_spec='${libname}${release}${shared_ext}$major'
19789 fi
19790 shlibpath_var=LIBPATH
19791 fi
19792 ;;
19793
19794amigaos*)
19795 library_names_spec='$libname.ixlibrary $libname.a'
19796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019797 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 +000019798 ;;
19799
19800beos*)
19801 library_names_spec='${libname}${shared_ext}'
19802 dynamic_linker="$host_os ld.so"
19803 shlibpath_var=LIBRARY_PATH
19804 ;;
19805
Reid Spencer2706f8c2004-09-19 23:53:36 +000019806bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019807 version_type=linux
19808 need_version=no
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 soname_spec='${libname}${release}${shared_ext}$major'
19811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19812 shlibpath_var=LD_LIBRARY_PATH
19813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19815 # the default ld.so.conf also contains /usr/contrib/lib and
19816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19817 # libtool to hard-code these into programs
19818 ;;
19819
19820cygwin* | mingw* | pw32*)
19821 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019822 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019823 need_version=no
19824 need_lib_prefix=no
19825
19826 case $GCC,$host_os in
19827 yes,cygwin* | yes,mingw* | yes,pw32*)
19828 library_names_spec='$libname.dll.a'
19829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019830 postinstall_cmds='base_file=`basename \${file}`~
19831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19832 dldir=$destdir/`dirname \$dlpath`~
19833 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000019834 $install_prog $dir/$dlname \$dldir/$dlname~
19835 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19837 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019838 $rm \$dlpath'
19839 shlibpath_overrides_runpath=yes
19840
19841 case $host_os in
19842 cygwin*)
19843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19844 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 +000019845 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019846 ;;
19847 mingw*)
19848 # MinGW DLLs use traditional 'lib' prefix
19849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19851 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19852 # It is most probably a Windows format PATH printed by
19853 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19854 # path with ; separators, and with drive letters. We can handle the
19855 # drive letters (cygwin fileutils understands them), so leave them,
19856 # especially as we might pass files found there to a mingw objdump,
19857 # which wouldn't understand a cygwinified path. Ahh.
19858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19859 else
19860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19861 fi
19862 ;;
19863 pw32*)
19864 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000019865 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 +000019866 ;;
19867 esac
19868 ;;
19869
19870 *)
19871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19872 ;;
19873 esac
19874 dynamic_linker='Win32 ld.exe'
19875 # FIXME: first we should search . and the directory the executable is in
19876 shlibpath_var=PATH
19877 ;;
19878
19879darwin* | rhapsody*)
19880 dynamic_linker="$host_os dyld"
19881 version_type=darwin
19882 need_lib_prefix=no
19883 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019885 soname_spec='${libname}${release}${major}$shared_ext'
19886 shlibpath_overrides_runpath=yes
19887 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000019888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000019889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019890 if test "$GCC" = yes; then
19891 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"`
19892 else
19893 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019894 fi
19895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19896 ;;
19897
19898dgux*)
19899 version_type=linux
19900 need_lib_prefix=no
19901 need_version=no
19902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19903 soname_spec='${libname}${release}${shared_ext}$major'
19904 shlibpath_var=LD_LIBRARY_PATH
19905 ;;
19906
19907freebsd1*)
19908 dynamic_linker=no
19909 ;;
19910
Reid Spencer2706f8c2004-09-19 23:53:36 +000019911kfreebsd*-gnu)
19912 version_type=linux
19913 need_lib_prefix=no
19914 need_version=no
19915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19916 soname_spec='${libname}${release}${shared_ext}$major'
19917 shlibpath_var=LD_LIBRARY_PATH
19918 shlibpath_overrides_runpath=no
19919 hardcode_into_libs=yes
19920 dynamic_linker='GNU ld.so'
19921 ;;
19922
Reid Spencera773bd52006-08-04 18:18:08 +000019923freebsd* | dragonfly*)
19924 # DragonFly does not have aout. When/if they implement a new
19925 # versioning mechanism, adjust this.
19926 if test -x /usr/bin/objformat; then
19927 objformat=`/usr/bin/objformat`
19928 else
19929 case $host_os in
19930 freebsd[123]*) objformat=aout ;;
19931 *) objformat=elf ;;
19932 esac
19933 fi
John Criswell47fdd832003-07-14 16:52:07 +000019934 version_type=freebsd-$objformat
19935 case $version_type in
19936 freebsd-elf*)
19937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19938 need_version=no
19939 need_lib_prefix=no
19940 ;;
19941 freebsd-*)
19942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19943 need_version=yes
19944 ;;
19945 esac
19946 shlibpath_var=LD_LIBRARY_PATH
19947 case $host_os in
19948 freebsd2*)
19949 shlibpath_overrides_runpath=yes
19950 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019951 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000019952 shlibpath_overrides_runpath=yes
19953 hardcode_into_libs=yes
19954 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000019957 shlibpath_overrides_runpath=no
19958 hardcode_into_libs=yes
19959 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000019960 freebsd*) # from 4.6 on
19961 shlibpath_overrides_runpath=yes
19962 hardcode_into_libs=yes
19963 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019964 esac
19965 ;;
19966
19967gnu*)
19968 version_type=linux
19969 need_lib_prefix=no
19970 need_version=no
19971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19972 soname_spec='${libname}${release}${shared_ext}$major'
19973 shlibpath_var=LD_LIBRARY_PATH
19974 hardcode_into_libs=yes
19975 ;;
19976
19977hpux9* | hpux10* | hpux11*)
19978 # Give a soname corresponding to the major version so that dld.sl refuses to
19979 # link against other versions.
19980 version_type=sunos
19981 need_lib_prefix=no
19982 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000019983 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000019984 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000019985 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000019986 hardcode_into_libs=yes
19987 dynamic_linker="$host_os dld.so"
19988 shlibpath_var=LD_LIBRARY_PATH
19989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 if test "X$HPUX_IA64_MODE" = X32; then
19993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19994 else
19995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19996 fi
19997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19998 ;;
19999 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020000 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020001 hardcode_into_libs=yes
20002 dynamic_linker="$host_os dld.sl"
20003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20009 ;;
20010 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020012 dynamic_linker="$host_os dld.sl"
20013 shlibpath_var=SHLIB_PATH
20014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20016 soname_spec='${libname}${release}${shared_ext}$major'
20017 ;;
20018 esac
20019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20020 postinstall_cmds='chmod 555 $lib'
20021 ;;
20022
Reid Spencera773bd52006-08-04 18:18:08 +000020023interix3*)
20024 version_type=linux
20025 need_lib_prefix=no
20026 need_version=no
20027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20028 soname_spec='${libname}${release}${shared_ext}$major'
20029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20030 shlibpath_var=LD_LIBRARY_PATH
20031 shlibpath_overrides_runpath=no
20032 hardcode_into_libs=yes
20033 ;;
20034
John Criswell47fdd832003-07-14 16:52:07 +000020035irix5* | irix6* | nonstopux*)
20036 case $host_os in
20037 nonstopux*) version_type=nonstopux ;;
20038 *)
20039 if test "$lt_cv_prog_gnu_ld" = yes; then
20040 version_type=linux
20041 else
20042 version_type=irix
20043 fi ;;
20044 esac
20045 need_lib_prefix=no
20046 need_version=no
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20049 case $host_os in
20050 irix5* | nonstopux*)
20051 libsuff= shlibsuff=
20052 ;;
20053 *)
20054 case $LD in # libtool.m4 will add one of these switches to LD
20055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20056 libsuff= shlibsuff= libmagic=32-bit;;
20057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20058 libsuff=32 shlibsuff=N32 libmagic=N32;;
20059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20061 *) libsuff= shlibsuff= libmagic=never-match;;
20062 esac
20063 ;;
20064 esac
20065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20066 shlibpath_overrides_runpath=no
20067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20069 hardcode_into_libs=yes
20070 ;;
20071
20072# No shared lib support for Linux oldld, aout, or coff.
20073linux*oldld* | linux*aout* | linux*coff*)
20074 dynamic_linker=no
20075 ;;
20076
20077# This must be Linux ELF.
20078linux*)
20079 version_type=linux
20080 need_lib_prefix=no
20081 need_version=no
20082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20083 soname_spec='${libname}${release}${shared_ext}$major'
20084 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20085 shlibpath_var=LD_LIBRARY_PATH
20086 shlibpath_overrides_runpath=no
20087 # This implies no fast_install, which is unacceptable.
20088 # Some rework will be needed to allow for fast_install
20089 # before this can be enabled.
20090 hardcode_into_libs=yes
20091
Reid Spencer2706f8c2004-09-19 23:53:36 +000020092 # Append ld.so.conf contents to the search path
20093 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000020094 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 +000020095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20096 fi
20097
John Criswell47fdd832003-07-14 16:52:07 +000020098 # We used to test for /lib/ld.so.1 and disable shared libraries on
20099 # powerpc, because MkLinux only supported shared libraries with the
20100 # GNU dynamic linker. Since this was broken with cross compilers,
20101 # most powerpc-linux boxes support dynamic linking these days and
20102 # people can always --disable-shared, the test was removed, and we
20103 # assume the GNU/Linux dynamic linker is in use.
20104 dynamic_linker='GNU/Linux ld.so'
20105 ;;
20106
Reid Spencer2706f8c2004-09-19 23:53:36 +000020107knetbsd*-gnu)
20108 version_type=linux
20109 need_lib_prefix=no
20110 need_version=no
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 hardcode_into_libs=yes
20116 dynamic_linker='GNU ld.so'
20117 ;;
20118
John Criswell47fdd832003-07-14 16:52:07 +000020119netbsd*)
20120 version_type=sunos
20121 need_lib_prefix=no
20122 need_version=no
20123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20126 dynamic_linker='NetBSD (a.out) ld.so'
20127 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020129 soname_spec='${libname}${release}${shared_ext}$major'
20130 dynamic_linker='NetBSD ld.elf_so'
20131 fi
20132 shlibpath_var=LD_LIBRARY_PATH
20133 shlibpath_overrides_runpath=yes
20134 hardcode_into_libs=yes
20135 ;;
20136
20137newsos6)
20138 version_type=linux
20139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20140 shlibpath_var=LD_LIBRARY_PATH
20141 shlibpath_overrides_runpath=yes
20142 ;;
20143
Reid Spencer2706f8c2004-09-19 23:53:36 +000020144nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020145 version_type=linux
20146 need_lib_prefix=no
20147 need_version=no
20148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20149 soname_spec='${libname}${release}${shared_ext}$major'
20150 shlibpath_var=LD_LIBRARY_PATH
20151 shlibpath_overrides_runpath=yes
20152 ;;
20153
20154openbsd*)
20155 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000020156 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020157 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000020158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20159 case $host_os in
20160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20161 *) need_version=no ;;
20162 esac
John Criswell47fdd832003-07-14 16:52:07 +000020163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20167 case $host_os in
20168 openbsd2.[89] | openbsd2.[89].*)
20169 shlibpath_overrides_runpath=no
20170 ;;
20171 *)
20172 shlibpath_overrides_runpath=yes
20173 ;;
20174 esac
20175 else
20176 shlibpath_overrides_runpath=yes
20177 fi
20178 ;;
20179
20180os2*)
20181 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020183 need_lib_prefix=no
20184 library_names_spec='$libname${shared_ext} $libname.a'
20185 dynamic_linker='OS/2 ld.exe'
20186 shlibpath_var=LIBPATH
20187 ;;
20188
20189osf3* | osf4* | osf5*)
20190 version_type=osf
20191 need_lib_prefix=no
20192 need_version=no
20193 soname_spec='${libname}${release}${shared_ext}$major'
20194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195 shlibpath_var=LD_LIBRARY_PATH
20196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20198 ;;
20199
John Criswell47fdd832003-07-14 16:52:07 +000020200solaris*)
20201 version_type=linux
20202 need_lib_prefix=no
20203 need_version=no
20204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20205 soname_spec='${libname}${release}${shared_ext}$major'
20206 shlibpath_var=LD_LIBRARY_PATH
20207 shlibpath_overrides_runpath=yes
20208 hardcode_into_libs=yes
20209 # ldd complains unless libraries are executable
20210 postinstall_cmds='chmod +x $lib'
20211 ;;
20212
20213sunos4*)
20214 version_type=sunos
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 shlibpath_overrides_runpath=yes
20219 if test "$with_gnu_ld" = yes; then
20220 need_lib_prefix=no
20221 fi
20222 need_version=yes
20223 ;;
20224
Reid Spencera773bd52006-08-04 18:18:08 +000020225sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000020226 version_type=linux
20227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20228 soname_spec='${libname}${release}${shared_ext}$major'
20229 shlibpath_var=LD_LIBRARY_PATH
20230 case $host_vendor in
20231 sni)
20232 shlibpath_overrides_runpath=no
20233 need_lib_prefix=no
20234 export_dynamic_flag_spec='${wl}-Blargedynsym'
20235 runpath_var=LD_RUN_PATH
20236 ;;
20237 siemens)
20238 need_lib_prefix=no
20239 ;;
20240 motorola)
20241 need_lib_prefix=no
20242 need_version=no
20243 shlibpath_overrides_runpath=no
20244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20245 ;;
20246 esac
20247 ;;
20248
20249sysv4*MP*)
20250 if test -d /usr/nec ;then
20251 version_type=linux
20252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20253 soname_spec='$libname${shared_ext}.$major'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 fi
20256 ;;
20257
Reid Spencera773bd52006-08-04 18:18:08 +000020258sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20259 version_type=freebsd-elf
20260 need_lib_prefix=no
20261 need_version=no
20262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20263 soname_spec='${libname}${release}${shared_ext}$major'
20264 shlibpath_var=LD_LIBRARY_PATH
20265 hardcode_into_libs=yes
20266 if test "$with_gnu_ld" = yes; then
20267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20268 shlibpath_overrides_runpath=no
20269 else
20270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20271 shlibpath_overrides_runpath=yes
20272 case $host_os in
20273 sco3.2v5*)
20274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20275 ;;
20276 esac
20277 fi
20278 sys_lib_dlsearch_path_spec='/usr/lib'
20279 ;;
20280
John Criswell47fdd832003-07-14 16:52:07 +000020281uts4*)
20282 version_type=linux
20283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20284 soname_spec='${libname}${release}${shared_ext}$major'
20285 shlibpath_var=LD_LIBRARY_PATH
20286 ;;
20287
20288*)
20289 dynamic_linker=no
20290 ;;
20291esac
Reid Spencera773bd52006-08-04 18:18:08 +000020292{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20293echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020294test "$dynamic_linker" = no && can_build_shared=no
20295
Reid Spencera773bd52006-08-04 18:18:08 +000020296variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20297if test "$GCC" = yes; then
20298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20299fi
20300
20301{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20302echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020303hardcode_action_CXX=
20304if test -n "$hardcode_libdir_flag_spec_CXX" || \
20305 test -n "$runpath_var_CXX" || \
20306 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20307
20308 # We can hardcode non-existant directories.
20309 if test "$hardcode_direct_CXX" != no &&
20310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20311 # have to relink, otherwise we might link with an installed library
20312 # when we should be linking with a yet-to-be-installed one
20313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20314 test "$hardcode_minus_L_CXX" != no; then
20315 # Linking always hardcodes the temporary library directory.
20316 hardcode_action_CXX=relink
20317 else
20318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20319 hardcode_action_CXX=immediate
20320 fi
20321else
20322 # We cannot hardcode anything, or else we can only hardcode existing
20323 # directories.
20324 hardcode_action_CXX=unsupported
20325fi
Reid Spencera773bd52006-08-04 18:18:08 +000020326{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
20327echo "${ECHO_T}$hardcode_action_CXX" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000020328
20329if test "$hardcode_action_CXX" = relink; then
20330 # Fast installation is not supported
20331 enable_fast_install=no
20332elif test "$shlibpath_overrides_runpath" = yes ||
20333 test "$enable_shared" = no; then
20334 # Fast installation is not necessary
20335 enable_fast_install=needless
20336fi
20337
John Criswell47fdd832003-07-14 16:52:07 +000020338
20339# The else clause should only fire when bootstrapping the
20340# libtool distribution, otherwise you forgot to ship ltmain.sh
20341# with your package, and you will get complaints that there are
20342# no rules to generate ltmain.sh.
20343if test -f "$ltmain"; then
20344 # See if we are running on zsh, and set the options which allow our commands through
20345 # without removal of \ escapes.
20346 if test -n "${ZSH_VERSION+set}" ; then
20347 setopt NO_GLOB_SUBST
20348 fi
20349 # Now quote all the things that may contain metacharacters while being
20350 # careful not to overquote the AC_SUBSTed values. We take copies of the
20351 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000020352 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 +000020353 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20356 deplibs_check_method reload_flag reload_cmds need_locks \
20357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20358 lt_cv_sys_global_symbol_to_c_name_address \
20359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20360 old_postinstall_cmds old_postuninstall_cmds \
20361 compiler_CXX \
20362 CC_CXX \
20363 LD_CXX \
20364 lt_prog_compiler_wl_CXX \
20365 lt_prog_compiler_pic_CXX \
20366 lt_prog_compiler_static_CXX \
20367 lt_prog_compiler_no_builtin_flag_CXX \
20368 export_dynamic_flag_spec_CXX \
20369 thread_safe_flag_spec_CXX \
20370 whole_archive_flag_spec_CXX \
20371 enable_shared_with_static_runtimes_CXX \
20372 old_archive_cmds_CXX \
20373 old_archive_from_new_cmds_CXX \
20374 predep_objects_CXX \
20375 postdep_objects_CXX \
20376 predeps_CXX \
20377 postdeps_CXX \
20378 compiler_lib_search_path_CXX \
20379 archive_cmds_CXX \
20380 archive_expsym_cmds_CXX \
20381 postinstall_cmds_CXX \
20382 postuninstall_cmds_CXX \
20383 old_archive_from_expsyms_cmds_CXX \
20384 allow_undefined_flag_CXX \
20385 no_undefined_flag_CXX \
20386 export_symbols_cmds_CXX \
20387 hardcode_libdir_flag_spec_CXX \
20388 hardcode_libdir_flag_spec_ld_CXX \
20389 hardcode_libdir_separator_CXX \
20390 hardcode_automatic_CXX \
20391 module_cmds_CXX \
20392 module_expsym_cmds_CXX \
20393 lt_cv_prog_compiler_c_o_CXX \
20394 exclude_expsyms_CXX \
20395 include_expsyms_CXX; do
20396
20397 case $var in
20398 old_archive_cmds_CXX | \
20399 old_archive_from_new_cmds_CXX | \
20400 archive_cmds_CXX | \
20401 archive_expsym_cmds_CXX | \
20402 module_cmds_CXX | \
20403 module_expsym_cmds_CXX | \
20404 old_archive_from_expsyms_cmds_CXX | \
20405 export_symbols_cmds_CXX | \
20406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20407 postinstall_cmds | postuninstall_cmds | \
20408 old_postinstall_cmds | old_postuninstall_cmds | \
20409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20410 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020411 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 +000020412 ;;
20413 *)
20414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20415 ;;
20416 esac
20417 done
20418
20419 case $lt_echo in
20420 *'\$0 --fallback-echo"')
20421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20422 ;;
20423 esac
20424
20425cfgfile="$ofile"
20426
20427 cat <<__EOF__ >> "$cfgfile"
20428# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20429
20430# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20431
20432# Shell to use when invoking shell scripts.
20433SHELL=$lt_SHELL
20434
20435# Whether or not to build shared libraries.
20436build_libtool_libs=$enable_shared
20437
20438# Whether or not to build static libraries.
20439build_old_libs=$enable_static
20440
20441# Whether or not to add -lc for building shared libraries.
20442build_libtool_need_lc=$archive_cmds_need_lc_CXX
20443
20444# Whether or not to disallow shared libs when runtime libs are static
20445allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
20446
20447# Whether or not to optimize for fast installation.
20448fast_install=$enable_fast_install
20449
20450# The host system.
20451host_alias=$host_alias
20452host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000020453host_os=$host_os
20454
20455# The build system.
20456build_alias=$build_alias
20457build=$build
20458build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000020459
20460# An echo program that does not interpret backslashes.
20461echo=$lt_echo
20462
20463# The archiver.
20464AR=$lt_AR
20465AR_FLAGS=$lt_AR_FLAGS
20466
20467# A C compiler.
20468LTCC=$lt_LTCC
20469
Reid Spencera773bd52006-08-04 18:18:08 +000020470# LTCC compiler flags.
20471LTCFLAGS=$lt_LTCFLAGS
20472
John Criswell47fdd832003-07-14 16:52:07 +000020473# A language-specific compiler.
20474CC=$lt_compiler_CXX
20475
20476# Is the compiler the GNU C compiler?
20477with_gcc=$GCC_CXX
20478
20479# An ERE matcher.
20480EGREP=$lt_EGREP
20481
20482# The linker used to build libraries.
20483LD=$lt_LD_CXX
20484
20485# Whether we need hard or soft links.
20486LN_S=$lt_LN_S
20487
20488# A BSD-compatible nm program.
20489NM=$lt_NM
20490
20491# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020492STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020493
20494# Used to examine libraries when file_magic_cmd begins "file"
20495MAGIC_CMD=$MAGIC_CMD
20496
20497# Used on cygwin: DLL creation program.
20498DLLTOOL="$DLLTOOL"
20499
20500# Used on cygwin: object dumper.
20501OBJDUMP="$OBJDUMP"
20502
20503# Used on cygwin: assembler.
20504AS="$AS"
20505
20506# The name of the directory that contains temporary libtool files.
20507objdir=$objdir
20508
20509# How to create reloadable object files.
20510reload_flag=$lt_reload_flag
20511reload_cmds=$lt_reload_cmds
20512
20513# How to pass a linker flag through the compiler.
20514wl=$lt_lt_prog_compiler_wl_CXX
20515
20516# Object file suffix (normally "o").
20517objext="$ac_objext"
20518
20519# Old archive suffix (normally "a").
20520libext="$libext"
20521
20522# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020523shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020524
20525# Executable file suffix (normally "").
20526exeext="$exeext"
20527
20528# Additional compiler flags for building library objects.
20529pic_flag=$lt_lt_prog_compiler_pic_CXX
20530pic_mode=$pic_mode
20531
20532# What is the maximum length of a command?
20533max_cmd_len=$lt_cv_sys_max_cmd_len
20534
20535# Does compiler simultaneously support -c and -o options?
20536compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
20537
Reid Spencera773bd52006-08-04 18:18:08 +000020538# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000020539need_locks=$lt_need_locks
20540
20541# Do we need the lib prefix for modules?
20542need_lib_prefix=$need_lib_prefix
20543
20544# Do we need a version for libraries?
20545need_version=$need_version
20546
20547# Whether dlopen is supported.
20548dlopen_support=$enable_dlopen
20549
20550# Whether dlopen of programs is supported.
20551dlopen_self=$enable_dlopen_self
20552
20553# Whether dlopen of statically linked programs is supported.
20554dlopen_self_static=$enable_dlopen_self_static
20555
20556# Compiler flag to prevent dynamic linking.
20557link_static_flag=$lt_lt_prog_compiler_static_CXX
20558
20559# Compiler flag to turn off builtin functions.
20560no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
20561
20562# Compiler flag to allow reflexive dlopens.
20563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
20564
20565# Compiler flag to generate shared objects directly from archives.
20566whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
20567
20568# Compiler flag to generate thread-safe objects.
20569thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
20570
20571# Library versioning type.
20572version_type=$version_type
20573
20574# Format of library name prefix.
20575libname_spec=$lt_libname_spec
20576
20577# List of archive names. First name is the real one, the rest are links.
20578# The last name is the one that the linker finds with -lNAME.
20579library_names_spec=$lt_library_names_spec
20580
20581# The coded name of the library, if different from the real name.
20582soname_spec=$lt_soname_spec
20583
20584# Commands used to build and install an old-style archive.
20585RANLIB=$lt_RANLIB
20586old_archive_cmds=$lt_old_archive_cmds_CXX
20587old_postinstall_cmds=$lt_old_postinstall_cmds
20588old_postuninstall_cmds=$lt_old_postuninstall_cmds
20589
20590# Create an old-style archive from a shared archive.
20591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
20592
20593# Create a temporary old-style archive to link instead of a shared archive.
20594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
20595
20596# Commands used to build and install a shared archive.
20597archive_cmds=$lt_archive_cmds_CXX
20598archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
20599postinstall_cmds=$lt_postinstall_cmds
20600postuninstall_cmds=$lt_postuninstall_cmds
20601
20602# Commands used to build a loadable module (assumed same as above if empty)
20603module_cmds=$lt_module_cmds_CXX
20604module_expsym_cmds=$lt_module_expsym_cmds_CXX
20605
20606# Commands to strip libraries.
20607old_striplib=$lt_old_striplib
20608striplib=$lt_striplib
20609
20610# Dependencies to place before the objects being linked to create a
20611# shared library.
20612predep_objects=$lt_predep_objects_CXX
20613
20614# Dependencies to place after the objects being linked to create a
20615# shared library.
20616postdep_objects=$lt_postdep_objects_CXX
20617
20618# Dependencies to place before the objects being linked to create a
20619# shared library.
20620predeps=$lt_predeps_CXX
20621
20622# Dependencies to place after the objects being linked to create a
20623# shared library.
20624postdeps=$lt_postdeps_CXX
20625
20626# The library search path used internally by the compiler when linking
20627# a shared library.
20628compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
20629
20630# Method to check whether dependent libraries are shared objects.
20631deplibs_check_method=$lt_deplibs_check_method
20632
20633# Command to use when deplibs_check_method == file_magic.
20634file_magic_cmd=$lt_file_magic_cmd
20635
20636# Flag that allows shared libraries with undefined symbols to be built.
20637allow_undefined_flag=$lt_allow_undefined_flag_CXX
20638
20639# Flag that forces no undefined symbols.
20640no_undefined_flag=$lt_no_undefined_flag_CXX
20641
20642# Commands used to finish a libtool library installation in a directory.
20643finish_cmds=$lt_finish_cmds
20644
20645# Same as above, but a single script fragment to be evaled but not shown.
20646finish_eval=$lt_finish_eval
20647
20648# Take the output of nm and produce a listing of raw symbols and C names.
20649global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20650
20651# Transform the output of nm in a proper C declaration
20652global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20653
20654# Transform the output of nm in a C name address pair
20655global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20656
20657# This is the shared library runtime path variable.
20658runpath_var=$runpath_var
20659
20660# This is the shared library path variable.
20661shlibpath_var=$shlibpath_var
20662
20663# Is shlibpath searched before the hard-coded library search path?
20664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20665
20666# How to hardcode a shared library path into an executable.
20667hardcode_action=$hardcode_action_CXX
20668
20669# Whether we should hardcode library paths into libraries.
20670hardcode_into_libs=$hardcode_into_libs
20671
20672# Flag to hardcode \$libdir into a binary during linking.
20673# This must work even if \$libdir does not exist.
20674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
20675
20676# If ld is used when linking, flag to hardcode \$libdir into
20677# a binary during linking. This must work even if \$libdir does
20678# not exist.
20679hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
20680
20681# Whether we need a single -rpath flag with a separated argument.
20682hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
20683
20684# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20685# resulting binary.
20686hardcode_direct=$hardcode_direct_CXX
20687
20688# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20689# resulting binary.
20690hardcode_minus_L=$hardcode_minus_L_CXX
20691
20692# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20693# the resulting binary.
20694hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
20695
20696# Set to yes if building a shared library automatically hardcodes DIR into the library
20697# and all subsequent libraries and executables linked against it.
20698hardcode_automatic=$hardcode_automatic_CXX
20699
20700# Variables whose values should be saved in libtool wrapper scripts and
20701# restored at relink time.
20702variables_saved_for_relink="$variables_saved_for_relink"
20703
20704# Whether libtool must link a program against all its dependency libraries.
20705link_all_deplibs=$link_all_deplibs_CXX
20706
20707# Compile-time system search path for libraries
20708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20709
20710# Run-time system search path for libraries
20711sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20712
20713# Fix the shell variable \$srcfile for the compiler.
20714fix_srcfile_path="$fix_srcfile_path_CXX"
20715
20716# Set to yes if exported symbols are required.
20717always_export_symbols=$always_export_symbols_CXX
20718
20719# The commands to list exported symbols.
20720export_symbols_cmds=$lt_export_symbols_cmds_CXX
20721
20722# The commands to extract the exported symbol list from a shared archive.
20723extract_expsyms_cmds=$lt_extract_expsyms_cmds
20724
20725# Symbols that should not be listed in the preloaded symbols.
20726exclude_expsyms=$lt_exclude_expsyms_CXX
20727
20728# Symbols that must always be exported.
20729include_expsyms=$lt_include_expsyms_CXX
20730
20731# ### END LIBTOOL TAG CONFIG: $tagname
20732
20733__EOF__
20734
20735
20736else
20737 # If there is no Makefile yet, we rely on a make rule to execute
20738 # `config.status --recheck' to rerun these tests and create the
20739 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20741 if test -f "$ltmain_in"; then
20742 test -f Makefile && make "$ltmain"
20743 fi
John Criswell47fdd832003-07-14 16:52:07 +000020744fi
20745
20746
20747ac_ext=c
20748ac_cpp='$CPP $CPPFLAGS'
20749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751ac_compiler_gnu=$ac_cv_c_compiler_gnu
20752
20753CC=$lt_save_CC
20754LDCXX=$LD
20755LD=$lt_save_LD
20756GCC=$lt_save_GCC
20757with_gnu_ldcxx=$with_gnu_ld
20758with_gnu_ld=$lt_save_with_gnu_ld
20759lt_cv_path_LDCXX=$lt_cv_path_LD
20760lt_cv_path_LD=$lt_save_path_LD
20761lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20762lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20763
20764 else
20765 tagname=""
20766 fi
20767 ;;
20768
20769 F77)
20770 if test -n "$F77" && test "X$F77" != "Xno"; then
20771
20772ac_ext=f
20773ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20774ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20775ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20776
20777
20778archive_cmds_need_lc_F77=no
20779allow_undefined_flag_F77=
20780always_export_symbols_F77=no
20781archive_expsym_cmds_F77=
20782export_dynamic_flag_spec_F77=
20783hardcode_direct_F77=no
20784hardcode_libdir_flag_spec_F77=
20785hardcode_libdir_flag_spec_ld_F77=
20786hardcode_libdir_separator_F77=
20787hardcode_minus_L_F77=no
20788hardcode_automatic_F77=no
20789module_cmds_F77=
20790module_expsym_cmds_F77=
20791link_all_deplibs_F77=unknown
20792old_archive_cmds_F77=$old_archive_cmds
20793no_undefined_flag_F77=
20794whole_archive_flag_spec_F77=
20795enable_shared_with_static_runtimes_F77=no
20796
20797# Source file extension for f77 test sources.
20798ac_ext=f
20799
20800# Object file extension for compiled f77 test sources.
20801objext=o
20802objext_F77=$objext
20803
20804# Code to be used in simple compile tests
20805lt_simple_compile_test_code=" subroutine t\n return\n end\n"
20806
20807# Code to be used in simple link tests
20808lt_simple_link_test_code=" program t\n end\n"
20809
20810# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20811
20812# If no C compiler was specified, use CC.
20813LTCC=${LTCC-"$CC"}
20814
Reid Spencera773bd52006-08-04 18:18:08 +000020815# If no C compiler flags were specified, use CFLAGS.
20816LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20817
John Criswell47fdd832003-07-14 16:52:07 +000020818# Allow CC to be a program name with arguments.
20819compiler=$CC
20820
20821
Reid Spencera773bd52006-08-04 18:18:08 +000020822# save warnings/boilerplate of simple test code
20823ac_outfile=conftest.$ac_objext
20824printf "$lt_simple_compile_test_code" >conftest.$ac_ext
20825eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20826_lt_compiler_boilerplate=`cat conftest.err`
20827$rm conftest*
20828
20829ac_outfile=conftest.$ac_objext
20830printf "$lt_simple_link_test_code" >conftest.$ac_ext
20831eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20832_lt_linker_boilerplate=`cat conftest.err`
20833$rm conftest*
20834
20835
John Criswell47fdd832003-07-14 16:52:07 +000020836# Allow CC to be a program name with arguments.
20837lt_save_CC="$CC"
20838CC=${F77-"f77"}
20839compiler=$CC
20840compiler_F77=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000020841for cc_temp in $compiler""; do
20842 case $cc_temp in
20843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20845 \-*) ;;
20846 *) break;;
20847 esac
20848done
20849cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000020850
John Criswell47fdd832003-07-14 16:52:07 +000020851
Reid Spencera773bd52006-08-04 18:18:08 +000020852{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
20853echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
20854{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
20855echo "${ECHO_T}$can_build_shared" >&6; }
20856
20857{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
20858echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020859test "$can_build_shared" = "no" && enable_shared=no
20860
20861# On AIX, shared libraries and static libraries use the same namespace, and
20862# are all built from PIC.
Reid Spencera773bd52006-08-04 18:18:08 +000020863case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000020864aix3*)
20865 test "$enable_shared" = yes && enable_static=no
20866 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000020867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000020868 postinstall_cmds='$RANLIB $lib'
20869 fi
20870 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020871aix4* | aix5*)
Reid Spencera773bd52006-08-04 18:18:08 +000020872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
20873 test "$enable_shared" = yes && enable_static=no
20874 fi
John Criswell47fdd832003-07-14 16:52:07 +000020875 ;;
20876esac
Reid Spencera773bd52006-08-04 18:18:08 +000020877{ echo "$as_me:$LINENO: result: $enable_shared" >&5
20878echo "${ECHO_T}$enable_shared" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020879
Reid Spencera773bd52006-08-04 18:18:08 +000020880{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
20881echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020882# Make sure either enable_shared or enable_static is yes.
20883test "$enable_shared" = yes || enable_static=yes
Reid Spencera773bd52006-08-04 18:18:08 +000020884{ echo "$as_me:$LINENO: result: $enable_static" >&5
20885echo "${ECHO_T}$enable_static" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020886
20887GCC_F77="$G77"
20888LD_F77="$LD"
20889
20890lt_prog_compiler_wl_F77=
20891lt_prog_compiler_pic_F77=
20892lt_prog_compiler_static_F77=
20893
Reid Spencera773bd52006-08-04 18:18:08 +000020894{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20895echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000020896
20897 if test "$GCC" = yes; then
20898 lt_prog_compiler_wl_F77='-Wl,'
20899 lt_prog_compiler_static_F77='-static'
20900
20901 case $host_os in
20902 aix*)
20903 # All AIX code is PIC.
20904 if test "$host_cpu" = ia64; then
20905 # AIX 5 now supports IA64 processor
20906 lt_prog_compiler_static_F77='-Bstatic'
20907 fi
20908 ;;
20909
20910 amigaos*)
20911 # FIXME: we need at least 68020 code to build shared libraries, but
20912 # adding the `-m68020' flag to GCC prevents building anything better,
20913 # like `-m68040'.
20914 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
20915 ;;
20916
20917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20918 # PIC is the default for these OSes.
20919 ;;
20920
20921 mingw* | pw32* | os2*)
20922 # This hack is so that the source file can tell whether it is being
20923 # built for inclusion in a dll (and should export symbols for example).
20924 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20925 ;;
20926
20927 darwin* | rhapsody*)
20928 # PIC is the default on this platform
20929 # Common symbols not allowed in MH_DYLIB files
20930 lt_prog_compiler_pic_F77='-fno-common'
20931 ;;
20932
Reid Spencera773bd52006-08-04 18:18:08 +000020933 interix3*)
20934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20935 # Instead, we relocate shared libraries at runtime.
20936 ;;
20937
John Criswell47fdd832003-07-14 16:52:07 +000020938 msdosdjgpp*)
20939 # Just because we use GCC doesn't mean we suddenly get shared libraries
20940 # on systems that don't support them.
20941 lt_prog_compiler_can_build_shared_F77=no
20942 enable_shared=no
20943 ;;
20944
20945 sysv4*MP*)
20946 if test -d /usr/nec; then
20947 lt_prog_compiler_pic_F77=-Kconform_pic
20948 fi
20949 ;;
20950
20951 hpux*)
20952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20953 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000020954 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000020955 hppa*64*|ia64*)
20956 # +Z the default
20957 ;;
20958 *)
20959 lt_prog_compiler_pic_F77='-fPIC'
20960 ;;
20961 esac
20962 ;;
20963
20964 *)
20965 lt_prog_compiler_pic_F77='-fPIC'
20966 ;;
20967 esac
20968 else
20969 # PORTME Check for flag to pass linker flags through the system compiler.
20970 case $host_os in
20971 aix*)
20972 lt_prog_compiler_wl_F77='-Wl,'
20973 if test "$host_cpu" = ia64; then
20974 # AIX 5 now supports IA64 processor
20975 lt_prog_compiler_static_F77='-Bstatic'
20976 else
20977 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
20978 fi
20979 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020980 darwin*)
20981 # PIC is the default on this platform
20982 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000020983 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020984 xlc*)
20985 lt_prog_compiler_pic_F77='-qnocommon'
20986 lt_prog_compiler_wl_F77='-Wl,'
20987 ;;
20988 esac
20989 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020990
20991 mingw* | pw32* | os2*)
20992 # This hack is so that the source file can tell whether it is being
20993 # built for inclusion in a dll (and should export symbols for example).
20994 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
20995 ;;
20996
20997 hpux9* | hpux10* | hpux11*)
20998 lt_prog_compiler_wl_F77='-Wl,'
20999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21000 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000021001 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000021002 hppa*64*|ia64*)
21003 # +Z the default
21004 ;;
21005 *)
21006 lt_prog_compiler_pic_F77='+Z'
21007 ;;
21008 esac
21009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21010 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21011 ;;
21012
21013 irix5* | irix6* | nonstopux*)
21014 lt_prog_compiler_wl_F77='-Wl,'
21015 # PIC (with -KPIC) is the default.
21016 lt_prog_compiler_static_F77='-non_shared'
21017 ;;
21018
21019 newsos6)
21020 lt_prog_compiler_pic_F77='-KPIC'
21021 lt_prog_compiler_static_F77='-Bstatic'
21022 ;;
21023
21024 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000021025 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021026 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021027 lt_prog_compiler_wl_F77='-Wl,'
21028 lt_prog_compiler_pic_F77='-KPIC'
21029 lt_prog_compiler_static_F77='-static'
21030 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021031 pgcc* | pgf77* | pgf90* | pgf95*)
21032 # Portland Group compilers (*not* the Pentium gcc compiler,
21033 # which looks to be a dead project)
21034 lt_prog_compiler_wl_F77='-Wl,'
21035 lt_prog_compiler_pic_F77='-fpic'
21036 lt_prog_compiler_static_F77='-Bstatic'
21037 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021038 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021039 lt_prog_compiler_wl_F77='-Wl,'
21040 # All Alpha code is PIC.
21041 lt_prog_compiler_static_F77='-non_shared'
21042 ;;
21043 esac
21044 ;;
21045
21046 osf3* | osf4* | osf5*)
21047 lt_prog_compiler_wl_F77='-Wl,'
21048 # All OSF/1 code is PIC.
21049 lt_prog_compiler_static_F77='-non_shared'
21050 ;;
21051
John Criswell47fdd832003-07-14 16:52:07 +000021052 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021053 lt_prog_compiler_pic_F77='-KPIC'
21054 lt_prog_compiler_static_F77='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000021055 case $cc_basename in
21056 f77* | f90* | f95*)
21057 lt_prog_compiler_wl_F77='-Qoption ld ';;
21058 *)
21059 lt_prog_compiler_wl_F77='-Wl,';;
21060 esac
John Criswell47fdd832003-07-14 16:52:07 +000021061 ;;
21062
21063 sunos4*)
21064 lt_prog_compiler_wl_F77='-Qoption ld '
21065 lt_prog_compiler_pic_F77='-PIC'
21066 lt_prog_compiler_static_F77='-Bstatic'
21067 ;;
21068
Reid Spencera773bd52006-08-04 18:18:08 +000021069 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000021070 lt_prog_compiler_wl_F77='-Wl,'
21071 lt_prog_compiler_pic_F77='-KPIC'
21072 lt_prog_compiler_static_F77='-Bstatic'
21073 ;;
21074
21075 sysv4*MP*)
21076 if test -d /usr/nec ;then
21077 lt_prog_compiler_pic_F77='-Kconform_pic'
21078 lt_prog_compiler_static_F77='-Bstatic'
21079 fi
21080 ;;
21081
Reid Spencera773bd52006-08-04 18:18:08 +000021082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21083 lt_prog_compiler_wl_F77='-Wl,'
21084 lt_prog_compiler_pic_F77='-KPIC'
21085 lt_prog_compiler_static_F77='-Bstatic'
21086 ;;
21087
21088 unicos*)
21089 lt_prog_compiler_wl_F77='-Wl,'
21090 lt_prog_compiler_can_build_shared_F77=no
21091 ;;
21092
John Criswell47fdd832003-07-14 16:52:07 +000021093 uts4*)
21094 lt_prog_compiler_pic_F77='-pic'
21095 lt_prog_compiler_static_F77='-Bstatic'
21096 ;;
21097
21098 *)
21099 lt_prog_compiler_can_build_shared_F77=no
21100 ;;
21101 esac
21102 fi
21103
Reid Spencera773bd52006-08-04 18:18:08 +000021104{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
21105echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021106
21107#
21108# Check to make sure the PIC flag actually works.
21109#
21110if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021111
Reid Spencera773bd52006-08-04 18:18:08 +000021112{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21113echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021114if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
21115 echo $ECHO_N "(cached) $ECHO_C" >&6
21116else
21117 lt_prog_compiler_pic_works_F77=no
21118 ac_outfile=conftest.$ac_objext
21119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21120 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21121 # Insert the option either (1) after the last *FLAGS variable, or
21122 # (2) before a word containing "conftest.", or (3) at the end.
21123 # Note that $ac_compile itself does not contain backslashes and begins
21124 # with a dollar sign (not a hyphen), so the echo should work correctly.
21125 # The option is referenced via a variable to avoid confusing sed.
21126 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21129 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000021130 (eval echo "\"\$as_me:21130: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021131 (eval "$lt_compile" 2>conftest.err)
21132 ac_status=$?
21133 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000021134 echo "$as_me:21134: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021135 if (exit $ac_status) && test -s "$ac_outfile"; then
21136 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000021137 # So say no if there are warnings other than the usual output.
21138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021141 lt_prog_compiler_pic_works_F77=yes
21142 fi
21143 fi
21144 $rm conftest*
21145
21146fi
Reid Spencera773bd52006-08-04 18:18:08 +000021147{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
21148echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021149
21150if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
21151 case $lt_prog_compiler_pic_F77 in
21152 "" | " "*) ;;
21153 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21154 esac
21155else
21156 lt_prog_compiler_pic_F77=
21157 lt_prog_compiler_can_build_shared_F77=no
21158fi
21159
21160fi
Reid Spencera773bd52006-08-04 18:18:08 +000021161case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000021162 # For platforms which do not support PIC, -DPIC is meaningless:
21163 *djgpp*)
21164 lt_prog_compiler_pic_F77=
21165 ;;
21166 *)
21167 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21168 ;;
21169esac
21170
Reid Spencera773bd52006-08-04 18:18:08 +000021171#
21172# Check to make sure the static flag actually works.
21173#
21174wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21175{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21176echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
21177if test "${lt_prog_compiler_static_works_F77+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179else
21180 lt_prog_compiler_static_works_F77=no
21181 save_LDFLAGS="$LDFLAGS"
21182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21183 printf "$lt_simple_link_test_code" > conftest.$ac_ext
21184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21185 # The linker can only warn and ignore the option if not recognized
21186 # So say no if there are warnings
21187 if test -s conftest.err; then
21188 # Append any errors to the config.log.
21189 cat conftest.err 1>&5
21190 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21192 if diff conftest.exp conftest.er2 >/dev/null; then
21193 lt_prog_compiler_static_works_F77=yes
21194 fi
21195 else
21196 lt_prog_compiler_static_works_F77=yes
21197 fi
21198 fi
21199 $rm conftest*
21200 LDFLAGS="$save_LDFLAGS"
21201
21202fi
21203{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
21204echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
21205
21206if test x"$lt_prog_compiler_static_works_F77" = xyes; then
21207 :
21208else
21209 lt_prog_compiler_static_F77=
21210fi
21211
21212
21213{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21214echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021215if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
21216 echo $ECHO_N "(cached) $ECHO_C" >&6
21217else
21218 lt_cv_prog_compiler_c_o_F77=no
21219 $rm -r conftest 2>/dev/null
21220 mkdir conftest
21221 cd conftest
21222 mkdir out
21223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21224
John Criswell47fdd832003-07-14 16:52:07 +000021225 lt_compiler_flag="-o out/conftest2.$ac_objext"
21226 # Insert the option either (1) after the last *FLAGS variable, or
21227 # (2) before a word containing "conftest.", or (3) at the end.
21228 # Note that $ac_compile itself does not contain backslashes and begins
21229 # with a dollar sign (not a hyphen), so the echo should work correctly.
21230 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000021231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000021232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21233 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000021234 (eval echo "\"\$as_me:21234: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021235 (eval "$lt_compile" 2>out/conftest.err)
21236 ac_status=$?
21237 cat out/conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000021238 echo "$as_me:21238: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21240 then
21241 # The compiler can only warn and ignore the option if not recognized
21242 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000021243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000021246 lt_cv_prog_compiler_c_o_F77=yes
21247 fi
21248 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021249 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021250 $rm conftest*
21251 # SGI C++ compiler will create directory out/ii_files/ for
21252 # template instantiation
21253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21254 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021255 cd ..
21256 rmdir conftest
21257 $rm conftest*
21258
21259fi
Reid Spencera773bd52006-08-04 18:18:08 +000021260{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
21261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021262
21263
21264hard_links="nottested"
21265if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21266 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000021267 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21268echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021269 hard_links=yes
21270 $rm conftest*
21271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21272 touch conftest.a
21273 ln conftest.a conftest.b 2>&5 || hard_links=no
21274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000021275 { echo "$as_me:$LINENO: result: $hard_links" >&5
21276echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021277 if test "$hard_links" = no; then
21278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21279echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21280 need_locks=warn
21281 fi
21282else
21283 need_locks=no
21284fi
21285
Reid Spencera773bd52006-08-04 18:18:08 +000021286{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21287echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000021288
21289 runpath_var=
21290 allow_undefined_flag_F77=
21291 enable_shared_with_static_runtimes_F77=no
21292 archive_cmds_F77=
21293 archive_expsym_cmds_F77=
21294 old_archive_From_new_cmds_F77=
21295 old_archive_from_expsyms_cmds_F77=
21296 export_dynamic_flag_spec_F77=
21297 whole_archive_flag_spec_F77=
21298 thread_safe_flag_spec_F77=
21299 hardcode_libdir_flag_spec_F77=
21300 hardcode_libdir_flag_spec_ld_F77=
21301 hardcode_libdir_separator_F77=
21302 hardcode_direct_F77=no
21303 hardcode_minus_L_F77=no
21304 hardcode_shlibpath_var_F77=unsupported
21305 link_all_deplibs_F77=unknown
21306 hardcode_automatic_F77=no
21307 module_cmds_F77=
21308 module_expsym_cmds_F77=
21309 always_export_symbols_F77=no
21310 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21311 # include_expsyms should be a list of space-separated symbols to be *always*
21312 # included in the symbol list
21313 include_expsyms_F77=
21314 # exclude_expsyms can be an extended regexp of symbols to exclude
21315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21317 # as well as any symbol that contains `d'.
21318 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
21319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21320 # platforms (ab)use it in PIC code, but their linkers get confused if
21321 # the symbol is explicitly referenced. Since portable code cannot
21322 # rely on this symbol name, it's probably fine to never include it in
21323 # preloaded symbol tables.
21324 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000021325 # Just being paranoid about ensuring that cc_basename is set.
21326 for cc_temp in $compiler""; do
21327 case $cc_temp in
21328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21330 \-*) ;;
21331 *) break;;
21332 esac
21333done
21334cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000021335
21336 case $host_os in
21337 cygwin* | mingw* | pw32*)
21338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21339 # When not using gcc, we currently assume that we are using
21340 # Microsoft Visual C++.
21341 if test "$GCC" != yes; then
21342 with_gnu_ld=no
21343 fi
21344 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021345 interix*)
21346 # we just hope/assume this is gcc and not c89 (= MSVC++)
21347 with_gnu_ld=yes
21348 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021349 openbsd*)
21350 with_gnu_ld=no
21351 ;;
21352 esac
21353
21354 ld_shlibs_F77=yes
21355 if test "$with_gnu_ld" = yes; then
21356 # If archive_cmds runs LD, not CC, wlarc should be empty
21357 wlarc='${wl}'
21358
Reid Spencera773bd52006-08-04 18:18:08 +000021359 # Set some defaults for GNU ld with shared library support. These
21360 # are reset later if shared libraries are not supported. Putting them
21361 # here allows them to be overridden if necessary.
21362 runpath_var=LD_RUN_PATH
21363 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
21364 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21365 # ancient GNU ld didn't support --whole-archive et. al.
21366 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21367 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21368 else
21369 whole_archive_flag_spec_F77=
21370 fi
21371 supports_anon_versioning=no
21372 case `$LD -v 2>/dev/null` in
21373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21376 *\ 2.11.*) ;; # other 2.11 versions
21377 *) supports_anon_versioning=yes ;;
21378 esac
21379
John Criswell47fdd832003-07-14 16:52:07 +000021380 # See if GNU ld supports shared libraries.
21381 case $host_os in
21382 aix3* | aix4* | aix5*)
21383 # On AIX/PPC, the GNU linker is very broken
21384 if test "$host_cpu" != ia64; then
21385 ld_shlibs_F77=no
21386 cat <<EOF 1>&2
21387
21388*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21389*** to be unable to reliably create shared libraries on AIX.
21390*** Therefore, libtool is disabling shared libraries support. If you
21391*** really care for shared libraries, you may want to modify your PATH
21392*** so that a non-GNU linker is found, and then restart.
21393
21394EOF
21395 fi
21396 ;;
21397
21398 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021399 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 +000021400 hardcode_libdir_flag_spec_F77='-L$libdir'
21401 hardcode_minus_L_F77=yes
21402
21403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21404 # that the semantics of dynamic libraries on AmigaOS, at least up
21405 # to version 4, is to share data among multiple programs linked
21406 # with the same dynamic library. Since this doesn't match the
21407 # behavior of shared libraries on other platforms, we can't use
21408 # them.
21409 ld_shlibs_F77=no
21410 ;;
21411
21412 beos*)
21413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21414 allow_undefined_flag_F77=unsupported
21415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21416 # support --undefined. This deserves some investigation. FIXME
21417 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21418 else
21419 ld_shlibs_F77=no
21420 fi
21421 ;;
21422
21423 cygwin* | mingw* | pw32*)
21424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
21425 # as there is no search path for DLLs.
21426 hardcode_libdir_flag_spec_F77='-L$libdir'
21427 allow_undefined_flag_F77=unsupported
21428 always_export_symbols_F77=no
21429 enable_shared_with_static_runtimes_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021430 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 +000021431
21432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000021433 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 +000021434 # If the export-symbols file already is a .def file (1st line
21435 # is EXPORTS), use it as is; otherwise, prepend...
21436 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21437 cp $export_symbols $output_objdir/$soname.def;
21438 else
21439 echo EXPORTS > $output_objdir/$soname.def;
21440 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021441 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000021442 $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 +000021443 else
Reid Spencera773bd52006-08-04 18:18:08 +000021444 ld_shlibs_F77=no
21445 fi
21446 ;;
21447
21448 interix3*)
21449 hardcode_direct_F77=no
21450 hardcode_shlibpath_var_F77=no
21451 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
21452 export_dynamic_flag_spec_F77='${wl}-E'
21453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21454 # Instead, shared libraries are loaded at an image base (0x10000000 by
21455 # default) and relocated if they conflict, which is a slow very memory
21456 # consuming and fragmenting process. To avoid this, we pick a random,
21457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
21459 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'
21460 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'
21461 ;;
21462
21463 linux*)
21464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21465 tmp_addflag=
21466 case $cc_basename,$host_cpu in
21467 pgcc*) # Portland Group C compiler
21468 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'
21469 tmp_addflag=' $pic_flag'
21470 ;;
21471 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
21472 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'
21473 tmp_addflag=' $pic_flag -Mnomain' ;;
21474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
21475 tmp_addflag=' -i_dynamic' ;;
21476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
21477 tmp_addflag=' -i_dynamic -nofor_main' ;;
21478 ifc* | ifort*) # Intel Fortran compiler
21479 tmp_addflag=' -nofor_main' ;;
21480 esac
21481 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21482
21483 if test $supports_anon_versioning = yes; then
21484 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
21485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21486 $echo "local: *; };" >> $output_objdir/$libname.ver~
21487 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21488 fi
21489 else
21490 ld_shlibs_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021491 fi
21492 ;;
21493
21494 netbsd*)
21495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21496 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21497 wlarc=
21498 else
21499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21501 fi
21502 ;;
21503
Reid Spencera773bd52006-08-04 18:18:08 +000021504 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000021505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21506 ld_shlibs_F77=no
21507 cat <<EOF 1>&2
21508
21509*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21510*** create shared libraries on Solaris systems. Therefore, libtool
21511*** is disabling shared libraries support. We urge you to upgrade GNU
21512*** binutils to release 2.9.1 or newer. Another option is to modify
21513*** your PATH or compiler configuration so that the native linker is
21514*** used, and then restart.
21515
21516EOF
21517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21520 else
21521 ld_shlibs_F77=no
21522 fi
21523 ;;
21524
Reid Spencera773bd52006-08-04 18:18:08 +000021525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21526 case `$LD -v 2>&1` in
21527 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21528 ld_shlibs_F77=no
21529 cat <<_LT_EOF 1>&2
21530
21531*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
21532*** reliably create shared libraries on SCO systems. Therefore, libtool
21533*** is disabling shared libraries support. We urge you to upgrade GNU
21534*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
21535*** your PATH or compiler configuration so that the native linker is
21536*** used, and then restart.
21537
21538_LT_EOF
21539 ;;
21540 *)
21541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
21543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
21544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
21545 else
21546 ld_shlibs_F77=no
21547 fi
21548 ;;
21549 esac
21550 ;;
21551
John Criswell47fdd832003-07-14 16:52:07 +000021552 sunos4*)
21553 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21554 wlarc=
21555 hardcode_direct_F77=yes
21556 hardcode_shlibpath_var_F77=no
21557 ;;
21558
21559 *)
21560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21563 else
21564 ld_shlibs_F77=no
21565 fi
21566 ;;
21567 esac
21568
Reid Spencera773bd52006-08-04 18:18:08 +000021569 if test "$ld_shlibs_F77" = no; then
21570 runpath_var=
21571 hardcode_libdir_flag_spec_F77=
21572 export_dynamic_flag_spec_F77=
21573 whole_archive_flag_spec_F77=
John Criswell47fdd832003-07-14 16:52:07 +000021574 fi
21575 else
21576 # PORTME fill in a description of your system's linker (not GNU ld)
21577 case $host_os in
21578 aix3*)
21579 allow_undefined_flag_F77=unsupported
21580 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021581 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 +000021582 # Note: this linker hardcodes the directories in LIBPATH if there
21583 # are no directories specified by -L.
21584 hardcode_minus_L_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000021586 # Neither direct hardcoding nor static linking is supported with a
21587 # broken collect2.
21588 hardcode_direct_F77=unsupported
21589 fi
21590 ;;
21591
21592 aix4* | aix5*)
21593 if test "$host_cpu" = ia64; then
21594 # On IA64, the linker does run time linking by default, so we don't
21595 # have to do anything special.
21596 aix_use_runtimelinking=no
21597 exp_sym_flag='-Bexport'
21598 no_entry_flag=""
21599 else
21600 # If we're using GNU nm, then we don't want the "-C" option.
21601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21603 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'
21604 else
21605 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'
21606 fi
21607 aix_use_runtimelinking=no
21608
21609 # Test if we are trying to use run time linking or normal
21610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21611 # need to do runtime linking.
21612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21613 for ld_flag in $LDFLAGS; do
21614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21615 aix_use_runtimelinking=yes
21616 break
21617 fi
21618 done
Reid Spencera773bd52006-08-04 18:18:08 +000021619 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021620 esac
21621
21622 exp_sym_flag='-bexport'
21623 no_entry_flag='-bnoentry'
21624 fi
21625
21626 # When large executables or shared objects are built, AIX ld can
21627 # have problems creating the table of contents. If linking a library
21628 # or program results in "error TOC overflow" add -mminimal-toc to
21629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21631
21632 archive_cmds_F77=''
21633 hardcode_direct_F77=yes
21634 hardcode_libdir_separator_F77=':'
21635 link_all_deplibs_F77=yes
21636
21637 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000021638 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000021639 # We only want to do this on AIX 4.2 and lower, the check
21640 # below for broken collect2 doesn't work under 4.3+
21641 collect2name=`${CC} -print-prog-name=collect2`
21642 if test -f "$collect2name" && \
21643 strings "$collect2name" | grep resolve_lib_name >/dev/null
21644 then
21645 # We have reworked collect2
21646 hardcode_direct_F77=yes
21647 else
21648 # We have old collect2
21649 hardcode_direct_F77=unsupported
21650 # It fails to find uninstalled libraries when the uninstalled
21651 # path is not listed in the libpath. Setting hardcode_minus_L
21652 # to unsupported forces relinking
21653 hardcode_minus_L_F77=yes
21654 hardcode_libdir_flag_spec_F77='-L$libdir'
21655 hardcode_libdir_separator_F77=
21656 fi
Reid Spencera773bd52006-08-04 18:18:08 +000021657 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021658 esac
21659 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000021660 if test "$aix_use_runtimelinking" = yes; then
21661 shared_flag="$shared_flag "'${wl}-G'
21662 fi
John Criswell47fdd832003-07-14 16:52:07 +000021663 else
21664 # not using gcc
21665 if test "$host_cpu" = ia64; then
21666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21667 # chokes on -Wl,-G. The following line is correct:
21668 shared_flag='-G'
21669 else
Reid Spencera773bd52006-08-04 18:18:08 +000021670 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000021671 shared_flag='${wl}-G'
21672 else
21673 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000021674 fi
John Criswell47fdd832003-07-14 16:52:07 +000021675 fi
21676 fi
21677
21678 # It seems that -bexpall does not export symbols beginning with
21679 # underscore (_), so it is better to generate a list of symbols to export.
21680 always_export_symbols_F77=yes
21681 if test "$aix_use_runtimelinking" = yes; then
21682 # Warning - without using the other runtime loading flags (-brtl),
21683 # -berok will link without error, but may produce a broken library.
21684 allow_undefined_flag_F77='-berok'
21685 # Determine the default libpath from the value encoded in an empty executable.
21686 cat >conftest.$ac_ext <<_ACEOF
21687 program main
21688
21689 end
21690_ACEOF
21691rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021692if { (ac_try="$ac_link"
21693case "(($ac_try" in
21694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695 *) ac_try_echo=$ac_try;;
21696esac
21697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021699 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021700 grep -v '^ *+' conftest.er1 >conftest.err
21701 rm -f conftest.er1
21702 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021705 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21706 { (case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709esac
21710eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21711 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021716 { (case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21719esac
21720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
21725
21726aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21727}'`
21728# Check for a 64-bit object if we didn't find anything.
21729if 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; }
21730}'`; fi
21731else
21732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021733sed 's/^/| /' conftest.$ac_ext >&5
21734
Reid Spencera773bd52006-08-04 18:18:08 +000021735
John Criswell47fdd832003-07-14 16:52:07 +000021736fi
Reid Spencera773bd52006-08-04 18:18:08 +000021737
21738rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021739 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21741
21742 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000021743 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 +000021744 else
21745 if test "$host_cpu" = ia64; then
21746 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
21747 allow_undefined_flag_F77="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000021748 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 +000021749 else
21750 # Determine the default libpath from the value encoded in an empty executable.
21751 cat >conftest.$ac_ext <<_ACEOF
21752 program main
21753
21754 end
21755_ACEOF
21756rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000021757if { (ac_try="$ac_link"
21758case "(($ac_try" in
21759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760 *) ac_try_echo=$ac_try;;
21761esac
21762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000021770 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
21771 { (case "(($ac_try" in
21772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773 *) ac_try_echo=$ac_try;;
21774esac
21775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021777 ac_status=$?
21778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21779 (exit $ac_status); }; } &&
21780 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000021781 { (case "(($ac_try" in
21782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21783 *) ac_try_echo=$ac_try;;
21784esac
21785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21786 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000021787 ac_status=$?
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); }; }; then
21790
21791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21792}'`
21793# Check for a 64-bit object if we didn't find anything.
21794if 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; }
21795}'`; fi
21796else
21797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021798sed 's/^/| /' conftest.$ac_ext >&5
21799
Reid Spencera773bd52006-08-04 18:18:08 +000021800
John Criswell47fdd832003-07-14 16:52:07 +000021801fi
Reid Spencera773bd52006-08-04 18:18:08 +000021802
21803rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000021804 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021805if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21806
21807 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
21808 # Warning - without using the other run time loading flags,
21809 # -berok will link without error, but may produce a broken library.
21810 no_undefined_flag_F77=' ${wl}-bernotok'
21811 allow_undefined_flag_F77=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000021812 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000021813 whole_archive_flag_spec_F77='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000021814 archive_cmds_need_lc_F77=yes
Reid Spencera773bd52006-08-04 18:18:08 +000021815 # This is similar to how AIX traditionally builds its shared libraries.
21816 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 +000021817 fi
21818 fi
21819 ;;
21820
21821 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021822 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 +000021823 hardcode_libdir_flag_spec_F77='-L$libdir'
21824 hardcode_minus_L_F77=yes
21825 # see comment about different semantics on the GNU ld section
21826 ld_shlibs_F77=no
21827 ;;
21828
Reid Spencer2706f8c2004-09-19 23:53:36 +000021829 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021830 export_dynamic_flag_spec_F77=-rdynamic
21831 ;;
21832
21833 cygwin* | mingw* | pw32*)
21834 # When not using gcc, we currently assume that we are using
21835 # Microsoft Visual C++.
21836 # hardcode_libdir_flag_spec is actually meaningless, as there is
21837 # no search path for DLLs.
21838 hardcode_libdir_flag_spec_F77=' '
21839 allow_undefined_flag_F77=unsupported
21840 # Tell ltmain to make .lib files, not .a files.
21841 libext=lib
21842 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021843 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021844 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021845 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 +000021846 # The linker will automatically build a .lib file if we build a DLL.
21847 old_archive_From_new_cmds_F77='true'
21848 # FIXME: Should let the user specify the lib program.
21849 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000021850 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000021851 enable_shared_with_static_runtimes_F77=yes
21852 ;;
21853
21854 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000021855 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021856 rhapsody* | darwin1.[012])
21857 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
21858 ;;
21859 *) # Darwin 1.3 on
21860 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21861 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21862 else
21863 case ${MACOSX_DEPLOYMENT_TARGET} in
21864 10.[012])
21865 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21866 ;;
21867 10.*)
21868 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
21869 ;;
21870 esac
21871 fi
21872 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021873 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021874 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000021875 hardcode_direct_F77=no
21876 hardcode_automatic_F77=yes
21877 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021878 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000021879 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021880 if test "$GCC" = yes ; then
21881 output_verbose_link_cmd='echo'
21882 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21883 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021884 # 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 +000021885 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}'
21886 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 +000021887 else
Reid Spencera773bd52006-08-04 18:18:08 +000021888 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021889 xlc*)
21890 output_verbose_link_cmd='echo'
21891 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21892 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000021893 # 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 +000021894 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}'
21895 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 +000021896 ;;
21897 *)
21898 ld_shlibs_F77=no
21899 ;;
21900 esac
John Criswell47fdd832003-07-14 16:52:07 +000021901 fi
21902 ;;
21903
21904 dgux*)
21905 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21906 hardcode_libdir_flag_spec_F77='-L$libdir'
21907 hardcode_shlibpath_var_F77=no
21908 ;;
21909
21910 freebsd1*)
21911 ld_shlibs_F77=no
21912 ;;
21913
21914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21915 # support. Future versions do this automatically, but an explicit c++rt0.o
21916 # does not break anything, and helps significantly (at the cost of a little
21917 # extra space).
21918 freebsd2.2*)
21919 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21920 hardcode_libdir_flag_spec_F77='-R$libdir'
21921 hardcode_direct_F77=yes
21922 hardcode_shlibpath_var_F77=no
21923 ;;
21924
21925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21926 freebsd2*)
21927 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21928 hardcode_direct_F77=yes
21929 hardcode_minus_L_F77=yes
21930 hardcode_shlibpath_var_F77=no
21931 ;;
21932
21933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000021934 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000021935 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21936 hardcode_libdir_flag_spec_F77='-R$libdir'
21937 hardcode_direct_F77=yes
21938 hardcode_shlibpath_var_F77=no
21939 ;;
21940
21941 hpux9*)
21942 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021943 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 +000021944 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021945 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 +000021946 fi
21947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21948 hardcode_libdir_separator_F77=:
21949 hardcode_direct_F77=yes
21950
21951 # hardcode_minus_L: Not really in the search PATH,
21952 # but as the default location of the library.
21953 hardcode_minus_L_F77=yes
21954 export_dynamic_flag_spec_F77='${wl}-E'
21955 ;;
21956
Reid Spencera773bd52006-08-04 18:18:08 +000021957 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000021958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000021959 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21960 else
21961 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21962 fi
21963 if test "$with_gnu_ld" = no; then
21964 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
21965 hardcode_libdir_separator_F77=:
21966
21967 hardcode_direct_F77=yes
21968 export_dynamic_flag_spec_F77='${wl}-E'
21969
21970 # hardcode_minus_L: Not really in the search PATH,
21971 # but as the default location of the library.
21972 hardcode_minus_L_F77=yes
21973 fi
21974 ;;
21975
21976 hpux11*)
21977 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21978 case $host_cpu in
21979 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000021980 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21981 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000021982 ia64*)
21983 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21984 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021985 *)
21986 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21987 ;;
21988 esac
21989 else
Reid Spencera773bd52006-08-04 18:18:08 +000021990 case $host_cpu in
21991 hppa*64*)
21992 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21993 ;;
21994 ia64*)
21995 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000021996 ;;
21997 *)
Reid Spencera773bd52006-08-04 18:18:08 +000021998 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 +000021999 ;;
22000 esac
22001 fi
22002 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000022003 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22004 hardcode_libdir_separator_F77=:
John Criswell47fdd832003-07-14 16:52:07 +000022005
Reid Spencera773bd52006-08-04 18:18:08 +000022006 case $host_cpu in
22007 hppa*64*|ia64*)
22008 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22009 hardcode_direct_F77=no
22010 hardcode_shlibpath_var_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022011 ;;
22012 *)
John Criswell47fdd832003-07-14 16:52:07 +000022013 hardcode_direct_F77=yes
22014 export_dynamic_flag_spec_F77='${wl}-E'
22015
22016 # hardcode_minus_L: Not really in the search PATH,
22017 # but as the default location of the library.
22018 hardcode_minus_L_F77=yes
22019 ;;
22020 esac
22021 fi
22022 ;;
22023
22024 irix5* | irix6* | nonstopux*)
22025 if test "$GCC" = yes; then
22026 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'
22027 else
22028 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'
22029 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22030 fi
22031 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22032 hardcode_libdir_separator_F77=:
22033 link_all_deplibs_F77=yes
22034 ;;
22035
22036 netbsd*)
22037 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22039 else
22040 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22041 fi
22042 hardcode_libdir_flag_spec_F77='-R$libdir'
22043 hardcode_direct_F77=yes
22044 hardcode_shlibpath_var_F77=no
22045 ;;
22046
22047 newsos6)
22048 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22049 hardcode_direct_F77=yes
22050 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22051 hardcode_libdir_separator_F77=:
22052 hardcode_shlibpath_var_F77=no
22053 ;;
22054
22055 openbsd*)
22056 hardcode_direct_F77=yes
22057 hardcode_shlibpath_var_F77=no
22058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22059 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022060 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 +000022061 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22062 export_dynamic_flag_spec_F77='${wl}-E'
22063 else
22064 case $host_os in
22065 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22066 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22067 hardcode_libdir_flag_spec_F77='-R$libdir'
22068 ;;
22069 *)
22070 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22071 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22072 ;;
22073 esac
22074 fi
22075 ;;
22076
22077 os2*)
22078 hardcode_libdir_flag_spec_F77='-L$libdir'
22079 hardcode_minus_L_F77=yes
22080 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022081 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 +000022082 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22083 ;;
22084
22085 osf3*)
22086 if test "$GCC" = yes; then
22087 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22088 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'
22089 else
22090 allow_undefined_flag_F77=' -expect_unresolved \*'
22091 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'
22092 fi
22093 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22094 hardcode_libdir_separator_F77=:
22095 ;;
22096
22097 osf4* | osf5*) # as osf3* with the addition of -msym flag
22098 if test "$GCC" = yes; then
22099 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22100 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'
22101 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22102 else
22103 allow_undefined_flag_F77=' -expect_unresolved \*'
22104 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 +000022105 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 +000022106 $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 +000022107
John Criswell47fdd832003-07-14 16:52:07 +000022108 # Both c and cxx compiler support -rpath directly
22109 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22110 fi
22111 hardcode_libdir_separator_F77=:
22112 ;;
22113
John Criswell47fdd832003-07-14 16:52:07 +000022114 solaris*)
22115 no_undefined_flag_F77=' -z text'
22116 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022117 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000022118 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022119 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22120 $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 +000022121 else
Reid Spencera773bd52006-08-04 18:18:08 +000022122 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000022123 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022124 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22125 $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 +000022126 fi
22127 hardcode_libdir_flag_spec_F77='-R$libdir'
22128 hardcode_shlibpath_var_F77=no
22129 case $host_os in
22130 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022131 *)
22132 # The compiler driver will combine linker options so we
22133 # cannot just pass the convience library names through
22134 # without $wl, iff we do not link with $LD.
22135 # Luckily, gcc supports the same syntax we need for Sun Studio.
22136 # Supported since Solaris 2.6 (maybe 2.5.1?)
22137 case $wlarc in
22138 '')
22139 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
22140 *)
22141 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' ;;
22142 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000022143 esac
22144 link_all_deplibs_F77=yes
22145 ;;
22146
22147 sunos4*)
22148 if test "x$host_vendor" = xsequent; then
22149 # Use $CC to link under sequent, because it throws in some extra .o
22150 # files that make .init and .fini sections work.
22151 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22152 else
22153 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22154 fi
22155 hardcode_libdir_flag_spec_F77='-L$libdir'
22156 hardcode_direct_F77=yes
22157 hardcode_minus_L_F77=yes
22158 hardcode_shlibpath_var_F77=no
22159 ;;
22160
22161 sysv4)
22162 case $host_vendor in
22163 sni)
22164 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22165 hardcode_direct_F77=yes # is this really true???
22166 ;;
22167 siemens)
22168 ## LD is ld it makes a PLAMLIB
22169 ## CC just makes a GrossModule.
22170 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22171 reload_cmds_F77='$CC -r -o $output$reload_objs'
22172 hardcode_direct_F77=no
22173 ;;
22174 motorola)
22175 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22177 ;;
22178 esac
22179 runpath_var='LD_RUN_PATH'
22180 hardcode_shlibpath_var_F77=no
22181 ;;
22182
22183 sysv4.3*)
22184 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22185 hardcode_shlibpath_var_F77=no
22186 export_dynamic_flag_spec_F77='-Bexport'
22187 ;;
22188
22189 sysv4*MP*)
22190 if test -d /usr/nec; then
22191 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22192 hardcode_shlibpath_var_F77=no
22193 runpath_var=LD_RUN_PATH
22194 hardcode_runpath_var=yes
22195 ld_shlibs_F77=yes
22196 fi
22197 ;;
22198
Reid Spencera773bd52006-08-04 18:18:08 +000022199 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
22200 no_undefined_flag_F77='${wl}-z,text'
22201 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022202 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022203 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000022204
John Criswell47fdd832003-07-14 16:52:07 +000022205 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000022206 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22207 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 +000022208 else
Reid Spencera773bd52006-08-04 18:18:08 +000022209 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22210 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 +000022211 fi
John Criswell47fdd832003-07-14 16:52:07 +000022212 ;;
22213
Reid Spencera773bd52006-08-04 18:18:08 +000022214 sysv5* | sco3.2v5* | sco5v6*)
22215 # Note: We can NOT use -z defs as we might desire, because we do not
22216 # link with -lc, and that would cause any symbols used from libc to
22217 # always be unresolved, which means just about no library would
22218 # ever link correctly. If we're not using GNU ld we use -z text
22219 # though, which does catch some bad symbols but isn't as heavy-handed
22220 # as -z defs.
22221 no_undefined_flag_F77='${wl}-z,text'
22222 allow_undefined_flag_F77='${wl}-z,nodefs'
22223 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000022224 hardcode_shlibpath_var_F77=no
Reid Spencera773bd52006-08-04 18:18:08 +000022225 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22226 hardcode_libdir_separator_F77=':'
22227 link_all_deplibs_F77=yes
22228 export_dynamic_flag_spec_F77='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000022229 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000022230
22231 if test "$GCC" = yes; then
22232 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22233 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22234 else
22235 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22236 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22237 fi
John Criswell47fdd832003-07-14 16:52:07 +000022238 ;;
22239
22240 uts4*)
22241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22242 hardcode_libdir_flag_spec_F77='-L$libdir'
22243 hardcode_shlibpath_var_F77=no
22244 ;;
22245
22246 *)
22247 ld_shlibs_F77=no
22248 ;;
22249 esac
22250 fi
22251
Reid Spencera773bd52006-08-04 18:18:08 +000022252{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
22253echo "${ECHO_T}$ld_shlibs_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022254test "$ld_shlibs_F77" = no && can_build_shared=no
22255
John Criswell47fdd832003-07-14 16:52:07 +000022256#
22257# Do we need to explicitly link libc?
22258#
22259case "x$archive_cmds_need_lc_F77" in
22260x|xyes)
22261 # Assume -lc should be added
22262 archive_cmds_need_lc_F77=yes
22263
22264 if test "$enable_shared" = yes && test "$GCC" = yes; then
22265 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022266 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022267 # FIXME: we may have to deal with multi-command sequences.
22268 ;;
22269 '$CC '*)
22270 # Test whether the compiler implicitly links with -lc since on some
22271 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22272 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000022273 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22274echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022275 $rm conftest*
22276 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22277
22278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>&5
22280 ac_status=$?
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } 2>conftest.err; then
22283 soname=conftest
22284 lib=conftest
22285 libobjs=conftest.$ac_objext
22286 deplibs=
22287 wl=$lt_prog_compiler_wl_F77
Reid Spencera773bd52006-08-04 18:18:08 +000022288 pic_flag=$lt_prog_compiler_pic_F77
John Criswell47fdd832003-07-14 16:52:07 +000022289 compiler_flags=-v
22290 linker_flags=-v
22291 verstring=
22292 output_objdir=.
22293 libname=conftest
22294 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22295 allow_undefined_flag_F77=
22296 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22297 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22298 ac_status=$?
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); }
22301 then
22302 archive_cmds_need_lc_F77=no
22303 else
22304 archive_cmds_need_lc_F77=yes
22305 fi
22306 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22307 else
22308 cat conftest.err 1>&5
22309 fi
22310 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000022311 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
22312echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022313 ;;
22314 esac
22315 fi
22316 ;;
22317esac
22318
Reid Spencera773bd52006-08-04 18:18:08 +000022319{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22320echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022321library_names_spec=
22322libname_spec='lib$name'
22323soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022324shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022325postinstall_cmds=
22326postuninstall_cmds=
22327finish_cmds=
22328finish_eval=
22329shlibpath_var=
22330shlibpath_overrides_runpath=unknown
22331version_type=none
22332dynamic_linker="$host_os ld.so"
22333sys_lib_dlsearch_path_spec="/lib /usr/lib"
22334if test "$GCC" = yes; then
22335 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22336 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22337 # if the path contains ";" then we assume it to be the separator
22338 # otherwise default to the standard path separator (i.e. ":") - it is
22339 # assumed that no part of a normal pathname contains ";" but that should
22340 # okay in the real world where ";" in dirpaths is itself problematic.
22341 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22342 else
22343 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22344 fi
22345else
22346 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22347fi
22348need_lib_prefix=unknown
22349hardcode_into_libs=no
22350
22351# when you set need_version to no, make sure it does not cause -set_version
22352# flags to be left without arguments
22353need_version=unknown
22354
22355case $host_os in
22356aix3*)
22357 version_type=linux
22358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22359 shlibpath_var=LIBPATH
22360
22361 # AIX 3 has no versioning support, so we append a major version to the name.
22362 soname_spec='${libname}${release}${shared_ext}$major'
22363 ;;
22364
22365aix4* | aix5*)
22366 version_type=linux
22367 need_lib_prefix=no
22368 need_version=no
22369 hardcode_into_libs=yes
22370 if test "$host_cpu" = ia64; then
22371 # AIX 5 supports IA64
22372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22373 shlibpath_var=LD_LIBRARY_PATH
22374 else
22375 # With GCC up to 2.95.x, collect2 would create an import file
22376 # for dependence libraries. The import file would start with
22377 # the line `#! .'. This would cause the generated library to
22378 # depend on `.', always an invalid library. This was fixed in
22379 # development snapshots of GCC prior to 3.0.
22380 case $host_os in
22381 aix4 | aix4.[01] | aix4.[01].*)
22382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22383 echo ' yes '
22384 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22385 :
22386 else
22387 can_build_shared=no
22388 fi
22389 ;;
22390 esac
22391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22392 # soname into executable. Probably we can add versioning support to
22393 # collect2, so additional links can be useful in future.
22394 if test "$aix_use_runtimelinking" = yes; then
22395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22396 # instead of lib<name>.a to let people know that these are not
22397 # typical AIX shared libraries.
22398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22399 else
22400 # We preserve .a as extension for shared libraries through AIX4.2
22401 # and later when we are not doing run time linking.
22402 library_names_spec='${libname}${release}.a $libname.a'
22403 soname_spec='${libname}${release}${shared_ext}$major'
22404 fi
22405 shlibpath_var=LIBPATH
22406 fi
22407 ;;
22408
22409amigaos*)
22410 library_names_spec='$libname.ixlibrary $libname.a'
22411 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022412 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 +000022413 ;;
22414
22415beos*)
22416 library_names_spec='${libname}${shared_ext}'
22417 dynamic_linker="$host_os ld.so"
22418 shlibpath_var=LIBRARY_PATH
22419 ;;
22420
Reid Spencer2706f8c2004-09-19 23:53:36 +000022421bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022422 version_type=linux
22423 need_version=no
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22427 shlibpath_var=LD_LIBRARY_PATH
22428 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22429 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22430 # the default ld.so.conf also contains /usr/contrib/lib and
22431 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22432 # libtool to hard-code these into programs
22433 ;;
22434
22435cygwin* | mingw* | pw32*)
22436 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022437 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022438 need_version=no
22439 need_lib_prefix=no
22440
22441 case $GCC,$host_os in
22442 yes,cygwin* | yes,mingw* | yes,pw32*)
22443 library_names_spec='$libname.dll.a'
22444 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022445 postinstall_cmds='base_file=`basename \${file}`~
22446 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22447 dldir=$destdir/`dirname \$dlpath`~
22448 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000022449 $install_prog $dir/$dlname \$dldir/$dlname~
22450 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022451 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22452 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022453 $rm \$dlpath'
22454 shlibpath_overrides_runpath=yes
22455
22456 case $host_os in
22457 cygwin*)
22458 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22459 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 +000022460 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022461 ;;
22462 mingw*)
22463 # MinGW DLLs use traditional 'lib' prefix
22464 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22465 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22466 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22467 # It is most probably a Windows format PATH printed by
22468 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22469 # path with ; separators, and with drive letters. We can handle the
22470 # drive letters (cygwin fileutils understands them), so leave them,
22471 # especially as we might pass files found there to a mingw objdump,
22472 # which wouldn't understand a cygwinified path. Ahh.
22473 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22474 else
22475 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22476 fi
22477 ;;
22478 pw32*)
22479 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000022480 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 +000022481 ;;
22482 esac
22483 ;;
22484
22485 *)
22486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22487 ;;
22488 esac
22489 dynamic_linker='Win32 ld.exe'
22490 # FIXME: first we should search . and the directory the executable is in
22491 shlibpath_var=PATH
22492 ;;
22493
22494darwin* | rhapsody*)
22495 dynamic_linker="$host_os dyld"
22496 version_type=darwin
22497 need_lib_prefix=no
22498 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022500 soname_spec='${libname}${release}${major}$shared_ext'
22501 shlibpath_overrides_runpath=yes
22502 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000022503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000022504 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022505 if test "$GCC" = yes; then
22506 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"`
22507 else
22508 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022509 fi
22510 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22511 ;;
22512
22513dgux*)
22514 version_type=linux
22515 need_lib_prefix=no
22516 need_version=no
22517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22518 soname_spec='${libname}${release}${shared_ext}$major'
22519 shlibpath_var=LD_LIBRARY_PATH
22520 ;;
22521
22522freebsd1*)
22523 dynamic_linker=no
22524 ;;
22525
Reid Spencer2706f8c2004-09-19 23:53:36 +000022526kfreebsd*-gnu)
22527 version_type=linux
22528 need_lib_prefix=no
22529 need_version=no
22530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22531 soname_spec='${libname}${release}${shared_ext}$major'
22532 shlibpath_var=LD_LIBRARY_PATH
22533 shlibpath_overrides_runpath=no
22534 hardcode_into_libs=yes
22535 dynamic_linker='GNU ld.so'
22536 ;;
22537
Reid Spencera773bd52006-08-04 18:18:08 +000022538freebsd* | dragonfly*)
22539 # DragonFly does not have aout. When/if they implement a new
22540 # versioning mechanism, adjust this.
22541 if test -x /usr/bin/objformat; then
22542 objformat=`/usr/bin/objformat`
22543 else
22544 case $host_os in
22545 freebsd[123]*) objformat=aout ;;
22546 *) objformat=elf ;;
22547 esac
22548 fi
John Criswell47fdd832003-07-14 16:52:07 +000022549 version_type=freebsd-$objformat
22550 case $version_type in
22551 freebsd-elf*)
22552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22553 need_version=no
22554 need_lib_prefix=no
22555 ;;
22556 freebsd-*)
22557 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22558 need_version=yes
22559 ;;
22560 esac
22561 shlibpath_var=LD_LIBRARY_PATH
22562 case $host_os in
22563 freebsd2*)
22564 shlibpath_overrides_runpath=yes
22565 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022566 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000022567 shlibpath_overrides_runpath=yes
22568 hardcode_into_libs=yes
22569 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022570 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22571 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000022572 shlibpath_overrides_runpath=no
22573 hardcode_into_libs=yes
22574 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000022575 freebsd*) # from 4.6 on
22576 shlibpath_overrides_runpath=yes
22577 hardcode_into_libs=yes
22578 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022579 esac
22580 ;;
22581
22582gnu*)
22583 version_type=linux
22584 need_lib_prefix=no
22585 need_version=no
22586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22587 soname_spec='${libname}${release}${shared_ext}$major'
22588 shlibpath_var=LD_LIBRARY_PATH
22589 hardcode_into_libs=yes
22590 ;;
22591
22592hpux9* | hpux10* | hpux11*)
22593 # Give a soname corresponding to the major version so that dld.sl refuses to
22594 # link against other versions.
22595 version_type=sunos
22596 need_lib_prefix=no
22597 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000022598 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000022599 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022601 hardcode_into_libs=yes
22602 dynamic_linker="$host_os dld.so"
22603 shlibpath_var=LD_LIBRARY_PATH
22604 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22606 soname_spec='${libname}${release}${shared_ext}$major'
22607 if test "X$HPUX_IA64_MODE" = X32; then
22608 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22609 else
22610 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22611 fi
22612 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22613 ;;
22614 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022615 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022616 hardcode_into_libs=yes
22617 dynamic_linker="$host_os dld.sl"
22618 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 soname_spec='${libname}${release}${shared_ext}$major'
22622 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22624 ;;
22625 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022626 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022627 dynamic_linker="$host_os dld.sl"
22628 shlibpath_var=SHLIB_PATH
22629 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22631 soname_spec='${libname}${release}${shared_ext}$major'
22632 ;;
22633 esac
22634 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22635 postinstall_cmds='chmod 555 $lib'
22636 ;;
22637
Reid Spencera773bd52006-08-04 18:18:08 +000022638interix3*)
22639 version_type=linux
22640 need_lib_prefix=no
22641 need_version=no
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22643 soname_spec='${libname}${release}${shared_ext}$major'
22644 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=no
22647 hardcode_into_libs=yes
22648 ;;
22649
John Criswell47fdd832003-07-14 16:52:07 +000022650irix5* | irix6* | nonstopux*)
22651 case $host_os in
22652 nonstopux*) version_type=nonstopux ;;
22653 *)
22654 if test "$lt_cv_prog_gnu_ld" = yes; then
22655 version_type=linux
22656 else
22657 version_type=irix
22658 fi ;;
22659 esac
22660 need_lib_prefix=no
22661 need_version=no
22662 soname_spec='${libname}${release}${shared_ext}$major'
22663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22664 case $host_os in
22665 irix5* | nonstopux*)
22666 libsuff= shlibsuff=
22667 ;;
22668 *)
22669 case $LD in # libtool.m4 will add one of these switches to LD
22670 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22671 libsuff= shlibsuff= libmagic=32-bit;;
22672 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22673 libsuff=32 shlibsuff=N32 libmagic=N32;;
22674 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22675 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22676 *) libsuff= shlibsuff= libmagic=never-match;;
22677 esac
22678 ;;
22679 esac
22680 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22681 shlibpath_overrides_runpath=no
22682 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22683 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22684 hardcode_into_libs=yes
22685 ;;
22686
22687# No shared lib support for Linux oldld, aout, or coff.
22688linux*oldld* | linux*aout* | linux*coff*)
22689 dynamic_linker=no
22690 ;;
22691
22692# This must be Linux ELF.
22693linux*)
22694 version_type=linux
22695 need_lib_prefix=no
22696 need_version=no
22697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22698 soname_spec='${libname}${release}${shared_ext}$major'
22699 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22700 shlibpath_var=LD_LIBRARY_PATH
22701 shlibpath_overrides_runpath=no
22702 # This implies no fast_install, which is unacceptable.
22703 # Some rework will be needed to allow for fast_install
22704 # before this can be enabled.
22705 hardcode_into_libs=yes
22706
Reid Spencer2706f8c2004-09-19 23:53:36 +000022707 # Append ld.so.conf contents to the search path
22708 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000022709 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 +000022710 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22711 fi
22712
John Criswell47fdd832003-07-14 16:52:07 +000022713 # We used to test for /lib/ld.so.1 and disable shared libraries on
22714 # powerpc, because MkLinux only supported shared libraries with the
22715 # GNU dynamic linker. Since this was broken with cross compilers,
22716 # most powerpc-linux boxes support dynamic linking these days and
22717 # people can always --disable-shared, the test was removed, and we
22718 # assume the GNU/Linux dynamic linker is in use.
22719 dynamic_linker='GNU/Linux ld.so'
22720 ;;
22721
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722knetbsd*-gnu)
22723 version_type=linux
22724 need_lib_prefix=no
22725 need_version=no
22726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22727 soname_spec='${libname}${release}${shared_ext}$major'
22728 shlibpath_var=LD_LIBRARY_PATH
22729 shlibpath_overrides_runpath=no
22730 hardcode_into_libs=yes
22731 dynamic_linker='GNU ld.so'
22732 ;;
22733
John Criswell47fdd832003-07-14 16:52:07 +000022734netbsd*)
22735 version_type=sunos
22736 need_lib_prefix=no
22737 need_version=no
22738 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22740 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22741 dynamic_linker='NetBSD (a.out) ld.so'
22742 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022744 soname_spec='${libname}${release}${shared_ext}$major'
22745 dynamic_linker='NetBSD ld.elf_so'
22746 fi
22747 shlibpath_var=LD_LIBRARY_PATH
22748 shlibpath_overrides_runpath=yes
22749 hardcode_into_libs=yes
22750 ;;
22751
22752newsos6)
22753 version_type=linux
22754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22755 shlibpath_var=LD_LIBRARY_PATH
22756 shlibpath_overrides_runpath=yes
22757 ;;
22758
Reid Spencer2706f8c2004-09-19 23:53:36 +000022759nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022760 version_type=linux
22761 need_lib_prefix=no
22762 need_version=no
22763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22764 soname_spec='${libname}${release}${shared_ext}$major'
22765 shlibpath_var=LD_LIBRARY_PATH
22766 shlibpath_overrides_runpath=yes
22767 ;;
22768
22769openbsd*)
22770 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000022771 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022772 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000022773 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
22774 case $host_os in
22775 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
22776 *) need_version=no ;;
22777 esac
John Criswell47fdd832003-07-14 16:52:07 +000022778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22780 shlibpath_var=LD_LIBRARY_PATH
22781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22782 case $host_os in
22783 openbsd2.[89] | openbsd2.[89].*)
22784 shlibpath_overrides_runpath=no
22785 ;;
22786 *)
22787 shlibpath_overrides_runpath=yes
22788 ;;
22789 esac
22790 else
22791 shlibpath_overrides_runpath=yes
22792 fi
22793 ;;
22794
22795os2*)
22796 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022797 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022798 need_lib_prefix=no
22799 library_names_spec='$libname${shared_ext} $libname.a'
22800 dynamic_linker='OS/2 ld.exe'
22801 shlibpath_var=LIBPATH
22802 ;;
22803
22804osf3* | osf4* | osf5*)
22805 version_type=osf
22806 need_lib_prefix=no
22807 need_version=no
22808 soname_spec='${libname}${release}${shared_ext}$major'
22809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22810 shlibpath_var=LD_LIBRARY_PATH
22811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22813 ;;
22814
John Criswell47fdd832003-07-14 16:52:07 +000022815solaris*)
22816 version_type=linux
22817 need_lib_prefix=no
22818 need_version=no
22819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22820 soname_spec='${libname}${release}${shared_ext}$major'
22821 shlibpath_var=LD_LIBRARY_PATH
22822 shlibpath_overrides_runpath=yes
22823 hardcode_into_libs=yes
22824 # ldd complains unless libraries are executable
22825 postinstall_cmds='chmod +x $lib'
22826 ;;
22827
22828sunos4*)
22829 version_type=sunos
22830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22831 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22832 shlibpath_var=LD_LIBRARY_PATH
22833 shlibpath_overrides_runpath=yes
22834 if test "$with_gnu_ld" = yes; then
22835 need_lib_prefix=no
22836 fi
22837 need_version=yes
22838 ;;
22839
Reid Spencera773bd52006-08-04 18:18:08 +000022840sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000022841 version_type=linux
22842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22843 soname_spec='${libname}${release}${shared_ext}$major'
22844 shlibpath_var=LD_LIBRARY_PATH
22845 case $host_vendor in
22846 sni)
22847 shlibpath_overrides_runpath=no
22848 need_lib_prefix=no
22849 export_dynamic_flag_spec='${wl}-Blargedynsym'
22850 runpath_var=LD_RUN_PATH
22851 ;;
22852 siemens)
22853 need_lib_prefix=no
22854 ;;
22855 motorola)
22856 need_lib_prefix=no
22857 need_version=no
22858 shlibpath_overrides_runpath=no
22859 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22860 ;;
22861 esac
22862 ;;
22863
22864sysv4*MP*)
22865 if test -d /usr/nec ;then
22866 version_type=linux
22867 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22868 soname_spec='$libname${shared_ext}.$major'
22869 shlibpath_var=LD_LIBRARY_PATH
22870 fi
22871 ;;
22872
Reid Spencera773bd52006-08-04 18:18:08 +000022873sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22874 version_type=freebsd-elf
22875 need_lib_prefix=no
22876 need_version=no
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22878 soname_spec='${libname}${release}${shared_ext}$major'
22879 shlibpath_var=LD_LIBRARY_PATH
22880 hardcode_into_libs=yes
22881 if test "$with_gnu_ld" = yes; then
22882 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22883 shlibpath_overrides_runpath=no
22884 else
22885 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22886 shlibpath_overrides_runpath=yes
22887 case $host_os in
22888 sco3.2v5*)
22889 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22890 ;;
22891 esac
22892 fi
22893 sys_lib_dlsearch_path_spec='/usr/lib'
22894 ;;
22895
John Criswell47fdd832003-07-14 16:52:07 +000022896uts4*)
22897 version_type=linux
22898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22899 soname_spec='${libname}${release}${shared_ext}$major'
22900 shlibpath_var=LD_LIBRARY_PATH
22901 ;;
22902
22903*)
22904 dynamic_linker=no
22905 ;;
22906esac
Reid Spencera773bd52006-08-04 18:18:08 +000022907{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22908echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000022909test "$dynamic_linker" = no && can_build_shared=no
22910
Reid Spencera773bd52006-08-04 18:18:08 +000022911variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22912if test "$GCC" = yes; then
22913 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22914fi
22915
22916{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22917echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022918hardcode_action_F77=
22919if test -n "$hardcode_libdir_flag_spec_F77" || \
22920 test -n "$runpath_var_F77" || \
22921 test "X$hardcode_automatic_F77" = "Xyes" ; then
22922
22923 # We can hardcode non-existant directories.
22924 if test "$hardcode_direct_F77" != no &&
22925 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22926 # have to relink, otherwise we might link with an installed library
22927 # when we should be linking with a yet-to-be-installed one
22928 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
22929 test "$hardcode_minus_L_F77" != no; then
22930 # Linking always hardcodes the temporary library directory.
22931 hardcode_action_F77=relink
22932 else
22933 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22934 hardcode_action_F77=immediate
22935 fi
22936else
22937 # We cannot hardcode anything, or else we can only hardcode existing
22938 # directories.
22939 hardcode_action_F77=unsupported
22940fi
Reid Spencera773bd52006-08-04 18:18:08 +000022941{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
22942echo "${ECHO_T}$hardcode_action_F77" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000022943
22944if test "$hardcode_action_F77" = relink; then
22945 # Fast installation is not supported
22946 enable_fast_install=no
22947elif test "$shlibpath_overrides_runpath" = yes ||
22948 test "$enable_shared" = no; then
22949 # Fast installation is not necessary
22950 enable_fast_install=needless
22951fi
22952
John Criswell47fdd832003-07-14 16:52:07 +000022953
22954# The else clause should only fire when bootstrapping the
22955# libtool distribution, otherwise you forgot to ship ltmain.sh
22956# with your package, and you will get complaints that there are
22957# no rules to generate ltmain.sh.
22958if test -f "$ltmain"; then
22959 # See if we are running on zsh, and set the options which allow our commands through
22960 # without removal of \ escapes.
22961 if test -n "${ZSH_VERSION+set}" ; then
22962 setopt NO_GLOB_SUBST
22963 fi
22964 # Now quote all the things that may contain metacharacters while being
22965 # careful not to overquote the AC_SUBSTed values. We take copies of the
22966 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000022967 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 +000022968 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000022969 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22970 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22971 deplibs_check_method reload_flag reload_cmds need_locks \
22972 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22973 lt_cv_sys_global_symbol_to_c_name_address \
22974 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22975 old_postinstall_cmds old_postuninstall_cmds \
22976 compiler_F77 \
22977 CC_F77 \
22978 LD_F77 \
22979 lt_prog_compiler_wl_F77 \
22980 lt_prog_compiler_pic_F77 \
22981 lt_prog_compiler_static_F77 \
22982 lt_prog_compiler_no_builtin_flag_F77 \
22983 export_dynamic_flag_spec_F77 \
22984 thread_safe_flag_spec_F77 \
22985 whole_archive_flag_spec_F77 \
22986 enable_shared_with_static_runtimes_F77 \
22987 old_archive_cmds_F77 \
22988 old_archive_from_new_cmds_F77 \
22989 predep_objects_F77 \
22990 postdep_objects_F77 \
22991 predeps_F77 \
22992 postdeps_F77 \
22993 compiler_lib_search_path_F77 \
22994 archive_cmds_F77 \
22995 archive_expsym_cmds_F77 \
22996 postinstall_cmds_F77 \
22997 postuninstall_cmds_F77 \
22998 old_archive_from_expsyms_cmds_F77 \
22999 allow_undefined_flag_F77 \
23000 no_undefined_flag_F77 \
23001 export_symbols_cmds_F77 \
23002 hardcode_libdir_flag_spec_F77 \
23003 hardcode_libdir_flag_spec_ld_F77 \
23004 hardcode_libdir_separator_F77 \
23005 hardcode_automatic_F77 \
23006 module_cmds_F77 \
23007 module_expsym_cmds_F77 \
23008 lt_cv_prog_compiler_c_o_F77 \
23009 exclude_expsyms_F77 \
23010 include_expsyms_F77; do
23011
23012 case $var in
23013 old_archive_cmds_F77 | \
23014 old_archive_from_new_cmds_F77 | \
23015 archive_cmds_F77 | \
23016 archive_expsym_cmds_F77 | \
23017 module_cmds_F77 | \
23018 module_expsym_cmds_F77 | \
23019 old_archive_from_expsyms_cmds_F77 | \
23020 export_symbols_cmds_F77 | \
23021 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23022 postinstall_cmds | postuninstall_cmds | \
23023 old_postinstall_cmds | old_postuninstall_cmds | \
23024 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23025 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023026 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 +000023027 ;;
23028 *)
23029 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23030 ;;
23031 esac
23032 done
23033
23034 case $lt_echo in
23035 *'\$0 --fallback-echo"')
23036 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23037 ;;
23038 esac
23039
23040cfgfile="$ofile"
23041
23042 cat <<__EOF__ >> "$cfgfile"
23043# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23044
23045# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23046
23047# Shell to use when invoking shell scripts.
23048SHELL=$lt_SHELL
23049
23050# Whether or not to build shared libraries.
23051build_libtool_libs=$enable_shared
23052
23053# Whether or not to build static libraries.
23054build_old_libs=$enable_static
23055
23056# Whether or not to add -lc for building shared libraries.
23057build_libtool_need_lc=$archive_cmds_need_lc_F77
23058
23059# Whether or not to disallow shared libs when runtime libs are static
23060allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23061
23062# Whether or not to optimize for fast installation.
23063fast_install=$enable_fast_install
23064
23065# The host system.
23066host_alias=$host_alias
23067host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000023068host_os=$host_os
23069
23070# The build system.
23071build_alias=$build_alias
23072build=$build
23073build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000023074
23075# An echo program that does not interpret backslashes.
23076echo=$lt_echo
23077
23078# The archiver.
23079AR=$lt_AR
23080AR_FLAGS=$lt_AR_FLAGS
23081
23082# A C compiler.
23083LTCC=$lt_LTCC
23084
Reid Spencera773bd52006-08-04 18:18:08 +000023085# LTCC compiler flags.
23086LTCFLAGS=$lt_LTCFLAGS
23087
John Criswell47fdd832003-07-14 16:52:07 +000023088# A language-specific compiler.
23089CC=$lt_compiler_F77
23090
23091# Is the compiler the GNU C compiler?
23092with_gcc=$GCC_F77
23093
23094# An ERE matcher.
23095EGREP=$lt_EGREP
23096
23097# The linker used to build libraries.
23098LD=$lt_LD_F77
23099
23100# Whether we need hard or soft links.
23101LN_S=$lt_LN_S
23102
23103# A BSD-compatible nm program.
23104NM=$lt_NM
23105
23106# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023107STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023108
23109# Used to examine libraries when file_magic_cmd begins "file"
23110MAGIC_CMD=$MAGIC_CMD
23111
23112# Used on cygwin: DLL creation program.
23113DLLTOOL="$DLLTOOL"
23114
23115# Used on cygwin: object dumper.
23116OBJDUMP="$OBJDUMP"
23117
23118# Used on cygwin: assembler.
23119AS="$AS"
23120
23121# The name of the directory that contains temporary libtool files.
23122objdir=$objdir
23123
23124# How to create reloadable object files.
23125reload_flag=$lt_reload_flag
23126reload_cmds=$lt_reload_cmds
23127
23128# How to pass a linker flag through the compiler.
23129wl=$lt_lt_prog_compiler_wl_F77
23130
23131# Object file suffix (normally "o").
23132objext="$ac_objext"
23133
23134# Old archive suffix (normally "a").
23135libext="$libext"
23136
23137# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023138shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023139
23140# Executable file suffix (normally "").
23141exeext="$exeext"
23142
23143# Additional compiler flags for building library objects.
23144pic_flag=$lt_lt_prog_compiler_pic_F77
23145pic_mode=$pic_mode
23146
23147# What is the maximum length of a command?
23148max_cmd_len=$lt_cv_sys_max_cmd_len
23149
23150# Does compiler simultaneously support -c and -o options?
23151compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23152
Reid Spencera773bd52006-08-04 18:18:08 +000023153# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000023154need_locks=$lt_need_locks
23155
23156# Do we need the lib prefix for modules?
23157need_lib_prefix=$need_lib_prefix
23158
23159# Do we need a version for libraries?
23160need_version=$need_version
23161
23162# Whether dlopen is supported.
23163dlopen_support=$enable_dlopen
23164
23165# Whether dlopen of programs is supported.
23166dlopen_self=$enable_dlopen_self
23167
23168# Whether dlopen of statically linked programs is supported.
23169dlopen_self_static=$enable_dlopen_self_static
23170
23171# Compiler flag to prevent dynamic linking.
23172link_static_flag=$lt_lt_prog_compiler_static_F77
23173
23174# Compiler flag to turn off builtin functions.
23175no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23176
23177# Compiler flag to allow reflexive dlopens.
23178export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23179
23180# Compiler flag to generate shared objects directly from archives.
23181whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23182
23183# Compiler flag to generate thread-safe objects.
23184thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
23185
23186# Library versioning type.
23187version_type=$version_type
23188
23189# Format of library name prefix.
23190libname_spec=$lt_libname_spec
23191
23192# List of archive names. First name is the real one, the rest are links.
23193# The last name is the one that the linker finds with -lNAME.
23194library_names_spec=$lt_library_names_spec
23195
23196# The coded name of the library, if different from the real name.
23197soname_spec=$lt_soname_spec
23198
23199# Commands used to build and install an old-style archive.
23200RANLIB=$lt_RANLIB
23201old_archive_cmds=$lt_old_archive_cmds_F77
23202old_postinstall_cmds=$lt_old_postinstall_cmds
23203old_postuninstall_cmds=$lt_old_postuninstall_cmds
23204
23205# Create an old-style archive from a shared archive.
23206old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23207
23208# Create a temporary old-style archive to link instead of a shared archive.
23209old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23210
23211# Commands used to build and install a shared archive.
23212archive_cmds=$lt_archive_cmds_F77
23213archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23214postinstall_cmds=$lt_postinstall_cmds
23215postuninstall_cmds=$lt_postuninstall_cmds
23216
23217# Commands used to build a loadable module (assumed same as above if empty)
23218module_cmds=$lt_module_cmds_F77
23219module_expsym_cmds=$lt_module_expsym_cmds_F77
23220
23221# Commands to strip libraries.
23222old_striplib=$lt_old_striplib
23223striplib=$lt_striplib
23224
23225# Dependencies to place before the objects being linked to create a
23226# shared library.
23227predep_objects=$lt_predep_objects_F77
23228
23229# Dependencies to place after the objects being linked to create a
23230# shared library.
23231postdep_objects=$lt_postdep_objects_F77
23232
23233# Dependencies to place before the objects being linked to create a
23234# shared library.
23235predeps=$lt_predeps_F77
23236
23237# Dependencies to place after the objects being linked to create a
23238# shared library.
23239postdeps=$lt_postdeps_F77
23240
23241# The library search path used internally by the compiler when linking
23242# a shared library.
23243compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23244
23245# Method to check whether dependent libraries are shared objects.
23246deplibs_check_method=$lt_deplibs_check_method
23247
23248# Command to use when deplibs_check_method == file_magic.
23249file_magic_cmd=$lt_file_magic_cmd
23250
23251# Flag that allows shared libraries with undefined symbols to be built.
23252allow_undefined_flag=$lt_allow_undefined_flag_F77
23253
23254# Flag that forces no undefined symbols.
23255no_undefined_flag=$lt_no_undefined_flag_F77
23256
23257# Commands used to finish a libtool library installation in a directory.
23258finish_cmds=$lt_finish_cmds
23259
23260# Same as above, but a single script fragment to be evaled but not shown.
23261finish_eval=$lt_finish_eval
23262
23263# Take the output of nm and produce a listing of raw symbols and C names.
23264global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23265
23266# Transform the output of nm in a proper C declaration
23267global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23268
23269# Transform the output of nm in a C name address pair
23270global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23271
23272# This is the shared library runtime path variable.
23273runpath_var=$runpath_var
23274
23275# This is the shared library path variable.
23276shlibpath_var=$shlibpath_var
23277
23278# Is shlibpath searched before the hard-coded library search path?
23279shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23280
23281# How to hardcode a shared library path into an executable.
23282hardcode_action=$hardcode_action_F77
23283
23284# Whether we should hardcode library paths into libraries.
23285hardcode_into_libs=$hardcode_into_libs
23286
23287# Flag to hardcode \$libdir into a binary during linking.
23288# This must work even if \$libdir does not exist.
23289hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23290
23291# If ld is used when linking, flag to hardcode \$libdir into
23292# a binary during linking. This must work even if \$libdir does
23293# not exist.
23294hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23295
23296# Whether we need a single -rpath flag with a separated argument.
23297hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23298
23299# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23300# resulting binary.
23301hardcode_direct=$hardcode_direct_F77
23302
23303# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23304# resulting binary.
23305hardcode_minus_L=$hardcode_minus_L_F77
23306
23307# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23308# the resulting binary.
23309hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23310
23311# Set to yes if building a shared library automatically hardcodes DIR into the library
23312# and all subsequent libraries and executables linked against it.
23313hardcode_automatic=$hardcode_automatic_F77
23314
23315# Variables whose values should be saved in libtool wrapper scripts and
23316# restored at relink time.
23317variables_saved_for_relink="$variables_saved_for_relink"
23318
23319# Whether libtool must link a program against all its dependency libraries.
23320link_all_deplibs=$link_all_deplibs_F77
23321
23322# Compile-time system search path for libraries
23323sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23324
23325# Run-time system search path for libraries
23326sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23327
23328# Fix the shell variable \$srcfile for the compiler.
23329fix_srcfile_path="$fix_srcfile_path_F77"
23330
23331# Set to yes if exported symbols are required.
23332always_export_symbols=$always_export_symbols_F77
23333
23334# The commands to list exported symbols.
23335export_symbols_cmds=$lt_export_symbols_cmds_F77
23336
23337# The commands to extract the exported symbol list from a shared archive.
23338extract_expsyms_cmds=$lt_extract_expsyms_cmds
23339
23340# Symbols that should not be listed in the preloaded symbols.
23341exclude_expsyms=$lt_exclude_expsyms_F77
23342
23343# Symbols that must always be exported.
23344include_expsyms=$lt_include_expsyms_F77
23345
23346# ### END LIBTOOL TAG CONFIG: $tagname
23347
23348__EOF__
23349
23350
23351else
23352 # If there is no Makefile yet, we rely on a make rule to execute
23353 # `config.status --recheck' to rerun these tests and create the
23354 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023355 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23356 if test -f "$ltmain_in"; then
23357 test -f Makefile && make "$ltmain"
23358 fi
John Criswell47fdd832003-07-14 16:52:07 +000023359fi
23360
23361
23362ac_ext=c
23363ac_cpp='$CPP $CPPFLAGS'
23364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23366ac_compiler_gnu=$ac_cv_c_compiler_gnu
23367
23368CC="$lt_save_CC"
23369
23370 else
23371 tagname=""
23372 fi
23373 ;;
23374
23375 GCJ)
23376 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023377 ac_ext=c
23378ac_cpp='$CPP $CPPFLAGS'
23379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23381ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023382
23383
23384# Source file extension for Java test sources.
23385ac_ext=java
23386
23387# Object file extension for compiled Java test sources.
23388objext=o
23389objext_GCJ=$objext
23390
23391# Code to be used in simple compile tests
23392lt_simple_compile_test_code="class foo {}\n"
23393
23394# Code to be used in simple link tests
Reid Spencera773bd52006-08-04 18:18:08 +000023395lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
John Criswell47fdd832003-07-14 16:52:07 +000023396
23397# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23398
23399# If no C compiler was specified, use CC.
23400LTCC=${LTCC-"$CC"}
23401
Reid Spencera773bd52006-08-04 18:18:08 +000023402# If no C compiler flags were specified, use CFLAGS.
23403LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
23404
John Criswell47fdd832003-07-14 16:52:07 +000023405# Allow CC to be a program name with arguments.
23406compiler=$CC
23407
23408
Reid Spencera773bd52006-08-04 18:18:08 +000023409# save warnings/boilerplate of simple test code
23410ac_outfile=conftest.$ac_objext
23411printf "$lt_simple_compile_test_code" >conftest.$ac_ext
23412eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23413_lt_compiler_boilerplate=`cat conftest.err`
23414$rm conftest*
23415
23416ac_outfile=conftest.$ac_objext
23417printf "$lt_simple_link_test_code" >conftest.$ac_ext
23418eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
23419_lt_linker_boilerplate=`cat conftest.err`
23420$rm conftest*
23421
23422
John Criswell47fdd832003-07-14 16:52:07 +000023423# Allow CC to be a program name with arguments.
23424lt_save_CC="$CC"
23425CC=${GCJ-"gcj"}
23426compiler=$CC
23427compiler_GCJ=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000023428for cc_temp in $compiler""; do
23429 case $cc_temp in
23430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23432 \-*) ;;
23433 *) break;;
23434 esac
23435done
23436cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
23437
John Criswell47fdd832003-07-14 16:52:07 +000023438
23439# GCJ did not exist at the time GCC didn't implicitly link libc in.
23440archive_cmds_need_lc_GCJ=no
23441
Reid Spencera773bd52006-08-04 18:18:08 +000023442old_archive_cmds_GCJ=$old_archive_cmds
23443
John Criswell47fdd832003-07-14 16:52:07 +000023444
23445lt_prog_compiler_no_builtin_flag_GCJ=
23446
23447if test "$GCC" = yes; then
23448 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
23449
Reid Spencer2706f8c2004-09-19 23:53:36 +000023450
Reid Spencera773bd52006-08-04 18:18:08 +000023451{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
23452echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
23454 echo $ECHO_N "(cached) $ECHO_C" >&6
23455else
23456 lt_cv_prog_compiler_rtti_exceptions=no
23457 ac_outfile=conftest.$ac_objext
23458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23459 lt_compiler_flag="-fno-rtti -fno-exceptions"
23460 # Insert the option either (1) after the last *FLAGS variable, or
23461 # (2) before a word containing "conftest.", or (3) at the end.
23462 # Note that $ac_compile itself does not contain backslashes and begins
23463 # with a dollar sign (not a hyphen), so the echo should work correctly.
23464 # The option is referenced via a variable to avoid confusing sed.
23465 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23468 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000023469 (eval echo "\"\$as_me:23469: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023470 (eval "$lt_compile" 2>conftest.err)
23471 ac_status=$?
23472 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000023473 echo "$as_me:23473: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023474 if (exit $ac_status) && test -s "$ac_outfile"; then
23475 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023476 # So say no if there are warnings other than the usual output.
23477 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23479 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023480 lt_cv_prog_compiler_rtti_exceptions=yes
23481 fi
23482 fi
23483 $rm conftest*
23484
23485fi
Reid Spencera773bd52006-08-04 18:18:08 +000023486{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
23487echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023488
23489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
23490 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
23491else
23492 :
23493fi
23494
23495fi
23496
23497lt_prog_compiler_wl_GCJ=
23498lt_prog_compiler_pic_GCJ=
23499lt_prog_compiler_static_GCJ=
23500
Reid Spencera773bd52006-08-04 18:18:08 +000023501{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23502echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023503
23504 if test "$GCC" = yes; then
23505 lt_prog_compiler_wl_GCJ='-Wl,'
23506 lt_prog_compiler_static_GCJ='-static'
23507
23508 case $host_os in
23509 aix*)
23510 # All AIX code is PIC.
23511 if test "$host_cpu" = ia64; then
23512 # AIX 5 now supports IA64 processor
23513 lt_prog_compiler_static_GCJ='-Bstatic'
23514 fi
23515 ;;
23516
23517 amigaos*)
23518 # FIXME: we need at least 68020 code to build shared libraries, but
23519 # adding the `-m68020' flag to GCC prevents building anything better,
23520 # like `-m68040'.
23521 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
23522 ;;
23523
23524 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23525 # PIC is the default for these OSes.
23526 ;;
23527
23528 mingw* | pw32* | os2*)
23529 # This hack is so that the source file can tell whether it is being
23530 # built for inclusion in a dll (and should export symbols for example).
23531 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23532 ;;
23533
23534 darwin* | rhapsody*)
23535 # PIC is the default on this platform
23536 # Common symbols not allowed in MH_DYLIB files
23537 lt_prog_compiler_pic_GCJ='-fno-common'
23538 ;;
23539
Reid Spencera773bd52006-08-04 18:18:08 +000023540 interix3*)
23541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
23542 # Instead, we relocate shared libraries at runtime.
23543 ;;
23544
John Criswell47fdd832003-07-14 16:52:07 +000023545 msdosdjgpp*)
23546 # Just because we use GCC doesn't mean we suddenly get shared libraries
23547 # on systems that don't support them.
23548 lt_prog_compiler_can_build_shared_GCJ=no
23549 enable_shared=no
23550 ;;
23551
23552 sysv4*MP*)
23553 if test -d /usr/nec; then
23554 lt_prog_compiler_pic_GCJ=-Kconform_pic
23555 fi
23556 ;;
23557
23558 hpux*)
23559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23560 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023561 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023562 hppa*64*|ia64*)
23563 # +Z the default
23564 ;;
23565 *)
23566 lt_prog_compiler_pic_GCJ='-fPIC'
23567 ;;
23568 esac
23569 ;;
23570
23571 *)
23572 lt_prog_compiler_pic_GCJ='-fPIC'
23573 ;;
23574 esac
23575 else
23576 # PORTME Check for flag to pass linker flags through the system compiler.
23577 case $host_os in
23578 aix*)
23579 lt_prog_compiler_wl_GCJ='-Wl,'
23580 if test "$host_cpu" = ia64; then
23581 # AIX 5 now supports IA64 processor
23582 lt_prog_compiler_static_GCJ='-Bstatic'
23583 else
23584 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
23585 fi
23586 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023587 darwin*)
23588 # PIC is the default on this platform
23589 # Common symbols not allowed in MH_DYLIB files
Reid Spencera773bd52006-08-04 18:18:08 +000023590 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023591 xlc*)
23592 lt_prog_compiler_pic_GCJ='-qnocommon'
23593 lt_prog_compiler_wl_GCJ='-Wl,'
23594 ;;
23595 esac
23596 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023597
23598 mingw* | pw32* | os2*)
23599 # This hack is so that the source file can tell whether it is being
23600 # built for inclusion in a dll (and should export symbols for example).
23601 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
23602 ;;
23603
23604 hpux9* | hpux10* | hpux11*)
23605 lt_prog_compiler_wl_GCJ='-Wl,'
23606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23607 # not for PA HP-UX.
Reid Spencera773bd52006-08-04 18:18:08 +000023608 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000023609 hppa*64*|ia64*)
23610 # +Z the default
23611 ;;
23612 *)
23613 lt_prog_compiler_pic_GCJ='+Z'
23614 ;;
23615 esac
23616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
23617 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
23618 ;;
23619
23620 irix5* | irix6* | nonstopux*)
23621 lt_prog_compiler_wl_GCJ='-Wl,'
23622 # PIC (with -KPIC) is the default.
23623 lt_prog_compiler_static_GCJ='-non_shared'
23624 ;;
23625
23626 newsos6)
23627 lt_prog_compiler_pic_GCJ='-KPIC'
23628 lt_prog_compiler_static_GCJ='-Bstatic'
23629 ;;
23630
23631 linux*)
Reid Spencera773bd52006-08-04 18:18:08 +000023632 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000023633 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000023634 lt_prog_compiler_wl_GCJ='-Wl,'
23635 lt_prog_compiler_pic_GCJ='-KPIC'
23636 lt_prog_compiler_static_GCJ='-static'
23637 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023638 pgcc* | pgf77* | pgf90* | pgf95*)
23639 # Portland Group compilers (*not* the Pentium gcc compiler,
23640 # which looks to be a dead project)
23641 lt_prog_compiler_wl_GCJ='-Wl,'
23642 lt_prog_compiler_pic_GCJ='-fpic'
23643 lt_prog_compiler_static_GCJ='-Bstatic'
23644 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023645 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000023646 lt_prog_compiler_wl_GCJ='-Wl,'
23647 # All Alpha code is PIC.
23648 lt_prog_compiler_static_GCJ='-non_shared'
23649 ;;
23650 esac
23651 ;;
23652
23653 osf3* | osf4* | osf5*)
23654 lt_prog_compiler_wl_GCJ='-Wl,'
23655 # All OSF/1 code is PIC.
23656 lt_prog_compiler_static_GCJ='-non_shared'
23657 ;;
23658
John Criswell47fdd832003-07-14 16:52:07 +000023659 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000023660 lt_prog_compiler_pic_GCJ='-KPIC'
23661 lt_prog_compiler_static_GCJ='-Bstatic'
Reid Spencera773bd52006-08-04 18:18:08 +000023662 case $cc_basename in
23663 f77* | f90* | f95*)
23664 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
23665 *)
23666 lt_prog_compiler_wl_GCJ='-Wl,';;
23667 esac
John Criswell47fdd832003-07-14 16:52:07 +000023668 ;;
23669
23670 sunos4*)
23671 lt_prog_compiler_wl_GCJ='-Qoption ld '
23672 lt_prog_compiler_pic_GCJ='-PIC'
23673 lt_prog_compiler_static_GCJ='-Bstatic'
23674 ;;
23675
Reid Spencera773bd52006-08-04 18:18:08 +000023676 sysv4 | sysv4.2uw2* | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000023677 lt_prog_compiler_wl_GCJ='-Wl,'
23678 lt_prog_compiler_pic_GCJ='-KPIC'
23679 lt_prog_compiler_static_GCJ='-Bstatic'
23680 ;;
23681
23682 sysv4*MP*)
23683 if test -d /usr/nec ;then
23684 lt_prog_compiler_pic_GCJ='-Kconform_pic'
23685 lt_prog_compiler_static_GCJ='-Bstatic'
23686 fi
23687 ;;
23688
Reid Spencera773bd52006-08-04 18:18:08 +000023689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
23690 lt_prog_compiler_wl_GCJ='-Wl,'
23691 lt_prog_compiler_pic_GCJ='-KPIC'
23692 lt_prog_compiler_static_GCJ='-Bstatic'
23693 ;;
23694
23695 unicos*)
23696 lt_prog_compiler_wl_GCJ='-Wl,'
23697 lt_prog_compiler_can_build_shared_GCJ=no
23698 ;;
23699
John Criswell47fdd832003-07-14 16:52:07 +000023700 uts4*)
23701 lt_prog_compiler_pic_GCJ='-pic'
23702 lt_prog_compiler_static_GCJ='-Bstatic'
23703 ;;
23704
23705 *)
23706 lt_prog_compiler_can_build_shared_GCJ=no
23707 ;;
23708 esac
23709 fi
23710
Reid Spencera773bd52006-08-04 18:18:08 +000023711{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
23712echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023713
23714#
23715# Check to make sure the PIC flag actually works.
23716#
23717if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023718
Reid Spencera773bd52006-08-04 18:18:08 +000023719{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
23720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023721if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23723else
23724 lt_prog_compiler_pic_works_GCJ=no
23725 ac_outfile=conftest.$ac_objext
23726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23727 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
23728 # Insert the option either (1) after the last *FLAGS variable, or
23729 # (2) before a word containing "conftest.", or (3) at the end.
23730 # Note that $ac_compile itself does not contain backslashes and begins
23731 # with a dollar sign (not a hyphen), so the echo should work correctly.
23732 # The option is referenced via a variable to avoid confusing sed.
23733 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23736 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000023737 (eval echo "\"\$as_me:23737: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023738 (eval "$lt_compile" 2>conftest.err)
23739 ac_status=$?
23740 cat conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000023741 echo "$as_me:23741: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023742 if (exit $ac_status) && test -s "$ac_outfile"; then
23743 # The compiler can only warn and ignore the option if not recognized
Reid Spencera773bd52006-08-04 18:18:08 +000023744 # So say no if there are warnings other than the usual output.
23745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
23746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023748 lt_prog_compiler_pic_works_GCJ=yes
23749 fi
23750 fi
23751 $rm conftest*
23752
23753fi
Reid Spencera773bd52006-08-04 18:18:08 +000023754{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
23755echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023756
23757if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
23758 case $lt_prog_compiler_pic_GCJ in
23759 "" | " "*) ;;
23760 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
23761 esac
23762else
23763 lt_prog_compiler_pic_GCJ=
23764 lt_prog_compiler_can_build_shared_GCJ=no
23765fi
23766
23767fi
Reid Spencera773bd52006-08-04 18:18:08 +000023768case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000023769 # For platforms which do not support PIC, -DPIC is meaningless:
23770 *djgpp*)
23771 lt_prog_compiler_pic_GCJ=
23772 ;;
23773 *)
23774 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
23775 ;;
23776esac
23777
Reid Spencera773bd52006-08-04 18:18:08 +000023778#
23779# Check to make sure the static flag actually works.
23780#
23781wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
23782{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
23783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
23784if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786else
23787 lt_prog_compiler_static_works_GCJ=no
23788 save_LDFLAGS="$LDFLAGS"
23789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
23790 printf "$lt_simple_link_test_code" > conftest.$ac_ext
23791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
23792 # The linker can only warn and ignore the option if not recognized
23793 # So say no if there are warnings
23794 if test -s conftest.err; then
23795 # Append any errors to the config.log.
23796 cat conftest.err 1>&5
23797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
23798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
23799 if diff conftest.exp conftest.er2 >/dev/null; then
23800 lt_prog_compiler_static_works_GCJ=yes
23801 fi
23802 else
23803 lt_prog_compiler_static_works_GCJ=yes
23804 fi
23805 fi
23806 $rm conftest*
23807 LDFLAGS="$save_LDFLAGS"
23808
23809fi
23810{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
23811echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
23812
23813if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
23814 :
23815else
23816 lt_prog_compiler_static_GCJ=
23817fi
23818
23819
23820{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023822if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825 lt_cv_prog_compiler_c_o_GCJ=no
23826 $rm -r conftest 2>/dev/null
23827 mkdir conftest
23828 cd conftest
23829 mkdir out
23830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23831
John Criswell47fdd832003-07-14 16:52:07 +000023832 lt_compiler_flag="-o out/conftest2.$ac_objext"
23833 # Insert the option either (1) after the last *FLAGS variable, or
23834 # (2) before a word containing "conftest.", or (3) at the end.
23835 # Note that $ac_compile itself does not contain backslashes and begins
23836 # with a dollar sign (not a hyphen), so the echo should work correctly.
23837 lt_compile=`echo "$ac_compile" | $SED \
Reid Spencera773bd52006-08-04 18:18:08 +000023838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
John Criswell47fdd832003-07-14 16:52:07 +000023839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23840 -e 's:$: $lt_compiler_flag:'`
Reid Spencer1000b732006-12-01 00:37:14 +000023841 (eval echo "\"\$as_me:23841: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000023842 (eval "$lt_compile" 2>out/conftest.err)
23843 ac_status=$?
23844 cat out/conftest.err >&5
Reid Spencer1000b732006-12-01 00:37:14 +000023845 echo "$as_me:23845: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000023846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
23847 then
23848 # The compiler can only warn and ignore the option if not recognized
23849 # So say no if there are warnings
Reid Spencera773bd52006-08-04 18:18:08 +000023850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
23851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
23852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000023853 lt_cv_prog_compiler_c_o_GCJ=yes
23854 fi
23855 fi
Reid Spencera773bd52006-08-04 18:18:08 +000023856 chmod u+w . 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023857 $rm conftest*
23858 # SGI C++ compiler will create directory out/ii_files/ for
23859 # template instantiation
23860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23861 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000023862 cd ..
23863 rmdir conftest
23864 $rm conftest*
23865
23866fi
Reid Spencera773bd52006-08-04 18:18:08 +000023867{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
23868echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023869
23870
23871hard_links="nottested"
23872if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
23873 # do not overwrite the value of need_locks provided by the user
Reid Spencera773bd52006-08-04 18:18:08 +000023874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023876 hard_links=yes
23877 $rm conftest*
23878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
23879 touch conftest.a
23880 ln conftest.a conftest.b 2>&5 || hard_links=no
23881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Reid Spencera773bd52006-08-04 18:18:08 +000023882 { echo "$as_me:$LINENO: result: $hard_links" >&5
23883echo "${ECHO_T}$hard_links" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023884 if test "$hard_links" = no; then
23885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23887 need_locks=warn
23888 fi
23889else
23890 need_locks=no
23891fi
23892
Reid Spencera773bd52006-08-04 18:18:08 +000023893{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000023895
23896 runpath_var=
23897 allow_undefined_flag_GCJ=
23898 enable_shared_with_static_runtimes_GCJ=no
23899 archive_cmds_GCJ=
23900 archive_expsym_cmds_GCJ=
23901 old_archive_From_new_cmds_GCJ=
23902 old_archive_from_expsyms_cmds_GCJ=
23903 export_dynamic_flag_spec_GCJ=
23904 whole_archive_flag_spec_GCJ=
23905 thread_safe_flag_spec_GCJ=
23906 hardcode_libdir_flag_spec_GCJ=
23907 hardcode_libdir_flag_spec_ld_GCJ=
23908 hardcode_libdir_separator_GCJ=
23909 hardcode_direct_GCJ=no
23910 hardcode_minus_L_GCJ=no
23911 hardcode_shlibpath_var_GCJ=unsupported
23912 link_all_deplibs_GCJ=unknown
23913 hardcode_automatic_GCJ=no
23914 module_cmds_GCJ=
23915 module_expsym_cmds_GCJ=
23916 always_export_symbols_GCJ=no
23917 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23918 # include_expsyms should be a list of space-separated symbols to be *always*
23919 # included in the symbol list
23920 include_expsyms_GCJ=
23921 # exclude_expsyms can be an extended regexp of symbols to exclude
23922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
23923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
23924 # as well as any symbol that contains `d'.
23925 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
23926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
23927 # platforms (ab)use it in PIC code, but their linkers get confused if
23928 # the symbol is explicitly referenced. Since portable code cannot
23929 # rely on this symbol name, it's probably fine to never include it in
23930 # preloaded symbol tables.
23931 extract_expsyms_cmds=
Reid Spencera773bd52006-08-04 18:18:08 +000023932 # Just being paranoid about ensuring that cc_basename is set.
23933 for cc_temp in $compiler""; do
23934 case $cc_temp in
23935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23937 \-*) ;;
23938 *) break;;
23939 esac
23940done
23941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
John Criswell47fdd832003-07-14 16:52:07 +000023942
23943 case $host_os in
23944 cygwin* | mingw* | pw32*)
23945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
23946 # When not using gcc, we currently assume that we are using
23947 # Microsoft Visual C++.
23948 if test "$GCC" != yes; then
23949 with_gnu_ld=no
23950 fi
23951 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000023952 interix*)
23953 # we just hope/assume this is gcc and not c89 (= MSVC++)
23954 with_gnu_ld=yes
23955 ;;
John Criswell47fdd832003-07-14 16:52:07 +000023956 openbsd*)
23957 with_gnu_ld=no
23958 ;;
23959 esac
23960
23961 ld_shlibs_GCJ=yes
23962 if test "$with_gnu_ld" = yes; then
23963 # If archive_cmds runs LD, not CC, wlarc should be empty
23964 wlarc='${wl}'
23965
Reid Spencera773bd52006-08-04 18:18:08 +000023966 # Set some defaults for GNU ld with shared library support. These
23967 # are reset later if shared libraries are not supported. Putting them
23968 # here allows them to be overridden if necessary.
23969 runpath_var=LD_RUN_PATH
23970 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
23971 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
23972 # ancient GNU ld didn't support --whole-archive et. al.
23973 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
23974 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
23975 else
23976 whole_archive_flag_spec_GCJ=
23977 fi
23978 supports_anon_versioning=no
23979 case `$LD -v 2>/dev/null` in
23980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
23981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
23982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
23983 *\ 2.11.*) ;; # other 2.11 versions
23984 *) supports_anon_versioning=yes ;;
23985 esac
23986
John Criswell47fdd832003-07-14 16:52:07 +000023987 # See if GNU ld supports shared libraries.
23988 case $host_os in
23989 aix3* | aix4* | aix5*)
23990 # On AIX/PPC, the GNU linker is very broken
23991 if test "$host_cpu" != ia64; then
23992 ld_shlibs_GCJ=no
23993 cat <<EOF 1>&2
23994
23995*** Warning: the GNU linker, at least up to release 2.9.1, is reported
23996*** to be unable to reliably create shared libraries on AIX.
23997*** Therefore, libtool is disabling shared libraries support. If you
23998*** really care for shared libraries, you may want to modify your PATH
23999*** so that a non-GNU linker is found, and then restart.
24000
24001EOF
24002 fi
24003 ;;
24004
24005 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024006 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 +000024007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24008 hardcode_minus_L_GCJ=yes
24009
24010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
24011 # that the semantics of dynamic libraries on AmigaOS, at least up
24012 # to version 4, is to share data among multiple programs linked
24013 # with the same dynamic library. Since this doesn't match the
24014 # behavior of shared libraries on other platforms, we can't use
24015 # them.
24016 ld_shlibs_GCJ=no
24017 ;;
24018
24019 beos*)
24020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24021 allow_undefined_flag_GCJ=unsupported
24022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
24023 # support --undefined. This deserves some investigation. FIXME
24024 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24025 else
24026 ld_shlibs_GCJ=no
24027 fi
24028 ;;
24029
24030 cygwin* | mingw* | pw32*)
24031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
24032 # as there is no search path for DLLs.
24033 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24034 allow_undefined_flag_GCJ=unsupported
24035 always_export_symbols_GCJ=no
24036 enable_shared_with_static_runtimes_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024037 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 +000024038
24039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000024040 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 +000024041 # If the export-symbols file already is a .def file (1st line
24042 # is EXPORTS), use it as is; otherwise, prepend...
24043 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
24044 cp $export_symbols $output_objdir/$soname.def;
24045 else
24046 echo EXPORTS > $output_objdir/$soname.def;
24047 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000024048 fi~
Reid Spencera773bd52006-08-04 18:18:08 +000024049 $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 +000024050 else
Reid Spencera773bd52006-08-04 18:18:08 +000024051 ld_shlibs_GCJ=no
24052 fi
24053 ;;
24054
24055 interix3*)
24056 hardcode_direct_GCJ=no
24057 hardcode_shlibpath_var_GCJ=no
24058 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24059 export_dynamic_flag_spec_GCJ='${wl}-E'
24060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
24061 # Instead, shared libraries are loaded at an image base (0x10000000 by
24062 # default) and relocated if they conflict, which is a slow very memory
24063 # consuming and fragmenting process. To avoid this, we pick a random,
24064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
24065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
24066 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'
24067 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'
24068 ;;
24069
24070 linux*)
24071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24072 tmp_addflag=
24073 case $cc_basename,$host_cpu in
24074 pgcc*) # Portland Group C compiler
24075 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'
24076 tmp_addflag=' $pic_flag'
24077 ;;
24078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
24079 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'
24080 tmp_addflag=' $pic_flag -Mnomain' ;;
24081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
24082 tmp_addflag=' -i_dynamic' ;;
24083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
24084 tmp_addflag=' -i_dynamic -nofor_main' ;;
24085 ifc* | ifort*) # Intel Fortran compiler
24086 tmp_addflag=' -nofor_main' ;;
24087 esac
24088 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24089
24090 if test $supports_anon_versioning = yes; then
24091 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
24092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
24093 $echo "local: *; };" >> $output_objdir/$libname.ver~
24094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
24095 fi
24096 else
24097 ld_shlibs_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024098 fi
24099 ;;
24100
24101 netbsd*)
24102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24103 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
24104 wlarc=
24105 else
24106 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24107 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24108 fi
24109 ;;
24110
Reid Spencera773bd52006-08-04 18:18:08 +000024111 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000024112 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
24113 ld_shlibs_GCJ=no
24114 cat <<EOF 1>&2
24115
24116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
24117*** create shared libraries on Solaris systems. Therefore, libtool
24118*** is disabling shared libraries support. We urge you to upgrade GNU
24119*** binutils to release 2.9.1 or newer. Another option is to modify
24120*** your PATH or compiler configuration so that the native linker is
24121*** used, and then restart.
24122
24123EOF
24124 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24125 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24126 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24127 else
24128 ld_shlibs_GCJ=no
24129 fi
24130 ;;
24131
Reid Spencera773bd52006-08-04 18:18:08 +000024132 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
24133 case `$LD -v 2>&1` in
24134 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
24135 ld_shlibs_GCJ=no
24136 cat <<_LT_EOF 1>&2
24137
24138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
24139*** reliably create shared libraries on SCO systems. Therefore, libtool
24140*** is disabling shared libraries support. We urge you to upgrade GNU
24141*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
24142*** your PATH or compiler configuration so that the native linker is
24143*** used, and then restart.
24144
24145_LT_EOF
24146 ;;
24147 *)
24148 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24149 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
24150 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
24151 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
24152 else
24153 ld_shlibs_GCJ=no
24154 fi
24155 ;;
24156 esac
24157 ;;
24158
John Criswell47fdd832003-07-14 16:52:07 +000024159 sunos4*)
24160 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24161 wlarc=
24162 hardcode_direct_GCJ=yes
24163 hardcode_shlibpath_var_GCJ=no
24164 ;;
24165
24166 *)
24167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
24168 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
24169 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
24170 else
24171 ld_shlibs_GCJ=no
24172 fi
24173 ;;
24174 esac
24175
Reid Spencera773bd52006-08-04 18:18:08 +000024176 if test "$ld_shlibs_GCJ" = no; then
24177 runpath_var=
24178 hardcode_libdir_flag_spec_GCJ=
24179 export_dynamic_flag_spec_GCJ=
24180 whole_archive_flag_spec_GCJ=
John Criswell47fdd832003-07-14 16:52:07 +000024181 fi
24182 else
24183 # PORTME fill in a description of your system's linker (not GNU ld)
24184 case $host_os in
24185 aix3*)
24186 allow_undefined_flag_GCJ=unsupported
24187 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000024188 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 +000024189 # Note: this linker hardcodes the directories in LIBPATH if there
24190 # are no directories specified by -L.
24191 hardcode_minus_L_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024192 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
John Criswell47fdd832003-07-14 16:52:07 +000024193 # Neither direct hardcoding nor static linking is supported with a
24194 # broken collect2.
24195 hardcode_direct_GCJ=unsupported
24196 fi
24197 ;;
24198
24199 aix4* | aix5*)
24200 if test "$host_cpu" = ia64; then
24201 # On IA64, the linker does run time linking by default, so we don't
24202 # have to do anything special.
24203 aix_use_runtimelinking=no
24204 exp_sym_flag='-Bexport'
24205 no_entry_flag=""
24206 else
24207 # If we're using GNU nm, then we don't want the "-C" option.
24208 # -C means demangle to AIX nm, but means don't demangle with GNU nm
24209 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
24210 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'
24211 else
24212 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'
24213 fi
24214 aix_use_runtimelinking=no
24215
24216 # Test if we are trying to use run time linking or normal
24217 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
24218 # need to do runtime linking.
24219 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
24220 for ld_flag in $LDFLAGS; do
24221 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
24222 aix_use_runtimelinking=yes
24223 break
24224 fi
24225 done
Reid Spencera773bd52006-08-04 18:18:08 +000024226 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024227 esac
24228
24229 exp_sym_flag='-bexport'
24230 no_entry_flag='-bnoentry'
24231 fi
24232
24233 # When large executables or shared objects are built, AIX ld can
24234 # have problems creating the table of contents. If linking a library
24235 # or program results in "error TOC overflow" add -mminimal-toc to
24236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
24237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
24238
24239 archive_cmds_GCJ=''
24240 hardcode_direct_GCJ=yes
24241 hardcode_libdir_separator_GCJ=':'
24242 link_all_deplibs_GCJ=yes
24243
24244 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024245 case $host_os in aix4.[012]|aix4.[012].*)
John Criswell47fdd832003-07-14 16:52:07 +000024246 # We only want to do this on AIX 4.2 and lower, the check
24247 # below for broken collect2 doesn't work under 4.3+
24248 collect2name=`${CC} -print-prog-name=collect2`
24249 if test -f "$collect2name" && \
24250 strings "$collect2name" | grep resolve_lib_name >/dev/null
24251 then
24252 # We have reworked collect2
24253 hardcode_direct_GCJ=yes
24254 else
24255 # We have old collect2
24256 hardcode_direct_GCJ=unsupported
24257 # It fails to find uninstalled libraries when the uninstalled
24258 # path is not listed in the libpath. Setting hardcode_minus_L
24259 # to unsupported forces relinking
24260 hardcode_minus_L_GCJ=yes
24261 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24262 hardcode_libdir_separator_GCJ=
24263 fi
Reid Spencera773bd52006-08-04 18:18:08 +000024264 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024265 esac
24266 shared_flag='-shared'
Reid Spencera773bd52006-08-04 18:18:08 +000024267 if test "$aix_use_runtimelinking" = yes; then
24268 shared_flag="$shared_flag "'${wl}-G'
24269 fi
John Criswell47fdd832003-07-14 16:52:07 +000024270 else
24271 # not using gcc
24272 if test "$host_cpu" = ia64; then
24273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
24274 # chokes on -Wl,-G. The following line is correct:
24275 shared_flag='-G'
24276 else
Reid Spencera773bd52006-08-04 18:18:08 +000024277 if test "$aix_use_runtimelinking" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000024278 shared_flag='${wl}-G'
24279 else
24280 shared_flag='${wl}-bM:SRE'
Reid Spencera773bd52006-08-04 18:18:08 +000024281 fi
John Criswell47fdd832003-07-14 16:52:07 +000024282 fi
24283 fi
24284
24285 # It seems that -bexpall does not export symbols beginning with
24286 # underscore (_), so it is better to generate a list of symbols to export.
24287 always_export_symbols_GCJ=yes
24288 if test "$aix_use_runtimelinking" = yes; then
24289 # Warning - without using the other runtime loading flags (-brtl),
24290 # -berok will link without error, but may produce a broken library.
24291 allow_undefined_flag_GCJ='-berok'
24292 # Determine the default libpath from the value encoded in an empty executable.
24293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024294/* confdefs.h. */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024299
John Criswell47fdd832003-07-14 16:52:07 +000024300int
24301main ()
24302{
24303
24304 ;
24305 return 0;
24306}
24307_ACEOF
24308rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024309if { (ac_try="$ac_link"
24310case "(($ac_try" in
24311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24312 *) ac_try_echo=$ac_try;;
24313esac
24314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24315 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024317 grep -v '^ *+' conftest.er1 >conftest.err
24318 rm -f conftest.er1
24319 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24323 { (case "(($ac_try" in
24324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24325 *) ac_try_echo=$ac_try;;
24326esac
24327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24328 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024333 { (case "(($ac_try" in
24334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24335 *) ac_try_echo=$ac_try;;
24336esac
24337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24338 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024339 ac_status=$?
24340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); }; }; then
24342
24343aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24344}'`
24345# Check for a 64-bit object if we didn't find anything.
24346if 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; }
24347}'`; fi
24348else
24349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024350sed 's/^/| /' conftest.$ac_ext >&5
24351
Reid Spencera773bd52006-08-04 18:18:08 +000024352
John Criswell47fdd832003-07-14 16:52:07 +000024353fi
Reid Spencera773bd52006-08-04 18:18:08 +000024354
24355rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024356 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24358
24359 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
Reid Spencera773bd52006-08-04 18:18:08 +000024360 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 +000024361 else
24362 if test "$host_cpu" = ia64; then
24363 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
24364 allow_undefined_flag_GCJ="-z nodefs"
Reid Spencera773bd52006-08-04 18:18:08 +000024365 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 +000024366 else
24367 # Determine the default libpath from the value encoded in an empty executable.
24368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024369/* confdefs.h. */
24370_ACEOF
24371cat confdefs.h >>conftest.$ac_ext
24372cat >>conftest.$ac_ext <<_ACEOF
24373/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000024374
John Criswell47fdd832003-07-14 16:52:07 +000024375int
24376main ()
24377{
24378
24379 ;
24380 return 0;
24381}
24382_ACEOF
24383rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000024384if { (ac_try="$ac_link"
24385case "(($ac_try" in
24386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387 *) ac_try_echo=$ac_try;;
24388esac
24389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24390 (eval "$ac_link") 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000024391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024392 grep -v '^ *+' conftest.er1 >conftest.err
24393 rm -f conftest.er1
24394 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000024395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24396 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000024397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24398 { (case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24401esac
24402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000024408 { (case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24411esac
24412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_try") 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000024414 ac_status=$?
24415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416 (exit $ac_status); }; }; then
24417
24418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
24419}'`
24420# Check for a 64-bit object if we didn't find anything.
24421if 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; }
24422}'`; fi
24423else
24424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024425sed 's/^/| /' conftest.$ac_ext >&5
24426
Reid Spencera773bd52006-08-04 18:18:08 +000024427
John Criswell47fdd832003-07-14 16:52:07 +000024428fi
Reid Spencera773bd52006-08-04 18:18:08 +000024429
24430rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024431 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000024432if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
24433
24434 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
24435 # Warning - without using the other run time loading flags,
24436 # -berok will link without error, but may produce a broken library.
24437 no_undefined_flag_GCJ=' ${wl}-bernotok'
24438 allow_undefined_flag_GCJ=' ${wl}-berok'
John Criswell47fdd832003-07-14 16:52:07 +000024439 # Exported symbols can be pulled into shared objects from archives
Reid Spencera773bd52006-08-04 18:18:08 +000024440 whole_archive_flag_spec_GCJ='$convenience'
John Criswell47fdd832003-07-14 16:52:07 +000024441 archive_cmds_need_lc_GCJ=yes
Reid Spencera773bd52006-08-04 18:18:08 +000024442 # This is similar to how AIX traditionally builds its shared libraries.
24443 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 +000024444 fi
24445 fi
24446 ;;
24447
24448 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000024449 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 +000024450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24451 hardcode_minus_L_GCJ=yes
24452 # see comment about different semantics on the GNU ld section
24453 ld_shlibs_GCJ=no
24454 ;;
24455
Reid Spencer2706f8c2004-09-19 23:53:36 +000024456 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000024457 export_dynamic_flag_spec_GCJ=-rdynamic
24458 ;;
24459
24460 cygwin* | mingw* | pw32*)
24461 # When not using gcc, we currently assume that we are using
24462 # Microsoft Visual C++.
24463 # hardcode_libdir_flag_spec is actually meaningless, as there is
24464 # no search path for DLLs.
24465 hardcode_libdir_flag_spec_GCJ=' '
24466 allow_undefined_flag_GCJ=unsupported
24467 # Tell ltmain to make .lib files, not .a files.
24468 libext=lib
24469 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024470 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000024471 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000024472 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 +000024473 # The linker will automatically build a .lib file if we build a DLL.
24474 old_archive_From_new_cmds_GCJ='true'
24475 # FIXME: Should let the user specify the lib program.
24476 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
Reid Spencera773bd52006-08-04 18:18:08 +000024477 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
John Criswell47fdd832003-07-14 16:52:07 +000024478 enable_shared_with_static_runtimes_GCJ=yes
24479 ;;
24480
24481 darwin* | rhapsody*)
Reid Spencera773bd52006-08-04 18:18:08 +000024482 case $host_os in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024483 rhapsody* | darwin1.[012])
24484 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
24485 ;;
24486 *) # Darwin 1.3 on
24487 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
24488 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24489 else
24490 case ${MACOSX_DEPLOYMENT_TARGET} in
24491 10.[012])
24492 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
24493 ;;
24494 10.*)
24495 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
24496 ;;
24497 esac
24498 fi
24499 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024500 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024501 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024502 hardcode_direct_GCJ=no
24503 hardcode_automatic_GCJ=yes
24504 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000024505 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000024506 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000024507 if test "$GCC" = yes ; then
24508 output_verbose_link_cmd='echo'
24509 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
24510 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024511 # 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 +000024512 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}'
24513 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 +000024514 else
Reid Spencera773bd52006-08-04 18:18:08 +000024515 case $cc_basename in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024516 xlc*)
24517 output_verbose_link_cmd='echo'
24518 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
24519 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
Reid Spencera773bd52006-08-04 18:18:08 +000024520 # 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 +000024521 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}'
24522 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 +000024523 ;;
24524 *)
24525 ld_shlibs_GCJ=no
24526 ;;
24527 esac
John Criswell47fdd832003-07-14 16:52:07 +000024528 fi
24529 ;;
24530
24531 dgux*)
24532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24534 hardcode_shlibpath_var_GCJ=no
24535 ;;
24536
24537 freebsd1*)
24538 ld_shlibs_GCJ=no
24539 ;;
24540
24541 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
24542 # support. Future versions do this automatically, but an explicit c++rt0.o
24543 # does not break anything, and helps significantly (at the cost of a little
24544 # extra space).
24545 freebsd2.2*)
24546 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
24547 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24548 hardcode_direct_GCJ=yes
24549 hardcode_shlibpath_var_GCJ=no
24550 ;;
24551
24552 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
24553 freebsd2*)
24554 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24555 hardcode_direct_GCJ=yes
24556 hardcode_minus_L_GCJ=yes
24557 hardcode_shlibpath_var_GCJ=no
24558 ;;
24559
24560 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencera773bd52006-08-04 18:18:08 +000024561 freebsd* | kfreebsd*-gnu | dragonfly*)
John Criswell47fdd832003-07-14 16:52:07 +000024562 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
24563 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24564 hardcode_direct_GCJ=yes
24565 hardcode_shlibpath_var_GCJ=no
24566 ;;
24567
24568 hpux9*)
24569 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000024570 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 +000024571 else
Reid Spencer177dbe22004-10-13 01:01:03 +000024572 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 +000024573 fi
24574 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24575 hardcode_libdir_separator_GCJ=:
24576 hardcode_direct_GCJ=yes
24577
24578 # hardcode_minus_L: Not really in the search PATH,
24579 # but as the default location of the library.
24580 hardcode_minus_L_GCJ=yes
24581 export_dynamic_flag_spec_GCJ='${wl}-E'
24582 ;;
24583
Reid Spencera773bd52006-08-04 18:18:08 +000024584 hpux10*)
John Criswell47fdd832003-07-14 16:52:07 +000024585 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024586 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24587 else
24588 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
24589 fi
24590 if test "$with_gnu_ld" = no; then
24591 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24592 hardcode_libdir_separator_GCJ=:
24593
24594 hardcode_direct_GCJ=yes
24595 export_dynamic_flag_spec_GCJ='${wl}-E'
24596
24597 # hardcode_minus_L: Not really in the search PATH,
24598 # but as the default location of the library.
24599 hardcode_minus_L_GCJ=yes
24600 fi
24601 ;;
24602
24603 hpux11*)
24604 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
24605 case $host_cpu in
24606 hppa*64*)
John Criswell47fdd832003-07-14 16:52:07 +000024607 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24608 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024609 ia64*)
24610 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
24611 ;;
John Criswell47fdd832003-07-14 16:52:07 +000024612 *)
24613 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
24614 ;;
24615 esac
24616 else
Reid Spencera773bd52006-08-04 18:18:08 +000024617 case $host_cpu in
24618 hppa*64*)
24619 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
24620 ;;
24621 ia64*)
24622 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000024623 ;;
24624 *)
Reid Spencera773bd52006-08-04 18:18:08 +000024625 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 +000024626 ;;
24627 esac
24628 fi
24629 if test "$with_gnu_ld" = no; then
Reid Spencera773bd52006-08-04 18:18:08 +000024630 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
24631 hardcode_libdir_separator_GCJ=:
John Criswell47fdd832003-07-14 16:52:07 +000024632
Reid Spencera773bd52006-08-04 18:18:08 +000024633 case $host_cpu in
24634 hppa*64*|ia64*)
24635 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
24636 hardcode_direct_GCJ=no
24637 hardcode_shlibpath_var_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024638 ;;
24639 *)
John Criswell47fdd832003-07-14 16:52:07 +000024640 hardcode_direct_GCJ=yes
24641 export_dynamic_flag_spec_GCJ='${wl}-E'
24642
24643 # hardcode_minus_L: Not really in the search PATH,
24644 # but as the default location of the library.
24645 hardcode_minus_L_GCJ=yes
24646 ;;
24647 esac
24648 fi
24649 ;;
24650
24651 irix5* | irix6* | nonstopux*)
24652 if test "$GCC" = yes; then
24653 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'
24654 else
24655 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'
24656 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
24657 fi
24658 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24659 hardcode_libdir_separator_GCJ=:
24660 link_all_deplibs_GCJ=yes
24661 ;;
24662
24663 netbsd*)
24664 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24665 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
24666 else
24667 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
24668 fi
24669 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24670 hardcode_direct_GCJ=yes
24671 hardcode_shlibpath_var_GCJ=no
24672 ;;
24673
24674 newsos6)
24675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24676 hardcode_direct_GCJ=yes
24677 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24678 hardcode_libdir_separator_GCJ=:
24679 hardcode_shlibpath_var_GCJ=no
24680 ;;
24681
24682 openbsd*)
24683 hardcode_direct_GCJ=yes
24684 hardcode_shlibpath_var_GCJ=no
24685 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24686 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000024687 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 +000024688 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24689 export_dynamic_flag_spec_GCJ='${wl}-E'
24690 else
24691 case $host_os in
24692 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
24693 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
24694 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24695 ;;
24696 *)
24697 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
24698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
24699 ;;
24700 esac
24701 fi
24702 ;;
24703
24704 os2*)
24705 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24706 hardcode_minus_L_GCJ=yes
24707 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000024708 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 +000024709 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
24710 ;;
24711
24712 osf3*)
24713 if test "$GCC" = yes; then
24714 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24715 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'
24716 else
24717 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24718 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'
24719 fi
24720 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24721 hardcode_libdir_separator_GCJ=:
24722 ;;
24723
24724 osf4* | osf5*) # as osf3* with the addition of -msym flag
24725 if test "$GCC" = yes; then
24726 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
24727 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'
24728 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
24729 else
24730 allow_undefined_flag_GCJ=' -expect_unresolved \*'
24731 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 +000024732 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 +000024733 $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 +000024734
John Criswell47fdd832003-07-14 16:52:07 +000024735 # Both c and cxx compiler support -rpath directly
24736 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
24737 fi
24738 hardcode_libdir_separator_GCJ=:
24739 ;;
24740
John Criswell47fdd832003-07-14 16:52:07 +000024741 solaris*)
24742 no_undefined_flag_GCJ=' -z text'
24743 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024744 wlarc='${wl}'
John Criswell47fdd832003-07-14 16:52:07 +000024745 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024746 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24747 $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 +000024748 else
Reid Spencera773bd52006-08-04 18:18:08 +000024749 wlarc=''
John Criswell47fdd832003-07-14 16:52:07 +000024750 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000024751 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
24752 $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 +000024753 fi
24754 hardcode_libdir_flag_spec_GCJ='-R$libdir'
24755 hardcode_shlibpath_var_GCJ=no
24756 case $host_os in
24757 solaris2.[0-5] | solaris2.[0-5].*) ;;
Reid Spencera773bd52006-08-04 18:18:08 +000024758 *)
24759 # The compiler driver will combine linker options so we
24760 # cannot just pass the convience library names through
24761 # without $wl, iff we do not link with $LD.
24762 # Luckily, gcc supports the same syntax we need for Sun Studio.
24763 # Supported since Solaris 2.6 (maybe 2.5.1?)
24764 case $wlarc in
24765 '')
24766 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
24767 *)
24768 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' ;;
24769 esac ;;
John Criswell47fdd832003-07-14 16:52:07 +000024770 esac
24771 link_all_deplibs_GCJ=yes
24772 ;;
24773
24774 sunos4*)
24775 if test "x$host_vendor" = xsequent; then
24776 # Use $CC to link under sequent, because it throws in some extra .o
24777 # files that make .init and .fini sections work.
24778 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
24779 else
24780 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
24781 fi
24782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24783 hardcode_direct_GCJ=yes
24784 hardcode_minus_L_GCJ=yes
24785 hardcode_shlibpath_var_GCJ=no
24786 ;;
24787
24788 sysv4)
24789 case $host_vendor in
24790 sni)
24791 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24792 hardcode_direct_GCJ=yes # is this really true???
24793 ;;
24794 siemens)
24795 ## LD is ld it makes a PLAMLIB
24796 ## CC just makes a GrossModule.
24797 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
24798 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
24799 hardcode_direct_GCJ=no
24800 ;;
24801 motorola)
24802 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24803 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
24804 ;;
24805 esac
24806 runpath_var='LD_RUN_PATH'
24807 hardcode_shlibpath_var_GCJ=no
24808 ;;
24809
24810 sysv4.3*)
24811 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24812 hardcode_shlibpath_var_GCJ=no
24813 export_dynamic_flag_spec_GCJ='-Bexport'
24814 ;;
24815
24816 sysv4*MP*)
24817 if test -d /usr/nec; then
24818 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24819 hardcode_shlibpath_var_GCJ=no
24820 runpath_var=LD_RUN_PATH
24821 hardcode_runpath_var=yes
24822 ld_shlibs_GCJ=yes
24823 fi
24824 ;;
24825
Reid Spencera773bd52006-08-04 18:18:08 +000024826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
24827 no_undefined_flag_GCJ='${wl}-z,text'
24828 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024829 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024830 runpath_var='LD_RUN_PATH'
John Criswell47fdd832003-07-14 16:52:07 +000024831
John Criswell47fdd832003-07-14 16:52:07 +000024832 if test "$GCC" = yes; then
Reid Spencera773bd52006-08-04 18:18:08 +000024833 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24834 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 +000024835 else
Reid Spencera773bd52006-08-04 18:18:08 +000024836 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
24837 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 +000024838 fi
John Criswell47fdd832003-07-14 16:52:07 +000024839 ;;
24840
Reid Spencera773bd52006-08-04 18:18:08 +000024841 sysv5* | sco3.2v5* | sco5v6*)
24842 # Note: We can NOT use -z defs as we might desire, because we do not
24843 # link with -lc, and that would cause any symbols used from libc to
24844 # always be unresolved, which means just about no library would
24845 # ever link correctly. If we're not using GNU ld we use -z text
24846 # though, which does catch some bad symbols but isn't as heavy-handed
24847 # as -z defs.
24848 no_undefined_flag_GCJ='${wl}-z,text'
24849 allow_undefined_flag_GCJ='${wl}-z,nodefs'
24850 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000024851 hardcode_shlibpath_var_GCJ=no
Reid Spencera773bd52006-08-04 18:18:08 +000024852 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
24853 hardcode_libdir_separator_GCJ=':'
24854 link_all_deplibs_GCJ=yes
24855 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
John Criswell47fdd832003-07-14 16:52:07 +000024856 runpath_var='LD_RUN_PATH'
Reid Spencera773bd52006-08-04 18:18:08 +000024857
24858 if test "$GCC" = yes; then
24859 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24860 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24861 else
24862 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24863 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
24864 fi
John Criswell47fdd832003-07-14 16:52:07 +000024865 ;;
24866
24867 uts4*)
24868 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
24869 hardcode_libdir_flag_spec_GCJ='-L$libdir'
24870 hardcode_shlibpath_var_GCJ=no
24871 ;;
24872
24873 *)
24874 ld_shlibs_GCJ=no
24875 ;;
24876 esac
24877 fi
24878
Reid Spencera773bd52006-08-04 18:18:08 +000024879{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
24880echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024881test "$ld_shlibs_GCJ" = no && can_build_shared=no
24882
John Criswell47fdd832003-07-14 16:52:07 +000024883#
24884# Do we need to explicitly link libc?
24885#
24886case "x$archive_cmds_need_lc_GCJ" in
24887x|xyes)
24888 # Assume -lc should be added
24889 archive_cmds_need_lc_GCJ=yes
24890
24891 if test "$enable_shared" = yes && test "$GCC" = yes; then
24892 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000024893 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000024894 # FIXME: we may have to deal with multi-command sequences.
24895 ;;
24896 '$CC '*)
24897 # Test whether the compiler implicitly links with -lc since on some
24898 # systems, -lgcc has to come before -lc. If gcc already passes -lc
24899 # to ld, don't add -lc before -lgcc.
Reid Spencera773bd52006-08-04 18:18:08 +000024900 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
24901echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024902 $rm conftest*
24903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
24904
24905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24906 (eval $ac_compile) 2>&5
24907 ac_status=$?
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } 2>conftest.err; then
24910 soname=conftest
24911 lib=conftest
24912 libobjs=conftest.$ac_objext
24913 deplibs=
24914 wl=$lt_prog_compiler_wl_GCJ
Reid Spencera773bd52006-08-04 18:18:08 +000024915 pic_flag=$lt_prog_compiler_pic_GCJ
John Criswell47fdd832003-07-14 16:52:07 +000024916 compiler_flags=-v
24917 linker_flags=-v
24918 verstring=
24919 output_objdir=.
24920 libname=conftest
24921 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
24922 allow_undefined_flag_GCJ=
24923 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
24924 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }
24928 then
24929 archive_cmds_need_lc_GCJ=no
24930 else
24931 archive_cmds_need_lc_GCJ=yes
24932 fi
24933 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
24934 else
24935 cat conftest.err 1>&5
24936 fi
24937 $rm conftest*
Reid Spencera773bd52006-08-04 18:18:08 +000024938 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
24939echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024940 ;;
24941 esac
24942 fi
24943 ;;
24944esac
24945
Reid Spencera773bd52006-08-04 18:18:08 +000024946{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
24947echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000024948library_names_spec=
24949libname_spec='lib$name'
24950soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000024951shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000024952postinstall_cmds=
24953postuninstall_cmds=
24954finish_cmds=
24955finish_eval=
24956shlibpath_var=
24957shlibpath_overrides_runpath=unknown
24958version_type=none
24959dynamic_linker="$host_os ld.so"
24960sys_lib_dlsearch_path_spec="/lib /usr/lib"
24961if test "$GCC" = yes; then
24962 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
24963 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
24964 # if the path contains ";" then we assume it to be the separator
24965 # otherwise default to the standard path separator (i.e. ":") - it is
24966 # assumed that no part of a normal pathname contains ";" but that should
24967 # okay in the real world where ";" in dirpaths is itself problematic.
24968 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24969 else
24970 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24971 fi
24972else
24973 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
24974fi
24975need_lib_prefix=unknown
24976hardcode_into_libs=no
24977
24978# when you set need_version to no, make sure it does not cause -set_version
24979# flags to be left without arguments
24980need_version=unknown
24981
24982case $host_os in
24983aix3*)
24984 version_type=linux
24985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
24986 shlibpath_var=LIBPATH
24987
24988 # AIX 3 has no versioning support, so we append a major version to the name.
24989 soname_spec='${libname}${release}${shared_ext}$major'
24990 ;;
24991
24992aix4* | aix5*)
24993 version_type=linux
24994 need_lib_prefix=no
24995 need_version=no
24996 hardcode_into_libs=yes
24997 if test "$host_cpu" = ia64; then
24998 # AIX 5 supports IA64
24999 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
25000 shlibpath_var=LD_LIBRARY_PATH
25001 else
25002 # With GCC up to 2.95.x, collect2 would create an import file
25003 # for dependence libraries. The import file would start with
25004 # the line `#! .'. This would cause the generated library to
25005 # depend on `.', always an invalid library. This was fixed in
25006 # development snapshots of GCC prior to 3.0.
25007 case $host_os in
25008 aix4 | aix4.[01] | aix4.[01].*)
25009 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
25010 echo ' yes '
25011 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
25012 :
25013 else
25014 can_build_shared=no
25015 fi
25016 ;;
25017 esac
25018 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
25019 # soname into executable. Probably we can add versioning support to
25020 # collect2, so additional links can be useful in future.
25021 if test "$aix_use_runtimelinking" = yes; then
25022 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
25023 # instead of lib<name>.a to let people know that these are not
25024 # typical AIX shared libraries.
25025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25026 else
25027 # We preserve .a as extension for shared libraries through AIX4.2
25028 # and later when we are not doing run time linking.
25029 library_names_spec='${libname}${release}.a $libname.a'
25030 soname_spec='${libname}${release}${shared_ext}$major'
25031 fi
25032 shlibpath_var=LIBPATH
25033 fi
25034 ;;
25035
25036amigaos*)
25037 library_names_spec='$libname.ixlibrary $libname.a'
25038 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025039 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 +000025040 ;;
25041
25042beos*)
25043 library_names_spec='${libname}${shared_ext}'
25044 dynamic_linker="$host_os ld.so"
25045 shlibpath_var=LIBRARY_PATH
25046 ;;
25047
Reid Spencer2706f8c2004-09-19 23:53:36 +000025048bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000025049 version_type=linux
25050 need_version=no
25051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25052 soname_spec='${libname}${release}${shared_ext}$major'
25053 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
25054 shlibpath_var=LD_LIBRARY_PATH
25055 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
25056 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
25057 # the default ld.so.conf also contains /usr/contrib/lib and
25058 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
25059 # libtool to hard-code these into programs
25060 ;;
25061
25062cygwin* | mingw* | pw32*)
25063 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000025064 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025065 need_version=no
25066 need_lib_prefix=no
25067
25068 case $GCC,$host_os in
25069 yes,cygwin* | yes,mingw* | yes,pw32*)
25070 library_names_spec='$libname.dll.a'
25071 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000025072 postinstall_cmds='base_file=`basename \${file}`~
25073 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
25074 dldir=$destdir/`dirname \$dlpath`~
25075 test -d \$dldir || mkdir -p \$dldir~
Reid Spencera773bd52006-08-04 18:18:08 +000025076 $install_prog $dir/$dlname \$dldir/$dlname~
25077 chmod a+x \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000025078 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
25079 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000025080 $rm \$dlpath'
25081 shlibpath_overrides_runpath=yes
25082
25083 case $host_os in
25084 cygwin*)
25085 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
25086 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 +000025087 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025088 ;;
25089 mingw*)
25090 # MinGW DLLs use traditional 'lib' prefix
25091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
25092 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
25093 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
25094 # It is most probably a Windows format PATH printed by
25095 # mingw gcc, but we are running on Cygwin. Gcc prints its search
25096 # path with ; separators, and with drive letters. We can handle the
25097 # drive letters (cygwin fileutils understands them), so leave them,
25098 # especially as we might pass files found there to a mingw objdump,
25099 # which wouldn't understand a cygwinified path. Ahh.
25100 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
25101 else
25102 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
25103 fi
25104 ;;
25105 pw32*)
25106 # pw32 DLLs use 'pw' prefix rather than 'lib'
Reid Spencera773bd52006-08-04 18:18:08 +000025107 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 +000025108 ;;
25109 esac
25110 ;;
25111
25112 *)
25113 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
25114 ;;
25115 esac
25116 dynamic_linker='Win32 ld.exe'
25117 # FIXME: first we should search . and the directory the executable is in
25118 shlibpath_var=PATH
25119 ;;
25120
25121darwin* | rhapsody*)
25122 dynamic_linker="$host_os dyld"
25123 version_type=darwin
25124 need_lib_prefix=no
25125 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000025126 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000025127 soname_spec='${libname}${release}${major}$shared_ext'
25128 shlibpath_overrides_runpath=yes
25129 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencera773bd52006-08-04 18:18:08 +000025130 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
John Criswell47fdd832003-07-14 16:52:07 +000025131 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025132 if test "$GCC" = yes; then
25133 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"`
25134 else
25135 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000025136 fi
25137 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
25138 ;;
25139
25140dgux*)
25141 version_type=linux
25142 need_lib_prefix=no
25143 need_version=no
25144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
25145 soname_spec='${libname}${release}${shared_ext}$major'
25146 shlibpath_var=LD_LIBRARY_PATH
25147 ;;
25148
25149freebsd1*)
25150 dynamic_linker=no
25151 ;;
25152
Reid Spencer2706f8c2004-09-19 23:53:36 +000025153kfreebsd*-gnu)
25154 version_type=linux
25155 need_lib_prefix=no
25156 need_version=no
25157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25158 soname_spec='${libname}${release}${shared_ext}$major'
25159 shlibpath_var=LD_LIBRARY_PATH
25160 shlibpath_overrides_runpath=no
25161 hardcode_into_libs=yes
25162 dynamic_linker='GNU ld.so'
25163 ;;
25164
Reid Spencera773bd52006-08-04 18:18:08 +000025165freebsd* | dragonfly*)
25166 # DragonFly does not have aout. When/if they implement a new
25167 # versioning mechanism, adjust this.
25168 if test -x /usr/bin/objformat; then
25169 objformat=`/usr/bin/objformat`
25170 else
25171 case $host_os in
25172 freebsd[123]*) objformat=aout ;;
25173 *) objformat=elf ;;
25174 esac
25175 fi
John Criswell47fdd832003-07-14 16:52:07 +000025176 version_type=freebsd-$objformat
25177 case $version_type in
25178 freebsd-elf*)
25179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25180 need_version=no
25181 need_lib_prefix=no
25182 ;;
25183 freebsd-*)
25184 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
25185 need_version=yes
25186 ;;
25187 esac
25188 shlibpath_var=LD_LIBRARY_PATH
25189 case $host_os in
25190 freebsd2*)
25191 shlibpath_overrides_runpath=yes
25192 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025193 freebsd3.[01]* | freebsdelf3.[01]*)
John Criswell47fdd832003-07-14 16:52:07 +000025194 shlibpath_overrides_runpath=yes
25195 hardcode_into_libs=yes
25196 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025197 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
25198 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
John Criswell47fdd832003-07-14 16:52:07 +000025199 shlibpath_overrides_runpath=no
25200 hardcode_into_libs=yes
25201 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000025202 freebsd*) # from 4.6 on
25203 shlibpath_overrides_runpath=yes
25204 hardcode_into_libs=yes
25205 ;;
John Criswell47fdd832003-07-14 16:52:07 +000025206 esac
25207 ;;
25208
25209gnu*)
25210 version_type=linux
25211 need_lib_prefix=no
25212 need_version=no
25213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
25214 soname_spec='${libname}${release}${shared_ext}$major'
25215 shlibpath_var=LD_LIBRARY_PATH
25216 hardcode_into_libs=yes
25217 ;;
25218
25219hpux9* | hpux10* | hpux11*)
25220 # Give a soname corresponding to the major version so that dld.sl refuses to
25221 # link against other versions.
25222 version_type=sunos
25223 need_lib_prefix=no
25224 need_version=no
Reid Spencera773bd52006-08-04 18:18:08 +000025225 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +000025226 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025227 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000025228 hardcode_into_libs=yes
25229 dynamic_linker="$host_os dld.so"
25230 shlibpath_var=LD_LIBRARY_PATH
25231 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25233 soname_spec='${libname}${release}${shared_ext}$major'
25234 if test "X$HPUX_IA64_MODE" = X32; then
25235 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
25236 else
25237 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
25238 fi
25239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25240 ;;
25241 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025242 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025243 hardcode_into_libs=yes
25244 dynamic_linker="$host_os dld.sl"
25245 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25246 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
25247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25248 soname_spec='${libname}${release}${shared_ext}$major'
25249 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25250 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25251 ;;
25252 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025253 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000025254 dynamic_linker="$host_os dld.sl"
25255 shlibpath_var=SHLIB_PATH
25256 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
25257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25258 soname_spec='${libname}${release}${shared_ext}$major'
25259 ;;
25260 esac
25261 # HP-UX runs *really* slowly unless shared libraries are mode 555.
25262 postinstall_cmds='chmod 555 $lib'
25263 ;;
25264
Reid Spencera773bd52006-08-04 18:18:08 +000025265interix3*)
25266 version_type=linux
25267 need_lib_prefix=no
25268 need_version=no
25269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25270 soname_spec='${libname}${release}${shared_ext}$major'
25271 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
25272 shlibpath_var=LD_LIBRARY_PATH
25273 shlibpath_overrides_runpath=no
25274 hardcode_into_libs=yes
25275 ;;
25276
John Criswell47fdd832003-07-14 16:52:07 +000025277irix5* | irix6* | nonstopux*)
25278 case $host_os in
25279 nonstopux*) version_type=nonstopux ;;
25280 *)
25281 if test "$lt_cv_prog_gnu_ld" = yes; then
25282 version_type=linux
25283 else
25284 version_type=irix
25285 fi ;;
25286 esac
25287 need_lib_prefix=no
25288 need_version=no
25289 soname_spec='${libname}${release}${shared_ext}$major'
25290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
25291 case $host_os in
25292 irix5* | nonstopux*)
25293 libsuff= shlibsuff=
25294 ;;
25295 *)
25296 case $LD in # libtool.m4 will add one of these switches to LD
25297 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
25298 libsuff= shlibsuff= libmagic=32-bit;;
25299 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
25300 libsuff=32 shlibsuff=N32 libmagic=N32;;
25301 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
25302 libsuff=64 shlibsuff=64 libmagic=64-bit;;
25303 *) libsuff= shlibsuff= libmagic=never-match;;
25304 esac
25305 ;;
25306 esac
25307 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
25308 shlibpath_overrides_runpath=no
25309 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
25310 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
25311 hardcode_into_libs=yes
25312 ;;
25313
25314# No shared lib support for Linux oldld, aout, or coff.
25315linux*oldld* | linux*aout* | linux*coff*)
25316 dynamic_linker=no
25317 ;;
25318
25319# This must be Linux ELF.
25320linux*)
25321 version_type=linux
25322 need_lib_prefix=no
25323 need_version=no
25324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25325 soname_spec='${libname}${release}${shared_ext}$major'
25326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
25327 shlibpath_var=LD_LIBRARY_PATH
25328 shlibpath_overrides_runpath=no
25329 # This implies no fast_install, which is unacceptable.
25330 # Some rework will be needed to allow for fast_install
25331 # before this can be enabled.
25332 hardcode_into_libs=yes
25333
Reid Spencer2706f8c2004-09-19 23:53:36 +000025334 # Append ld.so.conf contents to the search path
25335 if test -f /etc/ld.so.conf; then
Reid Spencera773bd52006-08-04 18:18:08 +000025336 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 +000025337 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
25338 fi
25339
John Criswell47fdd832003-07-14 16:52:07 +000025340 # We used to test for /lib/ld.so.1 and disable shared libraries on
25341 # powerpc, because MkLinux only supported shared libraries with the
25342 # GNU dynamic linker. Since this was broken with cross compilers,
25343 # most powerpc-linux boxes support dynamic linking these days and
25344 # people can always --disable-shared, the test was removed, and we
25345 # assume the GNU/Linux dynamic linker is in use.
25346 dynamic_linker='GNU/Linux ld.so'
25347 ;;
25348
Reid Spencer2706f8c2004-09-19 23:53:36 +000025349knetbsd*-gnu)
25350 version_type=linux
25351 need_lib_prefix=no
25352 need_version=no
25353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
25354 soname_spec='${libname}${release}${shared_ext}$major'
25355 shlibpath_var=LD_LIBRARY_PATH
25356 shlibpath_overrides_runpath=no
25357 hardcode_into_libs=yes
25358 dynamic_linker='GNU ld.so'
25359 ;;
25360
John Criswell47fdd832003-07-14 16:52:07 +000025361netbsd*)
25362 version_type=sunos
25363 need_lib_prefix=no
25364 need_version=no
25365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
25366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25368 dynamic_linker='NetBSD (a.out) ld.so'
25369 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000025371 soname_spec='${libname}${release}${shared_ext}$major'
25372 dynamic_linker='NetBSD ld.elf_so'
25373 fi
25374 shlibpath_var=LD_LIBRARY_PATH
25375 shlibpath_overrides_runpath=yes
25376 hardcode_into_libs=yes
25377 ;;
25378
25379newsos6)
25380 version_type=linux
25381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25382 shlibpath_var=LD_LIBRARY_PATH
25383 shlibpath_overrides_runpath=yes
25384 ;;
25385
Reid Spencer2706f8c2004-09-19 23:53:36 +000025386nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000025387 version_type=linux
25388 need_lib_prefix=no
25389 need_version=no
25390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25391 soname_spec='${libname}${release}${shared_ext}$major'
25392 shlibpath_var=LD_LIBRARY_PATH
25393 shlibpath_overrides_runpath=yes
25394 ;;
25395
25396openbsd*)
25397 version_type=sunos
Reid Spencera773bd52006-08-04 18:18:08 +000025398 sys_lib_dlsearch_path_spec="/usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000025399 need_lib_prefix=no
Reid Spencera773bd52006-08-04 18:18:08 +000025400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
25401 case $host_os in
25402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
25403 *) need_version=no ;;
25404 esac
John Criswell47fdd832003-07-14 16:52:07 +000025405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
25407 shlibpath_var=LD_LIBRARY_PATH
25408 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25409 case $host_os in
25410 openbsd2.[89] | openbsd2.[89].*)
25411 shlibpath_overrides_runpath=no
25412 ;;
25413 *)
25414 shlibpath_overrides_runpath=yes
25415 ;;
25416 esac
25417 else
25418 shlibpath_overrides_runpath=yes
25419 fi
25420 ;;
25421
25422os2*)
25423 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025424 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000025425 need_lib_prefix=no
25426 library_names_spec='$libname${shared_ext} $libname.a'
25427 dynamic_linker='OS/2 ld.exe'
25428 shlibpath_var=LIBPATH
25429 ;;
25430
25431osf3* | osf4* | osf5*)
25432 version_type=osf
25433 need_lib_prefix=no
25434 need_version=no
25435 soname_spec='${libname}${release}${shared_ext}$major'
25436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25437 shlibpath_var=LD_LIBRARY_PATH
25438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
25439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
25440 ;;
25441
John Criswell47fdd832003-07-14 16:52:07 +000025442solaris*)
25443 version_type=linux
25444 need_lib_prefix=no
25445 need_version=no
25446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25447 soname_spec='${libname}${release}${shared_ext}$major'
25448 shlibpath_var=LD_LIBRARY_PATH
25449 shlibpath_overrides_runpath=yes
25450 hardcode_into_libs=yes
25451 # ldd complains unless libraries are executable
25452 postinstall_cmds='chmod +x $lib'
25453 ;;
25454
25455sunos4*)
25456 version_type=sunos
25457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
25458 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
25459 shlibpath_var=LD_LIBRARY_PATH
25460 shlibpath_overrides_runpath=yes
25461 if test "$with_gnu_ld" = yes; then
25462 need_lib_prefix=no
25463 fi
25464 need_version=yes
25465 ;;
25466
Reid Spencera773bd52006-08-04 18:18:08 +000025467sysv4 | sysv4.3*)
John Criswell47fdd832003-07-14 16:52:07 +000025468 version_type=linux
25469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25470 soname_spec='${libname}${release}${shared_ext}$major'
25471 shlibpath_var=LD_LIBRARY_PATH
25472 case $host_vendor in
25473 sni)
25474 shlibpath_overrides_runpath=no
25475 need_lib_prefix=no
25476 export_dynamic_flag_spec='${wl}-Blargedynsym'
25477 runpath_var=LD_RUN_PATH
25478 ;;
25479 siemens)
25480 need_lib_prefix=no
25481 ;;
25482 motorola)
25483 need_lib_prefix=no
25484 need_version=no
25485 shlibpath_overrides_runpath=no
25486 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
25487 ;;
25488 esac
25489 ;;
25490
25491sysv4*MP*)
25492 if test -d /usr/nec ;then
25493 version_type=linux
25494 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
25495 soname_spec='$libname${shared_ext}.$major'
25496 shlibpath_var=LD_LIBRARY_PATH
25497 fi
25498 ;;
25499
Reid Spencera773bd52006-08-04 18:18:08 +000025500sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25501 version_type=freebsd-elf
25502 need_lib_prefix=no
25503 need_version=no
25504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
25505 soname_spec='${libname}${release}${shared_ext}$major'
25506 shlibpath_var=LD_LIBRARY_PATH
25507 hardcode_into_libs=yes
25508 if test "$with_gnu_ld" = yes; then
25509 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
25510 shlibpath_overrides_runpath=no
25511 else
25512 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
25513 shlibpath_overrides_runpath=yes
25514 case $host_os in
25515 sco3.2v5*)
25516 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
25517 ;;
25518 esac
25519 fi
25520 sys_lib_dlsearch_path_spec='/usr/lib'
25521 ;;
25522
John Criswell47fdd832003-07-14 16:52:07 +000025523uts4*)
25524 version_type=linux
25525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
25526 soname_spec='${libname}${release}${shared_ext}$major'
25527 shlibpath_var=LD_LIBRARY_PATH
25528 ;;
25529
25530*)
25531 dynamic_linker=no
25532 ;;
25533esac
Reid Spencera773bd52006-08-04 18:18:08 +000025534{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
25535echo "${ECHO_T}$dynamic_linker" >&6; }
John Criswell47fdd832003-07-14 16:52:07 +000025536test "$dynamic_linker" = no && can_build_shared=no
25537
Reid Spencera773bd52006-08-04 18:18:08 +000025538variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
25539if test "$GCC" = yes; then
25540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
25541fi
25542
25543{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
25544echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025545hardcode_action_GCJ=
25546if test -n "$hardcode_libdir_flag_spec_GCJ" || \
25547 test -n "$runpath_var_GCJ" || \
25548 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
25549
25550 # We can hardcode non-existant directories.
25551 if test "$hardcode_direct_GCJ" != no &&
25552 # If the only mechanism to avoid hardcoding is shlibpath_var, we
25553 # have to relink, otherwise we might link with an installed library
25554 # when we should be linking with a yet-to-be-installed one
25555 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
25556 test "$hardcode_minus_L_GCJ" != no; then
25557 # Linking always hardcodes the temporary library directory.
25558 hardcode_action_GCJ=relink
25559 else
25560 # We can link without hardcoding, and we can hardcode nonexisting dirs.
25561 hardcode_action_GCJ=immediate
25562 fi
25563else
25564 # We cannot hardcode anything, or else we can only hardcode existing
25565 # directories.
25566 hardcode_action_GCJ=unsupported
25567fi
Reid Spencera773bd52006-08-04 18:18:08 +000025568{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
25569echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025570
25571if test "$hardcode_action_GCJ" = relink; then
25572 # Fast installation is not supported
25573 enable_fast_install=no
25574elif test "$shlibpath_overrides_runpath" = yes ||
25575 test "$enable_shared" = no; then
25576 # Fast installation is not necessary
25577 enable_fast_install=needless
25578fi
25579
John Criswell47fdd832003-07-14 16:52:07 +000025580
25581# The else clause should only fire when bootstrapping the
25582# libtool distribution, otherwise you forgot to ship ltmain.sh
25583# with your package, and you will get complaints that there are
25584# no rules to generate ltmain.sh.
25585if test -f "$ltmain"; then
25586 # See if we are running on zsh, and set the options which allow our commands through
25587 # without removal of \ escapes.
25588 if test -n "${ZSH_VERSION+set}" ; then
25589 setopt NO_GLOB_SUBST
25590 fi
25591 # Now quote all the things that may contain metacharacters while being
25592 # careful not to overquote the AC_SUBSTed values. We take copies of the
25593 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000025594 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 +000025595 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000025596 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25597 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25598 deplibs_check_method reload_flag reload_cmds need_locks \
25599 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25600 lt_cv_sys_global_symbol_to_c_name_address \
25601 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25602 old_postinstall_cmds old_postuninstall_cmds \
25603 compiler_GCJ \
25604 CC_GCJ \
25605 LD_GCJ \
25606 lt_prog_compiler_wl_GCJ \
25607 lt_prog_compiler_pic_GCJ \
25608 lt_prog_compiler_static_GCJ \
25609 lt_prog_compiler_no_builtin_flag_GCJ \
25610 export_dynamic_flag_spec_GCJ \
25611 thread_safe_flag_spec_GCJ \
25612 whole_archive_flag_spec_GCJ \
25613 enable_shared_with_static_runtimes_GCJ \
25614 old_archive_cmds_GCJ \
25615 old_archive_from_new_cmds_GCJ \
25616 predep_objects_GCJ \
25617 postdep_objects_GCJ \
25618 predeps_GCJ \
25619 postdeps_GCJ \
25620 compiler_lib_search_path_GCJ \
25621 archive_cmds_GCJ \
25622 archive_expsym_cmds_GCJ \
25623 postinstall_cmds_GCJ \
25624 postuninstall_cmds_GCJ \
25625 old_archive_from_expsyms_cmds_GCJ \
25626 allow_undefined_flag_GCJ \
25627 no_undefined_flag_GCJ \
25628 export_symbols_cmds_GCJ \
25629 hardcode_libdir_flag_spec_GCJ \
25630 hardcode_libdir_flag_spec_ld_GCJ \
25631 hardcode_libdir_separator_GCJ \
25632 hardcode_automatic_GCJ \
25633 module_cmds_GCJ \
25634 module_expsym_cmds_GCJ \
25635 lt_cv_prog_compiler_c_o_GCJ \
25636 exclude_expsyms_GCJ \
25637 include_expsyms_GCJ; do
25638
25639 case $var in
25640 old_archive_cmds_GCJ | \
25641 old_archive_from_new_cmds_GCJ | \
25642 archive_cmds_GCJ | \
25643 archive_expsym_cmds_GCJ | \
25644 module_cmds_GCJ | \
25645 module_expsym_cmds_GCJ | \
25646 old_archive_from_expsyms_cmds_GCJ | \
25647 export_symbols_cmds_GCJ | \
25648 extract_expsyms_cmds | reload_cmds | finish_cmds | \
25649 postinstall_cmds | postuninstall_cmds | \
25650 old_postinstall_cmds | old_postuninstall_cmds | \
25651 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25652 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653 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 +000025654 ;;
25655 *)
25656 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25657 ;;
25658 esac
25659 done
25660
25661 case $lt_echo in
25662 *'\$0 --fallback-echo"')
25663 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25664 ;;
25665 esac
25666
25667cfgfile="$ofile"
25668
25669 cat <<__EOF__ >> "$cfgfile"
25670# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25671
25672# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25673
25674# Shell to use when invoking shell scripts.
25675SHELL=$lt_SHELL
25676
25677# Whether or not to build shared libraries.
25678build_libtool_libs=$enable_shared
25679
25680# Whether or not to build static libraries.
25681build_old_libs=$enable_static
25682
25683# Whether or not to add -lc for building shared libraries.
25684build_libtool_need_lc=$archive_cmds_need_lc_GCJ
25685
25686# Whether or not to disallow shared libs when runtime libs are static
25687allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
25688
25689# Whether or not to optimize for fast installation.
25690fast_install=$enable_fast_install
25691
25692# The host system.
25693host_alias=$host_alias
25694host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000025695host_os=$host_os
25696
25697# The build system.
25698build_alias=$build_alias
25699build=$build
25700build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000025701
25702# An echo program that does not interpret backslashes.
25703echo=$lt_echo
25704
25705# The archiver.
25706AR=$lt_AR
25707AR_FLAGS=$lt_AR_FLAGS
25708
25709# A C compiler.
25710LTCC=$lt_LTCC
25711
Reid Spencera773bd52006-08-04 18:18:08 +000025712# LTCC compiler flags.
25713LTCFLAGS=$lt_LTCFLAGS
25714
John Criswell47fdd832003-07-14 16:52:07 +000025715# A language-specific compiler.
25716CC=$lt_compiler_GCJ
25717
25718# Is the compiler the GNU C compiler?
25719with_gcc=$GCC_GCJ
25720
25721# An ERE matcher.
25722EGREP=$lt_EGREP
25723
25724# The linker used to build libraries.
25725LD=$lt_LD_GCJ
25726
25727# Whether we need hard or soft links.
25728LN_S=$lt_LN_S
25729
25730# A BSD-compatible nm program.
25731NM=$lt_NM
25732
25733# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000025734STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000025735
25736# Used to examine libraries when file_magic_cmd begins "file"
25737MAGIC_CMD=$MAGIC_CMD
25738
25739# Used on cygwin: DLL creation program.
25740DLLTOOL="$DLLTOOL"
25741
25742# Used on cygwin: object dumper.
25743OBJDUMP="$OBJDUMP"
25744
25745# Used on cygwin: assembler.
25746AS="$AS"
25747
25748# The name of the directory that contains temporary libtool files.
25749objdir=$objdir
25750
25751# How to create reloadable object files.
25752reload_flag=$lt_reload_flag
25753reload_cmds=$lt_reload_cmds
25754
25755# How to pass a linker flag through the compiler.
25756wl=$lt_lt_prog_compiler_wl_GCJ
25757
25758# Object file suffix (normally "o").
25759objext="$ac_objext"
25760
25761# Old archive suffix (normally "a").
25762libext="$libext"
25763
25764# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000025765shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000025766
25767# Executable file suffix (normally "").
25768exeext="$exeext"
25769
25770# Additional compiler flags for building library objects.
25771pic_flag=$lt_lt_prog_compiler_pic_GCJ
25772pic_mode=$pic_mode
25773
25774# What is the maximum length of a command?
25775max_cmd_len=$lt_cv_sys_max_cmd_len
25776
25777# Does compiler simultaneously support -c and -o options?
25778compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
25779
Reid Spencera773bd52006-08-04 18:18:08 +000025780# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000025781need_locks=$lt_need_locks
25782
25783# Do we need the lib prefix for modules?
25784need_lib_prefix=$need_lib_prefix
25785
25786# Do we need a version for libraries?
25787need_version=$need_version
25788
25789# Whether dlopen is supported.
25790dlopen_support=$enable_dlopen
25791
25792# Whether dlopen of programs is supported.
25793dlopen_self=$enable_dlopen_self
25794
25795# Whether dlopen of statically linked programs is supported.
25796dlopen_self_static=$enable_dlopen_self_static
25797
25798# Compiler flag to prevent dynamic linking.
25799link_static_flag=$lt_lt_prog_compiler_static_GCJ
25800
25801# Compiler flag to turn off builtin functions.
25802no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
25803
25804# Compiler flag to allow reflexive dlopens.
25805export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
25806
25807# Compiler flag to generate shared objects directly from archives.
25808whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
25809
25810# Compiler flag to generate thread-safe objects.
25811thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
25812
25813# Library versioning type.
25814version_type=$version_type
25815
25816# Format of library name prefix.
25817libname_spec=$lt_libname_spec
25818
25819# List of archive names. First name is the real one, the rest are links.
25820# The last name is the one that the linker finds with -lNAME.
25821library_names_spec=$lt_library_names_spec
25822
25823# The coded name of the library, if different from the real name.
25824soname_spec=$lt_soname_spec
25825
25826# Commands used to build and install an old-style archive.
25827RANLIB=$lt_RANLIB
25828old_archive_cmds=$lt_old_archive_cmds_GCJ
25829old_postinstall_cmds=$lt_old_postinstall_cmds
25830old_postuninstall_cmds=$lt_old_postuninstall_cmds
25831
25832# Create an old-style archive from a shared archive.
25833old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
25834
25835# Create a temporary old-style archive to link instead of a shared archive.
25836old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
25837
25838# Commands used to build and install a shared archive.
25839archive_cmds=$lt_archive_cmds_GCJ
25840archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
25841postinstall_cmds=$lt_postinstall_cmds
25842postuninstall_cmds=$lt_postuninstall_cmds
25843
25844# Commands used to build a loadable module (assumed same as above if empty)
25845module_cmds=$lt_module_cmds_GCJ
25846module_expsym_cmds=$lt_module_expsym_cmds_GCJ
25847
25848# Commands to strip libraries.
25849old_striplib=$lt_old_striplib
25850striplib=$lt_striplib
25851
25852# Dependencies to place before the objects being linked to create a
25853# shared library.
25854predep_objects=$lt_predep_objects_GCJ
25855
25856# Dependencies to place after the objects being linked to create a
25857# shared library.
25858postdep_objects=$lt_postdep_objects_GCJ
25859
25860# Dependencies to place before the objects being linked to create a
25861# shared library.
25862predeps=$lt_predeps_GCJ
25863
25864# Dependencies to place after the objects being linked to create a
25865# shared library.
25866postdeps=$lt_postdeps_GCJ
25867
25868# The library search path used internally by the compiler when linking
25869# a shared library.
25870compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
25871
25872# Method to check whether dependent libraries are shared objects.
25873deplibs_check_method=$lt_deplibs_check_method
25874
25875# Command to use when deplibs_check_method == file_magic.
25876file_magic_cmd=$lt_file_magic_cmd
25877
25878# Flag that allows shared libraries with undefined symbols to be built.
25879allow_undefined_flag=$lt_allow_undefined_flag_GCJ
25880
25881# Flag that forces no undefined symbols.
25882no_undefined_flag=$lt_no_undefined_flag_GCJ
25883
25884# Commands used to finish a libtool library installation in a directory.
25885finish_cmds=$lt_finish_cmds
25886
25887# Same as above, but a single script fragment to be evaled but not shown.
25888finish_eval=$lt_finish_eval
25889
25890# Take the output of nm and produce a listing of raw symbols and C names.
25891global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25892
25893# Transform the output of nm in a proper C declaration
25894global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25895
25896# Transform the output of nm in a C name address pair
25897global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25898
25899# This is the shared library runtime path variable.
25900runpath_var=$runpath_var
25901
25902# This is the shared library path variable.
25903shlibpath_var=$shlibpath_var
25904
25905# Is shlibpath searched before the hard-coded library search path?
25906shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25907
25908# How to hardcode a shared library path into an executable.
25909hardcode_action=$hardcode_action_GCJ
25910
25911# Whether we should hardcode library paths into libraries.
25912hardcode_into_libs=$hardcode_into_libs
25913
25914# Flag to hardcode \$libdir into a binary during linking.
25915# This must work even if \$libdir does not exist.
25916hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
25917
25918# If ld is used when linking, flag to hardcode \$libdir into
25919# a binary during linking. This must work even if \$libdir does
25920# not exist.
25921hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
25922
25923# Whether we need a single -rpath flag with a separated argument.
25924hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
25925
25926# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25927# resulting binary.
25928hardcode_direct=$hardcode_direct_GCJ
25929
25930# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25931# resulting binary.
25932hardcode_minus_L=$hardcode_minus_L_GCJ
25933
25934# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25935# the resulting binary.
25936hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
25937
25938# Set to yes if building a shared library automatically hardcodes DIR into the library
25939# and all subsequent libraries and executables linked against it.
25940hardcode_automatic=$hardcode_automatic_GCJ
25941
25942# Variables whose values should be saved in libtool wrapper scripts and
25943# restored at relink time.
25944variables_saved_for_relink="$variables_saved_for_relink"
25945
25946# Whether libtool must link a program against all its dependency libraries.
25947link_all_deplibs=$link_all_deplibs_GCJ
25948
25949# Compile-time system search path for libraries
25950sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25951
25952# Run-time system search path for libraries
25953sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25954
25955# Fix the shell variable \$srcfile for the compiler.
25956fix_srcfile_path="$fix_srcfile_path_GCJ"
25957
25958# Set to yes if exported symbols are required.
25959always_export_symbols=$always_export_symbols_GCJ
25960
25961# The commands to list exported symbols.
25962export_symbols_cmds=$lt_export_symbols_cmds_GCJ
25963
25964# The commands to extract the exported symbol list from a shared archive.
25965extract_expsyms_cmds=$lt_extract_expsyms_cmds
25966
25967# Symbols that should not be listed in the preloaded symbols.
25968exclude_expsyms=$lt_exclude_expsyms_GCJ
25969
25970# Symbols that must always be exported.
25971include_expsyms=$lt_include_expsyms_GCJ
25972
25973# ### END LIBTOOL TAG CONFIG: $tagname
25974
25975__EOF__
25976
25977
25978else
25979 # If there is no Makefile yet, we rely on a make rule to execute
25980 # `config.status --recheck' to rerun these tests and create the
25981 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025982 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25983 if test -f "$ltmain_in"; then
25984 test -f Makefile && make "$ltmain"
25985 fi
John Criswell47fdd832003-07-14 16:52:07 +000025986fi
25987
25988
25989ac_ext=c
25990ac_cpp='$CPP $CPPFLAGS'
25991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25993ac_compiler_gnu=$ac_cv_c_compiler_gnu
25994
25995CC="$lt_save_CC"
25996
25997 else
25998 tagname=""
25999 fi
26000 ;;
26001
26002 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000026003 ac_ext=c
26004ac_cpp='$CPP $CPPFLAGS'
26005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26007ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000026008
26009
26010# Source file extension for RC test sources.
26011ac_ext=rc
26012
26013# Object file extension for compiled RC test sources.
26014objext=o
26015objext_RC=$objext
26016
26017# Code to be used in simple compile tests
26018lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
26019
26020# Code to be used in simple link tests
26021lt_simple_link_test_code="$lt_simple_compile_test_code"
26022
26023# ltmain only uses $CC for tagged configurations so make sure $CC is set.
26024
26025# If no C compiler was specified, use CC.
26026LTCC=${LTCC-"$CC"}
26027
Reid Spencera773bd52006-08-04 18:18:08 +000026028# If no C compiler flags were specified, use CFLAGS.
26029LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
26030
John Criswell47fdd832003-07-14 16:52:07 +000026031# Allow CC to be a program name with arguments.
26032compiler=$CC
26033
26034
Reid Spencera773bd52006-08-04 18:18:08 +000026035# save warnings/boilerplate of simple test code
26036ac_outfile=conftest.$ac_objext
26037printf "$lt_simple_compile_test_code" >conftest.$ac_ext
26038eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26039_lt_compiler_boilerplate=`cat conftest.err`
26040$rm conftest*
26041
26042ac_outfile=conftest.$ac_objext
26043printf "$lt_simple_link_test_code" >conftest.$ac_ext
26044eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
26045_lt_linker_boilerplate=`cat conftest.err`
26046$rm conftest*
26047
26048
John Criswell47fdd832003-07-14 16:52:07 +000026049# Allow CC to be a program name with arguments.
26050lt_save_CC="$CC"
26051CC=${RC-"windres"}
26052compiler=$CC
26053compiler_RC=$CC
Reid Spencera773bd52006-08-04 18:18:08 +000026054for cc_temp in $compiler""; do
26055 case $cc_temp in
26056 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
26057 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
26058 \-*) ;;
26059 *) break;;
26060 esac
26061done
26062cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
26063
John Criswell47fdd832003-07-14 16:52:07 +000026064lt_cv_prog_compiler_c_o_RC=yes
26065
26066# The else clause should only fire when bootstrapping the
26067# libtool distribution, otherwise you forgot to ship ltmain.sh
26068# with your package, and you will get complaints that there are
26069# no rules to generate ltmain.sh.
26070if test -f "$ltmain"; then
26071 # See if we are running on zsh, and set the options which allow our commands through
26072 # without removal of \ escapes.
26073 if test -n "${ZSH_VERSION+set}" ; then
26074 setopt NO_GLOB_SUBST
26075 fi
26076 # Now quote all the things that may contain metacharacters while being
26077 # careful not to overquote the AC_SUBSTed values. We take copies of the
26078 # variables and quote the copies for generation of the libtool script.
Reid Spencera773bd52006-08-04 18:18:08 +000026079 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 +000026080 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000026081 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
26082 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
26083 deplibs_check_method reload_flag reload_cmds need_locks \
26084 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
26085 lt_cv_sys_global_symbol_to_c_name_address \
26086 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
26087 old_postinstall_cmds old_postuninstall_cmds \
26088 compiler_RC \
26089 CC_RC \
26090 LD_RC \
26091 lt_prog_compiler_wl_RC \
26092 lt_prog_compiler_pic_RC \
26093 lt_prog_compiler_static_RC \
26094 lt_prog_compiler_no_builtin_flag_RC \
26095 export_dynamic_flag_spec_RC \
26096 thread_safe_flag_spec_RC \
26097 whole_archive_flag_spec_RC \
26098 enable_shared_with_static_runtimes_RC \
26099 old_archive_cmds_RC \
26100 old_archive_from_new_cmds_RC \
26101 predep_objects_RC \
26102 postdep_objects_RC \
26103 predeps_RC \
26104 postdeps_RC \
26105 compiler_lib_search_path_RC \
26106 archive_cmds_RC \
26107 archive_expsym_cmds_RC \
26108 postinstall_cmds_RC \
26109 postuninstall_cmds_RC \
26110 old_archive_from_expsyms_cmds_RC \
26111 allow_undefined_flag_RC \
26112 no_undefined_flag_RC \
26113 export_symbols_cmds_RC \
26114 hardcode_libdir_flag_spec_RC \
26115 hardcode_libdir_flag_spec_ld_RC \
26116 hardcode_libdir_separator_RC \
26117 hardcode_automatic_RC \
26118 module_cmds_RC \
26119 module_expsym_cmds_RC \
26120 lt_cv_prog_compiler_c_o_RC \
26121 exclude_expsyms_RC \
26122 include_expsyms_RC; do
26123
26124 case $var in
26125 old_archive_cmds_RC | \
26126 old_archive_from_new_cmds_RC | \
26127 archive_cmds_RC | \
26128 archive_expsym_cmds_RC | \
26129 module_cmds_RC | \
26130 module_expsym_cmds_RC | \
26131 old_archive_from_expsyms_cmds_RC | \
26132 export_symbols_cmds_RC | \
26133 extract_expsyms_cmds | reload_cmds | finish_cmds | \
26134 postinstall_cmds | postuninstall_cmds | \
26135 old_postinstall_cmds | old_postuninstall_cmds | \
26136 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
26137 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026138 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 +000026139 ;;
26140 *)
26141 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
26142 ;;
26143 esac
26144 done
26145
26146 case $lt_echo in
26147 *'\$0 --fallback-echo"')
26148 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
26149 ;;
26150 esac
26151
26152cfgfile="$ofile"
26153
26154 cat <<__EOF__ >> "$cfgfile"
26155# ### BEGIN LIBTOOL TAG CONFIG: $tagname
26156
26157# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26158
26159# Shell to use when invoking shell scripts.
26160SHELL=$lt_SHELL
26161
26162# Whether or not to build shared libraries.
26163build_libtool_libs=$enable_shared
26164
26165# Whether or not to build static libraries.
26166build_old_libs=$enable_static
26167
26168# Whether or not to add -lc for building shared libraries.
26169build_libtool_need_lc=$archive_cmds_need_lc_RC
26170
26171# Whether or not to disallow shared libs when runtime libs are static
26172allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
26173
26174# Whether or not to optimize for fast installation.
26175fast_install=$enable_fast_install
26176
26177# The host system.
26178host_alias=$host_alias
26179host=$host
Reid Spencera773bd52006-08-04 18:18:08 +000026180host_os=$host_os
26181
26182# The build system.
26183build_alias=$build_alias
26184build=$build
26185build_os=$build_os
John Criswell47fdd832003-07-14 16:52:07 +000026186
26187# An echo program that does not interpret backslashes.
26188echo=$lt_echo
26189
26190# The archiver.
26191AR=$lt_AR
26192AR_FLAGS=$lt_AR_FLAGS
26193
26194# A C compiler.
26195LTCC=$lt_LTCC
26196
Reid Spencera773bd52006-08-04 18:18:08 +000026197# LTCC compiler flags.
26198LTCFLAGS=$lt_LTCFLAGS
26199
John Criswell47fdd832003-07-14 16:52:07 +000026200# A language-specific compiler.
26201CC=$lt_compiler_RC
26202
26203# Is the compiler the GNU C compiler?
26204with_gcc=$GCC_RC
26205
26206# An ERE matcher.
26207EGREP=$lt_EGREP
26208
26209# The linker used to build libraries.
26210LD=$lt_LD_RC
26211
26212# Whether we need hard or soft links.
26213LN_S=$lt_LN_S
26214
26215# A BSD-compatible nm program.
26216NM=$lt_NM
26217
26218# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000026219STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000026220
26221# Used to examine libraries when file_magic_cmd begins "file"
26222MAGIC_CMD=$MAGIC_CMD
26223
26224# Used on cygwin: DLL creation program.
26225DLLTOOL="$DLLTOOL"
26226
26227# Used on cygwin: object dumper.
26228OBJDUMP="$OBJDUMP"
26229
26230# Used on cygwin: assembler.
26231AS="$AS"
26232
26233# The name of the directory that contains temporary libtool files.
26234objdir=$objdir
26235
26236# How to create reloadable object files.
26237reload_flag=$lt_reload_flag
26238reload_cmds=$lt_reload_cmds
26239
26240# How to pass a linker flag through the compiler.
26241wl=$lt_lt_prog_compiler_wl_RC
26242
26243# Object file suffix (normally "o").
26244objext="$ac_objext"
26245
26246# Old archive suffix (normally "a").
26247libext="$libext"
26248
26249# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000026250shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000026251
26252# Executable file suffix (normally "").
26253exeext="$exeext"
26254
26255# Additional compiler flags for building library objects.
26256pic_flag=$lt_lt_prog_compiler_pic_RC
26257pic_mode=$pic_mode
26258
26259# What is the maximum length of a command?
26260max_cmd_len=$lt_cv_sys_max_cmd_len
26261
26262# Does compiler simultaneously support -c and -o options?
26263compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
26264
Reid Spencera773bd52006-08-04 18:18:08 +000026265# Must we lock files when doing compilation?
John Criswell47fdd832003-07-14 16:52:07 +000026266need_locks=$lt_need_locks
26267
26268# Do we need the lib prefix for modules?
26269need_lib_prefix=$need_lib_prefix
26270
26271# Do we need a version for libraries?
26272need_version=$need_version
26273
26274# Whether dlopen is supported.
26275dlopen_support=$enable_dlopen
26276
26277# Whether dlopen of programs is supported.
26278dlopen_self=$enable_dlopen_self
26279
26280# Whether dlopen of statically linked programs is supported.
26281dlopen_self_static=$enable_dlopen_self_static
26282
26283# Compiler flag to prevent dynamic linking.
26284link_static_flag=$lt_lt_prog_compiler_static_RC
26285
26286# Compiler flag to turn off builtin functions.
26287no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
26288
26289# Compiler flag to allow reflexive dlopens.
26290export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
26291
26292# Compiler flag to generate shared objects directly from archives.
26293whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
26294
26295# Compiler flag to generate thread-safe objects.
26296thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
26297
26298# Library versioning type.
26299version_type=$version_type
26300
26301# Format of library name prefix.
26302libname_spec=$lt_libname_spec
26303
26304# List of archive names. First name is the real one, the rest are links.
26305# The last name is the one that the linker finds with -lNAME.
26306library_names_spec=$lt_library_names_spec
26307
26308# The coded name of the library, if different from the real name.
26309soname_spec=$lt_soname_spec
26310
26311# Commands used to build and install an old-style archive.
26312RANLIB=$lt_RANLIB
26313old_archive_cmds=$lt_old_archive_cmds_RC
26314old_postinstall_cmds=$lt_old_postinstall_cmds
26315old_postuninstall_cmds=$lt_old_postuninstall_cmds
26316
26317# Create an old-style archive from a shared archive.
26318old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
26319
26320# Create a temporary old-style archive to link instead of a shared archive.
26321old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
26322
26323# Commands used to build and install a shared archive.
26324archive_cmds=$lt_archive_cmds_RC
26325archive_expsym_cmds=$lt_archive_expsym_cmds_RC
26326postinstall_cmds=$lt_postinstall_cmds
26327postuninstall_cmds=$lt_postuninstall_cmds
26328
26329# Commands used to build a loadable module (assumed same as above if empty)
26330module_cmds=$lt_module_cmds_RC
26331module_expsym_cmds=$lt_module_expsym_cmds_RC
26332
26333# Commands to strip libraries.
26334old_striplib=$lt_old_striplib
26335striplib=$lt_striplib
26336
26337# Dependencies to place before the objects being linked to create a
26338# shared library.
26339predep_objects=$lt_predep_objects_RC
26340
26341# Dependencies to place after the objects being linked to create a
26342# shared library.
26343postdep_objects=$lt_postdep_objects_RC
26344
26345# Dependencies to place before the objects being linked to create a
26346# shared library.
26347predeps=$lt_predeps_RC
26348
26349# Dependencies to place after the objects being linked to create a
26350# shared library.
26351postdeps=$lt_postdeps_RC
26352
26353# The library search path used internally by the compiler when linking
26354# a shared library.
26355compiler_lib_search_path=$lt_compiler_lib_search_path_RC
26356
26357# Method to check whether dependent libraries are shared objects.
26358deplibs_check_method=$lt_deplibs_check_method
26359
26360# Command to use when deplibs_check_method == file_magic.
26361file_magic_cmd=$lt_file_magic_cmd
26362
26363# Flag that allows shared libraries with undefined symbols to be built.
26364allow_undefined_flag=$lt_allow_undefined_flag_RC
26365
26366# Flag that forces no undefined symbols.
26367no_undefined_flag=$lt_no_undefined_flag_RC
26368
26369# Commands used to finish a libtool library installation in a directory.
26370finish_cmds=$lt_finish_cmds
26371
26372# Same as above, but a single script fragment to be evaled but not shown.
26373finish_eval=$lt_finish_eval
26374
26375# Take the output of nm and produce a listing of raw symbols and C names.
26376global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26377
26378# Transform the output of nm in a proper C declaration
26379global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26380
26381# Transform the output of nm in a C name address pair
26382global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26383
26384# This is the shared library runtime path variable.
26385runpath_var=$runpath_var
26386
26387# This is the shared library path variable.
26388shlibpath_var=$shlibpath_var
26389
26390# Is shlibpath searched before the hard-coded library search path?
26391shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26392
26393# How to hardcode a shared library path into an executable.
26394hardcode_action=$hardcode_action_RC
26395
26396# Whether we should hardcode library paths into libraries.
26397hardcode_into_libs=$hardcode_into_libs
26398
26399# Flag to hardcode \$libdir into a binary during linking.
26400# This must work even if \$libdir does not exist.
26401hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
26402
26403# If ld is used when linking, flag to hardcode \$libdir into
26404# a binary during linking. This must work even if \$libdir does
26405# not exist.
26406hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
26407
26408# Whether we need a single -rpath flag with a separated argument.
26409hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
26410
26411# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
26412# resulting binary.
26413hardcode_direct=$hardcode_direct_RC
26414
26415# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
26416# resulting binary.
26417hardcode_minus_L=$hardcode_minus_L_RC
26418
26419# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
26420# the resulting binary.
26421hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
26422
26423# Set to yes if building a shared library automatically hardcodes DIR into the library
26424# and all subsequent libraries and executables linked against it.
26425hardcode_automatic=$hardcode_automatic_RC
26426
26427# Variables whose values should be saved in libtool wrapper scripts and
26428# restored at relink time.
26429variables_saved_for_relink="$variables_saved_for_relink"
26430
26431# Whether libtool must link a program against all its dependency libraries.
26432link_all_deplibs=$link_all_deplibs_RC
26433
26434# Compile-time system search path for libraries
26435sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26436
26437# Run-time system search path for libraries
26438sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26439
26440# Fix the shell variable \$srcfile for the compiler.
26441fix_srcfile_path="$fix_srcfile_path_RC"
26442
26443# Set to yes if exported symbols are required.
26444always_export_symbols=$always_export_symbols_RC
26445
26446# The commands to list exported symbols.
26447export_symbols_cmds=$lt_export_symbols_cmds_RC
26448
26449# The commands to extract the exported symbol list from a shared archive.
26450extract_expsyms_cmds=$lt_extract_expsyms_cmds
26451
26452# Symbols that should not be listed in the preloaded symbols.
26453exclude_expsyms=$lt_exclude_expsyms_RC
26454
26455# Symbols that must always be exported.
26456include_expsyms=$lt_include_expsyms_RC
26457
26458# ### END LIBTOOL TAG CONFIG: $tagname
26459
26460__EOF__
26461
26462
26463else
26464 # If there is no Makefile yet, we rely on a make rule to execute
26465 # `config.status --recheck' to rerun these tests and create the
26466 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026467 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
26468 if test -f "$ltmain_in"; then
26469 test -f Makefile && make "$ltmain"
26470 fi
John Criswell47fdd832003-07-14 16:52:07 +000026471fi
26472
26473
26474ac_ext=c
26475ac_cpp='$CPP $CPPFLAGS'
26476ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26477ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26478ac_compiler_gnu=$ac_cv_c_compiler_gnu
26479
26480CC="$lt_save_CC"
26481
26482 ;;
26483
26484 *)
26485 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
26486echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
26487 { (exit 1); exit 1; }; }
26488 ;;
26489 esac
26490
26491 # Append the new tag name to the list of available tags.
26492 if test -n "$tagname" ; then
26493 available_tags="$available_tags $tagname"
26494 fi
26495 fi
26496 done
26497 IFS="$lt_save_ifs"
26498
26499 # Now substitute the updated list of available tags.
26500 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
26501 mv "${ofile}T" "$ofile"
26502 chmod +x "$ofile"
26503 else
26504 rm -f "${ofile}T"
26505 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
26506echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
26507 { (exit 1); exit 1; }; }
26508 fi
26509fi
John Criswell7a73b802003-06-30 21:59:07 +000026510
26511
26512
26513# This can be used to rebuild libtool when needed
26514LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
26515
26516# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026517LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000026518
26519# Prevent multiple expansion
26520
26521
26522
John Criswell47fdd832003-07-14 16:52:07 +000026523
26524
26525
26526
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026540
Reid Spencer582a23c2004-12-29 07:07:57 +000026541if test "$lt_cv_dlopen_self" = "yes" ; then
26542
26543cat >>confdefs.h <<\_ACEOF
26544#define CAN_DLOPEN_SELF 1
26545_ACEOF
26546
26547fi
26548
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026549etags_version=`$ETAGS --version 2>&1`
26550case "$etags_version" in
26551 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
26552 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
26553 *) ETAGSFLAGS="" ;;
26554esac
26555ETAGSFLAGS=$ETAGSFLAGS
26556
26557
Reid Spencer7931a782004-12-27 06:15:02 +000026558if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000026559 LLVMGCC="llvm-gcc${EXEEXT}"
26560 LLVMGXX="llvm-g++${EXEEXT}"
26561 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
26562set dummy $LLVMGCC; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026563{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026565if test "${ac_cv_path_LLVMGCC+set}" = set; then
26566 echo $ECHO_N "(cached) $ECHO_C" >&6
26567else
26568 case $LLVMGCC in
26569 [\\/]* | ?:[\\/]*)
26570 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
26571 ;;
26572 *)
26573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26574for as_dir in $PATH
26575do
26576 IFS=$as_save_IFS
26577 test -z "$as_dir" && as_dir=.
26578 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026579 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 +000026580 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
26581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26582 break 2
26583 fi
26584done
26585done
Reid Spencera773bd52006-08-04 18:18:08 +000026586IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026587
Reid Spencer59473af2004-12-25 07:31:29 +000026588 ;;
26589esac
26590fi
26591LLVMGCC=$ac_cv_path_LLVMGCC
Reid Spencer59473af2004-12-25 07:31:29 +000026592if test -n "$LLVMGCC"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026593 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
26594echo "${ECHO_T}$LLVMGCC" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026595else
Reid Spencera773bd52006-08-04 18:18:08 +000026596 { echo "$as_me:$LINENO: result: no" >&5
26597echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026598fi
26599
Reid Spencera773bd52006-08-04 18:18:08 +000026600
Reid Spencerc84492c2005-06-02 22:34:49 +000026601 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
26602set dummy $LLVMGXX; ac_word=$2
Reid Spencera773bd52006-08-04 18:18:08 +000026603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
26604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026605if test "${ac_cv_path_LLVMGXX+set}" = set; then
26606 echo $ECHO_N "(cached) $ECHO_C" >&6
26607else
26608 case $LLVMGXX in
26609 [\\/]* | ?:[\\/]*)
26610 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
26611 ;;
26612 *)
26613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26614for as_dir in $PATH
26615do
26616 IFS=$as_save_IFS
26617 test -z "$as_dir" && as_dir=.
26618 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencera773bd52006-08-04 18:18:08 +000026619 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 +000026620 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
26621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26622 break 2
26623 fi
26624done
26625done
Reid Spencera773bd52006-08-04 18:18:08 +000026626IFS=$as_save_IFS
Reid Spencer59473af2004-12-25 07:31:29 +000026627
Reid Spencer59473af2004-12-25 07:31:29 +000026628 ;;
26629esac
26630fi
26631LLVMGXX=$ac_cv_path_LLVMGXX
Reid Spencer59473af2004-12-25 07:31:29 +000026632if test -n "$LLVMGXX"; then
Reid Spencera773bd52006-08-04 18:18:08 +000026633 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
26634echo "${ECHO_T}$LLVMGXX" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026635else
Reid Spencera773bd52006-08-04 18:18:08 +000026636 { echo "$as_me:$LINENO: result: no" >&5
26637echo "${ECHO_T}no" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000026638fi
26639
Reid Spencera773bd52006-08-04 18:18:08 +000026640
Reid Spencer59473af2004-12-25 07:31:29 +000026641else
Reid Spencerc84492c2005-06-02 22:34:49 +000026642 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
26643 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000026644 LLVMGCC=$LLVMGCC
26645
26646 LLVMGXX=$LLVMGXX
26647
26648fi
26649
Reid Spencera773bd52006-08-04 18:18:08 +000026650{ echo "$as_me:$LINENO: checking tool compatibility" >&5
26651echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026652
Reid Spencer86901802004-12-08 23:07:27 +000026653ICC=no
26654IXX=no
26655case $CC in
26656 icc*|icpc*)
26657 ICC=yes
26658 IXX=yes
26659 ;;
26660 *)
26661 ;;
26662esac
26663
Duraid Madina937c60a2006-02-15 07:57:42 +000026664if test "$GCC" != "yes" && test "$ICC" != "yes"
26665then
26666 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
26667echo "$as_me: error: gcc|icc required but not found" >&2;}
26668 { (exit 1); exit 1; }; }
26669fi
26670
26671if test "$GXX" != "yes" && test "$IXX" != "yes"
26672then
26673 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
26674echo "$as_me: error: g++|icc required but not found" >&2;}
26675 { (exit 1); exit 1; }; }
26676fi
26677
Reid Spencer86901802004-12-08 23:07:27 +000026678if test "$GCC" = "yes"
26679then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000026680 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000026681 if test "$gccmajor" -lt "3"
26682 then
26683 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026684echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
26685 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000026686 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026687fi
26688
26689if test -z "$llvm_cv_gnu_make_command"
26690then
26691 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
26692echo "$as_me: error: GNU Make required but not found" >&2;}
26693 { (exit 1); exit 1; }; }
26694fi
26695
Reid Spencera773bd52006-08-04 18:18:08 +000026696{ echo "$as_me:$LINENO: result: ok" >&5
26697echo "${ECHO_T}ok" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026698
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026699
John Criswell7a73b802003-06-30 21:59:07 +000026700
Reid Spencera773bd52006-08-04 18:18:08 +000026701{ echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
26702echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026703if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706 ac_check_lib_save_LIBS=$LIBS
26707LIBS="-lelf $LIBS"
26708cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026709/* confdefs.h. */
26710_ACEOF
26711cat confdefs.h >>conftest.$ac_ext
26712cat >>conftest.$ac_ext <<_ACEOF
26713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026714
Reid Spencera773bd52006-08-04 18:18:08 +000026715/* Override any GCC internal prototype to avoid an error.
26716 Use char because int might match the return type of a GCC
26717 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000026718#ifdef __cplusplus
26719extern "C"
26720#endif
John Criswell7a73b802003-06-30 21:59:07 +000026721char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026722int
26723main ()
26724{
Reid Spencera773bd52006-08-04 18:18:08 +000026725return elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000026726 ;
26727 return 0;
26728}
26729_ACEOF
26730rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026731if { (ac_try="$ac_link"
26732case "(($ac_try" in
26733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26734 *) ac_try_echo=$ac_try;;
26735esac
26736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26737 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026739 grep -v '^ *+' conftest.er1 >conftest.err
26740 rm -f conftest.er1
26741 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26743 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26745 { (case "(($ac_try" in
26746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26747 *) ac_try_echo=$ac_try;;
26748esac
26749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26750 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026755 { (case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26758esac
26759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000026761 ac_status=$?
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); }; }; then
26764 ac_cv_lib_elf_elf_begin=yes
26765else
26766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026767sed 's/^/| /' conftest.$ac_ext >&5
26768
Reid Spencera773bd52006-08-04 18:18:08 +000026769 ac_cv_lib_elf_elf_begin=no
John Criswell7a73b802003-06-30 21:59:07 +000026770fi
Reid Spencera773bd52006-08-04 18:18:08 +000026771
26772rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026773 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026774LIBS=$ac_check_lib_save_LIBS
26775fi
Reid Spencera773bd52006-08-04 18:18:08 +000026776{ echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
26777echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000026778if test $ac_cv_lib_elf_elf_begin = yes; then
26779 cat >>confdefs.h <<_ACEOF
26780#define HAVE_LIBELF 1
26781_ACEOF
26782
26783 LIBS="-lelf $LIBS"
26784
26785fi
26786
26787
Reid Spencera773bd52006-08-04 18:18:08 +000026788{ echo "$as_me:$LINENO: checking for sin in -lm" >&5
26789echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026790if test "${ac_cv_lib_m_sin+set}" = set; then
26791 echo $ECHO_N "(cached) $ECHO_C" >&6
26792else
26793 ac_check_lib_save_LIBS=$LIBS
26794LIBS="-lm $LIBS"
26795cat >conftest.$ac_ext <<_ACEOF
26796/* confdefs.h. */
26797_ACEOF
26798cat confdefs.h >>conftest.$ac_ext
26799cat >>conftest.$ac_ext <<_ACEOF
26800/* end confdefs.h. */
26801
Reid Spencera773bd52006-08-04 18:18:08 +000026802/* Override any GCC internal prototype to avoid an error.
26803 Use char because int might match the return type of a GCC
26804 builtin and then its argument prototype would still apply. */
Reid Spencer3484a992006-01-19 08:31:08 +000026805#ifdef __cplusplus
26806extern "C"
26807#endif
Reid Spencer3484a992006-01-19 08:31:08 +000026808char sin ();
26809int
26810main ()
26811{
Reid Spencera773bd52006-08-04 18:18:08 +000026812return sin ();
Reid Spencer3484a992006-01-19 08:31:08 +000026813 ;
26814 return 0;
26815}
26816_ACEOF
26817rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026818if { (ac_try="$ac_link"
26819case "(($ac_try" in
26820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821 *) ac_try_echo=$ac_try;;
26822esac
26823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824 (eval "$ac_link") 2>conftest.er1
Reid Spencer3484a992006-01-19 08:31:08 +000026825 ac_status=$?
26826 grep -v '^ *+' conftest.er1 >conftest.err
26827 rm -f conftest.er1
26828 cat conftest.err >&5
26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26832 { (case "(($ac_try" in
26833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26834 *) ac_try_echo=$ac_try;;
26835esac
26836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26837 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026838 ac_status=$?
26839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26840 (exit $ac_status); }; } &&
26841 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026842 { (case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26845esac
26846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_try") 2>&5
Reid Spencer3484a992006-01-19 08:31:08 +000026848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; }; then
26851 ac_cv_lib_m_sin=yes
26852else
26853 echo "$as_me: failed program was:" >&5
26854sed 's/^/| /' conftest.$ac_ext >&5
26855
Reid Spencera773bd52006-08-04 18:18:08 +000026856 ac_cv_lib_m_sin=no
Reid Spencer3484a992006-01-19 08:31:08 +000026857fi
Reid Spencera773bd52006-08-04 18:18:08 +000026858
26859rm -f core conftest.err conftest.$ac_objext \
Reid Spencer3484a992006-01-19 08:31:08 +000026860 conftest$ac_exeext conftest.$ac_ext
26861LIBS=$ac_check_lib_save_LIBS
26862fi
Reid Spencera773bd52006-08-04 18:18:08 +000026863{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
26864echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
Reid Spencer3484a992006-01-19 08:31:08 +000026865if test $ac_cv_lib_m_sin = yes; then
26866 cat >>confdefs.h <<_ACEOF
26867#define HAVE_LIBM 1
26868_ACEOF
26869
26870 LIBS="-lm $LIBS"
26871
26872fi
26873
Reid Spencer484fc8e2006-06-01 16:55:59 +000026874if test "$llvm_cv_os_type" == "MingW" ; then
26875
Reid Spencera773bd52006-08-04 18:18:08 +000026876{ echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
26877echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026878if test "${ac_cv_lib_imagehlp_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026879 echo $ECHO_N "(cached) $ECHO_C" >&6
26880else
26881 ac_check_lib_save_LIBS=$LIBS
26882LIBS="-limagehlp $LIBS"
26883cat >conftest.$ac_ext <<_ACEOF
26884/* confdefs.h. */
26885_ACEOF
26886cat confdefs.h >>conftest.$ac_ext
26887cat >>conftest.$ac_ext <<_ACEOF
26888/* end confdefs.h. */
26889
Reid Spencer48fdf912006-06-01 19:03:21 +000026890
Reid Spencer484fc8e2006-06-01 16:55:59 +000026891int
26892main ()
26893{
Reid Spencera773bd52006-08-04 18:18:08 +000026894return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026895 ;
26896 return 0;
26897}
26898_ACEOF
26899rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026900if { (ac_try="$ac_link"
26901case "(($ac_try" in
26902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26903 *) ac_try_echo=$ac_try;;
26904esac
26905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26906 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026907 ac_status=$?
26908 grep -v '^ *+' conftest.er1 >conftest.err
26909 rm -f conftest.er1
26910 cat conftest.err >&5
26911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26914 { (case "(($ac_try" in
26915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26916 *) ac_try_echo=$ac_try;;
26917esac
26918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26919 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026920 ac_status=$?
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); }; } &&
26923 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000026924 { (case "(($ac_try" in
26925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26926 *) ac_try_echo=$ac_try;;
26927esac
26928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26929 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000026930 ac_status=$?
26931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000026933 ac_cv_lib_imagehlp_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000026934else
26935 echo "$as_me: failed program was:" >&5
26936sed 's/^/| /' conftest.$ac_ext >&5
26937
Reid Spencera773bd52006-08-04 18:18:08 +000026938 ac_cv_lib_imagehlp_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000026939fi
Reid Spencera773bd52006-08-04 18:18:08 +000026940
26941rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000026942 conftest$ac_exeext conftest.$ac_ext
26943LIBS=$ac_check_lib_save_LIBS
26944fi
Reid Spencera773bd52006-08-04 18:18:08 +000026945{ echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
26946echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026947if test $ac_cv_lib_imagehlp_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026948 cat >>confdefs.h <<_ACEOF
26949#define HAVE_LIBIMAGEHLP 1
26950_ACEOF
26951
26952 LIBS="-limagehlp $LIBS"
26953
26954fi
26955
26956
Reid Spencera773bd52006-08-04 18:18:08 +000026957{ echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
26958echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000026959if test "${ac_cv_lib_psapi_main+set}" = set; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000026960 echo $ECHO_N "(cached) $ECHO_C" >&6
26961else
26962 ac_check_lib_save_LIBS=$LIBS
26963LIBS="-lpsapi $LIBS"
26964cat >conftest.$ac_ext <<_ACEOF
26965/* confdefs.h. */
26966_ACEOF
26967cat confdefs.h >>conftest.$ac_ext
26968cat >>conftest.$ac_ext <<_ACEOF
26969/* end confdefs.h. */
26970
Reid Spencer48fdf912006-06-01 19:03:21 +000026971
Reid Spencer484fc8e2006-06-01 16:55:59 +000026972int
26973main ()
26974{
Reid Spencera773bd52006-08-04 18:18:08 +000026975return main ();
Reid Spencer484fc8e2006-06-01 16:55:59 +000026976 ;
26977 return 0;
26978}
26979_ACEOF
26980rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000026981if { (ac_try="$ac_link"
26982case "(($ac_try" in
26983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26984 *) ac_try_echo=$ac_try;;
26985esac
26986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26987 (eval "$ac_link") 2>conftest.er1
Reid Spencer484fc8e2006-06-01 16:55:59 +000026988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000026994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26995 { (case "(($ac_try" in
26996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26997 *) ac_try_echo=$ac_try;;
26998esac
26999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27000 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027001 ac_status=$?
27002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27003 (exit $ac_status); }; } &&
27004 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027005 { (case "(($ac_try" in
27006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27007 *) ac_try_echo=$ac_try;;
27008esac
27009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27010 (eval "$ac_try") 2>&5
Reid Spencer484fc8e2006-06-01 16:55:59 +000027011 ac_status=$?
27012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); }; }; then
Reid Spencer48fdf912006-06-01 19:03:21 +000027014 ac_cv_lib_psapi_main=yes
Reid Spencer484fc8e2006-06-01 16:55:59 +000027015else
27016 echo "$as_me: failed program was:" >&5
27017sed 's/^/| /' conftest.$ac_ext >&5
27018
Reid Spencera773bd52006-08-04 18:18:08 +000027019 ac_cv_lib_psapi_main=no
Reid Spencer484fc8e2006-06-01 16:55:59 +000027020fi
Reid Spencera773bd52006-08-04 18:18:08 +000027021
27022rm -f core conftest.err conftest.$ac_objext \
Reid Spencer484fc8e2006-06-01 16:55:59 +000027023 conftest$ac_exeext conftest.$ac_ext
27024LIBS=$ac_check_lib_save_LIBS
27025fi
Reid Spencera773bd52006-08-04 18:18:08 +000027026{ echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
27027echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
Reid Spencer48fdf912006-06-01 19:03:21 +000027028if test $ac_cv_lib_psapi_main = yes; then
Reid Spencer484fc8e2006-06-01 16:55:59 +000027029 cat >>confdefs.h <<_ACEOF
27030#define HAVE_LIBPSAPI 1
27031_ACEOF
27032
27033 LIBS="-lpsapi $LIBS"
27034
27035fi
27036
27037fi
Reid Spencer22177fe2005-07-12 15:24:20 +000027038
Reid Spencera773bd52006-08-04 18:18:08 +000027039{ echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
27040echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6; }
Reid Spencer17795972004-11-18 09:47:37 +000027041if test "${ac_cv_search_lt_dlopen+set}" = set; then
27042 echo $ECHO_N "(cached) $ECHO_C" >&6
27043else
27044 ac_func_search_save_LIBS=$LIBS
Reid Spencer17795972004-11-18 09:47:37 +000027045cat >conftest.$ac_ext <<_ACEOF
27046/* confdefs.h. */
27047_ACEOF
27048cat confdefs.h >>conftest.$ac_ext
27049cat >>conftest.$ac_ext <<_ACEOF
27050/* end confdefs.h. */
27051
Reid Spencera773bd52006-08-04 18:18:08 +000027052/* Override any GCC internal prototype to avoid an error.
27053 Use char because int might match the return type of a GCC
27054 builtin and then its argument prototype would still apply. */
Reid Spencer17795972004-11-18 09:47:37 +000027055#ifdef __cplusplus
27056extern "C"
27057#endif
Reid Spencer17795972004-11-18 09:47:37 +000027058char lt_dlopen ();
27059int
27060main ()
27061{
Reid Spencera773bd52006-08-04 18:18:08 +000027062return lt_dlopen ();
Reid Spencer17795972004-11-18 09:47:37 +000027063 ;
27064 return 0;
27065}
27066_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027067for ac_lib in '' ltdl; do
27068 if test -z "$ac_lib"; then
27069 ac_res="none required"
27070 else
27071 ac_res=-l$ac_lib
Reid Spencer17795972004-11-18 09:47:37 +000027072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027073 fi
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075if { (ac_try="$ac_link"
27076case "(($ac_try" in
27077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078 *) ac_try_echo=$ac_try;;
27079esac
27080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081 (eval "$ac_link") 2>conftest.er1
Reid Spencer17795972004-11-18 09:47:37 +000027082 ac_status=$?
27083 grep -v '^ *+' conftest.er1 >conftest.err
27084 rm -f conftest.er1
27085 cat conftest.err >&5
27086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27089 { (case "(($ac_try" in
27090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091 *) ac_try_echo=$ac_try;;
27092esac
27093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027095 ac_status=$?
27096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27097 (exit $ac_status); }; } &&
27098 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027099 { (case "(($ac_try" in
27100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101 *) ac_try_echo=$ac_try;;
27102esac
27103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104 (eval "$ac_try") 2>&5
Reid Spencer17795972004-11-18 09:47:37 +000027105 ac_status=$?
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027108 ac_cv_search_lt_dlopen=$ac_res
Reid Spencer17795972004-11-18 09:47:37 +000027109else
27110 echo "$as_me: failed program was:" >&5
27111sed 's/^/| /' conftest.$ac_ext >&5
27112
Reid Spencera773bd52006-08-04 18:18:08 +000027113
Reid Spencer17795972004-11-18 09:47:37 +000027114fi
Reid Spencera773bd52006-08-04 18:18:08 +000027115
27116rm -f core conftest.err conftest.$ac_objext \
27117 conftest$ac_exeext
27118 if test "${ac_cv_search_lt_dlopen+set}" = set; then
27119 break
Reid Spencer17795972004-11-18 09:47:37 +000027120fi
Reid Spencera773bd52006-08-04 18:18:08 +000027121done
27122if test "${ac_cv_search_lt_dlopen+set}" = set; then
27123 :
27124else
27125 ac_cv_search_lt_dlopen=no
27126fi
27127rm conftest.$ac_ext
Reid Spencer17795972004-11-18 09:47:37 +000027128LIBS=$ac_func_search_save_LIBS
27129fi
Reid Spencera773bd52006-08-04 18:18:08 +000027130{ echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
27131echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6; }
27132ac_res=$ac_cv_search_lt_dlopen
27133if test "$ac_res" != no; then
27134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer17795972004-11-18 09:47:37 +000027135
27136cat >>confdefs.h <<\_ACEOF
27137#define HAVE_LT_DLOPEN 1
27138_ACEOF
27139
27140else
27141 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
27142 not be available" >&5
27143echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
27144 not be available" >&2;}
27145fi
27146
27147
Reid Spencera773bd52006-08-04 18:18:08 +000027148{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27149echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027150if test "${ac_cv_search_dlopen+set}" = set; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27152else
27153 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027154cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027155/* confdefs.h. */
27156_ACEOF
27157cat confdefs.h >>conftest.$ac_ext
27158cat >>conftest.$ac_ext <<_ACEOF
27159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027160
Reid Spencera773bd52006-08-04 18:18:08 +000027161/* Override any GCC internal prototype to avoid an error.
27162 Use char because int might match the return type of a GCC
27163 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027164#ifdef __cplusplus
27165extern "C"
27166#endif
John Criswell7a73b802003-06-30 21:59:07 +000027167char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027168int
27169main ()
27170{
Reid Spencera773bd52006-08-04 18:18:08 +000027171return dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000027172 ;
27173 return 0;
27174}
27175_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027176for ac_lib in '' dl; do
27177 if test -z "$ac_lib"; then
27178 ac_res="none required"
27179 else
27180 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027182 fi
27183 rm -f conftest.$ac_objext conftest$ac_exeext
27184if { (ac_try="$ac_link"
27185case "(($ac_try" in
27186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27187 *) ac_try_echo=$ac_try;;
27188esac
27189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27190 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027191 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027192 grep -v '^ *+' conftest.er1 >conftest.err
27193 rm -f conftest.er1
27194 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27196 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27198 { (case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27201esac
27202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027208 { (case "(($ac_try" in
27209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210 *) ac_try_echo=$ac_try;;
27211esac
27212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27213 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027217 ac_cv_search_dlopen=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027218else
27219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027220sed 's/^/| /' conftest.$ac_ext >&5
27221
Reid Spencera773bd52006-08-04 18:18:08 +000027222
John Criswell7a73b802003-06-30 21:59:07 +000027223fi
Reid Spencera773bd52006-08-04 18:18:08 +000027224
27225rm -f core conftest.err conftest.$ac_objext \
27226 conftest$ac_exeext
27227 if test "${ac_cv_search_dlopen+set}" = set; then
27228 break
John Criswell7a73b802003-06-30 21:59:07 +000027229fi
Reid Spencera773bd52006-08-04 18:18:08 +000027230done
27231if test "${ac_cv_search_dlopen+set}" = set; then
27232 :
27233else
27234 ac_cv_search_dlopen=no
27235fi
27236rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027237LIBS=$ac_func_search_save_LIBS
27238fi
Reid Spencera773bd52006-08-04 18:18:08 +000027239{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27240echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27241ac_res=$ac_cv_search_dlopen
27242if test "$ac_res" != no; then
27243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027244
27245cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000027246#define HAVE_DLOPEN 1
27247_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027248
27249else
Brian Gaekec45be042003-10-07 06:01:34 +000027250 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
27251echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000027252fi
27253
27254
Reid Spencera773bd52006-08-04 18:18:08 +000027255{ echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
27256echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027257if test "${ac_cv_search_mallinfo+set}" = set; then
27258 echo $ECHO_N "(cached) $ECHO_C" >&6
27259else
27260 ac_func_search_save_LIBS=$LIBS
John Criswell7a73b802003-06-30 21:59:07 +000027261cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027262/* confdefs.h. */
27263_ACEOF
27264cat confdefs.h >>conftest.$ac_ext
27265cat >>conftest.$ac_ext <<_ACEOF
27266/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027267
Reid Spencera773bd52006-08-04 18:18:08 +000027268/* Override any GCC internal prototype to avoid an error.
27269 Use char because int might match the return type of a GCC
27270 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000027271#ifdef __cplusplus
27272extern "C"
27273#endif
John Criswell7a73b802003-06-30 21:59:07 +000027274char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027275int
27276main ()
27277{
Reid Spencera773bd52006-08-04 18:18:08 +000027278return mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000027279 ;
27280 return 0;
27281}
27282_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027283for ac_lib in '' malloc; do
27284 if test -z "$ac_lib"; then
27285 ac_res="none required"
27286 else
27287 ac_res=-l$ac_lib
John Criswell7a73b802003-06-30 21:59:07 +000027288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027289 fi
27290 rm -f conftest.$ac_objext conftest$ac_exeext
27291if { (ac_try="$ac_link"
27292case "(($ac_try" in
27293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27294 *) ac_try_echo=$ac_try;;
27295esac
27296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27297 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027298 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027299 grep -v '^ *+' conftest.er1 >conftest.err
27300 rm -f conftest.er1
27301 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27305 { (case "(($ac_try" in
27306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307 *) ac_try_echo=$ac_try;;
27308esac
27309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027311 ac_status=$?
27312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313 (exit $ac_status); }; } &&
27314 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027315 { (case "(($ac_try" in
27316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317 *) ac_try_echo=$ac_try;;
27318esac
27319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000027321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027324 ac_cv_search_mallinfo=$ac_res
John Criswell7a73b802003-06-30 21:59:07 +000027325else
27326 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027327sed 's/^/| /' conftest.$ac_ext >&5
27328
Reid Spencera773bd52006-08-04 18:18:08 +000027329
John Criswell7a73b802003-06-30 21:59:07 +000027330fi
Reid Spencera773bd52006-08-04 18:18:08 +000027331
27332rm -f core conftest.err conftest.$ac_objext \
27333 conftest$ac_exeext
27334 if test "${ac_cv_search_mallinfo+set}" = set; then
27335 break
John Criswell7a73b802003-06-30 21:59:07 +000027336fi
Reid Spencera773bd52006-08-04 18:18:08 +000027337done
27338if test "${ac_cv_search_mallinfo+set}" = set; then
27339 :
27340else
27341 ac_cv_search_mallinfo=no
27342fi
27343rm conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027344LIBS=$ac_func_search_save_LIBS
27345fi
Reid Spencera773bd52006-08-04 18:18:08 +000027346{ echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
27347echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
27348ac_res=$ac_cv_search_mallinfo
27349if test "$ac_res" != no; then
27350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000027351
27352cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000027353#define HAVE_MALLINFO 1
27354_ACEOF
27355
27356fi
27357
27358
Reid Spencer0a262ba2005-08-24 10:07:20 +000027359if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000027360
Reid Spencera773bd52006-08-04 18:18:08 +000027361{ echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
27362echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027363if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
27364 echo $ECHO_N "(cached) $ECHO_C" >&6
27365else
27366 ac_check_lib_save_LIBS=$LIBS
27367LIBS="-lpthread $LIBS"
27368cat >conftest.$ac_ext <<_ACEOF
27369/* confdefs.h. */
27370_ACEOF
27371cat confdefs.h >>conftest.$ac_ext
27372cat >>conftest.$ac_ext <<_ACEOF
27373/* end confdefs.h. */
27374
Reid Spencera773bd52006-08-04 18:18:08 +000027375/* Override any GCC internal prototype to avoid an error.
27376 Use char because int might match the return type of a GCC
27377 builtin and then its argument prototype would still apply. */
Reid Spencer22177fe2005-07-12 15:24:20 +000027378#ifdef __cplusplus
27379extern "C"
27380#endif
Reid Spencer22177fe2005-07-12 15:24:20 +000027381char pthread_mutex_init ();
27382int
27383main ()
27384{
Reid Spencera773bd52006-08-04 18:18:08 +000027385return pthread_mutex_init ();
Reid Spencer22177fe2005-07-12 15:24:20 +000027386 ;
27387 return 0;
27388}
27389_ACEOF
27390rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000027391if { (ac_try="$ac_link"
27392case "(($ac_try" in
27393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27394 *) ac_try_echo=$ac_try;;
27395esac
27396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27397 (eval "$ac_link") 2>conftest.er1
Reid Spencer22177fe2005-07-12 15:24:20 +000027398 ac_status=$?
27399 grep -v '^ *+' conftest.er1 >conftest.err
27400 rm -f conftest.er1
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27405 { (case "(($ac_try" in
27406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27407 *) ac_try_echo=$ac_try;;
27408esac
27409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27410 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027411 ac_status=$?
27412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413 (exit $ac_status); }; } &&
27414 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027415 { (case "(($ac_try" in
27416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27417 *) ac_try_echo=$ac_try;;
27418esac
27419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27420 (eval "$ac_try") 2>&5
Reid Spencer22177fe2005-07-12 15:24:20 +000027421 ac_status=$?
27422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423 (exit $ac_status); }; }; then
27424 ac_cv_lib_pthread_pthread_mutex_init=yes
27425else
27426 echo "$as_me: failed program was:" >&5
27427sed 's/^/| /' conftest.$ac_ext >&5
27428
Reid Spencera773bd52006-08-04 18:18:08 +000027429 ac_cv_lib_pthread_pthread_mutex_init=no
Reid Spencer22177fe2005-07-12 15:24:20 +000027430fi
Reid Spencera773bd52006-08-04 18:18:08 +000027431
27432rm -f core conftest.err conftest.$ac_objext \
Reid Spencer22177fe2005-07-12 15:24:20 +000027433 conftest$ac_exeext conftest.$ac_ext
27434LIBS=$ac_check_lib_save_LIBS
27435fi
Reid Spencera773bd52006-08-04 18:18:08 +000027436{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
27437echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
Reid Spencer22177fe2005-07-12 15:24:20 +000027438if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
27439 cat >>confdefs.h <<_ACEOF
27440#define HAVE_LIBPTHREAD 1
27441_ACEOF
27442
27443 LIBS="-lpthread $LIBS"
27444
27445fi
27446
Reid Spencera773bd52006-08-04 18:18:08 +000027447 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
27448echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
Brian Gaeke5f268f72003-12-05 19:29:01 +000027449if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27450 echo $ECHO_N "(cached) $ECHO_C" >&6
27451else
27452 ac_func_search_save_LIBS=$LIBS
Brian Gaeke5f268f72003-12-05 19:29:01 +000027453cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000027454/* confdefs.h. */
27455_ACEOF
27456cat confdefs.h >>conftest.$ac_ext
27457cat >>conftest.$ac_ext <<_ACEOF
27458/* end confdefs.h. */
27459
Reid Spencera773bd52006-08-04 18:18:08 +000027460/* Override any GCC internal prototype to avoid an error.
27461 Use char because int might match the return type of a GCC
27462 builtin and then its argument prototype would still apply. */
Brian Gaeke5f268f72003-12-05 19:29:01 +000027463#ifdef __cplusplus
27464extern "C"
27465#endif
Brian Gaeke5f268f72003-12-05 19:29:01 +000027466char pthread_mutex_lock ();
27467int
27468main ()
27469{
Reid Spencera773bd52006-08-04 18:18:08 +000027470return pthread_mutex_lock ();
Brian Gaeke5f268f72003-12-05 19:29:01 +000027471 ;
27472 return 0;
27473}
27474_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027475for ac_lib in '' pthread; do
27476 if test -z "$ac_lib"; then
27477 ac_res="none required"
27478 else
27479 ac_res=-l$ac_lib
Brian Gaeke5f268f72003-12-05 19:29:01 +000027480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027481 fi
27482 rm -f conftest.$ac_objext conftest$ac_exeext
27483if { (ac_try="$ac_link"
27484case "(($ac_try" in
27485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27486 *) ac_try_echo=$ac_try;;
27487esac
27488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27489 (eval "$ac_link") 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000027490 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27497 { (case "(($ac_try" in
27498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27499 *) ac_try_echo=$ac_try;;
27500esac
27501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27502 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027503 ac_status=$?
27504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505 (exit $ac_status); }; } &&
27506 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027507 { (case "(($ac_try" in
27508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27509 *) ac_try_echo=$ac_try;;
27510esac
27511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27512 (eval "$ac_try") 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000027513 ac_status=$?
27514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27515 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027516 ac_cv_search_pthread_mutex_lock=$ac_res
Brian Gaeke5f268f72003-12-05 19:29:01 +000027517else
27518 echo "$as_me: failed program was:" >&5
27519sed 's/^/| /' conftest.$ac_ext >&5
27520
Reid Spencera773bd52006-08-04 18:18:08 +000027521
Brian Gaeke5f268f72003-12-05 19:29:01 +000027522fi
Reid Spencera773bd52006-08-04 18:18:08 +000027523
27524rm -f core conftest.err conftest.$ac_objext \
27525 conftest$ac_exeext
27526 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27527 break
Brian Gaeke5f268f72003-12-05 19:29:01 +000027528fi
Reid Spencera773bd52006-08-04 18:18:08 +000027529done
27530if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
27531 :
27532else
27533 ac_cv_search_pthread_mutex_lock=no
27534fi
27535rm conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000027536LIBS=$ac_func_search_save_LIBS
27537fi
Reid Spencera773bd52006-08-04 18:18:08 +000027538{ echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
27539echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
27540ac_res=$ac_cv_search_pthread_mutex_lock
27541if test "$ac_res" != no; then
27542 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000027543
John Criswell40468462004-09-24 21:19:06 +000027544cat >>confdefs.h <<\_ACEOF
27545#define HAVE_PTHREAD_MUTEX_LOCK 1
27546_ACEOF
27547
27548fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000027549
Reid Spencer0a262ba2005-08-24 10:07:20 +000027550fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000027551
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027552
Reid Spencer59473af2004-12-25 07:31:29 +000027553
27554
27555
27556
27557
27558ac_header_dirent=no
27559for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
27560 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000027561{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
27562echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
27563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000027564 echo $ECHO_N "(cached) $ECHO_C" >&6
27565else
27566 cat >conftest.$ac_ext <<_ACEOF
27567/* confdefs.h. */
27568_ACEOF
27569cat confdefs.h >>conftest.$ac_ext
27570cat >>conftest.$ac_ext <<_ACEOF
27571/* end confdefs.h. */
27572#include <sys/types.h>
27573#include <$ac_hdr>
27574
27575int
27576main ()
27577{
27578if ((DIR *) 0)
27579return 0;
27580 ;
27581 return 0;
27582}
27583_ACEOF
27584rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027585if { (ac_try="$ac_compile"
27586case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27591 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027592 ac_status=$?
27593 grep -v '^ *+' conftest.er1 >conftest.err
27594 rm -f conftest.er1
27595 cat conftest.err >&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27599 { (case "(($ac_try" in
27600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27601 *) ac_try_echo=$ac_try;;
27602esac
27603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27604 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027605 ac_status=$?
27606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607 (exit $ac_status); }; } &&
27608 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027609 { (case "(($ac_try" in
27610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27611 *) ac_try_echo=$ac_try;;
27612esac
27613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27614 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027615 ac_status=$?
27616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617 (exit $ac_status); }; }; then
27618 eval "$as_ac_Header=yes"
27619else
27620 echo "$as_me: failed program was:" >&5
27621sed 's/^/| /' conftest.$ac_ext >&5
27622
Reid Spencera773bd52006-08-04 18:18:08 +000027623 eval "$as_ac_Header=no"
Reid Spencer59473af2004-12-25 07:31:29 +000027624fi
Reid Spencera773bd52006-08-04 18:18:08 +000027625
27626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027627fi
Reid Spencera773bd52006-08-04 18:18:08 +000027628ac_res=`eval echo '${'$as_ac_Header'}'`
27629 { echo "$as_me:$LINENO: result: $ac_res" >&5
27630echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027631if test `eval echo '${'$as_ac_Header'}'` = yes; then
27632 cat >>confdefs.h <<_ACEOF
27633#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
27634_ACEOF
27635
27636ac_header_dirent=$ac_hdr; break
27637fi
27638
27639done
27640# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
27641if test $ac_header_dirent = dirent.h; then
Reid Spencera773bd52006-08-04 18:18:08 +000027642 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27643echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027644if test "${ac_cv_search_opendir+set}" = set; then
27645 echo $ECHO_N "(cached) $ECHO_C" >&6
27646else
27647 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027648cat >conftest.$ac_ext <<_ACEOF
27649/* confdefs.h. */
27650_ACEOF
27651cat confdefs.h >>conftest.$ac_ext
27652cat >>conftest.$ac_ext <<_ACEOF
27653/* end confdefs.h. */
27654
Reid Spencera773bd52006-08-04 18:18:08 +000027655/* Override any GCC internal prototype to avoid an error.
27656 Use char because int might match the return type of a GCC
27657 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027658#ifdef __cplusplus
27659extern "C"
27660#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027661char opendir ();
27662int
27663main ()
27664{
Reid Spencera773bd52006-08-04 18:18:08 +000027665return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027666 ;
27667 return 0;
27668}
27669_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027670for ac_lib in '' dir; do
27671 if test -z "$ac_lib"; then
27672 ac_res="none required"
27673 else
27674 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027675 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027676 fi
27677 rm -f conftest.$ac_objext conftest$ac_exeext
27678if { (ac_try="$ac_link"
27679case "(($ac_try" in
27680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681 *) ac_try_echo=$ac_try;;
27682esac
27683eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027685 ac_status=$?
27686 grep -v '^ *+' conftest.er1 >conftest.err
27687 rm -f conftest.er1
27688 cat conftest.err >&5
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27692 { (case "(($ac_try" in
27693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27694 *) ac_try_echo=$ac_try;;
27695esac
27696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27697 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027698 ac_status=$?
27699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700 (exit $ac_status); }; } &&
27701 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027702 { (case "(($ac_try" in
27703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27704 *) ac_try_echo=$ac_try;;
27705esac
27706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27707 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027708 ac_status=$?
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027711 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027712else
27713 echo "$as_me: failed program was:" >&5
27714sed 's/^/| /' conftest.$ac_ext >&5
27715
Reid Spencera773bd52006-08-04 18:18:08 +000027716
Reid Spencer59473af2004-12-25 07:31:29 +000027717fi
Reid Spencera773bd52006-08-04 18:18:08 +000027718
27719rm -f core conftest.err conftest.$ac_objext \
27720 conftest$ac_exeext
27721 if test "${ac_cv_search_opendir+set}" = set; then
27722 break
Reid Spencer59473af2004-12-25 07:31:29 +000027723fi
Reid Spencera773bd52006-08-04 18:18:08 +000027724done
27725if test "${ac_cv_search_opendir+set}" = set; then
27726 :
27727else
27728 ac_cv_search_opendir=no
27729fi
27730rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027731LIBS=$ac_func_search_save_LIBS
27732fi
Reid Spencera773bd52006-08-04 18:18:08 +000027733{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27734echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27735ac_res=$ac_cv_search_opendir
27736if test "$ac_res" != no; then
27737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027738
27739fi
27740
27741else
Reid Spencera773bd52006-08-04 18:18:08 +000027742 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
27743echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027744if test "${ac_cv_search_opendir+set}" = set; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746else
27747 ac_func_search_save_LIBS=$LIBS
Reid Spencer59473af2004-12-25 07:31:29 +000027748cat >conftest.$ac_ext <<_ACEOF
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754
Reid Spencera773bd52006-08-04 18:18:08 +000027755/* Override any GCC internal prototype to avoid an error.
27756 Use char because int might match the return type of a GCC
27757 builtin and then its argument prototype would still apply. */
Reid Spencer59473af2004-12-25 07:31:29 +000027758#ifdef __cplusplus
27759extern "C"
27760#endif
Reid Spencer59473af2004-12-25 07:31:29 +000027761char opendir ();
27762int
27763main ()
27764{
Reid Spencera773bd52006-08-04 18:18:08 +000027765return opendir ();
Reid Spencer59473af2004-12-25 07:31:29 +000027766 ;
27767 return 0;
27768}
27769_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000027770for ac_lib in '' x; do
27771 if test -z "$ac_lib"; then
27772 ac_res="none required"
27773 else
27774 ac_res=-l$ac_lib
Reid Spencer59473af2004-12-25 07:31:29 +000027775 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
Reid Spencera773bd52006-08-04 18:18:08 +000027776 fi
27777 rm -f conftest.$ac_objext conftest$ac_exeext
27778if { (ac_try="$ac_link"
27779case "(($ac_try" in
27780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781 *) ac_try_echo=$ac_try;;
27782esac
27783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784 (eval "$ac_link") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027785 ac_status=$?
27786 grep -v '^ *+' conftest.er1 >conftest.err
27787 rm -f conftest.er1
27788 cat conftest.err >&5
27789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27792 { (case "(($ac_try" in
27793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27794 *) ac_try_echo=$ac_try;;
27795esac
27796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27797 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027798 ac_status=$?
27799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800 (exit $ac_status); }; } &&
27801 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000027802 { (case "(($ac_try" in
27803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27804 *) ac_try_echo=$ac_try;;
27805esac
27806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27807 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027808 ac_status=$?
27809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27810 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000027811 ac_cv_search_opendir=$ac_res
Reid Spencer59473af2004-12-25 07:31:29 +000027812else
27813 echo "$as_me: failed program was:" >&5
27814sed 's/^/| /' conftest.$ac_ext >&5
27815
Reid Spencera773bd52006-08-04 18:18:08 +000027816
Reid Spencer59473af2004-12-25 07:31:29 +000027817fi
Reid Spencera773bd52006-08-04 18:18:08 +000027818
27819rm -f core conftest.err conftest.$ac_objext \
27820 conftest$ac_exeext
27821 if test "${ac_cv_search_opendir+set}" = set; then
27822 break
Reid Spencer59473af2004-12-25 07:31:29 +000027823fi
Reid Spencera773bd52006-08-04 18:18:08 +000027824done
27825if test "${ac_cv_search_opendir+set}" = set; then
27826 :
27827else
27828 ac_cv_search_opendir=no
27829fi
27830rm conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027831LIBS=$ac_func_search_save_LIBS
27832fi
Reid Spencera773bd52006-08-04 18:18:08 +000027833{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
27834echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
27835ac_res=$ac_cv_search_opendir
27836if test "$ac_res" != no; then
27837 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Reid Spencer59473af2004-12-25 07:31:29 +000027838
27839fi
27840
27841fi
27842
Reid Spencera773bd52006-08-04 18:18:08 +000027843{ echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
27844echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027845if test "${ac_cv_header_mmap_anon+set}" = set; then
27846 echo $ECHO_N "(cached) $ECHO_C" >&6
27847else
27848 ac_ext=c
27849ac_cpp='$CPP $CPPFLAGS'
27850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27852ac_compiler_gnu=$ac_cv_c_compiler_gnu
27853
27854 cat >conftest.$ac_ext <<_ACEOF
27855/* confdefs.h. */
27856_ACEOF
27857cat confdefs.h >>conftest.$ac_ext
27858cat >>conftest.$ac_ext <<_ACEOF
27859/* end confdefs.h. */
27860#include <sys/mman.h>
27861#include <unistd.h>
27862#include <fcntl.h>
27863int
27864main ()
27865{
27866mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
27867 ;
27868 return 0;
27869}
27870_ACEOF
27871rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000027872if { (ac_try="$ac_compile"
27873case "(($ac_try" in
27874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27875 *) ac_try_echo=$ac_try;;
27876esac
27877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27878 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000027879 ac_status=$?
27880 grep -v '^ *+' conftest.er1 >conftest.err
27881 rm -f conftest.er1
27882 cat conftest.err >&5
27883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27884 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000027885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27886 { (case "(($ac_try" in
27887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888 *) ac_try_echo=$ac_try;;
27889esac
27890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027892 ac_status=$?
27893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27894 (exit $ac_status); }; } &&
27895 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000027896 { (case "(($ac_try" in
27897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898 *) ac_try_echo=$ac_try;;
27899esac
27900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000027902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
27905 ac_cv_header_mmap_anon=yes
27906else
27907 echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
Reid Spencera773bd52006-08-04 18:18:08 +000027910 ac_cv_header_mmap_anon=no
Reid Spencer59473af2004-12-25 07:31:29 +000027911fi
Reid Spencera773bd52006-08-04 18:18:08 +000027912
27913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000027914 ac_ext=c
27915ac_cpp='$CPP $CPPFLAGS'
27916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27918ac_compiler_gnu=$ac_cv_c_compiler_gnu
27919
27920
27921fi
Reid Spencera773bd52006-08-04 18:18:08 +000027922{ echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
27923echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027924if test "$ac_cv_header_mmap_anon" = yes; then
27925
27926cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000027927#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000027928_ACEOF
27929
27930fi
27931
Reid Spencera773bd52006-08-04 18:18:08 +000027932{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
27933echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027934if test "${ac_cv_header_stat_broken+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27936else
27937 cat >conftest.$ac_ext <<_ACEOF
27938/* confdefs.h. */
27939_ACEOF
27940cat confdefs.h >>conftest.$ac_ext
27941cat >>conftest.$ac_ext <<_ACEOF
27942/* end confdefs.h. */
27943#include <sys/types.h>
27944#include <sys/stat.h>
27945
Reid Spencera773bd52006-08-04 18:18:08 +000027946#if defined S_ISBLK && defined S_IFDIR
Reid Spencer59473af2004-12-25 07:31:29 +000027947# if S_ISBLK (S_IFDIR)
27948You lose.
27949# endif
27950#endif
27951
Reid Spencera773bd52006-08-04 18:18:08 +000027952#if defined S_ISBLK && defined S_IFCHR
Reid Spencer59473af2004-12-25 07:31:29 +000027953# if S_ISBLK (S_IFCHR)
27954You lose.
27955# endif
27956#endif
27957
Reid Spencera773bd52006-08-04 18:18:08 +000027958#if defined S_ISLNK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027959# if S_ISLNK (S_IFREG)
27960You lose.
27961# endif
27962#endif
27963
Reid Spencera773bd52006-08-04 18:18:08 +000027964#if defined S_ISSOCK && defined S_IFREG
Reid Spencer59473af2004-12-25 07:31:29 +000027965# if S_ISSOCK (S_IFREG)
27966You lose.
27967# endif
27968#endif
27969
27970_ACEOF
27971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27972 $EGREP "You lose" >/dev/null 2>&1; then
27973 ac_cv_header_stat_broken=yes
27974else
27975 ac_cv_header_stat_broken=no
27976fi
27977rm -f conftest*
27978
27979fi
Reid Spencera773bd52006-08-04 18:18:08 +000027980{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
27981echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000027982if test $ac_cv_header_stat_broken = yes; then
27983
27984cat >>confdefs.h <<\_ACEOF
27985#define STAT_MACROS_BROKEN 1
27986_ACEOF
27987
27988fi
27989
Reid Spencera773bd52006-08-04 18:18:08 +000027990{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
27991echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000027992if test "${ac_cv_header_stdc+set}" = set; then
27993 echo $ECHO_N "(cached) $ECHO_C" >&6
27994else
27995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027996/* confdefs.h. */
27997_ACEOF
27998cat confdefs.h >>conftest.$ac_ext
27999cat >>conftest.$ac_ext <<_ACEOF
28000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028001#include <stdlib.h>
28002#include <stdarg.h>
28003#include <string.h>
28004#include <float.h>
28005
John Criswell0c38eaf2003-09-10 15:17:25 +000028006int
28007main ()
28008{
28009
28010 ;
28011 return 0;
28012}
John Criswell7a73b802003-06-30 21:59:07 +000028013_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028014rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028015if { (ac_try="$ac_compile"
28016case "(($ac_try" in
28017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28018 *) ac_try_echo=$ac_try;;
28019esac
28020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28021 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028022 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028023 grep -v '^ *+' conftest.er1 >conftest.err
28024 rm -f conftest.er1
28025 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028027 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28029 { (case "(($ac_try" in
28030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28031 *) ac_try_echo=$ac_try;;
28032esac
28033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28034 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028035 ac_status=$?
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); }; } &&
28038 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028039 { (case "(($ac_try" in
28040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28041 *) ac_try_echo=$ac_try;;
28042esac
28043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28044 (eval "$ac_try") 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000028048 ac_cv_header_stdc=yes
28049else
28050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028051sed 's/^/| /' conftest.$ac_ext >&5
28052
Reid Spencera773bd52006-08-04 18:18:08 +000028053 ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000028054fi
Reid Spencera773bd52006-08-04 18:18:08 +000028055
28056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028057
28058if test $ac_cv_header_stdc = yes; then
28059 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028061/* confdefs.h. */
28062_ACEOF
28063cat confdefs.h >>conftest.$ac_ext
28064cat >>conftest.$ac_ext <<_ACEOF
28065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028066#include <string.h>
28067
28068_ACEOF
28069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028070 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028071 :
28072else
28073 ac_cv_header_stdc=no
28074fi
28075rm -f conftest*
28076
28077fi
28078
28079if test $ac_cv_header_stdc = yes; then
28080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28081 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028082/* confdefs.h. */
28083_ACEOF
28084cat confdefs.h >>conftest.$ac_ext
28085cat >>conftest.$ac_ext <<_ACEOF
28086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028087#include <stdlib.h>
28088
28089_ACEOF
28090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000028091 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000028092 :
28093else
28094 ac_cv_header_stdc=no
28095fi
28096rm -f conftest*
28097
28098fi
28099
28100if test $ac_cv_header_stdc = yes; then
28101 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
28102 if test "$cross_compiling" = yes; then
28103 :
28104else
28105 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028106/* confdefs.h. */
28107_ACEOF
28108cat confdefs.h >>conftest.$ac_ext
28109cat >>conftest.$ac_ext <<_ACEOF
28110/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028111#include <ctype.h>
Reid Spencera773bd52006-08-04 18:18:08 +000028112#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +000028113#if ((' ' & 0x0FF) == 0x020)
28114# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
28115# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
28116#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028117# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000028118 (('a' <= (c) && (c) <= 'i') \
28119 || ('j' <= (c) && (c) <= 'r') \
28120 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000028121# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
28122#endif
28123
28124#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
28125int
28126main ()
28127{
28128 int i;
28129 for (i = 0; i < 256; i++)
28130 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000028131 || toupper (i) != TOUPPER (i))
Reid Spencera773bd52006-08-04 18:18:08 +000028132 return 2;
28133 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028134}
28135_ACEOF
28136rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000028137if { (ac_try="$ac_link"
28138case "(($ac_try" in
28139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28140 *) ac_try_echo=$ac_try;;
28141esac
28142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28143 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000028147 { (case "(($ac_try" in
28148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149 *) ac_try_echo=$ac_try;;
28150esac
28151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 :
28157else
28158 echo "$as_me: program exited with status $ac_status" >&5
28159echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028160sed 's/^/| /' conftest.$ac_ext >&5
28161
John Criswell7a73b802003-06-30 21:59:07 +000028162( exit $ac_status )
28163ac_cv_header_stdc=no
28164fi
Reid Spencera773bd52006-08-04 18:18:08 +000028165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28166fi
28167
28168
John Criswell7a73b802003-06-30 21:59:07 +000028169fi
28170fi
Reid Spencera773bd52006-08-04 18:18:08 +000028171{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
28172echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028173if test $ac_cv_header_stdc = yes; then
28174
28175cat >>confdefs.h <<\_ACEOF
28176#define STDC_HEADERS 1
28177_ACEOF
28178
28179fi
28180
Reid Spencera773bd52006-08-04 18:18:08 +000028181{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
28182echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028183if test "${ac_cv_header_sys_wait_h+set}" = set; then
28184 echo $ECHO_N "(cached) $ECHO_C" >&6
28185else
28186 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028187/* confdefs.h. */
28188_ACEOF
28189cat confdefs.h >>conftest.$ac_ext
28190cat >>conftest.$ac_ext <<_ACEOF
28191/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028192#include <sys/types.h>
28193#include <sys/wait.h>
28194#ifndef WEXITSTATUS
Reid Spencera773bd52006-08-04 18:18:08 +000028195# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
John Criswell7a73b802003-06-30 21:59:07 +000028196#endif
28197#ifndef WIFEXITED
28198# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
28199#endif
28200
John Criswell7a73b802003-06-30 21:59:07 +000028201int
28202main ()
28203{
28204 int s;
28205 wait (&s);
28206 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
28207 ;
28208 return 0;
28209}
28210_ACEOF
28211rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028212if { (ac_try="$ac_compile"
28213case "(($ac_try" in
28214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215 *) ac_try_echo=$ac_try;;
28216esac
28217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028220 grep -v '^ *+' conftest.er1 >conftest.err
28221 rm -f conftest.er1
28222 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28226 { (case "(($ac_try" in
28227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28228 *) ac_try_echo=$ac_try;;
28229esac
28230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28231 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028232 ac_status=$?
28233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28234 (exit $ac_status); }; } &&
28235 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028236 { (case "(($ac_try" in
28237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28238 *) ac_try_echo=$ac_try;;
28239esac
28240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28241 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000028242 ac_status=$?
28243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244 (exit $ac_status); }; }; then
28245 ac_cv_header_sys_wait_h=yes
28246else
28247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028248sed 's/^/| /' conftest.$ac_ext >&5
28249
Reid Spencera773bd52006-08-04 18:18:08 +000028250 ac_cv_header_sys_wait_h=no
John Criswell7a73b802003-06-30 21:59:07 +000028251fi
Reid Spencera773bd52006-08-04 18:18:08 +000028252
28253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028254fi
Reid Spencera773bd52006-08-04 18:18:08 +000028255{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
28256echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000028257if test $ac_cv_header_sys_wait_h = yes; then
28258
28259cat >>confdefs.h <<\_ACEOF
28260#define HAVE_SYS_WAIT_H 1
28261_ACEOF
28262
28263fi
28264
Reid Spencera773bd52006-08-04 18:18:08 +000028265{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
28266echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028267if test "${ac_cv_header_time+set}" = set; then
28268 echo $ECHO_N "(cached) $ECHO_C" >&6
28269else
28270 cat >conftest.$ac_ext <<_ACEOF
28271/* confdefs.h. */
28272_ACEOF
28273cat confdefs.h >>conftest.$ac_ext
28274cat >>conftest.$ac_ext <<_ACEOF
28275/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028276#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028277#include <sys/time.h>
28278#include <time.h>
28279
28280int
28281main ()
28282{
28283if ((struct tm *) 0)
28284return 0;
28285 ;
28286 return 0;
28287}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028288_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028289rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028290if { (ac_try="$ac_compile"
28291case "(($ac_try" in
28292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293 *) ac_try_echo=$ac_try;;
28294esac
28295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028297 ac_status=$?
28298 grep -v '^ *+' conftest.er1 >conftest.err
28299 rm -f conftest.er1
28300 cat conftest.err >&5
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028302 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28304 { (case "(($ac_try" in
28305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28306 *) ac_try_echo=$ac_try;;
28307esac
28308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28309 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028310 ac_status=$?
28311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312 (exit $ac_status); }; } &&
28313 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028314 { (case "(($ac_try" in
28315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28316 *) ac_try_echo=$ac_try;;
28317esac
28318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28319 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028320 ac_status=$?
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); }; }; then
28323 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028324else
28325 echo "$as_me: failed program was:" >&5
28326sed 's/^/| /' conftest.$ac_ext >&5
28327
Reid Spencera773bd52006-08-04 18:18:08 +000028328 ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028329fi
Reid Spencera773bd52006-08-04 18:18:08 +000028330
28331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028332fi
Reid Spencera773bd52006-08-04 18:18:08 +000028333{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
28334echo "${ECHO_T}$ac_cv_header_time" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028335if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028336
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028337cat >>confdefs.h <<\_ACEOF
28338#define TIME_WITH_SYS_TIME 1
28339_ACEOF
28340
28341fi
28342
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028343
Reid Spencer59473af2004-12-25 07:31:29 +000028344
28345
28346
28347
28348
28349
28350for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
28351do
28352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028353if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28356if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028357 echo $ECHO_N "(cached) $ECHO_C" >&6
28358fi
Reid Spencera773bd52006-08-04 18:18:08 +000028359ac_res=`eval echo '${'$as_ac_Header'}'`
28360 { echo "$as_me:$LINENO: result: $ac_res" >&5
28361echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028362else
28363 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028364{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028366cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028367/* confdefs.h. */
28368_ACEOF
28369cat confdefs.h >>conftest.$ac_ext
28370cat >>conftest.$ac_ext <<_ACEOF
28371/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000028372$ac_includes_default
28373#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028374_ACEOF
28375rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028376if { (ac_try="$ac_compile"
28377case "(($ac_try" in
28378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379 *) ac_try_echo=$ac_try;;
28380esac
28381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028383 ac_status=$?
28384 grep -v '^ *+' conftest.er1 >conftest.err
28385 rm -f conftest.er1
28386 cat conftest.err >&5
28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28388 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28390 { (case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28393esac
28394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028400 { (case "(($ac_try" in
28401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28402 *) ac_try_echo=$ac_try;;
28403esac
28404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28405 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028406 ac_status=$?
28407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028409 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028410else
28411 echo "$as_me: failed program was:" >&5
28412sed 's/^/| /' conftest.$ac_ext >&5
28413
Reid Spencera773bd52006-08-04 18:18:08 +000028414 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028415fi
Reid Spencera773bd52006-08-04 18:18:08 +000028416
28417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28418{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28419echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028420
Reid Spencer59473af2004-12-25 07:31:29 +000028421# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028422{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028424cat >conftest.$ac_ext <<_ACEOF
28425/* confdefs.h. */
28426_ACEOF
28427cat confdefs.h >>conftest.$ac_ext
28428cat >>conftest.$ac_ext <<_ACEOF
28429/* end confdefs.h. */
28430#include <$ac_header>
28431_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028432if { (ac_try="$ac_cpp conftest.$ac_ext"
28433case "(($ac_try" in
28434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28435 *) ac_try_echo=$ac_try;;
28436esac
28437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028439 ac_status=$?
28440 grep -v '^ *+' conftest.er1 >conftest.err
28441 rm -f conftest.er1
28442 cat conftest.err >&5
28443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444 (exit $ac_status); } >/dev/null; then
28445 if test -s conftest.err; then
28446 ac_cpp_err=$ac_c_preproc_warn_flag
28447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28448 else
28449 ac_cpp_err=
28450 fi
28451else
28452 ac_cpp_err=yes
28453fi
28454if test -z "$ac_cpp_err"; then
28455 ac_header_preproc=yes
28456else
28457 echo "$as_me: failed program was:" >&5
28458sed 's/^/| /' conftest.$ac_ext >&5
28459
28460 ac_header_preproc=no
28461fi
Reid Spencera773bd52006-08-04 18:18:08 +000028462
Reid Spencer59473af2004-12-25 07:31:29 +000028463rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028464{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028466
28467# So? What about this header?
28468case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28469 yes:no: )
28470 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28471echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28472 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28473echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28474 ac_header_preproc=yes
28475 ;;
28476 no:yes:* )
28477 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28478echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28479 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28480echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28481 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28482echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28483 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28484echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28487 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28488echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028489 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028490## ----------------------------------- ##
28491## Report this to llvmbugs@cs.uiuc.edu ##
28492## ----------------------------------- ##
28493_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028494 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028495 ;;
28496esac
Reid Spencera773bd52006-08-04 18:18:08 +000028497{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28499if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028500 echo $ECHO_N "(cached) $ECHO_C" >&6
28501else
28502 eval "$as_ac_Header=\$ac_header_preproc"
28503fi
Reid Spencera773bd52006-08-04 18:18:08 +000028504ac_res=`eval echo '${'$as_ac_Header'}'`
28505 { echo "$as_me:$LINENO: result: $ac_res" >&5
28506echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028507
28508fi
Reid Spencer59473af2004-12-25 07:31:29 +000028509if test `eval echo '${'$as_ac_Header'}'` = yes; then
28510 cat >>confdefs.h <<_ACEOF
28511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028512_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028513
28514fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028515
Reid Spencer59473af2004-12-25 07:31:29 +000028516done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028517
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028518
28519
Reid Spencer59473af2004-12-25 07:31:29 +000028520
28521
28522
28523
Reid Spencercdb08a32006-06-05 16:11:07 +000028524for ac_header in malloc.h setjmp.h signal.h stdint.h unistd.h utime.h
Reid Spencer59473af2004-12-25 07:31:29 +000028525do
28526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028527if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28530if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028531 echo $ECHO_N "(cached) $ECHO_C" >&6
28532fi
Reid Spencera773bd52006-08-04 18:18:08 +000028533ac_res=`eval echo '${'$as_ac_Header'}'`
28534 { echo "$as_me:$LINENO: result: $ac_res" >&5
28535echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028536else
28537 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028538{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28539echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028540cat >conftest.$ac_ext <<_ACEOF
28541/* confdefs.h. */
28542_ACEOF
28543cat confdefs.h >>conftest.$ac_ext
28544cat >>conftest.$ac_ext <<_ACEOF
28545/* end confdefs.h. */
28546$ac_includes_default
28547#include <$ac_header>
28548_ACEOF
28549rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028550if { (ac_try="$ac_compile"
28551case "(($ac_try" in
28552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28553 *) ac_try_echo=$ac_try;;
28554esac
28555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28556 (eval "$ac_compile") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028557 ac_status=$?
28558 grep -v '^ *+' conftest.er1 >conftest.err
28559 rm -f conftest.er1
28560 cat conftest.err >&5
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28564 { (case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28567esac
28568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; } &&
28573 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028574 { (case "(($ac_try" in
28575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28576 *) ac_try_echo=$ac_try;;
28577esac
28578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28579 (eval "$ac_try") 2>&5
Reid Spencer59473af2004-12-25 07:31:29 +000028580 ac_status=$?
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); }; }; then
28583 ac_header_compiler=yes
28584else
28585 echo "$as_me: failed program was:" >&5
28586sed 's/^/| /' conftest.$ac_ext >&5
28587
Reid Spencera773bd52006-08-04 18:18:08 +000028588 ac_header_compiler=no
Reid Spencer59473af2004-12-25 07:31:29 +000028589fi
Reid Spencera773bd52006-08-04 18:18:08 +000028590
28591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28592{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28593echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028594
28595# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028596{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028598cat >conftest.$ac_ext <<_ACEOF
28599/* confdefs.h. */
28600_ACEOF
28601cat confdefs.h >>conftest.$ac_ext
28602cat >>conftest.$ac_ext <<_ACEOF
28603/* end confdefs.h. */
28604#include <$ac_header>
28605_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028606if { (ac_try="$ac_cpp conftest.$ac_ext"
28607case "(($ac_try" in
28608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28609 *) ac_try_echo=$ac_try;;
28610esac
28611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer59473af2004-12-25 07:31:29 +000028613 ac_status=$?
28614 grep -v '^ *+' conftest.er1 >conftest.err
28615 rm -f conftest.er1
28616 cat conftest.err >&5
28617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28618 (exit $ac_status); } >/dev/null; then
28619 if test -s conftest.err; then
28620 ac_cpp_err=$ac_c_preproc_warn_flag
28621 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28622 else
28623 ac_cpp_err=
28624 fi
28625else
28626 ac_cpp_err=yes
28627fi
28628if test -z "$ac_cpp_err"; then
28629 ac_header_preproc=yes
28630else
28631 echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634 ac_header_preproc=no
28635fi
Reid Spencera773bd52006-08-04 18:18:08 +000028636
Reid Spencer59473af2004-12-25 07:31:29 +000028637rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028638{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28639echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028640
28641# So? What about this header?
28642case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28643 yes:no: )
28644 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28648 ac_header_preproc=yes
28649 ;;
28650 no:yes:* )
28651 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28653 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28655 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28657 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28658echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28661 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028663 ( cat <<\_ASBOX
Reid Spencer59473af2004-12-25 07:31:29 +000028664## ----------------------------------- ##
28665## Report this to llvmbugs@cs.uiuc.edu ##
28666## ----------------------------------- ##
28667_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028668 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer59473af2004-12-25 07:31:29 +000028669 ;;
28670esac
Reid Spencera773bd52006-08-04 18:18:08 +000028671{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000028674 echo $ECHO_N "(cached) $ECHO_C" >&6
28675else
28676 eval "$as_ac_Header=\$ac_header_preproc"
28677fi
Reid Spencera773bd52006-08-04 18:18:08 +000028678ac_res=`eval echo '${'$as_ac_Header'}'`
28679 { echo "$as_me:$LINENO: result: $ac_res" >&5
28680echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer59473af2004-12-25 07:31:29 +000028681
28682fi
28683if test `eval echo '${'$as_ac_Header'}'` = yes; then
28684 cat >>confdefs.h <<_ACEOF
28685#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28686_ACEOF
28687
28688fi
28689
28690done
28691
28692
28693
28694
28695
28696
Reid Spencercdb08a32006-06-05 16:11:07 +000028697for ac_header in windows.h sys/mman.h sys/param.h sys/resource.h sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028698do
28699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028700if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028704 echo $ECHO_N "(cached) $ECHO_C" >&6
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; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028709else
28710 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028711{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028713cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028714/* confdefs.h. */
28715_ACEOF
28716cat confdefs.h >>conftest.$ac_ext
28717cat >>conftest.$ac_ext <<_ACEOF
28718/* end confdefs.h. */
28719$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028720#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028721_ACEOF
28722rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028723if { (ac_try="$ac_compile"
28724case "(($ac_try" in
28725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28726 *) ac_try_echo=$ac_try;;
28727esac
28728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28729 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028730 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028736 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28737 { (case "(($ac_try" in
28738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739 *) ac_try_echo=$ac_try;;
28740esac
28741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; } &&
28746 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028747 { (case "(($ac_try" in
28748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28749 *) ac_try_echo=$ac_try;;
28750esac
28751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28752 (eval "$ac_try") 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028753 ac_status=$?
28754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28755 (exit $ac_status); }; }; then
28756 ac_header_compiler=yes
28757else
28758 echo "$as_me: failed program was:" >&5
28759sed 's/^/| /' conftest.$ac_ext >&5
28760
Reid Spencera773bd52006-08-04 18:18:08 +000028761 ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028762fi
Reid Spencera773bd52006-08-04 18:18:08 +000028763
28764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28765{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28766echo "${ECHO_T}$ac_header_compiler" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028767
28768# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028769{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28770echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028771cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028772/* confdefs.h. */
28773_ACEOF
28774cat confdefs.h >>conftest.$ac_ext
28775cat >>conftest.$ac_ext <<_ACEOF
28776/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028777#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028778_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028779if { (ac_try="$ac_cpp conftest.$ac_ext"
28780case "(($ac_try" in
28781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28782 *) ac_try_echo=$ac_try;;
28783esac
28784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028786 ac_status=$?
28787 grep -v '^ *+' conftest.er1 >conftest.err
28788 rm -f conftest.er1
28789 cat conftest.err >&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); } >/dev/null; then
28792 if test -s conftest.err; then
28793 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028795 else
28796 ac_cpp_err=
28797 fi
28798else
28799 ac_cpp_err=yes
28800fi
28801if test -z "$ac_cpp_err"; then
28802 ac_header_preproc=yes
28803else
28804 echo "$as_me: failed program was:" >&5
28805sed 's/^/| /' conftest.$ac_ext >&5
28806
28807 ac_header_preproc=no
28808fi
Reid Spencera773bd52006-08-04 18:18:08 +000028809
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028810rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028811{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28812echo "${ECHO_T}$ac_header_preproc" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028813
28814# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28816 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28818echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28820echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028821 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028822 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028823 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28825echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28827echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28829echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28831echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28835echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000028836 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028837## ----------------------------------- ##
28838## Report this to llvmbugs@cs.uiuc.edu ##
28839## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028840_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000028841 ) | sed "s/^/$as_me: WARNING: /" >&2
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028842 ;;
28843esac
Reid Spencera773bd52006-08-04 18:18:08 +000028844{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028847 echo $ECHO_N "(cached) $ECHO_C" >&6
28848else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028849 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028850fi
Reid Spencera773bd52006-08-04 18:18:08 +000028851ac_res=`eval echo '${'$as_ac_Header'}'`
28852 { echo "$as_me:$LINENO: result: $ac_res" >&5
28853echo "${ECHO_T}$ac_res" >&6; }
Brian Gaeke6c3fd812004-02-23 22:07:00 +000028854
28855fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028856if test `eval echo '${'$as_ac_Header'}'` = yes; then
28857 cat >>confdefs.h <<_ACEOF
28858#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000028859_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000028860
28861fi
John Criswell7ed43ad2004-07-19 16:12:29 +000028862
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028863done
28864
John Criswell7ed43ad2004-07-19 16:12:29 +000028865
Reid Spencercdb08a32006-06-05 16:11:07 +000028866
Reid Spencera6d990a2006-09-14 06:17:21 +000028867
28868for ac_header in sys/types.h malloc/malloc.h mach/mach.h
Chris Lattner0b142592005-11-14 06:57:34 +000028869do
28870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000028871if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28872 { 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
Chris Lattner0b142592005-11-14 06:57:34 +000028875 echo $ECHO_N "(cached) $ECHO_C" >&6
28876fi
Reid Spencera773bd52006-08-04 18:18:08 +000028877ac_res=`eval echo '${'$as_ac_Header'}'`
28878 { echo "$as_me:$LINENO: result: $ac_res" >&5
28879echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028880else
28881 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000028882{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28883echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028884cat >conftest.$ac_ext <<_ACEOF
28885/* confdefs.h. */
28886_ACEOF
28887cat confdefs.h >>conftest.$ac_ext
28888cat >>conftest.$ac_ext <<_ACEOF
28889/* end confdefs.h. */
28890$ac_includes_default
28891#include <$ac_header>
28892_ACEOF
28893rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000028894if { (ac_try="$ac_compile"
28895case "(($ac_try" in
28896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897 *) ac_try_echo=$ac_try;;
28898esac
28899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900 (eval "$ac_compile") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028901 ac_status=$?
28902 grep -v '^ *+' conftest.er1 >conftest.err
28903 rm -f conftest.er1
28904 cat conftest.err >&5
28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000028907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28908 { (case "(($ac_try" in
28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28910 *) ac_try_echo=$ac_try;;
28911esac
28912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28913 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000028918 { (case "(($ac_try" in
28919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920 *) ac_try_echo=$ac_try;;
28921esac
28922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923 (eval "$ac_try") 2>&5
Chris Lattner0b142592005-11-14 06:57:34 +000028924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 ac_header_compiler=yes
28928else
28929 echo "$as_me: failed program was:" >&5
28930sed 's/^/| /' conftest.$ac_ext >&5
28931
Reid Spencera773bd52006-08-04 18:18:08 +000028932 ac_header_compiler=no
Chris Lattner0b142592005-11-14 06:57:34 +000028933fi
Reid Spencera773bd52006-08-04 18:18:08 +000028934
28935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28936{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28937echo "${ECHO_T}$ac_header_compiler" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028938
28939# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000028940{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28941echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028942cat >conftest.$ac_ext <<_ACEOF
28943/* confdefs.h. */
28944_ACEOF
28945cat confdefs.h >>conftest.$ac_ext
28946cat >>conftest.$ac_ext <<_ACEOF
28947/* end confdefs.h. */
28948#include <$ac_header>
28949_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000028950if { (ac_try="$ac_cpp conftest.$ac_ext"
28951case "(($ac_try" in
28952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953 *) ac_try_echo=$ac_try;;
28954esac
28955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Chris Lattner0b142592005-11-14 06:57:34 +000028957 ac_status=$?
28958 grep -v '^ *+' conftest.er1 >conftest.err
28959 rm -f conftest.er1
28960 cat conftest.err >&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); } >/dev/null; then
28963 if test -s conftest.err; then
28964 ac_cpp_err=$ac_c_preproc_warn_flag
28965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28966 else
28967 ac_cpp_err=
28968 fi
28969else
28970 ac_cpp_err=yes
28971fi
28972if test -z "$ac_cpp_err"; then
28973 ac_header_preproc=yes
28974else
28975 echo "$as_me: failed program was:" >&5
28976sed 's/^/| /' conftest.$ac_ext >&5
28977
28978 ac_header_preproc=no
28979fi
Reid Spencera773bd52006-08-04 18:18:08 +000028980
Chris Lattner0b142592005-11-14 06:57:34 +000028981rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000028982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28983echo "${ECHO_T}$ac_header_preproc" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000028984
28985# So? What about this header?
28986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28987 yes:no: )
28988 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28989echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28991echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28992 ac_header_preproc=yes
28993 ;;
28994 no:yes:* )
28995 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28996echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28997 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28998echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28999 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29000echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29001 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29002echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29004echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29005 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29006echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029007 ( cat <<\_ASBOX
Chris Lattner0b142592005-11-14 06:57:34 +000029008## ----------------------------------- ##
29009## Report this to llvmbugs@cs.uiuc.edu ##
29010## ----------------------------------- ##
29011_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029012 ) | sed "s/^/$as_me: WARNING: /" >&2
Chris Lattner0b142592005-11-14 06:57:34 +000029013 ;;
29014esac
Reid Spencera773bd52006-08-04 18:18:08 +000029015{ echo "$as_me:$LINENO: checking for $ac_header" >&5
29016echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29017if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Chris Lattner0b142592005-11-14 06:57:34 +000029018 echo $ECHO_N "(cached) $ECHO_C" >&6
29019else
29020 eval "$as_ac_Header=\$ac_header_preproc"
29021fi
Reid Spencera773bd52006-08-04 18:18:08 +000029022ac_res=`eval echo '${'$as_ac_Header'}'`
29023 { echo "$as_me:$LINENO: result: $ac_res" >&5
29024echo "${ECHO_T}$ac_res" >&6; }
Chris Lattner0b142592005-11-14 06:57:34 +000029025
29026fi
29027if test `eval echo '${'$as_ac_Header'}'` = yes; then
29028 cat >>confdefs.h <<_ACEOF
29029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29030_ACEOF
29031
29032fi
29033
29034done
29035
Reid Spencer0a262ba2005-08-24 10:07:20 +000029036if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer1000b732006-12-01 00:37:14 +000029037 if test "${ac_cv_header_pthread_h+set}" = set; then
29038 { echo "$as_me:$LINENO: checking for pthread.h" >&5
29039echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29040if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029041 echo $ECHO_N "(cached) $ECHO_C" >&6
29042fi
Reid Spencer1000b732006-12-01 00:37:14 +000029043{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29044echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029045else
29046 # Is the header compilable?
Reid Spencer1000b732006-12-01 00:37:14 +000029047{ echo "$as_me:$LINENO: checking pthread.h usability" >&5
29048echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029049cat >conftest.$ac_ext <<_ACEOF
29050/* confdefs.h. */
29051_ACEOF
29052cat confdefs.h >>conftest.$ac_ext
29053cat >>conftest.$ac_ext <<_ACEOF
29054/* end confdefs.h. */
29055$ac_includes_default
Reid Spencer1000b732006-12-01 00:37:14 +000029056#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029057_ACEOF
29058rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029059if { (ac_try="$ac_compile"
29060case "(($ac_try" in
29061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29062 *) ac_try_echo=$ac_try;;
29063esac
29064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29065 (eval "$ac_compile") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029066 ac_status=$?
29067 grep -v '^ *+' conftest.er1 >conftest.err
29068 rm -f conftest.er1
29069 cat conftest.err >&5
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29073 { (case "(($ac_try" in
29074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29075 *) ac_try_echo=$ac_try;;
29076esac
29077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29078 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029079 ac_status=$?
29080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29081 (exit $ac_status); }; } &&
29082 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029083 { (case "(($ac_try" in
29084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29085 *) ac_try_echo=$ac_try;;
29086esac
29087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29088 (eval "$ac_try") 2>&5
Reid Spencer0a262ba2005-08-24 10:07:20 +000029089 ac_status=$?
29090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091 (exit $ac_status); }; }; then
29092 ac_header_compiler=yes
29093else
29094 echo "$as_me: failed program was:" >&5
29095sed 's/^/| /' conftest.$ac_ext >&5
29096
Reid Spencera773bd52006-08-04 18:18:08 +000029097 ac_header_compiler=no
Reid Spencer0a262ba2005-08-24 10:07:20 +000029098fi
Reid Spencera773bd52006-08-04 18:18:08 +000029099
29100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29101{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29102echo "${ECHO_T}$ac_header_compiler" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029103
29104# Is the header present?
Reid Spencer1000b732006-12-01 00:37:14 +000029105{ echo "$as_me:$LINENO: checking pthread.h presence" >&5
29106echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029107cat >conftest.$ac_ext <<_ACEOF
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
Reid Spencer1000b732006-12-01 00:37:14 +000029113#include <pthread.h>
Reid Spencer0a262ba2005-08-24 10:07:20 +000029114_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029115if { (ac_try="$ac_cpp conftest.$ac_ext"
29116case "(($ac_try" in
29117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29118 *) ac_try_echo=$ac_try;;
29119esac
29120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Reid Spencer0a262ba2005-08-24 10:07:20 +000029122 ac_status=$?
29123 grep -v '^ *+' conftest.er1 >conftest.err
29124 rm -f conftest.er1
29125 cat conftest.err >&5
29126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); } >/dev/null; then
29128 if test -s conftest.err; then
29129 ac_cpp_err=$ac_c_preproc_warn_flag
29130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29131 else
29132 ac_cpp_err=
29133 fi
29134else
29135 ac_cpp_err=yes
29136fi
29137if test -z "$ac_cpp_err"; then
29138 ac_header_preproc=yes
29139else
29140 echo "$as_me: failed program was:" >&5
29141sed 's/^/| /' conftest.$ac_ext >&5
29142
29143 ac_header_preproc=no
29144fi
Reid Spencera773bd52006-08-04 18:18:08 +000029145
Reid Spencer0a262ba2005-08-24 10:07:20 +000029146rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000029147{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29148echo "${ECHO_T}$ac_header_preproc" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029149
29150# So? What about this header?
29151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29152 yes:no: )
Reid Spencer1000b732006-12-01 00:37:14 +000029153 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
29154echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29155 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
29156echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
Reid Spencer0a262ba2005-08-24 10:07:20 +000029157 ac_header_preproc=yes
29158 ;;
29159 no:yes:* )
Reid Spencer1000b732006-12-01 00:37:14 +000029160 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
29161echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
29162 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
29163echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
29164 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
29165echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
29166 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
29167echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
29168 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
29169echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
29170 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
29171echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000029172 ( cat <<\_ASBOX
Reid Spencer0a262ba2005-08-24 10:07:20 +000029173## ----------------------------------- ##
29174## Report this to llvmbugs@cs.uiuc.edu ##
29175## ----------------------------------- ##
29176_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000029177 ) | sed "s/^/$as_me: WARNING: /" >&2
Reid Spencer0a262ba2005-08-24 10:07:20 +000029178 ;;
29179esac
Reid Spencer1000b732006-12-01 00:37:14 +000029180{ echo "$as_me:$LINENO: checking for pthread.h" >&5
29181echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
29182if test "${ac_cv_header_pthread_h+set}" = set; then
Reid Spencer0a262ba2005-08-24 10:07:20 +000029183 echo $ECHO_N "(cached) $ECHO_C" >&6
29184else
Reid Spencer1000b732006-12-01 00:37:14 +000029185 ac_cv_header_pthread_h=$ac_header_preproc
Reid Spencer0a262ba2005-08-24 10:07:20 +000029186fi
Reid Spencer1000b732006-12-01 00:37:14 +000029187{ echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
29188echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
Reid Spencer0a262ba2005-08-24 10:07:20 +000029189
29190fi
Reid Spencer1000b732006-12-01 00:37:14 +000029191if test $ac_cv_header_pthread_h = yes; then
29192 HAVE_PTHREAD=1
29193
29194else
29195 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029196
29197fi
29198
Reid Spencer1000b732006-12-01 00:37:14 +000029199
29200else
29201 HAVE_PTHREAD=0
Reid Spencer0a262ba2005-08-24 10:07:20 +000029202
29203fi
Reid Spencer8085cff2005-01-16 02:58:39 +000029204
29205
Reid Spencerb2ed05262006-11-03 18:04:08 +000029206
29207 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
29208echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
29209if test "${ac_cv_huge_val_sanity+set}" = set; then
29210 echo $ECHO_N "(cached) $ECHO_C" >&6
29211else
29212
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029213 ac_ext=cpp
29214ac_cpp='$CXXCPP $CPPFLAGS'
29215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Reid Spencerb2ed05262006-11-03 18:04:08 +000029218
Reid Spencer6a7c0b72006-11-03 19:49:16 +000029219 CXXFLAGS=-pedantic
Reid Spencerb2ed05262006-11-03 18:04:08 +000029220 if test "$cross_compiling" = yes; then
29221 ac_cv_huge_val_sanity=yes
29222else
29223 cat >conftest.$ac_ext <<_ACEOF
29224/* confdefs.h. */
29225_ACEOF
29226cat confdefs.h >>conftest.$ac_ext
29227cat >>conftest.$ac_ext <<_ACEOF
29228/* end confdefs.h. */
29229#include <math.h>
29230int
29231main ()
29232{
29233double x = HUGE_VAL; return x != x;
29234 ;
29235 return 0;
29236}
29237_ACEOF
29238rm -f conftest$ac_exeext
29239if { (ac_try="$ac_link"
29240case "(($ac_try" in
29241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242 *) ac_try_echo=$ac_try;;
29243esac
29244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245 (eval "$ac_link") 2>&5
29246 ac_status=$?
29247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29249 { (case "(($ac_try" in
29250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29251 *) ac_try_echo=$ac_try;;
29252esac
29253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29254 (eval "$ac_try") 2>&5
29255 ac_status=$?
29256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29257 (exit $ac_status); }; }; then
29258 ac_cv_huge_val_sanity=yes
29259else
29260 echo "$as_me: program exited with status $ac_status" >&5
29261echo "$as_me: failed program was:" >&5
29262sed 's/^/| /' conftest.$ac_ext >&5
29263
29264( exit $ac_status )
29265ac_cv_huge_val_sanity=no
29266fi
29267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29268fi
29269
29270
29271 ac_ext=c
29272ac_cpp='$CPP $CPPFLAGS'
29273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29275ac_compiler_gnu=$ac_cv_c_compiler_gnu
29276
29277
29278fi
29279{ echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
29280echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
29281 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
29282
29283
Reid Spencera773bd52006-08-04 18:18:08 +000029284{ echo "$as_me:$LINENO: checking for pid_t" >&5
29285echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029286if test "${ac_cv_type_pid_t+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29288else
29289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029290/* confdefs.h. */
29291_ACEOF
29292cat confdefs.h >>conftest.$ac_ext
29293cat >>conftest.$ac_ext <<_ACEOF
29294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029295$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029296typedef pid_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029297int
29298main ()
29299{
Reid Spencera773bd52006-08-04 18:18:08 +000029300if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029301 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029302if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029303 return 0;
29304 ;
29305 return 0;
29306}
29307_ACEOF
29308rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029309if { (ac_try="$ac_compile"
29310case "(($ac_try" in
29311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312 *) ac_try_echo=$ac_try;;
29313esac
29314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029316 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029317 grep -v '^ *+' conftest.er1 >conftest.err
29318 rm -f conftest.er1
29319 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29323 { (case "(($ac_try" in
29324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29325 *) ac_try_echo=$ac_try;;
29326esac
29327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29328 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029329 ac_status=$?
29330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331 (exit $ac_status); }; } &&
29332 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029333 { (case "(($ac_try" in
29334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335 *) ac_try_echo=$ac_try;;
29336esac
29337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029339 ac_status=$?
29340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; }; then
29342 ac_cv_type_pid_t=yes
29343else
29344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029345sed 's/^/| /' conftest.$ac_ext >&5
29346
Reid Spencera773bd52006-08-04 18:18:08 +000029347 ac_cv_type_pid_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029348fi
Reid Spencera773bd52006-08-04 18:18:08 +000029349
29350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029351fi
Reid Spencera773bd52006-08-04 18:18:08 +000029352{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
29353echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029354if test $ac_cv_type_pid_t = yes; then
29355 :
29356else
29357
29358cat >>confdefs.h <<_ACEOF
29359#define pid_t int
29360_ACEOF
29361
29362fi
29363
Reid Spencera773bd52006-08-04 18:18:08 +000029364{ echo "$as_me:$LINENO: checking for size_t" >&5
29365echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029366if test "${ac_cv_type_size_t+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29368else
29369 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029370/* confdefs.h. */
29371_ACEOF
29372cat confdefs.h >>conftest.$ac_ext
29373cat >>conftest.$ac_ext <<_ACEOF
29374/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029375$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029376typedef size_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029377int
29378main ()
29379{
Reid Spencera773bd52006-08-04 18:18:08 +000029380if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029381 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029382if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029383 return 0;
29384 ;
29385 return 0;
29386}
29387_ACEOF
29388rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029389if { (ac_try="$ac_compile"
29390case "(($ac_try" in
29391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29392 *) ac_try_echo=$ac_try;;
29393esac
29394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29395 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029397 grep -v '^ *+' conftest.er1 >conftest.err
29398 rm -f conftest.er1
29399 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29401 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29403 { (case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29406esac
29407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029409 ac_status=$?
29410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29411 (exit $ac_status); }; } &&
29412 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029413 { (case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29418 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; }; then
29422 ac_cv_type_size_t=yes
29423else
29424 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029425sed 's/^/| /' conftest.$ac_ext >&5
29426
Reid Spencera773bd52006-08-04 18:18:08 +000029427 ac_cv_type_size_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029428fi
Reid Spencera773bd52006-08-04 18:18:08 +000029429
29430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029431fi
Reid Spencera773bd52006-08-04 18:18:08 +000029432{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
29433echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029434if test $ac_cv_type_size_t = yes; then
29435 :
29436else
29437
29438cat >>confdefs.h <<_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000029439#define size_t unsigned int
John Criswell7a73b802003-06-30 21:59:07 +000029440_ACEOF
29441
29442fi
29443
Reid Spencera773bd52006-08-04 18:18:08 +000029444{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29445echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029446if test "${ac_cv_type_signal+set}" = set; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449 cat >conftest.$ac_ext <<_ACEOF
29450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
29455#include <sys/types.h>
29456#include <signal.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029457
29458int
29459main ()
29460{
Reid Spencera773bd52006-08-04 18:18:08 +000029461return *(signal (0, 0)) (0) == 1;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029462 ;
29463 return 0;
29464}
29465_ACEOF
29466rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029467if { (ac_try="$ac_compile"
29468case "(($ac_try" in
29469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29470 *) ac_try_echo=$ac_try;;
29471esac
29472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29473 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029474 ac_status=$?
29475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
29478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29481 { (case "(($ac_try" in
29482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29483 *) ac_try_echo=$ac_try;;
29484esac
29485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29486 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029487 ac_status=$?
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); }; } &&
29490 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029491 { (case "(($ac_try" in
29492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493 *) ac_try_echo=$ac_try;;
29494esac
29495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029497 ac_status=$?
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); }; }; then
Reid Spencera773bd52006-08-04 18:18:08 +000029500 ac_cv_type_signal=int
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029501else
29502 echo "$as_me: failed program was:" >&5
29503sed 's/^/| /' conftest.$ac_ext >&5
29504
Reid Spencera773bd52006-08-04 18:18:08 +000029505 ac_cv_type_signal=void
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029506fi
Reid Spencera773bd52006-08-04 18:18:08 +000029507
29508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029509fi
Reid Spencera773bd52006-08-04 18:18:08 +000029510{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29511echo "${ECHO_T}$ac_cv_type_signal" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029512
29513cat >>confdefs.h <<_ACEOF
29514#define RETSIGTYPE $ac_cv_type_signal
29515_ACEOF
29516
29517
Reid Spencera773bd52006-08-04 18:18:08 +000029518{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
29519echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029520if test "${ac_cv_struct_tm+set}" = set; then
29521 echo $ECHO_N "(cached) $ECHO_C" >&6
29522else
29523 cat >conftest.$ac_ext <<_ACEOF
29524/* confdefs.h. */
29525_ACEOF
29526cat confdefs.h >>conftest.$ac_ext
29527cat >>conftest.$ac_ext <<_ACEOF
29528/* end confdefs.h. */
29529#include <sys/types.h>
29530#include <time.h>
29531
29532int
29533main ()
29534{
29535struct tm *tp; tp->tm_sec;
29536 ;
29537 return 0;
29538}
29539_ACEOF
29540rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029541if { (ac_try="$ac_compile"
29542case "(($ac_try" in
29543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544 *) ac_try_echo=$ac_try;;
29545esac
29546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029548 ac_status=$?
29549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29555 { (case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29558esac
29559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029561 ac_status=$?
29562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563 (exit $ac_status); }; } &&
29564 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029565 { (case "(($ac_try" in
29566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567 *) ac_try_echo=$ac_try;;
29568esac
29569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029571 ac_status=$?
29572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573 (exit $ac_status); }; }; then
29574 ac_cv_struct_tm=time.h
29575else
29576 echo "$as_me: failed program was:" >&5
29577sed 's/^/| /' conftest.$ac_ext >&5
29578
Reid Spencera773bd52006-08-04 18:18:08 +000029579 ac_cv_struct_tm=sys/time.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029580fi
Reid Spencera773bd52006-08-04 18:18:08 +000029581
29582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029583fi
Reid Spencera773bd52006-08-04 18:18:08 +000029584{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
29585echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029586if test $ac_cv_struct_tm = sys/time.h; then
29587
29588cat >>confdefs.h <<\_ACEOF
29589#define TM_IN_SYS_TIME 1
29590_ACEOF
29591
29592fi
29593
Reid Spencera773bd52006-08-04 18:18:08 +000029594{ echo "$as_me:$LINENO: checking for int64_t" >&5
29595echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029596if test "${ac_cv_type_int64_t+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598else
29599 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029600/* confdefs.h. */
29601_ACEOF
29602cat confdefs.h >>conftest.$ac_ext
29603cat >>conftest.$ac_ext <<_ACEOF
29604/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029605$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029606typedef int64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029607int
29608main ()
29609{
Reid Spencera773bd52006-08-04 18:18:08 +000029610if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029611 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029612if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029613 return 0;
29614 ;
29615 return 0;
29616}
29617_ACEOF
29618rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029619if { (ac_try="$ac_compile"
29620case "(($ac_try" in
29621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622 *) ac_try_echo=$ac_try;;
29623esac
29624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029627 grep -v '^ *+' conftest.er1 >conftest.err
29628 rm -f conftest.er1
29629 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633 { (case "(($ac_try" in
29634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635 *) ac_try_echo=$ac_try;;
29636esac
29637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; } &&
29642 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029643 { (case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29646esac
29647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029649 ac_status=$?
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; }; then
29652 ac_cv_type_int64_t=yes
29653else
29654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029655sed 's/^/| /' conftest.$ac_ext >&5
29656
Reid Spencera773bd52006-08-04 18:18:08 +000029657 ac_cv_type_int64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029658fi
Reid Spencera773bd52006-08-04 18:18:08 +000029659
29660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029661fi
Reid Spencera773bd52006-08-04 18:18:08 +000029662{ echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
29663echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029664if test $ac_cv_type_int64_t = yes; then
29665
29666cat >>confdefs.h <<_ACEOF
29667#define HAVE_INT64_T 1
29668_ACEOF
29669
29670
29671else
29672 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
29673echo "$as_me: error: Type int64_t required but not found" >&2;}
29674 { (exit 1); exit 1; }; }
29675fi
29676
Reid Spencera773bd52006-08-04 18:18:08 +000029677{ echo "$as_me:$LINENO: checking for uint64_t" >&5
29678echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029679if test "${ac_cv_type_uint64_t+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29681else
29682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029683/* confdefs.h. */
29684_ACEOF
29685cat confdefs.h >>conftest.$ac_ext
29686cat >>conftest.$ac_ext <<_ACEOF
29687/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029688$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029689typedef uint64_t ac__type_new_;
John Criswell7a73b802003-06-30 21:59:07 +000029690int
29691main ()
29692{
Reid Spencera773bd52006-08-04 18:18:08 +000029693if ((ac__type_new_ *) 0)
John Criswell7a73b802003-06-30 21:59:07 +000029694 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029695if (sizeof (ac__type_new_))
John Criswell7a73b802003-06-30 21:59:07 +000029696 return 0;
29697 ;
29698 return 0;
29699}
29700_ACEOF
29701rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029702if { (ac_try="$ac_compile"
29703case "(($ac_try" in
29704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705 *) ac_try_echo=$ac_try;;
29706esac
29707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029710 grep -v '^ *+' conftest.er1 >conftest.err
29711 rm -f conftest.er1
29712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716 { (case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29719esac
29720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029722 ac_status=$?
29723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724 (exit $ac_status); }; } &&
29725 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029726 { (case "(($ac_try" in
29727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728 *) ac_try_echo=$ac_try;;
29729esac
29730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029732 ac_status=$?
29733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734 (exit $ac_status); }; }; then
29735 ac_cv_type_uint64_t=yes
29736else
29737 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029738sed 's/^/| /' conftest.$ac_ext >&5
29739
Reid Spencera773bd52006-08-04 18:18:08 +000029740 ac_cv_type_uint64_t=no
John Criswell7a73b802003-06-30 21:59:07 +000029741fi
Reid Spencera773bd52006-08-04 18:18:08 +000029742
29743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029744fi
Reid Spencera773bd52006-08-04 18:18:08 +000029745{ echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
29746echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000029747if test $ac_cv_type_uint64_t = yes; then
29748
29749cat >>confdefs.h <<_ACEOF
29750#define HAVE_UINT64_T 1
29751_ACEOF
29752
29753
29754else
Reid Spencera773bd52006-08-04 18:18:08 +000029755 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
29756echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029757if test "${ac_cv_type_u_int64_t+set}" = set; then
29758 echo $ECHO_N "(cached) $ECHO_C" >&6
29759else
29760 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000029761/* confdefs.h. */
29762_ACEOF
29763cat confdefs.h >>conftest.$ac_ext
29764cat >>conftest.$ac_ext <<_ACEOF
29765/* end confdefs.h. */
29766$ac_includes_default
Reid Spencera773bd52006-08-04 18:18:08 +000029767typedef u_int64_t ac__type_new_;
John Criswell679ff312004-09-02 18:44:44 +000029768int
29769main ()
29770{
Reid Spencera773bd52006-08-04 18:18:08 +000029771if ((ac__type_new_ *) 0)
John Criswell679ff312004-09-02 18:44:44 +000029772 return 0;
Reid Spencera773bd52006-08-04 18:18:08 +000029773if (sizeof (ac__type_new_))
John Criswell679ff312004-09-02 18:44:44 +000029774 return 0;
29775 ;
29776 return 0;
29777}
29778_ACEOF
29779rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000029780if { (ac_try="$ac_compile"
29781case "(($ac_try" in
29782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783 *) ac_try_echo=$ac_try;;
29784esac
29785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786 (eval "$ac_compile") 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000029787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029788 grep -v '^ *+' conftest.er1 >conftest.err
29789 rm -f conftest.er1
29790 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000029791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29794 { (case "(($ac_try" in
29795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29796 *) ac_try_echo=$ac_try;;
29797esac
29798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29799 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029800 ac_status=$?
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); }; } &&
29803 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000029804 { (case "(($ac_try" in
29805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29806 *) ac_try_echo=$ac_try;;
29807esac
29808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29809 (eval "$ac_try") 2>&5
John Criswell679ff312004-09-02 18:44:44 +000029810 ac_status=$?
29811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812 (exit $ac_status); }; }; then
29813 ac_cv_type_u_int64_t=yes
29814else
29815 echo "$as_me: failed program was:" >&5
29816sed 's/^/| /' conftest.$ac_ext >&5
29817
Reid Spencera773bd52006-08-04 18:18:08 +000029818 ac_cv_type_u_int64_t=no
John Criswell679ff312004-09-02 18:44:44 +000029819fi
Reid Spencera773bd52006-08-04 18:18:08 +000029820
29821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000029822fi
Reid Spencera773bd52006-08-04 18:18:08 +000029823{ echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
29824echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
John Criswell679ff312004-09-02 18:44:44 +000029825if test $ac_cv_type_u_int64_t = yes; then
29826
29827cat >>confdefs.h <<_ACEOF
29828#define HAVE_U_INT64_T 1
29829_ACEOF
29830
29831
Misha Brukmanceca9042004-09-02 23:02:30 +000029832else
29833 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
29834echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
29835 { (exit 1); exit 1; }; }
29836fi
29837
John Criswell679ff312004-09-02 18:44:44 +000029838fi
29839
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029840
29841
29842
29843
29844
29845
29846
Reid Spencerf4bb9b12006-01-19 08:22:40 +000029847
29848
Reid Spencerdf3be822006-01-23 08:15:53 +000029849for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029850do
29851as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029852{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29853echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29854if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000029855 echo $ECHO_N "(cached) $ECHO_C" >&6
29856else
29857 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029858/* confdefs.h. */
29859_ACEOF
29860cat confdefs.h >>conftest.$ac_ext
29861cat >>conftest.$ac_ext <<_ACEOF
29862/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029863/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29865#define $ac_func innocuous_$ac_func
29866
29867/* System header to define __stub macros and hopefully few prototypes,
29868 which can conflict with char $ac_func (); below.
29869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29870 <limits.h> exists even on freestanding compilers. */
29871
29872#ifdef __STDC__
29873# include <limits.h>
29874#else
29875# include <assert.h>
29876#endif
29877
29878#undef $ac_func
29879
Reid Spencera773bd52006-08-04 18:18:08 +000029880/* Override any GCC internal prototype to avoid an error.
29881 Use char because int might match the return type of a GCC
29882 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029883#ifdef __cplusplus
29884extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029885#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029886char $ac_func ();
29887/* The GNU C library defines this for functions which it implements
29888 to always fail with ENOSYS. Some functions are actually named
29889 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000029890#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029891choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029892#endif
John Criswell7a73b802003-06-30 21:59:07 +000029893
John Criswell7a73b802003-06-30 21:59:07 +000029894int
29895main ()
29896{
Reid Spencera773bd52006-08-04 18:18:08 +000029897return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029898 ;
29899 return 0;
29900}
29901_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029902rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000029903if { (ac_try="$ac_link"
29904case "(($ac_try" in
29905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29906 *) ac_try_echo=$ac_try;;
29907esac
29908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29909 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029910 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029911 grep -v '^ *+' conftest.er1 >conftest.err
29912 rm -f conftest.er1
29913 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000029916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29917 { (case "(($ac_try" in
29918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29919 *) ac_try_echo=$ac_try;;
29920esac
29921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29922 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029923 ac_status=$?
29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029926 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000029927 { (case "(($ac_try" in
29928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29929 *) ac_try_echo=$ac_try;;
29930esac
29931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29932 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000029933 ac_status=$?
29934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29935 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029936 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000029937else
29938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029939sed 's/^/| /' conftest.$ac_ext >&5
29940
Reid Spencera773bd52006-08-04 18:18:08 +000029941 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000029942fi
Reid Spencera773bd52006-08-04 18:18:08 +000029943
29944rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029945 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029946fi
Reid Spencera773bd52006-08-04 18:18:08 +000029947ac_res=`eval echo '${'$as_ac_var'}'`
29948 { echo "$as_me:$LINENO: result: $ac_res" >&5
29949echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029950if test `eval echo '${'$as_ac_var'}'` = yes; then
29951 cat >>confdefs.h <<_ACEOF
29952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000029953_ACEOF
29954
29955fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029956done
John Criswell7a73b802003-06-30 21:59:07 +000029957
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029958
29959
29960
Reid Spencer6af3d262004-12-15 04:01:48 +000029961
29962
Reid Spencer59473af2004-12-25 07:31:29 +000029963
Reid Spencerdf3be822006-01-23 08:15:53 +000029964for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
29965do
29966as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000029967{ echo "$as_me:$LINENO: checking for $ac_func" >&5
29968echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29969if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencerdf3be822006-01-23 08:15:53 +000029970 echo $ECHO_N "(cached) $ECHO_C" >&6
29971else
29972 cat >conftest.$ac_ext <<_ACEOF
29973/* confdefs.h. */
29974_ACEOF
29975cat confdefs.h >>conftest.$ac_ext
29976cat >>conftest.$ac_ext <<_ACEOF
29977/* end confdefs.h. */
29978/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29980#define $ac_func innocuous_$ac_func
29981
29982/* System header to define __stub macros and hopefully few prototypes,
29983 which can conflict with char $ac_func (); below.
29984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29985 <limits.h> exists even on freestanding compilers. */
29986
29987#ifdef __STDC__
29988# include <limits.h>
29989#else
29990# include <assert.h>
29991#endif
29992
29993#undef $ac_func
29994
Reid Spencera773bd52006-08-04 18:18:08 +000029995/* Override any GCC internal prototype to avoid an error.
29996 Use char because int might match the return type of a GCC
29997 builtin and then its argument prototype would still apply. */
Reid Spencerdf3be822006-01-23 08:15:53 +000029998#ifdef __cplusplus
29999extern "C"
Reid Spencerdf3be822006-01-23 08:15:53 +000030000#endif
Reid Spencerdf3be822006-01-23 08:15:53 +000030001char $ac_func ();
30002/* The GNU C library defines this for functions which it implements
30003 to always fail with ENOSYS. Some functions are actually named
30004 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030005#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencerdf3be822006-01-23 08:15:53 +000030006choke me
Reid Spencerdf3be822006-01-23 08:15:53 +000030007#endif
30008
30009int
30010main ()
30011{
Reid Spencera773bd52006-08-04 18:18:08 +000030012return $ac_func ();
Reid Spencerdf3be822006-01-23 08:15:53 +000030013 ;
30014 return 0;
30015}
30016_ACEOF
30017rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030018if { (ac_try="$ac_link"
30019case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30022esac
30023eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_link") 2>conftest.er1
Reid Spencerdf3be822006-01-23 08:15:53 +000030025 ac_status=$?
30026 grep -v '^ *+' conftest.er1 >conftest.err
30027 rm -f conftest.er1
30028 cat conftest.err >&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30032 { (case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30035esac
30036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030038 ac_status=$?
30039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30040 (exit $ac_status); }; } &&
30041 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030042 { (case "(($ac_try" in
30043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30044 *) ac_try_echo=$ac_try;;
30045esac
30046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30047 (eval "$ac_try") 2>&5
Reid Spencerdf3be822006-01-23 08:15:53 +000030048 ac_status=$?
30049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050 (exit $ac_status); }; }; then
30051 eval "$as_ac_var=yes"
30052else
30053 echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
Reid Spencera773bd52006-08-04 18:18:08 +000030056 eval "$as_ac_var=no"
Reid Spencerdf3be822006-01-23 08:15:53 +000030057fi
Reid Spencera773bd52006-08-04 18:18:08 +000030058
30059rm -f core conftest.err conftest.$ac_objext \
Reid Spencerdf3be822006-01-23 08:15:53 +000030060 conftest$ac_exeext conftest.$ac_ext
30061fi
Reid Spencera773bd52006-08-04 18:18:08 +000030062ac_res=`eval echo '${'$as_ac_var'}'`
30063 { echo "$as_me:$LINENO: result: $ac_res" >&5
30064echo "${ECHO_T}$ac_res" >&6; }
Reid Spencerdf3be822006-01-23 08:15:53 +000030065if test `eval echo '${'$as_ac_var'}'` = yes; then
30066 cat >>confdefs.h <<_ACEOF
30067#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30068_ACEOF
30069
30070fi
30071done
30072
30073
30074
30075
30076
30077
30078
30079
30080for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000030081do
30082as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030083{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30084echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30085if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer7931a782004-12-27 06:15:02 +000030086 echo $ECHO_N "(cached) $ECHO_C" >&6
30087else
30088 cat >conftest.$ac_ext <<_ACEOF
30089/* confdefs.h. */
30090_ACEOF
30091cat confdefs.h >>conftest.$ac_ext
30092cat >>conftest.$ac_ext <<_ACEOF
30093/* end confdefs.h. */
30094/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30096#define $ac_func innocuous_$ac_func
30097
30098/* System header to define __stub macros and hopefully few prototypes,
30099 which can conflict with char $ac_func (); below.
30100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30101 <limits.h> exists even on freestanding compilers. */
30102
30103#ifdef __STDC__
30104# include <limits.h>
30105#else
30106# include <assert.h>
30107#endif
30108
30109#undef $ac_func
30110
Reid Spencera773bd52006-08-04 18:18:08 +000030111/* Override any GCC internal prototype to avoid an error.
30112 Use char because int might match the return type of a GCC
30113 builtin and then its argument prototype would still apply. */
Reid Spencer7931a782004-12-27 06:15:02 +000030114#ifdef __cplusplus
30115extern "C"
Reid Spencer7931a782004-12-27 06:15:02 +000030116#endif
Reid Spencer7931a782004-12-27 06:15:02 +000030117char $ac_func ();
30118/* The GNU C library defines this for functions which it implements
30119 to always fail with ENOSYS. Some functions are actually named
30120 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030121#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer7931a782004-12-27 06:15:02 +000030122choke me
Reid Spencer7931a782004-12-27 06:15:02 +000030123#endif
30124
30125int
30126main ()
30127{
Reid Spencera773bd52006-08-04 18:18:08 +000030128return $ac_func ();
Reid Spencer7931a782004-12-27 06:15:02 +000030129 ;
30130 return 0;
30131}
30132_ACEOF
30133rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030134if { (ac_try="$ac_link"
30135case "(($ac_try" in
30136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30137 *) ac_try_echo=$ac_try;;
30138esac
30139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30140 (eval "$ac_link") 2>conftest.er1
Reid Spencer7931a782004-12-27 06:15:02 +000030141 ac_status=$?
30142 grep -v '^ *+' conftest.er1 >conftest.err
30143 rm -f conftest.er1
30144 cat conftest.err >&5
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30148 { (case "(($ac_try" in
30149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30150 *) ac_try_echo=$ac_try;;
30151esac
30152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30153 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030154 ac_status=$?
30155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30156 (exit $ac_status); }; } &&
30157 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030158 { (case "(($ac_try" in
30159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30160 *) ac_try_echo=$ac_try;;
30161esac
30162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30163 (eval "$ac_try") 2>&5
Reid Spencer7931a782004-12-27 06:15:02 +000030164 ac_status=$?
30165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166 (exit $ac_status); }; }; then
30167 eval "$as_ac_var=yes"
30168else
30169 echo "$as_me: failed program was:" >&5
30170sed 's/^/| /' conftest.$ac_ext >&5
30171
Reid Spencera773bd52006-08-04 18:18:08 +000030172 eval "$as_ac_var=no"
Reid Spencer7931a782004-12-27 06:15:02 +000030173fi
Reid Spencera773bd52006-08-04 18:18:08 +000030174
30175rm -f core conftest.err conftest.$ac_objext \
Reid Spencer7931a782004-12-27 06:15:02 +000030176 conftest$ac_exeext conftest.$ac_ext
30177fi
Reid Spencera773bd52006-08-04 18:18:08 +000030178ac_res=`eval echo '${'$as_ac_var'}'`
30179 { echo "$as_me:$LINENO: result: $ac_res" >&5
30180echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000030181if test `eval echo '${'$as_ac_var'}'` = yes; then
30182 cat >>confdefs.h <<_ACEOF
30183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30184_ACEOF
30185
30186fi
30187done
30188
30189
Reid Spencerba46ca32004-12-31 05:49:15 +000030190
30191
Chris Lattner0b142592005-11-14 06:57:34 +000030192
Chris Lattner511f11d2005-11-14 07:25:50 +000030193for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030194do
30195as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030196{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30197echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30198if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000030199 echo $ECHO_N "(cached) $ECHO_C" >&6
30200else
30201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030202/* confdefs.h. */
30203_ACEOF
30204cat confdefs.h >>conftest.$ac_ext
30205cat >>conftest.$ac_ext <<_ACEOF
30206/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30209#define $ac_func innocuous_$ac_func
30210
30211/* System header to define __stub macros and hopefully few prototypes,
30212 which can conflict with char $ac_func (); below.
30213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30214 <limits.h> exists even on freestanding compilers. */
30215
30216#ifdef __STDC__
30217# include <limits.h>
30218#else
30219# include <assert.h>
30220#endif
30221
30222#undef $ac_func
30223
Reid Spencera773bd52006-08-04 18:18:08 +000030224/* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030227#ifdef __cplusplus
30228extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030229#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030230char $ac_func ();
30231/* The GNU C library defines this for functions which it implements
30232 to always fail with ENOSYS. Some functions are actually named
30233 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030234#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030235choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030236#endif
John Criswell7a73b802003-06-30 21:59:07 +000030237
John Criswell7a73b802003-06-30 21:59:07 +000030238int
30239main ()
30240{
Reid Spencera773bd52006-08-04 18:18:08 +000030241return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030242 ;
30243 return 0;
30244}
30245_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030246rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030247if { (ac_try="$ac_link"
30248case "(($ac_try" in
30249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30250 *) ac_try_echo=$ac_try;;
30251esac
30252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30253 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030254 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030255 grep -v '^ *+' conftest.er1 >conftest.err
30256 rm -f conftest.er1
30257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30261 { (case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30264esac
30265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030267 ac_status=$?
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030270 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030271 { (case "(($ac_try" in
30272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30273 *) ac_try_echo=$ac_try;;
30274esac
30275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30276 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000030277 ac_status=$?
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030280 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000030281else
30282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030283sed 's/^/| /' conftest.$ac_ext >&5
30284
Reid Spencera773bd52006-08-04 18:18:08 +000030285 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000030286fi
Reid Spencera773bd52006-08-04 18:18:08 +000030287
30288rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030289 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030290fi
Reid Spencera773bd52006-08-04 18:18:08 +000030291ac_res=`eval echo '${'$as_ac_var'}'`
30292 { echo "$as_me:$LINENO: result: $ac_res" >&5
30293echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030294if test `eval echo '${'$as_ac_var'}'` = yes; then
30295 cat >>confdefs.h <<_ACEOF
30296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000030297_ACEOF
30298
30299fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030300done
John Criswell7a73b802003-06-30 21:59:07 +000030301
Reid Spencercdb08a32006-06-05 16:11:07 +000030302
30303
30304
30305
Reid Spencerafa22e22006-12-10 23:29:19 +000030306for ac_func in setjmp longjmp sigsetjmp siglongjmp
Reid Spencercdb08a32006-06-05 16:11:07 +000030307do
30308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030309{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30311if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencercdb08a32006-06-05 16:11:07 +000030312 echo $ECHO_N "(cached) $ECHO_C" >&6
30313else
30314 cat >conftest.$ac_ext <<_ACEOF
30315/* confdefs.h. */
30316_ACEOF
30317cat confdefs.h >>conftest.$ac_ext
30318cat >>conftest.$ac_ext <<_ACEOF
30319/* end confdefs.h. */
30320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30322#define $ac_func innocuous_$ac_func
30323
30324/* System header to define __stub macros and hopefully few prototypes,
30325 which can conflict with char $ac_func (); below.
30326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30327 <limits.h> exists even on freestanding compilers. */
30328
30329#ifdef __STDC__
30330# include <limits.h>
30331#else
30332# include <assert.h>
30333#endif
30334
30335#undef $ac_func
30336
Reid Spencera773bd52006-08-04 18:18:08 +000030337/* Override any GCC internal prototype to avoid an error.
30338 Use char because int might match the return type of a GCC
30339 builtin and then its argument prototype would still apply. */
Reid Spencercdb08a32006-06-05 16:11:07 +000030340#ifdef __cplusplus
30341extern "C"
Reid Spencercdb08a32006-06-05 16:11:07 +000030342#endif
Reid Spencercdb08a32006-06-05 16:11:07 +000030343char $ac_func ();
30344/* The GNU C library defines this for functions which it implements
30345 to always fail with ENOSYS. Some functions are actually named
30346 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030347#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencercdb08a32006-06-05 16:11:07 +000030348choke me
Reid Spencercdb08a32006-06-05 16:11:07 +000030349#endif
30350
30351int
30352main ()
30353{
Reid Spencera773bd52006-08-04 18:18:08 +000030354return $ac_func ();
Reid Spencercdb08a32006-06-05 16:11:07 +000030355 ;
30356 return 0;
30357}
30358_ACEOF
30359rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030360if { (ac_try="$ac_link"
30361case "(($ac_try" in
30362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30363 *) ac_try_echo=$ac_try;;
30364esac
30365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30366 (eval "$ac_link") 2>conftest.er1
Reid Spencercdb08a32006-06-05 16:11:07 +000030367 ac_status=$?
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30374 { (case "(($ac_try" in
30375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30376 *) ac_try_echo=$ac_try;;
30377esac
30378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30379 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030380 ac_status=$?
30381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30382 (exit $ac_status); }; } &&
30383 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030384 { (case "(($ac_try" in
30385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30386 *) ac_try_echo=$ac_try;;
30387esac
30388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30389 (eval "$ac_try") 2>&5
Reid Spencercdb08a32006-06-05 16:11:07 +000030390 ac_status=$?
30391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 (exit $ac_status); }; }; then
30393 eval "$as_ac_var=yes"
30394else
30395 echo "$as_me: failed program was:" >&5
30396sed 's/^/| /' conftest.$ac_ext >&5
30397
Reid Spencera773bd52006-08-04 18:18:08 +000030398 eval "$as_ac_var=no"
Reid Spencercdb08a32006-06-05 16:11:07 +000030399fi
Reid Spencera773bd52006-08-04 18:18:08 +000030400
30401rm -f core conftest.err conftest.$ac_objext \
Reid Spencercdb08a32006-06-05 16:11:07 +000030402 conftest$ac_exeext conftest.$ac_ext
30403fi
Reid Spencera773bd52006-08-04 18:18:08 +000030404ac_res=`eval echo '${'$as_ac_var'}'`
30405 { echo "$as_me:$LINENO: result: $ac_res" >&5
30406echo "${ECHO_T}$ac_res" >&6; }
Reid Spencercdb08a32006-06-05 16:11:07 +000030407if test `eval echo '${'$as_ac_var'}'` = yes; then
30408 cat >>confdefs.h <<_ACEOF
30409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30410_ACEOF
30411
30412fi
30413done
30414
Reid Spencera773bd52006-08-04 18:18:08 +000030415{ echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
30416echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030417if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030418 echo $ECHO_N "(cached) $ECHO_C" >&6
30419else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030420 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030421ac_cpp='$CPP $CPPFLAGS'
30422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30424ac_compiler_gnu=$ac_cv_c_compiler_gnu
30425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030426 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030427 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030428else
30429 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030430
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030431 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000030432_ACEOF
30433cat confdefs.h >>conftest.$ac_ext
30434cat >>conftest.$ac_ext <<_ACEOF
30435/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030436
John Criswella0137d32003-10-13 16:22:01 +000030437#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000030438#include <stdlib.h>
30439
John Criswella0137d32003-10-13 16:22:01 +000030440int
30441main ()
30442{
30443
Reid Spencer2706f8c2004-09-19 23:53:36 +000030444volatile double A, B;
30445char Buffer[100];
30446A = 1;
30447A /= 10.0;
30448sprintf(Buffer, "%a", A);
30449B = atof(Buffer);
30450if (A != B)
30451 return (1);
30452if (A != 0x1.999999999999ap-4)
30453 return (1);
30454return (0);
John Criswella0137d32003-10-13 16:22:01 +000030455 ;
30456 return 0;
30457}
30458_ACEOF
30459rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030460if { (ac_try="$ac_link"
30461case "(($ac_try" in
30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463 *) ac_try_echo=$ac_try;;
30464esac
30465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30466 (eval "$ac_link") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030470 { (case "(($ac_try" in
30471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30472 *) ac_try_echo=$ac_try;;
30473esac
30474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30475 (eval "$ac_try") 2>&5
John Criswella0137d32003-10-13 16:22:01 +000030476 ac_status=$?
30477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000030479 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000030480else
30481 echo "$as_me: program exited with status $ac_status" >&5
30482echo "$as_me: failed program was:" >&5
30483sed 's/^/| /' conftest.$ac_ext >&5
30484
30485( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000030486llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000030487fi
Reid Spencera773bd52006-08-04 18:18:08 +000030488rm -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 +000030489fi
Reid Spencera773bd52006-08-04 18:18:08 +000030490
30491
Reid Spencer2706f8c2004-09-19 23:53:36 +000030492 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000030493ac_cpp='$CPP $CPPFLAGS'
30494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30496ac_compiler_gnu=$ac_cv_c_compiler_gnu
30497
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030498fi
Reid Spencera773bd52006-08-04 18:18:08 +000030499{ echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
30500echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
Reid Spencer3be58f92004-11-27 22:01:43 +000030501 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000030502
30503cat >>confdefs.h <<\_ACEOF
30504#define HAVE_PRINTF_A 1
30505_ACEOF
30506
Reid Spencer2706f8c2004-09-19 23:53:36 +000030507 fi
John Criswella0137d32003-10-13 16:22:01 +000030508
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030509# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
30510# for constant arguments. Useless!
Reid Spencera773bd52006-08-04 18:18:08 +000030511{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
30512echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030513if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000030514 echo $ECHO_N "(cached) $ECHO_C" >&6
30515else
John Criswell0021c312004-02-13 21:57:29 +000030516 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000030517/* confdefs.h. */
30518_ACEOF
30519cat confdefs.h >>conftest.$ac_ext
30520cat >>conftest.$ac_ext <<_ACEOF
30521/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030522#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000030523int
30524main ()
30525{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030526char *p = (char *) alloca (2 * sizeof (int));
Reid Spencera773bd52006-08-04 18:18:08 +000030527 if (p) return 0;
John Criswell0021c312004-02-13 21:57:29 +000030528 ;
30529 return 0;
30530}
30531_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030532rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030533if { (ac_try="$ac_link"
30534case "(($ac_try" in
30535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30536 *) ac_try_echo=$ac_try;;
30537esac
30538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30539 (eval "$ac_link") 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000030540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030541 grep -v '^ *+' conftest.er1 >conftest.err
30542 rm -f conftest.er1
30543 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000030544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30547 { (case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30550esac
30551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030553 ac_status=$?
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030556 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030557 { (case "(($ac_try" in
30558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30559 *) ac_try_echo=$ac_try;;
30560esac
30561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30562 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030566 ac_cv_working_alloca_h=yes
30567else
30568 echo "$as_me: failed program was:" >&5
30569sed 's/^/| /' conftest.$ac_ext >&5
30570
Reid Spencera773bd52006-08-04 18:18:08 +000030571 ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000030572fi
Reid Spencera773bd52006-08-04 18:18:08 +000030573
30574rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030575 conftest$ac_exeext conftest.$ac_ext
30576fi
Reid Spencera773bd52006-08-04 18:18:08 +000030577{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
30578echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030579if test $ac_cv_working_alloca_h = yes; then
30580
30581cat >>confdefs.h <<\_ACEOF
30582#define HAVE_ALLOCA_H 1
30583_ACEOF
30584
30585fi
30586
Reid Spencera773bd52006-08-04 18:18:08 +000030587{ echo "$as_me:$LINENO: checking for alloca" >&5
30588echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030589if test "${ac_cv_func_alloca_works+set}" = set; then
30590 echo $ECHO_N "(cached) $ECHO_C" >&6
30591else
30592 cat >conftest.$ac_ext <<_ACEOF
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
30598#ifdef __GNUC__
30599# define alloca __builtin_alloca
30600#else
30601# ifdef _MSC_VER
30602# include <malloc.h>
30603# define alloca _alloca
30604# else
30605# if HAVE_ALLOCA_H
30606# include <alloca.h>
30607# else
30608# ifdef _AIX
30609 #pragma alloca
30610# else
30611# ifndef alloca /* predefined by HP cc +Olibcalls */
30612char *alloca ();
30613# endif
30614# endif
30615# endif
30616# endif
30617#endif
30618
30619int
30620main ()
30621{
30622char *p = (char *) alloca (1);
Reid Spencera773bd52006-08-04 18:18:08 +000030623 if (p) return 0;
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030624 ;
30625 return 0;
30626}
30627_ACEOF
30628rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030629if { (ac_try="$ac_link"
30630case "(($ac_try" in
30631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30632 *) ac_try_echo=$ac_try;;
30633esac
30634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30635 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030636 ac_status=$?
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30643 { (case "(($ac_try" in
30644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30645 *) ac_try_echo=$ac_try;;
30646esac
30647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30648 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030649 ac_status=$?
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); }; } &&
30652 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030653 { (case "(($ac_try" in
30654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30655 *) ac_try_echo=$ac_try;;
30656esac
30657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30658 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 ac_cv_func_alloca_works=yes
30663else
30664 echo "$as_me: failed program was:" >&5
30665sed 's/^/| /' conftest.$ac_ext >&5
30666
Reid Spencera773bd52006-08-04 18:18:08 +000030667 ac_cv_func_alloca_works=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030668fi
Reid Spencera773bd52006-08-04 18:18:08 +000030669
30670rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030671 conftest$ac_exeext conftest.$ac_ext
30672fi
Reid Spencera773bd52006-08-04 18:18:08 +000030673{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
30674echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030675
30676if test $ac_cv_func_alloca_works = yes; then
30677
30678cat >>confdefs.h <<\_ACEOF
30679#define HAVE_ALLOCA 1
30680_ACEOF
30681
30682else
30683 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
30684# that cause trouble. Some versions do not even contain alloca or
30685# contain a buggy version. If you still want to use their alloca,
30686# use ar to extract alloca.o from them instead of compiling alloca.c.
30687
Reid Spencera773bd52006-08-04 18:18:08 +000030688ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030689
30690cat >>confdefs.h <<\_ACEOF
30691#define C_ALLOCA 1
30692_ACEOF
30693
30694
Reid Spencera773bd52006-08-04 18:18:08 +000030695{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
30696echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030697if test "${ac_cv_os_cray+set}" = set; then
30698 echo $ECHO_N "(cached) $ECHO_C" >&6
30699else
30700 cat >conftest.$ac_ext <<_ACEOF
30701/* confdefs.h. */
30702_ACEOF
30703cat confdefs.h >>conftest.$ac_ext
30704cat >>conftest.$ac_ext <<_ACEOF
30705/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030706#if defined CRAY && ! defined CRAY2
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030707webecray
30708#else
30709wenotbecray
30710#endif
30711
30712_ACEOF
30713if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30714 $EGREP "webecray" >/dev/null 2>&1; then
30715 ac_cv_os_cray=yes
30716else
30717 ac_cv_os_cray=no
30718fi
30719rm -f conftest*
30720
30721fi
Reid Spencera773bd52006-08-04 18:18:08 +000030722{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
30723echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030724if test $ac_cv_os_cray = yes; then
30725 for ac_func in _getb67 GETB67 getb67; do
30726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000030727{ echo "$as_me:$LINENO: checking for $ac_func" >&5
30728echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30729if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030730 echo $ECHO_N "(cached) $ECHO_C" >&6
30731else
30732 cat >conftest.$ac_ext <<_ACEOF
30733/* confdefs.h. */
30734_ACEOF
30735cat confdefs.h >>conftest.$ac_ext
30736cat >>conftest.$ac_ext <<_ACEOF
30737/* end confdefs.h. */
30738/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30740#define $ac_func innocuous_$ac_func
30741
30742/* System header to define __stub macros and hopefully few prototypes,
30743 which can conflict with char $ac_func (); below.
30744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30745 <limits.h> exists even on freestanding compilers. */
30746
30747#ifdef __STDC__
30748# include <limits.h>
30749#else
30750# include <assert.h>
30751#endif
30752
30753#undef $ac_func
30754
Reid Spencera773bd52006-08-04 18:18:08 +000030755/* Override any GCC internal prototype to avoid an error.
30756 Use char because int might match the return type of a GCC
30757 builtin and then its argument prototype would still apply. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030758#ifdef __cplusplus
30759extern "C"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030760#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030761char $ac_func ();
30762/* The GNU C library defines this for functions which it implements
30763 to always fail with ENOSYS. Some functions are actually named
30764 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000030765#if defined __stub_$ac_func || defined __stub___$ac_func
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030766choke me
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030767#endif
30768
30769int
30770main ()
30771{
Reid Spencera773bd52006-08-04 18:18:08 +000030772return $ac_func ();
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030773 ;
30774 return 0;
30775}
30776_ACEOF
30777rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030778if { (ac_try="$ac_link"
30779case "(($ac_try" in
30780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30781 *) ac_try_echo=$ac_try;;
30782esac
30783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30784 (eval "$ac_link") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030785 ac_status=$?
30786 grep -v '^ *+' conftest.er1 >conftest.err
30787 rm -f conftest.er1
30788 cat conftest.err >&5
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30792 { (case "(($ac_try" in
30793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794 *) ac_try_echo=$ac_try;;
30795esac
30796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030798 ac_status=$?
30799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30800 (exit $ac_status); }; } &&
30801 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030802 { (case "(($ac_try" in
30803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30804 *) ac_try_echo=$ac_try;;
30805esac
30806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30807 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030808 ac_status=$?
30809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30810 (exit $ac_status); }; }; then
30811 eval "$as_ac_var=yes"
30812else
30813 echo "$as_me: failed program was:" >&5
30814sed 's/^/| /' conftest.$ac_ext >&5
30815
Reid Spencera773bd52006-08-04 18:18:08 +000030816 eval "$as_ac_var=no"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030817fi
Reid Spencera773bd52006-08-04 18:18:08 +000030818
30819rm -f core conftest.err conftest.$ac_objext \
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030820 conftest$ac_exeext conftest.$ac_ext
30821fi
Reid Spencera773bd52006-08-04 18:18:08 +000030822ac_res=`eval echo '${'$as_ac_var'}'`
30823 { echo "$as_me:$LINENO: result: $ac_res" >&5
30824echo "${ECHO_T}$ac_res" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030825if test `eval echo '${'$as_ac_var'}'` = yes; then
30826
30827cat >>confdefs.h <<_ACEOF
30828#define CRAY_STACKSEG_END $ac_func
30829_ACEOF
30830
30831 break
30832fi
30833
30834 done
30835fi
30836
Reid Spencera773bd52006-08-04 18:18:08 +000030837{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
30838echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030839if test "${ac_cv_c_stack_direction+set}" = set; then
30840 echo $ECHO_N "(cached) $ECHO_C" >&6
30841else
30842 if test "$cross_compiling" = yes; then
30843 ac_cv_c_stack_direction=0
30844else
30845 cat >conftest.$ac_ext <<_ACEOF
30846/* confdefs.h. */
30847_ACEOF
30848cat confdefs.h >>conftest.$ac_ext
30849cat >>conftest.$ac_ext <<_ACEOF
30850/* end confdefs.h. */
Reid Spencera773bd52006-08-04 18:18:08 +000030851$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030852int
30853find_stack_direction ()
30854{
30855 static char *addr = 0;
30856 auto char dummy;
30857 if (addr == 0)
30858 {
30859 addr = &dummy;
30860 return find_stack_direction ();
30861 }
John Criswell0021c312004-02-13 21:57:29 +000030862 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030863 return (&dummy > addr) ? 1 : -1;
30864}
John Criswell0021c312004-02-13 21:57:29 +000030865
John Criswell0021c312004-02-13 21:57:29 +000030866int
30867main ()
30868{
Reid Spencera773bd52006-08-04 18:18:08 +000030869 return find_stack_direction () < 0;
John Criswell0021c312004-02-13 21:57:29 +000030870}
30871_ACEOF
30872rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000030873if { (ac_try="$ac_link"
30874case "(($ac_try" in
30875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30876 *) ac_try_echo=$ac_try;;
30877esac
30878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30879 (eval "$ac_link") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030880 ac_status=$?
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000030883 { (case "(($ac_try" in
30884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30885 *) ac_try_echo=$ac_try;;
30886esac
30887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30888 (eval "$ac_try") 2>&5
John Criswell0021c312004-02-13 21:57:29 +000030889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030892 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000030893else
30894 echo "$as_me: program exited with status $ac_status" >&5
30895echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
30898( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030899ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000030900fi
Reid Spencera773bd52006-08-04 18:18:08 +000030901rm -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 +000030902fi
Reid Spencera773bd52006-08-04 18:18:08 +000030903
30904
John Criswell0021c312004-02-13 21:57:29 +000030905fi
Reid Spencera773bd52006-08-04 18:18:08 +000030906{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
30907echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030908
30909cat >>confdefs.h <<_ACEOF
30910#define STACK_DIRECTION $ac_cv_c_stack_direction
30911_ACEOF
30912
30913
John Criswell0021c312004-02-13 21:57:29 +000030914fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030915
30916
Reid Spencera773bd52006-08-04 18:18:08 +000030917{ echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
30918echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030919if test "${ac_cv_func_rand48+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30921else
Reid Spencera773bd52006-08-04 18:18:08 +000030922 ac_ext=cpp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030923ac_cpp='$CXXCPP $CPPFLAGS'
30924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30927
30928 cat >conftest.$ac_ext <<_ACEOF
30929/* confdefs.h. */
30930_ACEOF
30931cat confdefs.h >>conftest.$ac_ext
30932cat >>conftest.$ac_ext <<_ACEOF
30933/* end confdefs.h. */
30934#include <stdlib.h>
30935int
30936main ()
30937{
30938srand48(0);lrand48();drand48();
30939 ;
30940 return 0;
30941}
30942_ACEOF
30943rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000030944if { (ac_try="$ac_compile"
30945case "(($ac_try" in
30946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30947 *) ac_try_echo=$ac_try;;
30948esac
30949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30950 (eval "$ac_compile") 2>conftest.er1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030951 ac_status=$?
30952 grep -v '^ *+' conftest.er1 >conftest.err
30953 rm -f conftest.er1
30954 cat conftest.err >&5
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000030957 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
30958 { (case "(($ac_try" in
30959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960 *) ac_try_echo=$ac_try;;
30961esac
30962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030964 ac_status=$?
30965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966 (exit $ac_status); }; } &&
30967 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000030968 { (case "(($ac_try" in
30969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970 *) ac_try_echo=$ac_try;;
30971esac
30972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973 (eval "$ac_try") 2>&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; }; then
30977 ac_cv_func_rand48=yes
30978else
30979 echo "$as_me: failed program was:" >&5
30980sed 's/^/| /' conftest.$ac_ext >&5
30981
Reid Spencera773bd52006-08-04 18:18:08 +000030982 ac_cv_func_rand48=no
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030983fi
Reid Spencera773bd52006-08-04 18:18:08 +000030984
30985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030986 ac_ext=c
30987ac_cpp='$CPP $CPPFLAGS'
30988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30990ac_compiler_gnu=$ac_cv_c_compiler_gnu
30991
30992fi
Reid Spencera773bd52006-08-04 18:18:08 +000030993{ echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
30994echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030995
30996if test "$ac_cv_func_rand48" = "yes" ; then
30997
30998cat >>confdefs.h <<\_ACEOF
30999#define HAVE_RAND48 1
31000_ACEOF
31001
31002fi
John Criswell0021c312004-02-13 21:57:29 +000031003
31004
Reid Spencera773bd52006-08-04 18:18:08 +000031005{ echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31006echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031007if test "${ac_cv_cxx_namespaces+set}" = set; then
31008 echo $ECHO_N "(cached) $ECHO_C" >&6
31009else
Reid Spencera773bd52006-08-04 18:18:08 +000031010 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031011ac_cpp='$CXXCPP $CPPFLAGS'
31012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31015
31016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031017/* confdefs.h. */
31018_ACEOF
31019cat confdefs.h >>conftest.$ac_ext
31020cat >>conftest.$ac_ext <<_ACEOF
31021/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031022namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000031023int
31024main ()
31025{
31026using namespace Outer::Inner; return i;
31027 ;
31028 return 0;
31029}
31030_ACEOF
31031rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031032if { (ac_try="$ac_compile"
31033case "(($ac_try" in
31034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31035 *) ac_try_echo=$ac_try;;
31036esac
31037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31038 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031040 grep -v '^ *+' conftest.er1 >conftest.err
31041 rm -f conftest.er1
31042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31044 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31046 { (case "(($ac_try" in
31047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31048 *) ac_try_echo=$ac_try;;
31049esac
31050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31051 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031052 ac_status=$?
31053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31054 (exit $ac_status); }; } &&
31055 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031056 { (case "(($ac_try" in
31057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31058 *) ac_try_echo=$ac_try;;
31059esac
31060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31061 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031062 ac_status=$?
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); }; }; then
31065 ac_cv_cxx_namespaces=yes
31066else
31067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031068sed 's/^/| /' conftest.$ac_ext >&5
31069
Reid Spencera773bd52006-08-04 18:18:08 +000031070 ac_cv_cxx_namespaces=no
John Criswell7a73b802003-06-30 21:59:07 +000031071fi
Reid Spencera773bd52006-08-04 18:18:08 +000031072
31073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031074 ac_ext=c
31075ac_cpp='$CPP $CPPFLAGS'
31076ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31077ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31078ac_compiler_gnu=$ac_cv_c_compiler_gnu
31079
31080
31081fi
Reid Spencera773bd52006-08-04 18:18:08 +000031082{ echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
31083echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031084if test "$ac_cv_cxx_namespaces" = yes; then
31085
31086cat >>confdefs.h <<\_ACEOF
31087#define HAVE_NAMESPACES
31088_ACEOF
31089
31090fi
31091
Reid Spencera773bd52006-08-04 18:18:08 +000031092{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
31093echo $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 +000031094if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031095 echo $ECHO_N "(cached) $ECHO_C" >&6
31096else
31097
Reid Spencera773bd52006-08-04 18:18:08 +000031098 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031099ac_cpp='$CXXCPP $CPPFLAGS'
31100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31103
31104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031105/* confdefs.h. */
31106_ACEOF
31107cat confdefs.h >>conftest.$ac_ext
31108cat >>conftest.$ac_ext <<_ACEOF
31109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031110#include <ext/hash_map>
31111#ifdef HAVE_NAMESPACES
31112using namespace std;
31113#endif
John Criswell7a73b802003-06-30 21:59:07 +000031114int
31115main ()
31116{
Brian Gaeke90583492003-11-10 03:06:28 +000031117hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031118 ;
31119 return 0;
31120}
31121_ACEOF
31122rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031123if { (ac_try="$ac_compile"
31124case "(($ac_try" in
31125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31126 *) ac_try_echo=$ac_try;;
31127esac
31128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31129 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031130 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031131 grep -v '^ *+' conftest.er1 >conftest.err
31132 rm -f conftest.er1
31133 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31137 { (case "(($ac_try" in
31138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31139 *) ac_try_echo=$ac_try;;
31140esac
31141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31142 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031143 ac_status=$?
31144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145 (exit $ac_status); }; } &&
31146 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031147 { (case "(($ac_try" in
31148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149 *) ac_try_echo=$ac_try;;
31150esac
31151eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031153 ac_status=$?
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031156 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000031157else
31158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031159sed 's/^/| /' conftest.$ac_ext >&5
31160
Reid Spencera773bd52006-08-04 18:18:08 +000031161 ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031162fi
Reid Spencera773bd52006-08-04 18:18:08 +000031163
31164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031165 ac_ext=c
31166ac_cpp='$CPP $CPPFLAGS'
31167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31169ac_compiler_gnu=$ac_cv_c_compiler_gnu
31170
John Criswell7a73b802003-06-30 21:59:07 +000031171fi
Reid Spencera773bd52006-08-04 18:18:08 +000031172{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
31173echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031174 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
31175 then
John Criswell9f011862004-09-24 18:28:00 +000031176
31177cat >>confdefs.h <<\_ACEOF
31178#define HAVE_STD_EXT_HASH_MAP 1
31179_ACEOF
31180
31181 else
31182
31183cat >>confdefs.h <<\_ACEOF
31184#define HAVE_STD_EXT_HASH_MAP 0
31185_ACEOF
31186
Brian Gaeke90583492003-11-10 03:06:28 +000031187 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031188
Reid Spencera773bd52006-08-04 18:18:08 +000031189 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
31190echo $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 +000031191if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
31192 echo $ECHO_N "(cached) $ECHO_C" >&6
31193else
31194
Reid Spencera773bd52006-08-04 18:18:08 +000031195 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031196ac_cpp='$CXXCPP $CPPFLAGS'
31197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31200
31201 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031202/* confdefs.h. */
31203_ACEOF
31204cat confdefs.h >>conftest.$ac_ext
31205cat >>conftest.$ac_ext <<_ACEOF
31206/* end confdefs.h. */
31207#include <ext/hash_map>
31208#ifdef HAVE_NAMESPACES
31209using namespace __gnu_cxx;
31210#endif
31211int
31212main ()
31213{
31214hash_map<int,int> t;
31215 ;
31216 return 0;
31217}
31218_ACEOF
31219rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031220if { (ac_try="$ac_compile"
31221case "(($ac_try" in
31222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31223 *) ac_try_echo=$ac_try;;
31224esac
31225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31226 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031228 grep -v '^ *+' conftest.er1 >conftest.err
31229 rm -f conftest.er1
31230 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31234 { (case "(($ac_try" in
31235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31236 *) ac_try_echo=$ac_try;;
31237esac
31238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31239 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031240 ac_status=$?
31241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242 (exit $ac_status); }; } &&
31243 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031244 { (case "(($ac_try" in
31245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246 *) ac_try_echo=$ac_try;;
31247esac
31248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031250 ac_status=$?
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; }; then
31253 ac_cv_cxx_have_gnu_ext_hash_map=yes
31254else
31255 echo "$as_me: failed program was:" >&5
31256sed 's/^/| /' conftest.$ac_ext >&5
31257
Reid Spencera773bd52006-08-04 18:18:08 +000031258 ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000031259fi
Reid Spencera773bd52006-08-04 18:18:08 +000031260
31261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031262 ac_ext=c
31263ac_cpp='$CPP $CPPFLAGS'
31264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31266ac_compiler_gnu=$ac_cv_c_compiler_gnu
31267
31268fi
Reid Spencera773bd52006-08-04 18:18:08 +000031269{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
31270echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031271 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
31272 then
John Criswell9f011862004-09-24 18:28:00 +000031273
31274cat >>confdefs.h <<\_ACEOF
31275#define HAVE_GNU_EXT_HASH_MAP 1
31276_ACEOF
31277
31278 else
31279
31280cat >>confdefs.h <<\_ACEOF
31281#define HAVE_GNU_EXT_HASH_MAP 0
31282_ACEOF
31283
Brian Gaeke90583492003-11-10 03:06:28 +000031284 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031285
Reid Spencera773bd52006-08-04 18:18:08 +000031286 { echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
31287echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031288if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
31289 echo $ECHO_N "(cached) $ECHO_C" >&6
31290else
John Criswell7a73b802003-06-30 21:59:07 +000031291
Reid Spencera773bd52006-08-04 18:18:08 +000031292 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031293ac_cpp='$CXXCPP $CPPFLAGS'
31294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31297
31298 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031299/* confdefs.h. */
31300_ACEOF
31301cat confdefs.h >>conftest.$ac_ext
31302cat >>conftest.$ac_ext <<_ACEOF
31303/* end confdefs.h. */
31304#include <hash_map>
31305int
31306main ()
31307{
31308hash_map<int,int> t;
31309 ;
31310 return 0;
31311}
31312_ACEOF
31313rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031314if { (ac_try="$ac_compile"
31315case "(($ac_try" in
31316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31317 *) ac_try_echo=$ac_try;;
31318esac
31319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31320 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031322 grep -v '^ *+' conftest.er1 >conftest.err
31323 rm -f conftest.er1
31324 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31328 { (case "(($ac_try" in
31329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31330 *) ac_try_echo=$ac_try;;
31331esac
31332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31333 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031334 ac_status=$?
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; } &&
31337 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031338 { (case "(($ac_try" in
31339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31340 *) ac_try_echo=$ac_try;;
31341esac
31342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31343 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; }; then
31347 ac_cv_cxx_have_global_hash_map=yes
31348else
31349 echo "$as_me: failed program was:" >&5
31350sed 's/^/| /' conftest.$ac_ext >&5
31351
Reid Spencera773bd52006-08-04 18:18:08 +000031352 ac_cv_cxx_have_global_hash_map=no
Brian Gaeke90583492003-11-10 03:06:28 +000031353fi
Reid Spencera773bd52006-08-04 18:18:08 +000031354
31355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031356 ac_ext=c
31357ac_cpp='$CPP $CPPFLAGS'
31358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31360ac_compiler_gnu=$ac_cv_c_compiler_gnu
31361
31362fi
Reid Spencera773bd52006-08-04 18:18:08 +000031363{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
31364echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031365 if test "$ac_cv_cxx_have_global_hash_map" = yes
31366 then
John Criswell9f011862004-09-24 18:28:00 +000031367
31368cat >>confdefs.h <<\_ACEOF
31369#define HAVE_GLOBAL_HASH_MAP 1
31370_ACEOF
31371
31372 else
31373
31374cat >>confdefs.h <<\_ACEOF
31375#define HAVE_GLOBAL_HASH_MAP 0
31376_ACEOF
31377
Brian Gaeke90583492003-11-10 03:06:28 +000031378 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031379
Reid Spencera773bd52006-08-04 18:18:08 +000031380{ echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
31381echo $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 +000031382if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000031383 echo $ECHO_N "(cached) $ECHO_C" >&6
31384else
31385
Reid Spencera773bd52006-08-04 18:18:08 +000031386 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031387ac_cpp='$CXXCPP $CPPFLAGS'
31388ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31389ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31390ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31391
31392 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031393/* confdefs.h. */
31394_ACEOF
31395cat confdefs.h >>conftest.$ac_ext
31396cat >>conftest.$ac_ext <<_ACEOF
31397/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031398#include <ext/hash_set>
31399#ifdef HAVE_NAMESPACES
31400using namespace std;
31401#endif
John Criswell7a73b802003-06-30 21:59:07 +000031402int
31403main ()
31404{
Brian Gaeke90583492003-11-10 03:06:28 +000031405hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000031406 ;
31407 return 0;
31408}
31409_ACEOF
31410rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031411if { (ac_try="$ac_compile"
31412case "(($ac_try" in
31413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414 *) ac_try_echo=$ac_try;;
31415esac
31416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31425 { (case "(($ac_try" in
31426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427 *) ac_try_echo=$ac_try;;
31428esac
31429eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; } &&
31434 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031435 { (case "(($ac_try" in
31436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437 *) ac_try_echo=$ac_try;;
31438esac
31439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031441 ac_status=$?
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031444 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031445else
31446 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031447sed 's/^/| /' conftest.$ac_ext >&5
31448
Reid Spencera773bd52006-08-04 18:18:08 +000031449 ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031450fi
Reid Spencera773bd52006-08-04 18:18:08 +000031451
31452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031453 ac_ext=c
31454ac_cpp='$CPP $CPPFLAGS'
31455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31457ac_compiler_gnu=$ac_cv_c_compiler_gnu
31458
31459fi
Reid Spencera773bd52006-08-04 18:18:08 +000031460{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
31461echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031462 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
31463 then
John Criswell9f011862004-09-24 18:28:00 +000031464
31465cat >>confdefs.h <<\_ACEOF
31466#define HAVE_STD_EXT_HASH_SET 1
31467_ACEOF
31468
31469 else
31470
31471cat >>confdefs.h <<\_ACEOF
31472#define HAVE_STD_EXT_HASH_SET 0
31473_ACEOF
31474
Brian Gaeke90583492003-11-10 03:06:28 +000031475 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031476
Reid Spencera773bd52006-08-04 18:18:08 +000031477 { echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
31478echo $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 +000031479if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
31480 echo $ECHO_N "(cached) $ECHO_C" >&6
31481else
31482
Reid Spencera773bd52006-08-04 18:18:08 +000031483 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031484ac_cpp='$CXXCPP $CPPFLAGS'
31485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31488
John Criswell7a73b802003-06-30 21:59:07 +000031489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031490/* confdefs.h. */
31491_ACEOF
31492cat confdefs.h >>conftest.$ac_ext
31493cat >>conftest.$ac_ext <<_ACEOF
31494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031495#include <ext/hash_set>
31496#ifdef HAVE_NAMESPACES
31497using namespace __gnu_cxx;
31498#endif
John Criswell7a73b802003-06-30 21:59:07 +000031499int
31500main ()
31501{
Brian Gaeke90583492003-11-10 03:06:28 +000031502hash_set<int> t;
31503 ;
31504 return 0;
31505}
31506_ACEOF
31507rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031508if { (ac_try="$ac_compile"
31509case "(($ac_try" in
31510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31511 *) ac_try_echo=$ac_try;;
31512esac
31513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31514 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000031515 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031516 grep -v '^ *+' conftest.er1 >conftest.err
31517 rm -f conftest.er1
31518 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000031519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31522 { (case "(($ac_try" in
31523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31524 *) ac_try_echo=$ac_try;;
31525esac
31526eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31527 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; } &&
31531 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031532 { (case "(($ac_try" in
31533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31534 *) ac_try_echo=$ac_try;;
31535esac
31536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31537 (eval "$ac_try") 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000031538 ac_status=$?
31539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; }; then
31541 ac_cv_cxx_have_gnu_ext_hash_set=yes
31542else
31543 echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
Reid Spencera773bd52006-08-04 18:18:08 +000031546 ac_cv_cxx_have_gnu_ext_hash_set=no
Brian Gaeke90583492003-11-10 03:06:28 +000031547fi
Reid Spencera773bd52006-08-04 18:18:08 +000031548
31549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000031550 ac_ext=c
31551ac_cpp='$CPP $CPPFLAGS'
31552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31554ac_compiler_gnu=$ac_cv_c_compiler_gnu
31555
31556fi
Reid Spencera773bd52006-08-04 18:18:08 +000031557{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
31558echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031559 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
31560 then
John Criswell9f011862004-09-24 18:28:00 +000031561
31562cat >>confdefs.h <<\_ACEOF
31563#define HAVE_GNU_EXT_HASH_SET 1
31564_ACEOF
31565
31566 else
31567
31568cat >>confdefs.h <<\_ACEOF
31569#define HAVE_GNU_EXT_HASH_SET 0
31570_ACEOF
31571
Brian Gaeke90583492003-11-10 03:06:28 +000031572 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031573
Reid Spencera773bd52006-08-04 18:18:08 +000031574 { echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
31575echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6; }
Brian Gaeke90583492003-11-10 03:06:28 +000031576if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
31577 echo $ECHO_N "(cached) $ECHO_C" >&6
31578else
31579
Reid Spencera773bd52006-08-04 18:18:08 +000031580 ac_ext=cpp
Brian Gaeke90583492003-11-10 03:06:28 +000031581ac_cpp='$CXXCPP $CPPFLAGS'
31582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31585
31586 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000031587/* confdefs.h. */
31588_ACEOF
31589cat confdefs.h >>conftest.$ac_ext
31590cat >>conftest.$ac_ext <<_ACEOF
31591/* end confdefs.h. */
31592#include <hash_set>
31593int
31594main ()
31595{
John Criswell7a73b802003-06-30 21:59:07 +000031596hash_set<int> t; return 0;
31597 ;
31598 return 0;
31599}
31600_ACEOF
31601rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031602if { (ac_try="$ac_compile"
31603case "(($ac_try" in
31604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31605 *) ac_try_echo=$ac_try;;
31606esac
31607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31608 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031609 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031610 grep -v '^ *+' conftest.er1 >conftest.err
31611 rm -f conftest.er1
31612 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31614 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31616 { (case "(($ac_try" in
31617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31618 *) ac_try_echo=$ac_try;;
31619esac
31620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31621 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031622 ac_status=$?
31623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624 (exit $ac_status); }; } &&
31625 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031626 { (case "(($ac_try" in
31627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31628 *) ac_try_echo=$ac_try;;
31629esac
31630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31631 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031632 ac_status=$?
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000031635 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000031636else
31637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031638sed 's/^/| /' conftest.$ac_ext >&5
31639
Reid Spencera773bd52006-08-04 18:18:08 +000031640 ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000031641fi
Reid Spencera773bd52006-08-04 18:18:08 +000031642
31643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031644 ac_ext=c
31645ac_cpp='$CPP $CPPFLAGS'
31646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31648ac_compiler_gnu=$ac_cv_c_compiler_gnu
31649
John Criswell7a73b802003-06-30 21:59:07 +000031650fi
Reid Spencera773bd52006-08-04 18:18:08 +000031651{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
31652echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6; }
Brian Gaeke793c5f22004-02-23 18:56:02 +000031653 if test "$ac_cv_cxx_have_global_hash_set" = yes
31654 then
John Criswell9f011862004-09-24 18:28:00 +000031655
31656cat >>confdefs.h <<\_ACEOF
31657#define HAVE_GLOBAL_HASH_SET 1
31658_ACEOF
31659
31660 else
31661
31662cat >>confdefs.h <<\_ACEOF
31663#define HAVE_GLOBAL_HASH_SET 0
31664_ACEOF
31665
Brian Gaeke90583492003-11-10 03:06:28 +000031666 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000031667
Reid Spencera773bd52006-08-04 18:18:08 +000031668{ echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
31669echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031670if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
31671 echo $ECHO_N "(cached) $ECHO_C" >&6
31672else
31673
Reid Spencera773bd52006-08-04 18:18:08 +000031674 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031675ac_cpp='$CXXCPP $CPPFLAGS'
31676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31679
31680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031681/* confdefs.h. */
31682_ACEOF
31683cat confdefs.h >>conftest.$ac_ext
31684cat >>conftest.$ac_ext <<_ACEOF
31685/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031686#include <iterator>
31687#ifdef HAVE_NAMESPACES
31688using namespace std;
31689#endif
John Criswell7a73b802003-06-30 21:59:07 +000031690int
31691main ()
31692{
31693iterator<int,int,int> t; return 0;
31694 ;
31695 return 0;
31696}
31697_ACEOF
31698rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031699if { (ac_try="$ac_compile"
31700case "(($ac_try" in
31701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31702 *) ac_try_echo=$ac_try;;
31703esac
31704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31705 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031707 grep -v '^ *+' conftest.er1 >conftest.err
31708 rm -f conftest.er1
31709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31713 { (case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31716esac
31717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031719 ac_status=$?
31720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31721 (exit $ac_status); }; } &&
31722 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031723 { (case "(($ac_try" in
31724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31725 *) ac_try_echo=$ac_try;;
31726esac
31727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31728 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031729 ac_status=$?
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); }; }; then
31732 ac_cv_cxx_have_std_iterator=yes
31733else
31734 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031735sed 's/^/| /' conftest.$ac_ext >&5
31736
Reid Spencera773bd52006-08-04 18:18:08 +000031737 ac_cv_cxx_have_std_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031738fi
Reid Spencera773bd52006-08-04 18:18:08 +000031739
31740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031741 ac_ext=c
31742ac_cpp='$CPP $CPPFLAGS'
31743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31745ac_compiler_gnu=$ac_cv_c_compiler_gnu
31746
31747
31748fi
Reid Spencera773bd52006-08-04 18:18:08 +000031749{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
31750echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031751if test "$ac_cv_cxx_have_std_iterator" = yes
31752then
John Criswell40468462004-09-24 21:19:06 +000031753
31754cat >>confdefs.h <<\_ACEOF
31755#define HAVE_STD_ITERATOR 1
31756_ACEOF
31757
31758else
31759
31760cat >>confdefs.h <<\_ACEOF
31761#define HAVE_STD_ITERATOR 0
31762_ACEOF
31763
John Criswell7a73b802003-06-30 21:59:07 +000031764fi
31765
Reid Spencera773bd52006-08-04 18:18:08 +000031766{ echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
31767echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031768if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
31769 echo $ECHO_N "(cached) $ECHO_C" >&6
31770else
31771
Reid Spencera773bd52006-08-04 18:18:08 +000031772 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031773ac_cpp='$CXXCPP $CPPFLAGS'
31774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31777
31778 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031779/* confdefs.h. */
31780_ACEOF
31781cat confdefs.h >>conftest.$ac_ext
31782cat >>conftest.$ac_ext <<_ACEOF
31783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031784#include <iterator>
31785#ifdef HAVE_NAMESPACES
31786using namespace std;
31787#endif
John Criswell7a73b802003-06-30 21:59:07 +000031788int
31789main ()
31790{
John Criswellc78022e2003-07-29 19:11:58 +000031791bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031792 ;
31793 return 0;
31794}
31795_ACEOF
31796rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031797if { (ac_try="$ac_compile"
31798case "(($ac_try" in
31799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31800 *) ac_try_echo=$ac_try;;
31801esac
31802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31803 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031804 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031805 grep -v '^ *+' conftest.er1 >conftest.err
31806 rm -f conftest.er1
31807 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031810 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31811 { (case "(($ac_try" in
31812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31813 *) ac_try_echo=$ac_try;;
31814esac
31815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31816 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031817 ac_status=$?
31818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31819 (exit $ac_status); }; } &&
31820 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031821 { (case "(($ac_try" in
31822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823 *) ac_try_echo=$ac_try;;
31824esac
31825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031827 ac_status=$?
31828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31829 (exit $ac_status); }; }; then
31830 ac_cv_cxx_have_bi_iterator=yes
31831else
31832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031833sed 's/^/| /' conftest.$ac_ext >&5
31834
Reid Spencera773bd52006-08-04 18:18:08 +000031835 ac_cv_cxx_have_bi_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031836fi
Reid Spencera773bd52006-08-04 18:18:08 +000031837
31838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031839 ac_ext=c
31840ac_cpp='$CPP $CPPFLAGS'
31841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31843ac_compiler_gnu=$ac_cv_c_compiler_gnu
31844
31845
31846fi
Reid Spencera773bd52006-08-04 18:18:08 +000031847{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
31848echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031849if test "$ac_cv_cxx_have_bi_iterator" = yes
31850then
John Criswell40468462004-09-24 21:19:06 +000031851
31852cat >>confdefs.h <<\_ACEOF
31853#define HAVE_BI_ITERATOR 1
31854_ACEOF
31855
31856else
31857
31858cat >>confdefs.h <<\_ACEOF
31859#define HAVE_BI_ITERATOR 0
31860_ACEOF
31861
John Criswell7a73b802003-06-30 21:59:07 +000031862fi
31863
Reid Spencera773bd52006-08-04 18:18:08 +000031864{ echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
31865echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000031866if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
31867 echo $ECHO_N "(cached) $ECHO_C" >&6
31868else
31869
Reid Spencera773bd52006-08-04 18:18:08 +000031870 ac_ext=cpp
John Criswell7a73b802003-06-30 21:59:07 +000031871ac_cpp='$CXXCPP $CPPFLAGS'
31872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31875
31876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031877/* confdefs.h. */
31878_ACEOF
31879cat confdefs.h >>conftest.$ac_ext
31880cat >>conftest.$ac_ext <<_ACEOF
31881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000031882#include <iterator>
31883#ifdef HAVE_NAMESPACES
31884using namespace std;
31885#endif
John Criswell7a73b802003-06-30 21:59:07 +000031886int
31887main ()
31888{
John Criswellc78022e2003-07-29 19:11:58 +000031889forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000031890 ;
31891 return 0;
31892}
31893_ACEOF
31894rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031895if { (ac_try="$ac_compile"
31896case "(($ac_try" in
31897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31898 *) ac_try_echo=$ac_try;;
31899esac
31900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31901 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000031902 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031903 grep -v '^ *+' conftest.er1 >conftest.err
31904 rm -f conftest.er1
31905 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000031906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000031908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
31909 { (case "(($ac_try" in
31910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31911 *) ac_try_echo=$ac_try;;
31912esac
31913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31914 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000031915 ac_status=$?
31916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917 (exit $ac_status); }; } &&
31918 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000031919 { (case "(($ac_try" in
31920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921 *) ac_try_echo=$ac_try;;
31922esac
31923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000031925 ac_status=$?
31926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927 (exit $ac_status); }; }; then
31928 ac_cv_cxx_have_fwd_iterator=yes
31929else
31930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000031931sed 's/^/| /' conftest.$ac_ext >&5
31932
Reid Spencera773bd52006-08-04 18:18:08 +000031933 ac_cv_cxx_have_fwd_iterator=no
John Criswell7a73b802003-06-30 21:59:07 +000031934fi
Reid Spencera773bd52006-08-04 18:18:08 +000031935
31936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000031937 ac_ext=c
31938ac_cpp='$CPP $CPPFLAGS'
31939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31941ac_compiler_gnu=$ac_cv_c_compiler_gnu
31942
31943
31944fi
Reid Spencera773bd52006-08-04 18:18:08 +000031945{ echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
31946echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6; }
Brian Gaeke295d4b82004-02-23 18:16:06 +000031947if test "$ac_cv_cxx_have_fwd_iterator" = yes
31948then
John Criswell40468462004-09-24 21:19:06 +000031949
31950cat >>confdefs.h <<\_ACEOF
31951#define HAVE_FWD_ITERATOR 1
31952_ACEOF
31953
31954else
31955
31956cat >>confdefs.h <<\_ACEOF
31957#define HAVE_FWD_ITERATOR 0
31958_ACEOF
31959
John Criswell7a73b802003-06-30 21:59:07 +000031960fi
31961
31962
Reid Spencera773bd52006-08-04 18:18:08 +000031963{ echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
31964echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031965if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967else
Reid Spencera773bd52006-08-04 18:18:08 +000031968 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031969ac_cpp='$CXXCPP $CPPFLAGS'
31970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31973
Reid Spencerabec8f92004-10-27 23:03:44 +000031974 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031975/* confdefs.h. */
31976_ACEOF
31977cat confdefs.h >>conftest.$ac_ext
31978cat >>conftest.$ac_ext <<_ACEOF
31979/* end confdefs.h. */
31980#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000031981int
31982main ()
31983{
31984float f; isnan(f);
31985 ;
31986 return 0;
31987}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031988_ACEOF
31989rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000031990if { (ac_try="$ac_compile"
31991case "(($ac_try" in
31992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31993 *) ac_try_echo=$ac_try;;
31994esac
31995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31996 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000031997 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000031998 grep -v '^ *+' conftest.er1 >conftest.err
31999 rm -f conftest.er1
32000 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32004 { (case "(($ac_try" in
32005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32006 *) ac_try_echo=$ac_try;;
32007esac
32008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32009 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032010 ac_status=$?
32011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32012 (exit $ac_status); }; } &&
32013 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032014 { (case "(($ac_try" in
32015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32016 *) ac_try_echo=$ac_try;;
32017esac
32018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32019 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032020 ac_status=$?
32021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32022 (exit $ac_status); }; }; then
32023 ac_cv_func_isnan_in_math_h=yes
32024else
32025 echo "$as_me: failed program was:" >&5
32026sed 's/^/| /' conftest.$ac_ext >&5
32027
Reid Spencera773bd52006-08-04 18:18:08 +000032028 ac_cv_func_isnan_in_math_h=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032029fi
Reid Spencera773bd52006-08-04 18:18:08 +000032030
32031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032032 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032033ac_cpp='$CPP $CPPFLAGS'
32034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32036ac_compiler_gnu=$ac_cv_c_compiler_gnu
32037
32038fi
Reid Spencera773bd52006-08-04 18:18:08 +000032039{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
32040echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032041
32042
32043if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032044
32045cat >>confdefs.h <<\_ACEOF
32046#define HAVE_ISNAN_IN_MATH_H 1
32047_ACEOF
32048
Reid Spencerabec8f92004-10-27 23:03:44 +000032049fi
32050
Reid Spencera773bd52006-08-04 18:18:08 +000032051{ echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
32052echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032053if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
32054 echo $ECHO_N "(cached) $ECHO_C" >&6
32055else
Reid Spencera773bd52006-08-04 18:18:08 +000032056 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032057ac_cpp='$CXXCPP $CPPFLAGS'
32058ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32059ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32060ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32061
Reid Spencerabec8f92004-10-27 23:03:44 +000032062 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032063/* confdefs.h. */
32064_ACEOF
32065cat confdefs.h >>conftest.$ac_ext
32066cat >>conftest.$ac_ext <<_ACEOF
32067/* end confdefs.h. */
32068#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032069int
32070main ()
32071{
32072float f; isnan(f);
32073 ;
32074 return 0;
32075}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032076_ACEOF
32077rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032078if { (ac_try="$ac_compile"
32079case "(($ac_try" in
32080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32081 *) ac_try_echo=$ac_try;;
32082esac
32083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32084 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032085 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32092 { (case "(($ac_try" in
32093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094 *) ac_try_echo=$ac_try;;
32095esac
32096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032098 ac_status=$?
32099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); }; } &&
32101 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032102 { (case "(($ac_try" in
32103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32104 *) ac_try_echo=$ac_try;;
32105esac
32106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32107 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032108 ac_status=$?
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); }; }; then
32111 ac_cv_func_isnan_in_cmath=yes
32112else
32113 echo "$as_me: failed program was:" >&5
32114sed 's/^/| /' conftest.$ac_ext >&5
32115
Reid Spencera773bd52006-08-04 18:18:08 +000032116 ac_cv_func_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032117fi
Reid Spencera773bd52006-08-04 18:18:08 +000032118
32119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032120 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032121ac_cpp='$CPP $CPPFLAGS'
32122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32124ac_compiler_gnu=$ac_cv_c_compiler_gnu
32125
32126fi
Reid Spencera773bd52006-08-04 18:18:08 +000032127{ echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
32128echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032129
32130if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032131
32132cat >>confdefs.h <<\_ACEOF
32133#define HAVE_ISNAN_IN_CMATH 1
32134_ACEOF
32135
Reid Spencerabec8f92004-10-27 23:03:44 +000032136fi
32137
Reid Spencera773bd52006-08-04 18:18:08 +000032138{ echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
32139echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032140if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
32141 echo $ECHO_N "(cached) $ECHO_C" >&6
32142else
Reid Spencera773bd52006-08-04 18:18:08 +000032143 ac_ext=cpp
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032144ac_cpp='$CXXCPP $CPPFLAGS'
32145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32148
Reid Spencerabec8f92004-10-27 23:03:44 +000032149 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032150/* confdefs.h. */
32151_ACEOF
32152cat confdefs.h >>conftest.$ac_ext
32153cat >>conftest.$ac_ext <<_ACEOF
32154/* end confdefs.h. */
32155#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032156int
32157main ()
32158{
32159float f; std::isnan(f);
32160 ;
32161 return 0;
32162}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032163_ACEOF
32164rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032165if { (ac_try="$ac_compile"
32166case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32169esac
32170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032172 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032173 grep -v '^ *+' conftest.er1 >conftest.err
32174 rm -f conftest.er1
32175 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032178 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32179 { (case "(($ac_try" in
32180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32181 *) ac_try_echo=$ac_try;;
32182esac
32183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32184 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032185 ac_status=$?
32186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32187 (exit $ac_status); }; } &&
32188 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032189 { (case "(($ac_try" in
32190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32191 *) ac_try_echo=$ac_try;;
32192esac
32193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32194 (eval "$ac_try") 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 ac_cv_func_std_isnan_in_cmath=yes
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
Reid Spencera773bd52006-08-04 18:18:08 +000032203 ac_cv_func_std_isnan_in_cmath=no
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032204fi
Reid Spencera773bd52006-08-04 18:18:08 +000032205
32206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032207 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032208ac_cpp='$CPP $CPPFLAGS'
32209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32211ac_compiler_gnu=$ac_cv_c_compiler_gnu
32212
32213fi
Reid Spencera773bd52006-08-04 18:18:08 +000032214{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
32215echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032216
32217if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032218
32219cat >>confdefs.h <<\_ACEOF
32220#define HAVE_STD_ISNAN_IN_CMATH 1
32221_ACEOF
32222
Reid Spencerabec8f92004-10-27 23:03:44 +000032223fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000032224
32225
Reid Spencera773bd52006-08-04 18:18:08 +000032226{ echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
32227echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032228if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
32229 echo $ECHO_N "(cached) $ECHO_C" >&6
32230else
Reid Spencera773bd52006-08-04 18:18:08 +000032231 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032232ac_cpp='$CXXCPP $CPPFLAGS'
32233ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32234ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32235ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32236
Reid Spencerabec8f92004-10-27 23:03:44 +000032237 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032238/* confdefs.h. */
32239_ACEOF
32240cat confdefs.h >>conftest.$ac_ext
32241cat >>conftest.$ac_ext <<_ACEOF
32242/* end confdefs.h. */
32243#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032244int
32245main ()
32246{
32247float f; isinf(f);
32248 ;
32249 return 0;
32250}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032251_ACEOF
32252rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032253if { (ac_try="$ac_compile"
32254case "(($ac_try" in
32255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32256 *) ac_try_echo=$ac_try;;
32257esac
32258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32259 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032260 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032261 grep -v '^ *+' conftest.er1 >conftest.err
32262 rm -f conftest.er1
32263 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32267 { (case "(($ac_try" in
32268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269 *) ac_try_echo=$ac_try;;
32270esac
32271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032273 ac_status=$?
32274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275 (exit $ac_status); }; } &&
32276 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032277 { (case "(($ac_try" in
32278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32279 *) ac_try_echo=$ac_try;;
32280esac
32281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32282 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032283 ac_status=$?
32284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32285 (exit $ac_status); }; }; then
32286 ac_cv_func_isinf_in_math_h=yes
32287else
32288 echo "$as_me: failed program was:" >&5
32289sed 's/^/| /' conftest.$ac_ext >&5
32290
Reid Spencera773bd52006-08-04 18:18:08 +000032291 ac_cv_func_isinf_in_math_h=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032292fi
Reid Spencera773bd52006-08-04 18:18:08 +000032293
32294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032295 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032296ac_cpp='$CPP $CPPFLAGS'
32297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32299ac_compiler_gnu=$ac_cv_c_compiler_gnu
32300
32301fi
Reid Spencera773bd52006-08-04 18:18:08 +000032302{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
32303echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032304
32305if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032306
32307cat >>confdefs.h <<\_ACEOF
32308#define HAVE_ISINF_IN_MATH_H 1
32309_ACEOF
32310
Reid Spencerabec8f92004-10-27 23:03:44 +000032311fi
32312
Reid Spencera773bd52006-08-04 18:18:08 +000032313{ echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
32314echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032315if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
32316 echo $ECHO_N "(cached) $ECHO_C" >&6
32317else
Reid Spencera773bd52006-08-04 18:18:08 +000032318 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032319ac_cpp='$CXXCPP $CPPFLAGS'
32320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32323
Reid Spencerabec8f92004-10-27 23:03:44 +000032324 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032325/* confdefs.h. */
32326_ACEOF
32327cat confdefs.h >>conftest.$ac_ext
32328cat >>conftest.$ac_ext <<_ACEOF
32329/* end confdefs.h. */
32330#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032331int
32332main ()
32333{
32334float f; isinf(f);
32335 ;
32336 return 0;
32337}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032338_ACEOF
32339rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032340if { (ac_try="$ac_compile"
32341case "(($ac_try" in
32342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32343 *) ac_try_echo=$ac_try;;
32344esac
32345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32346 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032348 grep -v '^ *+' conftest.er1 >conftest.err
32349 rm -f conftest.er1
32350 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32352 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032353 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32354 { (case "(($ac_try" in
32355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32356 *) ac_try_echo=$ac_try;;
32357esac
32358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32359 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032360 ac_status=$?
32361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32362 (exit $ac_status); }; } &&
32363 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032364 { (case "(($ac_try" in
32365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32366 *) ac_try_echo=$ac_try;;
32367esac
32368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32369 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 ac_cv_func_isinf_in_cmath=yes
32374else
32375 echo "$as_me: failed program was:" >&5
32376sed 's/^/| /' conftest.$ac_ext >&5
32377
Reid Spencera773bd52006-08-04 18:18:08 +000032378 ac_cv_func_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032379fi
Reid Spencera773bd52006-08-04 18:18:08 +000032380
32381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032382 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032383ac_cpp='$CPP $CPPFLAGS'
32384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32386ac_compiler_gnu=$ac_cv_c_compiler_gnu
32387
32388fi
Reid Spencera773bd52006-08-04 18:18:08 +000032389{ echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
32390echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032391
32392if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032393
32394cat >>confdefs.h <<\_ACEOF
32395#define HAVE_ISINF_IN_CMATH 1
32396_ACEOF
32397
Reid Spencerabec8f92004-10-27 23:03:44 +000032398fi
32399
Reid Spencera773bd52006-08-04 18:18:08 +000032400{ echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
32401echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
Brian Gaeke52a551d2004-07-21 03:14:12 +000032402if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
32403 echo $ECHO_N "(cached) $ECHO_C" >&6
32404else
Reid Spencera773bd52006-08-04 18:18:08 +000032405 ac_ext=cpp
Brian Gaeke52a551d2004-07-21 03:14:12 +000032406ac_cpp='$CXXCPP $CPPFLAGS'
32407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32410
Reid Spencerabec8f92004-10-27 23:03:44 +000032411 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000032412/* confdefs.h. */
32413_ACEOF
32414cat confdefs.h >>conftest.$ac_ext
32415cat >>conftest.$ac_ext <<_ACEOF
32416/* end confdefs.h. */
32417#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000032418int
32419main ()
32420{
32421float f; std::isinf(f)}
32422 ;
32423 return 0;
32424}
Brian Gaeke52a551d2004-07-21 03:14:12 +000032425_ACEOF
32426rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032427if { (ac_try="$ac_compile"
32428case "(($ac_try" in
32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32430 *) ac_try_echo=$ac_try;;
32431esac
32432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32433 (eval "$ac_compile") 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000032434 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032435 grep -v '^ *+' conftest.er1 >conftest.err
32436 rm -f conftest.er1
32437 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032440 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32441 { (case "(($ac_try" in
32442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32443 *) ac_try_echo=$ac_try;;
32444esac
32445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32446 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032447 ac_status=$?
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); }; } &&
32450 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032451 { (case "(($ac_try" in
32452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32453 *) ac_try_echo=$ac_try;;
32454esac
32455eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32456 (eval "$ac_try") 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000032457 ac_status=$?
32458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459 (exit $ac_status); }; }; then
32460 ac_cv_func_std_isinf_in_cmath=yes
32461else
32462 echo "$as_me: failed program was:" >&5
32463sed 's/^/| /' conftest.$ac_ext >&5
32464
Reid Spencera773bd52006-08-04 18:18:08 +000032465 ac_cv_func_std_isinf_in_cmath=no
Brian Gaeke52a551d2004-07-21 03:14:12 +000032466fi
Reid Spencera773bd52006-08-04 18:18:08 +000032467
32468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032469 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000032470ac_cpp='$CPP $CPPFLAGS'
32471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32473ac_compiler_gnu=$ac_cv_c_compiler_gnu
32474
32475fi
Reid Spencera773bd52006-08-04 18:18:08 +000032476{ echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
32477echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032478
32479if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000032480
32481cat >>confdefs.h <<\_ACEOF
32482#define HAVE_STD_ISINF_IN_CMATH 1
32483_ACEOF
32484
Reid Spencerabec8f92004-10-27 23:03:44 +000032485fi
32486
Reid Spencera773bd52006-08-04 18:18:08 +000032487{ echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
32488echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
Brian Gaeked59a6472004-07-21 03:33:58 +000032489if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32491else
Reid Spencera773bd52006-08-04 18:18:08 +000032492 ac_ext=cpp
Brian Gaeked59a6472004-07-21 03:33:58 +000032493ac_cpp='$CXXCPP $CPPFLAGS'
32494ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32495ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32496ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32497
Reid Spencerabec8f92004-10-27 23:03:44 +000032498 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000032499/* confdefs.h. */
32500_ACEOF
32501cat confdefs.h >>conftest.$ac_ext
32502cat >>conftest.$ac_ext <<_ACEOF
32503/* end confdefs.h. */
32504#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000032505int
32506main ()
32507{
32508float f; finite(f);
32509 ;
32510 return 0;
32511}
Brian Gaeked59a6472004-07-21 03:33:58 +000032512_ACEOF
32513rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032514if { (ac_try="$ac_compile"
32515case "(($ac_try" in
32516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32517 *) ac_try_echo=$ac_try;;
32518esac
32519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32520 (eval "$ac_compile") 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000032521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032522 grep -v '^ *+' conftest.er1 >conftest.err
32523 rm -f conftest.er1
32524 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32526 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
32528 { (case "(($ac_try" in
32529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32530 *) ac_try_echo=$ac_try;;
32531esac
32532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32533 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032534 ac_status=$?
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); }; } &&
32537 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032538 { (case "(($ac_try" in
32539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32540 *) ac_try_echo=$ac_try;;
32541esac
32542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32543 (eval "$ac_try") 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000032544 ac_status=$?
32545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32546 (exit $ac_status); }; }; then
32547 ac_cv_func_finite_in_ieeefp_h=yes
32548else
32549 echo "$as_me: failed program was:" >&5
32550sed 's/^/| /' conftest.$ac_ext >&5
32551
Reid Spencera773bd52006-08-04 18:18:08 +000032552 ac_cv_func_finite_in_ieeefp_h=no
Brian Gaeked59a6472004-07-21 03:33:58 +000032553fi
Reid Spencera773bd52006-08-04 18:18:08 +000032554
32555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000032556 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000032557ac_cpp='$CPP $CPPFLAGS'
32558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560ac_compiler_gnu=$ac_cv_c_compiler_gnu
32561
32562fi
Reid Spencera773bd52006-08-04 18:18:08 +000032563{ echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
32564echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
Reid Spencerabec8f92004-10-27 23:03:44 +000032565
Brian Gaeke6802b552004-10-28 05:06:45 +000032566if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000032567
32568cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000032569#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000032570_ACEOF
32571
Reid Spencerabec8f92004-10-27 23:03:44 +000032572fi
32573
32574
32575
John Criswell7a73b802003-06-30 21:59:07 +000032576
32577
32578for ac_header in stdlib.h unistd.h
32579do
32580as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32584if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032585 echo $ECHO_N "(cached) $ECHO_C" >&6
32586fi
Reid Spencera773bd52006-08-04 18:18:08 +000032587ac_res=`eval echo '${'$as_ac_Header'}'`
32588 { echo "$as_me:$LINENO: result: $ac_res" >&5
32589echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032590else
32591 # Is the header compilable?
Reid Spencera773bd52006-08-04 18:18:08 +000032592{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
32593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032594cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032595/* confdefs.h. */
32596_ACEOF
32597cat confdefs.h >>conftest.$ac_ext
32598cat >>conftest.$ac_ext <<_ACEOF
32599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032600$ac_includes_default
32601#include <$ac_header>
32602_ACEOF
32603rm -f conftest.$ac_objext
Reid Spencera773bd52006-08-04 18:18:08 +000032604if { (ac_try="$ac_compile"
32605case "(($ac_try" in
32606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32607 *) ac_try_echo=$ac_try;;
32608esac
32609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32610 (eval "$ac_compile") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032612 grep -v '^ *+' conftest.er1 >conftest.err
32613 rm -f conftest.er1
32614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32618 { (case "(($ac_try" in
32619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32620 *) ac_try_echo=$ac_try;;
32621esac
32622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32623 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032624 ac_status=$?
32625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626 (exit $ac_status); }; } &&
32627 { ac_try='test -s conftest.$ac_objext'
Reid Spencera773bd52006-08-04 18:18:08 +000032628 { (case "(($ac_try" in
32629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32630 *) ac_try_echo=$ac_try;;
32631esac
32632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32633 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; }; then
32637 ac_header_compiler=yes
32638else
32639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032640sed 's/^/| /' conftest.$ac_ext >&5
32641
Reid Spencera773bd52006-08-04 18:18:08 +000032642 ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +000032643fi
Reid Spencera773bd52006-08-04 18:18:08 +000032644
32645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32646{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32647echo "${ECHO_T}$ac_header_compiler" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032648
32649# Is the header present?
Reid Spencera773bd52006-08-04 18:18:08 +000032650{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
32651echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032652cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032653/* confdefs.h. */
32654_ACEOF
32655cat confdefs.h >>conftest.$ac_ext
32656cat >>conftest.$ac_ext <<_ACEOF
32657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032658#include <$ac_header>
32659_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000032660if { (ac_try="$ac_cpp conftest.$ac_ext"
32661case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32664esac
32665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032667 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000032668 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000032669 rm -f conftest.er1
32670 cat conftest.err >&5
32671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672 (exit $ac_status); } >/dev/null; then
32673 if test -s conftest.err; then
32674 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000032675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000032676 else
32677 ac_cpp_err=
32678 fi
32679else
32680 ac_cpp_err=yes
32681fi
32682if test -z "$ac_cpp_err"; then
32683 ac_header_preproc=yes
32684else
32685 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032686sed 's/^/| /' conftest.$ac_ext >&5
32687
John Criswell7a73b802003-06-30 21:59:07 +000032688 ac_header_preproc=no
32689fi
Reid Spencera773bd52006-08-04 18:18:08 +000032690
John Criswell7a73b802003-06-30 21:59:07 +000032691rm -f conftest.err conftest.$ac_ext
Reid Spencera773bd52006-08-04 18:18:08 +000032692{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32693echo "${ECHO_T}$ac_header_preproc" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032694
32695# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32697 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000032698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32699echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32701echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32702 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000032703 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000032704 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000032705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32710echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32712echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000032713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32714echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000032715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32716echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Reid Spencera773bd52006-08-04 18:18:08 +000032717 ( cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000032718## ----------------------------------- ##
32719## Report this to llvmbugs@cs.uiuc.edu ##
32720## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000032721_ASBOX
Reid Spencera773bd52006-08-04 18:18:08 +000032722 ) | sed "s/^/$as_me: WARNING: /" >&2
John Criswell0c38eaf2003-09-10 15:17:25 +000032723 ;;
John Criswell7a73b802003-06-30 21:59:07 +000032724esac
Reid Spencera773bd52006-08-04 18:18:08 +000032725{ echo "$as_me:$LINENO: checking for $ac_header" >&5
32726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729else
Reid Spencer2706f8c2004-09-19 23:53:36 +000032730 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000032731fi
Reid Spencera773bd52006-08-04 18:18:08 +000032732ac_res=`eval echo '${'$as_ac_Header'}'`
32733 { echo "$as_me:$LINENO: result: $ac_res" >&5
32734echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032735
32736fi
32737if test `eval echo '${'$as_ac_Header'}'` = yes; then
32738 cat >>confdefs.h <<_ACEOF
32739#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32740_ACEOF
32741
32742fi
32743
32744done
32745
32746
32747for ac_func in getpagesize
32748do
32749as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Reid Spencera773bd52006-08-04 18:18:08 +000032750{ echo "$as_me:$LINENO: checking for $ac_func" >&5
32751echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32752if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
John Criswell7a73b802003-06-30 21:59:07 +000032753 echo $ECHO_N "(cached) $ECHO_C" >&6
32754else
32755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032756/* confdefs.h. */
32757_ACEOF
32758cat confdefs.h >>conftest.$ac_ext
32759cat >>conftest.$ac_ext <<_ACEOF
32760/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032761/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32763#define $ac_func innocuous_$ac_func
32764
John Criswell7a73b802003-06-30 21:59:07 +000032765/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000032766 which can conflict with char $ac_func (); below.
32767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32768 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000032769
John Criswell0c38eaf2003-09-10 15:17:25 +000032770#ifdef __STDC__
32771# include <limits.h>
32772#else
32773# include <assert.h>
32774#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000032775
32776#undef $ac_func
32777
Reid Spencera773bd52006-08-04 18:18:08 +000032778/* Override any GCC internal prototype to avoid an error.
32779 Use char because int might match the return type of a GCC
32780 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000032781#ifdef __cplusplus
32782extern "C"
32783#endif
John Criswell7a73b802003-06-30 21:59:07 +000032784char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032785/* The GNU C library defines this for functions which it implements
32786 to always fail with ENOSYS. Some functions are actually named
32787 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000032788#if defined __stub_$ac_func || defined __stub___$ac_func
John Criswell7a73b802003-06-30 21:59:07 +000032789choke me
John Criswell7a73b802003-06-30 21:59:07 +000032790#endif
32791
John Criswell0c38eaf2003-09-10 15:17:25 +000032792int
32793main ()
32794{
Reid Spencera773bd52006-08-04 18:18:08 +000032795return $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000032796 ;
32797 return 0;
32798}
32799_ACEOF
32800rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032801if { (ac_try="$ac_link"
32802case "(($ac_try" in
32803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32804 *) ac_try_echo=$ac_try;;
32805esac
32806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32807 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000032808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000032809 grep -v '^ *+' conftest.er1 >conftest.err
32810 rm -f conftest.er1
32811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000032812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32813 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000032814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32815 { (case "(($ac_try" in
32816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32817 *) ac_try_echo=$ac_try;;
32818esac
32819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32820 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000032821 ac_status=$?
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); }; } &&
32824 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000032825 { (case "(($ac_try" in
32826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32827 *) ac_try_echo=$ac_try;;
32828esac
32829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32830 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000032831 ac_status=$?
32832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833 (exit $ac_status); }; }; then
32834 eval "$as_ac_var=yes"
32835else
32836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000032837sed 's/^/| /' conftest.$ac_ext >&5
32838
Reid Spencera773bd52006-08-04 18:18:08 +000032839 eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000032840fi
Reid Spencera773bd52006-08-04 18:18:08 +000032841
32842rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032843 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000032844fi
Reid Spencera773bd52006-08-04 18:18:08 +000032845ac_res=`eval echo '${'$as_ac_var'}'`
32846 { echo "$as_me:$LINENO: result: $ac_res" >&5
32847echo "${ECHO_T}$ac_res" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032848if test `eval echo '${'$as_ac_var'}'` = yes; then
32849 cat >>confdefs.h <<_ACEOF
32850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32851_ACEOF
32852
32853fi
32854done
32855
Reid Spencera773bd52006-08-04 18:18:08 +000032856{ echo "$as_me:$LINENO: checking for working mmap" >&5
32857echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000032858if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32860else
32861 if test "$cross_compiling" = yes; then
32862 ac_cv_func_mmap_fixed_mapped=no
32863else
32864 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000032865/* confdefs.h. */
32866_ACEOF
32867cat confdefs.h >>conftest.$ac_ext
32868cat >>conftest.$ac_ext <<_ACEOF
32869/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000032870$ac_includes_default
32871/* malloc might have been renamed as rpl_malloc. */
32872#undef malloc
32873
32874/* Thanks to Mike Haertel and Jim Avera for this test.
32875 Here is a matrix of mmap possibilities:
32876 mmap private not fixed
32877 mmap private fixed at somewhere currently unmapped
32878 mmap private fixed at somewhere already mapped
32879 mmap shared not fixed
32880 mmap shared fixed at somewhere currently unmapped
32881 mmap shared fixed at somewhere already mapped
32882 For private mappings, we should verify that changes cannot be read()
32883 back from the file, nor mmap's back from the file at a different
32884 address. (There have been systems where private was not correctly
32885 implemented like the infamous i386 svr4.0, and systems where the
32886 VM page cache was not coherent with the file system buffer cache
32887 like early versions of FreeBSD and possibly contemporary NetBSD.)
32888 For shared mappings, we should conversely verify that changes get
32889 propagated back to all the places they're supposed to be.
32890
32891 Grep wants private fixed already mapped.
32892 The main things grep needs to know about mmap are:
32893 * does it exist and is it safe to write into the mmap'd area
32894 * how to use it (BSD variants) */
32895
32896#include <fcntl.h>
32897#include <sys/mman.h>
32898
32899#if !STDC_HEADERS && !HAVE_STDLIB_H
32900char *malloc ();
32901#endif
32902
32903/* This mess was copied from the GNU getpagesize.h. */
32904#if !HAVE_GETPAGESIZE
32905/* Assume that all systems that can run configure have sys/param.h. */
32906# if !HAVE_SYS_PARAM_H
32907# define HAVE_SYS_PARAM_H 1
32908# endif
32909
32910# ifdef _SC_PAGESIZE
32911# define getpagesize() sysconf(_SC_PAGESIZE)
32912# else /* no _SC_PAGESIZE */
32913# if HAVE_SYS_PARAM_H
32914# include <sys/param.h>
32915# ifdef EXEC_PAGESIZE
32916# define getpagesize() EXEC_PAGESIZE
32917# else /* no EXEC_PAGESIZE */
32918# ifdef NBPG
32919# define getpagesize() NBPG * CLSIZE
32920# ifndef CLSIZE
32921# define CLSIZE 1
32922# endif /* no CLSIZE */
32923# else /* no NBPG */
32924# ifdef NBPC
32925# define getpagesize() NBPC
32926# else /* no NBPC */
32927# ifdef PAGESIZE
32928# define getpagesize() PAGESIZE
32929# endif /* PAGESIZE */
32930# endif /* no NBPC */
32931# endif /* no NBPG */
32932# endif /* no EXEC_PAGESIZE */
32933# else /* no HAVE_SYS_PARAM_H */
32934# define getpagesize() 8192 /* punt totally */
32935# endif /* no HAVE_SYS_PARAM_H */
32936# endif /* no _SC_PAGESIZE */
32937
32938#endif /* no HAVE_GETPAGESIZE */
32939
32940int
32941main ()
32942{
32943 char *data, *data2, *data3;
32944 int i, pagesize;
32945 int fd;
32946
32947 pagesize = getpagesize ();
32948
32949 /* First, make a file with some known garbage in it. */
32950 data = (char *) malloc (pagesize);
32951 if (!data)
Reid Spencera773bd52006-08-04 18:18:08 +000032952 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032953 for (i = 0; i < pagesize; ++i)
32954 *(data + i) = rand ();
32955 umask (0);
32956 fd = creat ("conftest.mmap", 0600);
32957 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032958 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032959 if (write (fd, data, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032960 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032961 close (fd);
32962
32963 /* Next, try to mmap the file at a fixed address which already has
32964 something else allocated at it. If we can, also make sure that
32965 we see the same garbage. */
32966 fd = open ("conftest.mmap", O_RDWR);
32967 if (fd < 0)
Reid Spencera773bd52006-08-04 18:18:08 +000032968 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032969 data2 = (char *) malloc (2 * pagesize);
32970 if (!data2)
Reid Spencera773bd52006-08-04 18:18:08 +000032971 return 1;
32972 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000032973 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000032974 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Reid Spencera773bd52006-08-04 18:18:08 +000032975 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032976 for (i = 0; i < pagesize; ++i)
32977 if (*(data + i) != *(data2 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032978 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032979
32980 /* Finally, make sure that changes to the mapped area do not
32981 percolate back to the file as seen by read(). (This is a bug on
32982 some variants of i386 svr4.0.) */
32983 for (i = 0; i < pagesize; ++i)
32984 *(data2 + i) = *(data2 + i) + 1;
32985 data3 = (char *) malloc (pagesize);
32986 if (!data3)
Reid Spencera773bd52006-08-04 18:18:08 +000032987 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032988 if (read (fd, data3, pagesize) != pagesize)
Reid Spencera773bd52006-08-04 18:18:08 +000032989 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032990 for (i = 0; i < pagesize; ++i)
32991 if (*(data + i) != *(data3 + i))
Reid Spencera773bd52006-08-04 18:18:08 +000032992 return 1;
John Criswell7a73b802003-06-30 21:59:07 +000032993 close (fd);
Reid Spencera773bd52006-08-04 18:18:08 +000032994 return 0;
John Criswell7a73b802003-06-30 21:59:07 +000032995}
32996_ACEOF
32997rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000032998if { (ac_try="$ac_link"
32999case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33002esac
33003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033005 ac_status=$?
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033008 { (case "(($ac_try" in
33009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33010 *) ac_try_echo=$ac_try;;
33011esac
33012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33013 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; }; then
33017 ac_cv_func_mmap_fixed_mapped=yes
33018else
33019 echo "$as_me: program exited with status $ac_status" >&5
33020echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033021sed 's/^/| /' conftest.$ac_ext >&5
33022
John Criswell7a73b802003-06-30 21:59:07 +000033023( exit $ac_status )
33024ac_cv_func_mmap_fixed_mapped=no
33025fi
Reid Spencera773bd52006-08-04 18:18:08 +000033026rm -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 +000033027fi
Reid Spencera773bd52006-08-04 18:18:08 +000033028
33029
John Criswell7a73b802003-06-30 21:59:07 +000033030fi
Reid Spencera773bd52006-08-04 18:18:08 +000033031{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
33032echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033033if test $ac_cv_func_mmap_fixed_mapped = yes; then
33034
33035cat >>confdefs.h <<\_ACEOF
33036#define HAVE_MMAP 1
33037_ACEOF
33038
33039fi
33040rm -f conftest.mmap
33041
Reid Spencera773bd52006-08-04 18:18:08 +000033042{ echo "$as_me:$LINENO: checking for mmap of files" >&5
33043echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033044if test "${ac_cv_func_mmap_file+set}" = set; then
33045 echo $ECHO_N "(cached) $ECHO_C" >&6
33046else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033047 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000033048ac_cpp='$CPP $CPPFLAGS'
33049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33051ac_compiler_gnu=$ac_cv_c_compiler_gnu
33052
33053 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033054 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000033055else
33056 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033057
Reid Spencer777ce172004-09-20 04:09:56 +000033058 /* confdefs.h. */
33059_ACEOF
33060cat confdefs.h >>conftest.$ac_ext
33061cat >>conftest.$ac_ext <<_ACEOF
33062/* end confdefs.h. */
33063
John Criswell7a73b802003-06-30 21:59:07 +000033064#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000033065#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000033066#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000033067
33068int
33069main ()
33070{
John Criswell7a73b802003-06-30 21:59:07 +000033071
33072 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000033073 fd = creat ("foo",0777);
33074 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
33075 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000033076 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000033077 ;
33078 return 0;
33079}
John Criswell7a73b802003-06-30 21:59:07 +000033080_ACEOF
33081rm -f conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033082if { (ac_try="$ac_link"
33083case "(($ac_try" in
33084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085 *) ac_try_echo=$ac_try;;
33086esac
33087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088 (eval "$ac_link") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033089 ac_status=$?
33090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033092 { (case "(($ac_try" in
33093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33094 *) ac_try_echo=$ac_try;;
33095esac
33096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33097 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 ac_cv_func_mmap_file=yes
33102else
33103 echo "$as_me: program exited with status $ac_status" >&5
33104echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033105sed 's/^/| /' conftest.$ac_ext >&5
33106
John Criswell7a73b802003-06-30 21:59:07 +000033107( exit $ac_status )
33108ac_cv_func_mmap_file=no
33109fi
Reid Spencera773bd52006-08-04 18:18:08 +000033110rm -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 +000033111fi
Reid Spencera773bd52006-08-04 18:18:08 +000033112
33113
John Criswell7a73b802003-06-30 21:59:07 +000033114 ac_ext=c
33115ac_cpp='$CPP $CPPFLAGS'
33116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33118ac_compiler_gnu=$ac_cv_c_compiler_gnu
33119
33120
33121fi
Reid Spencera773bd52006-08-04 18:18:08 +000033122{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
33123echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033124if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000033125
33126cat >>confdefs.h <<\_ACEOF
33127#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000033128_ACEOF
33129
33130 MMAP_FILE=yes
33131
33132fi
33133
Reid Spencera773bd52006-08-04 18:18:08 +000033134{ echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
33135echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033136if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
33137 echo $ECHO_N "(cached) $ECHO_C" >&6
33138else
Reid Spencer582a23c2004-12-29 07:07:57 +000033139 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000033140 ac_cv_need_dev_zero_for_mmap=yes
33141 else
33142 ac_cv_need_dev_zero_for_mmap=no
33143 fi
33144
33145fi
Reid Spencera773bd52006-08-04 18:18:08 +000033146{ echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
33147echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
Reid Spencer7931a782004-12-27 06:15:02 +000033148if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
33149
33150cat >>confdefs.h <<\_ACEOF
33151#define NEED_DEV_ZERO_FOR_MMAP 1
33152_ACEOF
33153
33154fi
Reid Spencera773bd52006-08-04 18:18:08 +000033155{ echo "$as_me:$LINENO: checking for mprotect" >&5
33156echo $ECHO_N "checking for mprotect... $ECHO_C" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033157if test "${ac_cv_func_mprotect+set}" = set; then
33158 echo $ECHO_N "(cached) $ECHO_C" >&6
33159else
33160 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000033161/* confdefs.h. */
33162_ACEOF
33163cat confdefs.h >>conftest.$ac_ext
33164cat >>conftest.$ac_ext <<_ACEOF
33165/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033166/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
33167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33168#define mprotect innocuous_mprotect
33169
John Criswell7a73b802003-06-30 21:59:07 +000033170/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000033171 which can conflict with char mprotect (); below.
33172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33173 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000033174
John Criswell0c38eaf2003-09-10 15:17:25 +000033175#ifdef __STDC__
33176# include <limits.h>
33177#else
33178# include <assert.h>
33179#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000033180
33181#undef mprotect
33182
Reid Spencera773bd52006-08-04 18:18:08 +000033183/* Override any GCC internal prototype to avoid an error.
33184 Use char because int might match the return type of a GCC
33185 builtin and then its argument prototype would still apply. */
John Criswell7a73b802003-06-30 21:59:07 +000033186#ifdef __cplusplus
33187extern "C"
33188#endif
John Criswell7a73b802003-06-30 21:59:07 +000033189char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033190/* The GNU C library defines this for functions which it implements
33191 to always fail with ENOSYS. Some functions are actually named
33192 something starting with __ and the normal name is an alias. */
Reid Spencera773bd52006-08-04 18:18:08 +000033193#if defined __stub_mprotect || defined __stub___mprotect
John Criswell7a73b802003-06-30 21:59:07 +000033194choke me
John Criswell7a73b802003-06-30 21:59:07 +000033195#endif
33196
John Criswell0c38eaf2003-09-10 15:17:25 +000033197int
33198main ()
33199{
Reid Spencera773bd52006-08-04 18:18:08 +000033200return mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000033201 ;
33202 return 0;
33203}
33204_ACEOF
33205rm -f conftest.$ac_objext conftest$ac_exeext
Reid Spencera773bd52006-08-04 18:18:08 +000033206if { (ac_try="$ac_link"
33207case "(($ac_try" in
33208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33209 *) ac_try_echo=$ac_try;;
33210esac
33211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33212 (eval "$ac_link") 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000033213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000033214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000033217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
Reid Spencera773bd52006-08-04 18:18:08 +000033219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33220 { (case "(($ac_try" in
33221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33222 *) ac_try_echo=$ac_try;;
33223esac
33224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33225 (eval "$ac_try") 2>&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000033226 ac_status=$?
33227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); }; } &&
33229 { ac_try='test -s conftest$ac_exeext'
Reid Spencera773bd52006-08-04 18:18:08 +000033230 { (case "(($ac_try" in
33231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33232 *) ac_try_echo=$ac_try;;
33233esac
33234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33235 (eval "$ac_try") 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000033236 ac_status=$?
33237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238 (exit $ac_status); }; }; then
33239 ac_cv_func_mprotect=yes
33240else
33241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000033242sed 's/^/| /' conftest.$ac_ext >&5
33243
Reid Spencera773bd52006-08-04 18:18:08 +000033244 ac_cv_func_mprotect=no
John Criswell7a73b802003-06-30 21:59:07 +000033245fi
Reid Spencera773bd52006-08-04 18:18:08 +000033246
33247rm -f core conftest.err conftest.$ac_objext \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033248 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000033249fi
Reid Spencera773bd52006-08-04 18:18:08 +000033250{ echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
33251echo "${ECHO_T}$ac_cv_func_mprotect" >&6; }
John Criswell7a73b802003-06-30 21:59:07 +000033252if test $ac_cv_func_mprotect = yes; then
33253 :
33254else
33255 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
33256echo "$as_me: error: Function mprotect() required but not found" >&2;}
33257 { (exit 1); exit 1; }; }
33258fi
33259
33260
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033261if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033262then
Reid Spencer582a23c2004-12-29 07:07:57 +000033263 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
33264echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033265fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033266if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000033267then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033268 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
33269echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000033270fi
John Criswell7a73b802003-06-30 21:59:07 +000033271
33272
Reid Spencera773bd52006-08-04 18:18:08 +000033273{ echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
33274echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033275if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000033279if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033280 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000033281 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033282 if test $? -eq 0 ; then
33283 llvm_cv_llvmgcc_sanity="yes"
33284 fi
33285 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000033286fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033287fi
Reid Spencera773bd52006-08-04 18:18:08 +000033288{ echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
33289echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033290
33291if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000033292 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033293 LLVMCC1=$llvmcc1path
33294
Reid Spencer502935f2004-12-22 05:56:56 +000033295 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033296 LLVMCC1PLUS=$llvmcc1pluspath
33297
Reid Spencer502935f2004-12-22 05:56:56 +000033298 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
33299 LLVMGCCDIR=$llvmgccdir
33300
Reid Spencerb5d75b82006-05-09 00:31:01 +000033301 llvmgccversion=`"$LLVMGCC" -dumpversion 2>&1 | sed 's/^\([0-9.]*\).*/\1/'`
Reid Spencer7917d3a2006-04-06 22:00:36 +000033302 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
33303 LLVMGCC_VERSION=$llvmgccversion
33304
33305 LLVMGCC_MAJVERS=$llvmgccmajvers
33306
Brian Gaekef3b24102003-11-16 18:38:14 +000033307fi
33308
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033309SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000033310
33311
Reid Spencere9de0912004-08-20 09:03:57 +000033312# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033313# information into substitutions that will end up in Makefile.config.in
33314# that these configured values can be used by the makefiles
Reid Spencer05828872006-05-16 08:53:32 +000033315if test "${prefix}" == "NONE" ; then
33316 prefix="/usr/local"
33317fi
Reid Spencere9de0912004-08-20 09:03:57 +000033318eval LLVM_PREFIX="${prefix}";
33319eval LLVM_BINDIR="${prefix}/bin";
33320eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000033321eval LLVM_DATADIR="${prefix}/share/llvm";
33322eval LLVM_DOCSDIR="${prefix}/docs/llvm";
33323eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000033324eval LLVM_INCLUDEDIR="${prefix}/include";
33325eval LLVM_INFODIR="${prefix}/info";
33326eval LLVM_MANDIR="${prefix}/man";
33327LLVM_CONFIGTIME=`date`
33328
33329
33330
33331
33332
33333
33334
33335
33336
33337
33338
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033339# Place the various directores into the config.h file as #defines so that we
33340# can know about the installation paths within LLVM.
33341
Reid Spencere9de0912004-08-20 09:03:57 +000033342cat >>confdefs.h <<_ACEOF
33343#define LLVM_PREFIX "$LLVM_PREFIX"
33344_ACEOF
33345
33346
33347cat >>confdefs.h <<_ACEOF
33348#define LLVM_BINDIR "$LLVM_BINDIR"
33349_ACEOF
33350
33351
33352cat >>confdefs.h <<_ACEOF
33353#define LLVM_LIBDIR "$LLVM_LIBDIR"
33354_ACEOF
33355
33356
33357cat >>confdefs.h <<_ACEOF
33358#define LLVM_DATADIR "$LLVM_DATADIR"
33359_ACEOF
33360
33361
33362cat >>confdefs.h <<_ACEOF
33363#define LLVM_DATADIR "$LLVM_DOCSDIR"
33364_ACEOF
33365
33366
33367cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000033368#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000033369_ACEOF
33370
33371
33372cat >>confdefs.h <<_ACEOF
33373#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
33374_ACEOF
33375
33376
33377cat >>confdefs.h <<_ACEOF
33378#define LLVM_INFODIR "$LLVM_INFODIR"
33379_ACEOF
33380
33381
33382cat >>confdefs.h <<_ACEOF
33383#define LLVM_MANDIR "$LLVM_MANDIR"
33384_ACEOF
33385
33386
33387cat >>confdefs.h <<_ACEOF
33388#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
33389_ACEOF
33390
33391
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033392
Reid Spencera773bd52006-08-04 18:18:08 +000033393ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033394
Reid Spencera773bd52006-08-04 18:18:08 +000033395ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033396
Reid Spencera773bd52006-08-04 18:18:08 +000033397ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033398
Reid Spencera773bd52006-08-04 18:18:08 +000033399ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033400
Reid Spencera773bd52006-08-04 18:18:08 +000033401ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033402
33403
Reid Spencera773bd52006-08-04 18:18:08 +000033404ac_config_files="$ac_config_files Makefile.config"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033405
33406
Reid Spencerea949cf2006-08-16 00:45:38 +000033407ac_config_files="$ac_config_files llvm.spec"
33408
33409
Reid Spencera773bd52006-08-04 18:18:08 +000033410ac_config_files="$ac_config_files docs/doxygen.cfg"
Reid Spencer1f319422004-11-29 04:56:35 +000033411
33412
Reid Spencera773bd52006-08-04 18:18:08 +000033413ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
Reid Spencerf2722ca2006-03-22 15:59:55 +000033414
33415
Reid Spencera773bd52006-08-04 18:18:08 +000033416ac_config_commands="$ac_config_commands setup"
Reid Spencerc0682832005-02-24 19:05:19 +000033417
Reid Spencera773bd52006-08-04 18:18:08 +000033418ac_config_commands="$ac_config_commands Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033419
33420
Reid Spencera773bd52006-08-04 18:18:08 +000033421ac_config_commands="$ac_config_commands Makefile.common"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033422
33423
Reid Spencera773bd52006-08-04 18:18:08 +000033424ac_config_commands="$ac_config_commands examples/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033425
33426
Reid Spencera773bd52006-08-04 18:18:08 +000033427ac_config_commands="$ac_config_commands lib/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033428
33429
Reid Spencer8b2e1412006-11-17 03:32:33 +000033430ac_config_commands="$ac_config_commands runtime/Makefile"
33431
33432
Reid Spencera773bd52006-08-04 18:18:08 +000033433ac_config_commands="$ac_config_commands test/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033434
33435
Reid Spencera773bd52006-08-04 18:18:08 +000033436ac_config_commands="$ac_config_commands test/Makefile.tests"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033437
33438
Reid Spencera773bd52006-08-04 18:18:08 +000033439ac_config_commands="$ac_config_commands tools/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033440
33441
Reid Spencera773bd52006-08-04 18:18:08 +000033442ac_config_commands="$ac_config_commands utils/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033443
33444
Reid Spencera773bd52006-08-04 18:18:08 +000033445ac_config_commands="$ac_config_commands projects/Makefile"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000033446
33447
33448
John Criswell7a73b802003-06-30 21:59:07 +000033449cat >confcache <<\_ACEOF
33450# This file is a shell script that caches the results of configure
33451# tests run on this system so they can be shared between configure
33452# scripts and configure runs, see configure's option --config-cache.
33453# It is not useful on other systems. If it contains results you don't
33454# want to keep, you may remove or edit it.
33455#
33456# config.status only pays attention to the cache file if you give it
33457# the --recheck option to rerun configure.
33458#
John Criswell0c38eaf2003-09-10 15:17:25 +000033459# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000033460# loading this file, other *unset* `ac_cv_foo' will be assigned the
33461# following values.
33462
33463_ACEOF
33464
33465# The following way of writing the cache mishandles newlines in values,
33466# but we know of no workaround that is simple, portable, and efficient.
Reid Spencera773bd52006-08-04 18:18:08 +000033467# So, we kill variables containing newlines.
John Criswell7a73b802003-06-30 21:59:07 +000033468# Ultrix sh set writes to stderr and can't be redirected directly,
33469# and sets the high bit in the cache file unless we assign to the vars.
Reid Spencera773bd52006-08-04 18:18:08 +000033470(
33471 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33472 eval ac_val=\$$ac_var
33473 case $ac_val in #(
33474 *${as_nl}*)
33475 case $ac_var in #(
33476 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33477echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33478 esac
33479 case $ac_var in #(
33480 _ | IFS | as_nl) ;; #(
33481 *) $as_unset $ac_var ;;
33482 esac ;;
33483 esac
33484 done
33485
John Criswell7a73b802003-06-30 21:59:07 +000033486 (set) 2>&1 |
Reid Spencera773bd52006-08-04 18:18:08 +000033487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33488 *${as_nl}ac_space=\ *)
John Criswell7a73b802003-06-30 21:59:07 +000033489 # `set' does not quote correctly, so add quotes (double-quote
33490 # substitution turns \\\\ into \\, and sed turns \\ into \).
33491 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000033492 "s/'/'\\\\''/g;
33493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Reid Spencera773bd52006-08-04 18:18:08 +000033494 ;; #(
John Criswell7a73b802003-06-30 21:59:07 +000033495 *)
33496 # `set' quotes correctly as required by POSIX, so do not add quotes.
Reid Spencera773bd52006-08-04 18:18:08 +000033497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
John Criswell7a73b802003-06-30 21:59:07 +000033498 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033499 esac |
33500 sort
33501) |
John Criswell7a73b802003-06-30 21:59:07 +000033502 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033503 /^ac_cv_env_/b end
John Criswell7a73b802003-06-30 21:59:07 +000033504 t clear
Reid Spencera773bd52006-08-04 18:18:08 +000033505 :clear
John Criswell7a73b802003-06-30 21:59:07 +000033506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33507 t end
Reid Spencera773bd52006-08-04 18:18:08 +000033508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33509 :end' >>confcache
33510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33511 if test -w "$cache_file"; then
33512 test "x$cache_file" != "x/dev/null" &&
33513 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33514echo "$as_me: updating cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033515 cat confcache >$cache_file
33516 else
Reid Spencera773bd52006-08-04 18:18:08 +000033517 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33518echo "$as_me: not updating unwritable cache $cache_file" >&6;}
John Criswell7a73b802003-06-30 21:59:07 +000033519 fi
33520fi
33521rm -f confcache
33522
33523test "x$prefix" = xNONE && prefix=$ac_default_prefix
33524# Let make expand exec_prefix.
33525test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33526
John Criswell7a73b802003-06-30 21:59:07 +000033527DEFS=-DHAVE_CONFIG_H
33528
John Criswell0c38eaf2003-09-10 15:17:25 +000033529ac_libobjs=
33530ac_ltlibobjs=
33531for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33532 # 1. Remove the extension, and $U if already installed.
Reid Spencera773bd52006-08-04 18:18:08 +000033533 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33534 ac_i=`echo "$ac_i" | sed "$ac_script"`
33535 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33536 # will be set to the directory where LIBOBJS objects are built.
33537 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33538 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
John Criswell0c38eaf2003-09-10 15:17:25 +000033539done
33540LIBOBJS=$ac_libobjs
33541
33542LTLIBOBJS=$ac_ltlibobjs
33543
33544
Reid Spencer2bc7bd52004-11-29 12:29:58 +000033545if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33546 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
33547Usually this means the macro was only invoked conditionally." >&5
33548echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
33549Usually this means the macro was only invoked conditionally." >&2;}
33550 { (exit 1); exit 1; }; }
33551fi
33552if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33553 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33554Usually this means the macro was only invoked conditionally." >&5
33555echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
33556Usually this means the macro was only invoked conditionally." >&2;}
33557 { (exit 1); exit 1; }; }
33558fi
John Criswell7a73b802003-06-30 21:59:07 +000033559
33560: ${CONFIG_STATUS=./config.status}
33561ac_clean_files_save=$ac_clean_files
33562ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33563{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33564echo "$as_me: creating $CONFIG_STATUS" >&6;}
33565cat >$CONFIG_STATUS <<_ACEOF
33566#! $SHELL
33567# Generated by $as_me.
33568# Run this file to recreate the current configuration.
33569# Compiler output produced by configure, useful for debugging
33570# configure, is in config.log if it exists.
33571
33572debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000033573ac_cs_recheck=false
33574ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000033575SHELL=\${CONFIG_SHELL-$SHELL}
33576_ACEOF
33577
33578cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033579## --------------------- ##
33580## M4sh Initialization. ##
33581## --------------------- ##
33582
33583# Be Bourne compatible
33584if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33585 emulate sh
33586 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000033587 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33588 # is contrary to our usage. Disable this feature.
33589 alias -g '${1+"$@"}'='"$@"'
Reid Spencera773bd52006-08-04 18:18:08 +000033590 setopt NO_GLOB_SUBST
33591else
33592 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
John Criswell7a73b802003-06-30 21:59:07 +000033593fi
Reid Spencera773bd52006-08-04 18:18:08 +000033594BIN_SH=xpg4; export BIN_SH # for Tru64
Reid Spencer2706f8c2004-09-19 23:53:36 +000033595DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000033596
John Criswell7a73b802003-06-30 21:59:07 +000033597
Reid Spencera773bd52006-08-04 18:18:08 +000033598# PATH needs CR
John Criswell7a73b802003-06-30 21:59:07 +000033599# Avoid depending upon Character Ranges.
33600as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33601as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33602as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33603as_cr_digits='0123456789'
33604as_cr_alnum=$as_cr_Letters$as_cr_digits
33605
33606# The user is always right.
33607if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000033608 echo "#! /bin/sh" >conf$$.sh
33609 echo "exit 0" >>conf$$.sh
33610 chmod +x conf$$.sh
33611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000033612 PATH_SEPARATOR=';'
33613 else
33614 PATH_SEPARATOR=:
33615 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000033616 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000033617fi
33618
Reid Spencera773bd52006-08-04 18:18:08 +000033619# Support unset when possible.
33620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33621 as_unset=unset
33622else
33623 as_unset=false
33624fi
John Criswell7a73b802003-06-30 21:59:07 +000033625
Reid Spencera773bd52006-08-04 18:18:08 +000033626
33627# IFS
33628# We need space, tab and new line, in precisely that order. Quoting is
33629# there to prevent editors from complaining about space-tab.
33630# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33631# splitting by setting IFS to empty value.)
33632as_nl='
33633'
33634IFS=" "" $as_nl"
33635
33636# Find who we are. Look in the path if we contain no directory separator.
33637case $0 in
33638 *[\\/]* ) as_myself=$0 ;;
33639 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +000033640for as_dir in $PATH
33641do
33642 IFS=$as_save_IFS
33643 test -z "$as_dir" && as_dir=.
33644 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33645done
Reid Spencera773bd52006-08-04 18:18:08 +000033646IFS=$as_save_IFS
John Criswell7a73b802003-06-30 21:59:07 +000033647
Reid Spencera773bd52006-08-04 18:18:08 +000033648 ;;
33649esac
33650# We did not find ourselves, most probably we were run as `sh COMMAND'
33651# in which case we are not to be found in the path.
33652if test "x$as_myself" = x; then
33653 as_myself=$0
33654fi
33655if test ! -f "$as_myself"; then
33656 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33657 { (exit 1); exit 1; }
33658fi
33659
33660# Work around bugs in pre-3.0 UWIN ksh.
33661for as_var in ENV MAIL MAILPATH
33662do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33663done
33664PS1='$ '
33665PS2='> '
33666PS4='+ '
33667
33668# NLS nuisances.
33669for as_var in \
33670 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33671 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33672 LC_TELEPHONE LC_TIME
John Criswell7a73b802003-06-30 21:59:07 +000033673do
Reid Spencera773bd52006-08-04 18:18:08 +000033674 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33675 eval $as_var=C; export $as_var
33676 else
33677 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33678 fi
33679done
33680
33681# Required to use basename.
33682if expr a : '\(a\)' >/dev/null 2>&1 &&
33683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33684 as_expr=expr
33685else
33686 as_expr=false
33687fi
33688
33689if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33690 as_basename=basename
33691else
33692 as_basename=false
33693fi
33694
33695
33696# Name of the executable.
33697as_me=`$as_basename -- "$0" ||
33698$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33699 X"$0" : 'X\(//\)$' \| \
33700 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33701echo X/"$0" |
33702 sed '/^.*\/\([^/][^/]*\)\/*$/{
33703 s//\1/
33704 q
33705 }
33706 /^X\/\(\/\/\)$/{
33707 s//\1/
33708 q
33709 }
33710 /^X\/\(\/\).*/{
33711 s//\1/
33712 q
33713 }
33714 s/.*/./; q'`
33715
33716# CDPATH.
33717$as_unset CDPATH
33718
33719
33720
John Criswell7a73b802003-06-30 21:59:07 +000033721 as_lineno_1=$LINENO
33722 as_lineno_2=$LINENO
John Criswell7a73b802003-06-30 21:59:07 +000033723 test "x$as_lineno_1" != "x$as_lineno_2" &&
Reid Spencera773bd52006-08-04 18:18:08 +000033724 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
John Criswell7a73b802003-06-30 21:59:07 +000033725
33726 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33727 # uniformly replaced by the line number. The first 'sed' inserts a
Reid Spencera773bd52006-08-04 18:18:08 +000033728 # line-number line after each line using $LINENO; the second 'sed'
33729 # does the real work. The second script uses 'N' to pair each
33730 # line-number line with the line containing $LINENO, and appends
33731 # trailing '-' during substitution so that $LINENO is not a special
33732 # case at line end.
John Criswell7a73b802003-06-30 21:59:07 +000033733 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Reid Spencera773bd52006-08-04 18:18:08 +000033734 # scripts with optimization help from Paolo Bonzini. Blame Lee
33735 # E. McMahon (1931-1989) for sed's syntax. :-)
33736 sed -n '
33737 p
33738 /[$]LINENO/=
33739 ' <$as_myself |
John Criswell7a73b802003-06-30 21:59:07 +000033740 sed '
Reid Spencera773bd52006-08-04 18:18:08 +000033741 s/[$]LINENO.*/&-/
33742 t lineno
33743 b
33744 :lineno
John Criswell7a73b802003-06-30 21:59:07 +000033745 N
Reid Spencera773bd52006-08-04 18:18:08 +000033746 :loop
33747 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
John Criswell7a73b802003-06-30 21:59:07 +000033748 t loop
Reid Spencera773bd52006-08-04 18:18:08 +000033749 s/-\n.*//
John Criswell7a73b802003-06-30 21:59:07 +000033750 ' >$as_me.lineno &&
Reid Spencera773bd52006-08-04 18:18:08 +000033751 chmod +x "$as_me.lineno" ||
33752 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
John Criswell7a73b802003-06-30 21:59:07 +000033753 { (exit 1); exit 1; }; }
33754
33755 # Don't try to exec as it changes $[0], causing all sort of problems
33756 # (the dirname of $[0] is not the place where we might find the
Reid Spencera773bd52006-08-04 18:18:08 +000033757 # original and so on. Autoconf is especially sensitive to this).
33758 . "./$as_me.lineno"
John Criswell7a73b802003-06-30 21:59:07 +000033759 # Exit status is that of the last command.
33760 exit
33761}
33762
33763
Reid Spencera773bd52006-08-04 18:18:08 +000033764if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33765 as_dirname=dirname
33766else
33767 as_dirname=false
33768fi
33769
33770ECHO_C= ECHO_N= ECHO_T=
33771case `echo -n x` in
33772-n*)
33773 case `echo 'x\c'` in
33774 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33775 *) ECHO_C='\c';;
33776 esac;;
33777*)
33778 ECHO_N='-n';;
John Criswell7a73b802003-06-30 21:59:07 +000033779esac
33780
Reid Spencera773bd52006-08-04 18:18:08 +000033781if expr a : '\(a\)' >/dev/null 2>&1 &&
33782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
John Criswell7a73b802003-06-30 21:59:07 +000033783 as_expr=expr
33784else
33785 as_expr=false
33786fi
33787
33788rm -f conf$$ conf$$.exe conf$$.file
Reid Spencera773bd52006-08-04 18:18:08 +000033789if test -d conf$$.dir; then
33790 rm -f conf$$.dir/conf$$.file
33791else
33792 rm -f conf$$.dir
33793 mkdir conf$$.dir
33794fi
John Criswell7a73b802003-06-30 21:59:07 +000033795echo >conf$$.file
33796if ln -s conf$$.file conf$$ 2>/dev/null; then
Reid Spencera773bd52006-08-04 18:18:08 +000033797 as_ln_s='ln -s'
33798 # ... but there are two gotchas:
33799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33801 # In both cases, we have to default to `cp -p'.
33802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
John Criswell7a73b802003-06-30 21:59:07 +000033803 as_ln_s='cp -p'
John Criswell7a73b802003-06-30 21:59:07 +000033804elif ln conf$$.file conf$$ 2>/dev/null; then
33805 as_ln_s=ln
33806else
33807 as_ln_s='cp -p'
33808fi
Reid Spencera773bd52006-08-04 18:18:08 +000033809rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33810rmdir conf$$.dir 2>/dev/null
John Criswell7a73b802003-06-30 21:59:07 +000033811
John Criswell0c38eaf2003-09-10 15:17:25 +000033812if mkdir -p . 2>/dev/null; then
33813 as_mkdir_p=:
33814else
Reid Spencer2706f8c2004-09-19 23:53:36 +000033815 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000033816 as_mkdir_p=false
33817fi
33818
Reid Spencera773bd52006-08-04 18:18:08 +000033819# Find out whether ``test -x'' works. Don't use a zero-byte file, as
33820# systems may use methods other than mode bits to determine executability.
33821cat >conf$$.file <<_ASEOF
33822#! /bin/sh
33823exit 0
33824_ASEOF
33825chmod +x conf$$.file
33826if test -x conf$$.file >/dev/null 2>&1; then
33827 as_executable_p="test -x"
33828else
33829 as_executable_p=:
33830fi
33831rm -f conf$$.file
John Criswell7a73b802003-06-30 21:59:07 +000033832
33833# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033834as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033835
33836# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000033837as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000033838
33839
John Criswell7a73b802003-06-30 21:59:07 +000033840exec 6>&1
33841
Reid Spencera773bd52006-08-04 18:18:08 +000033842# Save the log message, to keep $[0] and so on meaningful, and to
John Criswell7a73b802003-06-30 21:59:07 +000033843# report actual input values of CONFIG_FILES etc. instead of their
Reid Spencera773bd52006-08-04 18:18:08 +000033844# values after options handling.
33845ac_log="
Tanya Lattner01d3e382006-11-14 00:59:52 +000033846This file was extended by llvm $as_me 2.0cvs, which was
Reid Spencera773bd52006-08-04 18:18:08 +000033847generated by GNU Autoconf 2.60. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000033848
33849 CONFIG_FILES = $CONFIG_FILES
33850 CONFIG_HEADERS = $CONFIG_HEADERS
33851 CONFIG_LINKS = $CONFIG_LINKS
33852 CONFIG_COMMANDS = $CONFIG_COMMANDS
33853 $ $0 $@
33854
Reid Spencera773bd52006-08-04 18:18:08 +000033855on `(hostname || uname -n) 2>/dev/null | sed 1q`
33856"
33857
John Criswell7a73b802003-06-30 21:59:07 +000033858_ACEOF
33859
Reid Spencera773bd52006-08-04 18:18:08 +000033860cat >>$CONFIG_STATUS <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033861# Files that config.status was made for.
Reid Spencera773bd52006-08-04 18:18:08 +000033862config_files="$ac_config_files"
33863config_headers="$ac_config_headers"
33864config_commands="$ac_config_commands"
John Criswell7a73b802003-06-30 21:59:07 +000033865
Reid Spencera773bd52006-08-04 18:18:08 +000033866_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033867
33868cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033869ac_cs_usage="\
33870\`$as_me' instantiates files from templates according to the
33871current configuration.
33872
33873Usage: $0 [OPTIONS] [FILE]...
33874
33875 -h, --help print this help, then exit
33876 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000033877 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000033878 -d, --debug don't remove temporary files
33879 --recheck update $as_me by reconfiguring in the same conditions
33880 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033881 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000033882 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000033883 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000033884
33885Configuration files:
33886$config_files
33887
33888Configuration headers:
33889$config_headers
33890
John Criswellc764fbc2003-09-06 15:17:13 +000033891Configuration commands:
33892$config_commands
33893
John Criswell7a73b802003-06-30 21:59:07 +000033894Report bugs to <bug-autoconf@gnu.org>."
John Criswell7a73b802003-06-30 21:59:07 +000033895
Reid Spencera773bd52006-08-04 18:18:08 +000033896_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000033897cat >>$CONFIG_STATUS <<_ACEOF
33898ac_cs_version="\\
Tanya Lattner01d3e382006-11-14 00:59:52 +000033899llvm config.status 2.0cvs
Reid Spencera773bd52006-08-04 18:18:08 +000033900configured by $0, generated by GNU Autoconf 2.60,
33901 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
John Criswell7a73b802003-06-30 21:59:07 +000033902
Reid Spencera773bd52006-08-04 18:18:08 +000033903Copyright (C) 2006 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000033904This config.status script is free software; the Free Software Foundation
33905gives unlimited permission to copy, distribute and modify it."
Reid Spencera773bd52006-08-04 18:18:08 +000033906
33907ac_pwd='$ac_pwd'
33908srcdir='$srcdir'
33909INSTALL='$INSTALL'
John Criswell7a73b802003-06-30 21:59:07 +000033910_ACEOF
33911
33912cat >>$CONFIG_STATUS <<\_ACEOF
33913# If no file are specified by the user, then we need to provide default
33914# value. By we need to know if files were specified by the user.
33915ac_need_defaults=:
33916while test $# != 0
33917do
33918 case $1 in
33919 --*=*)
Reid Spencera773bd52006-08-04 18:18:08 +000033920 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33921 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000033922 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000033923 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033924 *)
John Criswell0c38eaf2003-09-10 15:17:25 +000033925 ac_option=$1
33926 ac_optarg=$2
33927 ac_shift=shift
33928 ;;
John Criswell7a73b802003-06-30 21:59:07 +000033929 esac
33930
John Criswell0c38eaf2003-09-10 15:17:25 +000033931 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000033932 # Handling of the options.
John Criswell0c38eaf2003-09-10 15:17:25 +000033933 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33934 ac_cs_recheck=: ;;
Reid Spencera773bd52006-08-04 18:18:08 +000033935 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33936 echo "$ac_cs_version"; exit ;;
33937 --debug | --debu | --deb | --de | --d | -d )
John Criswell7a73b802003-06-30 21:59:07 +000033938 debug=: ;;
33939 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000033940 $ac_shift
33941 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033942 ac_need_defaults=false;;
33943 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000033944 $ac_shift
33945 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000033946 ac_need_defaults=false;;
Reid Spencera773bd52006-08-04 18:18:08 +000033947 --he | --h)
33948 # Conflict between --help and --header
33949 { echo "$as_me: error: ambiguous option: $1
33950Try \`$0 --help' for more information." >&2
33951 { (exit 1); exit 1; }; };;
33952 --help | --hel | -h )
33953 echo "$ac_cs_usage"; exit ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000033954 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33955 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33956 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000033957
33958 # This is an error.
Reid Spencera773bd52006-08-04 18:18:08 +000033959 -*) { echo "$as_me: error: unrecognized option: $1
33960Try \`$0 --help' for more information." >&2
John Criswell7a73b802003-06-30 21:59:07 +000033961 { (exit 1); exit 1; }; } ;;
33962
Reid Spencera773bd52006-08-04 18:18:08 +000033963 *) ac_config_targets="$ac_config_targets $1"
33964 ac_need_defaults=false ;;
John Criswell7a73b802003-06-30 21:59:07 +000033965
33966 esac
33967 shift
33968done
33969
John Criswell0c38eaf2003-09-10 15:17:25 +000033970ac_configure_extra_args=
33971
33972if $ac_cs_silent; then
33973 exec 6>/dev/null
33974 ac_configure_extra_args="$ac_configure_extra_args --silent"
33975fi
33976
33977_ACEOF
33978cat >>$CONFIG_STATUS <<_ACEOF
33979if \$ac_cs_recheck; then
Reid Spencera773bd52006-08-04 18:18:08 +000033980 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33981 CONFIG_SHELL=$SHELL
33982 export CONFIG_SHELL
33983 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
John Criswell0c38eaf2003-09-10 15:17:25 +000033984fi
33985
John Criswell7a73b802003-06-30 21:59:07 +000033986_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000033987cat >>$CONFIG_STATUS <<\_ACEOF
33988exec 5>>config.log
33989{
33990 echo
33991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33992## Running $as_me. ##
33993_ASBOX
33994 echo "$ac_log"
33995} >&5
John Criswell7a73b802003-06-30 21:59:07 +000033996
Reid Spencera773bd52006-08-04 18:18:08 +000033997_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000033998cat >>$CONFIG_STATUS <<_ACEOF
33999#
Reid Spencera773bd52006-08-04 18:18:08 +000034000# INIT-COMMANDS
John Criswellc764fbc2003-09-06 15:17:13 +000034001#
Reid Spencerc0682832005-02-24 19:05:19 +000034002llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000034003
34004_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034005
John Criswell7a73b802003-06-30 21:59:07 +000034006cat >>$CONFIG_STATUS <<\_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034007
34008# Handling of arguments.
John Criswell7a73b802003-06-30 21:59:07 +000034009for ac_config_target in $ac_config_targets
34010do
Reid Spencera773bd52006-08-04 18:18:08 +000034011 case $ac_config_target in
34012 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
34013 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
34014 "include/llvm/ADT/hash_map") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
34015 "include/llvm/ADT/hash_set") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
34016 "include/llvm/ADT/iterator") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
34017 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerea949cf2006-08-16 00:45:38 +000034018 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034019 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
34020 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
34021 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
34022 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
34023 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
34024 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
34025 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034026 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034027 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
34028 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
34029 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
34030 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
34031 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
34032
John Criswell7a73b802003-06-30 21:59:07 +000034033 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34034echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34035 { (exit 1); exit 1; }; };;
34036 esac
34037done
34038
Reid Spencera773bd52006-08-04 18:18:08 +000034039
John Criswell7a73b802003-06-30 21:59:07 +000034040# If the user did not use the arguments to specify the items to instantiate,
34041# then the envvar interface is used. Set only those that are not.
34042# We use the long form for the default assignment because of an extremely
34043# bizarre bug on SunOS 4.1.3.
34044if $ac_need_defaults; then
34045 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34046 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000034047 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000034048fi
34049
John Criswell0c38eaf2003-09-10 15:17:25 +000034050# Have a temporary directory for convenience. Make it in the build tree
Reid Spencera773bd52006-08-04 18:18:08 +000034051# simply because there is no reason against having it here, and in addition,
John Criswell0c38eaf2003-09-10 15:17:25 +000034052# creating and moving files from /tmp can sometimes cause problems.
Reid Spencera773bd52006-08-04 18:18:08 +000034053# Hook for its removal unless debugging.
34054# Note that there is a small window in which the directory will not be cleaned:
34055# after its creation but before its name has been assigned to `$tmp'.
John Criswell7a73b802003-06-30 21:59:07 +000034056$debug ||
34057{
Reid Spencera773bd52006-08-04 18:18:08 +000034058 tmp=
34059 trap 'exit_status=$?
34060 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34061' 0
John Criswell7a73b802003-06-30 21:59:07 +000034062 trap '{ (exit 1); exit 1; }' 1 2 13 15
34063}
John Criswell7a73b802003-06-30 21:59:07 +000034064# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000034065
John Criswell7a73b802003-06-30 21:59:07 +000034066{
Reid Spencera773bd52006-08-04 18:18:08 +000034067 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000034068 test -n "$tmp" && test -d "$tmp"
34069} ||
34070{
Reid Spencera773bd52006-08-04 18:18:08 +000034071 tmp=./conf$$-$RANDOM
34072 (umask 077 && mkdir "$tmp")
John Criswell7a73b802003-06-30 21:59:07 +000034073} ||
34074{
John Criswell0c38eaf2003-09-10 15:17:25 +000034075 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000034076 { (exit 1); exit 1; }
34077}
34078
John Criswell7a73b802003-06-30 21:59:07 +000034079#
Reid Spencera773bd52006-08-04 18:18:08 +000034080# Set up the sed scripts for CONFIG_FILES section.
John Criswell7a73b802003-06-30 21:59:07 +000034081#
34082
34083# No need to generate the scripts if there are no CONFIG_FILES.
34084# This happens for instance when ./config.status config.h
Reid Spencera773bd52006-08-04 18:18:08 +000034085if test -n "$CONFIG_FILES"; then
John Criswell7a73b802003-06-30 21:59:07 +000034086
34087_ACEOF
34088
Reid Spencera773bd52006-08-04 18:18:08 +000034089
34090
34091ac_delim='%!_!# '
34092for ac_last_try in false false false false false :; do
34093 cat >conf$$subs.sed <<_ACEOF
34094SHELL!$SHELL$ac_delim
34095PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34096PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34097PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34098PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34099PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34100PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34101exec_prefix!$exec_prefix$ac_delim
34102prefix!$prefix$ac_delim
34103program_transform_name!$program_transform_name$ac_delim
34104bindir!$bindir$ac_delim
34105sbindir!$sbindir$ac_delim
34106libexecdir!$libexecdir$ac_delim
34107datarootdir!$datarootdir$ac_delim
34108datadir!$datadir$ac_delim
34109sysconfdir!$sysconfdir$ac_delim
34110sharedstatedir!$sharedstatedir$ac_delim
34111localstatedir!$localstatedir$ac_delim
34112includedir!$includedir$ac_delim
34113oldincludedir!$oldincludedir$ac_delim
34114docdir!$docdir$ac_delim
34115infodir!$infodir$ac_delim
34116htmldir!$htmldir$ac_delim
34117dvidir!$dvidir$ac_delim
34118pdfdir!$pdfdir$ac_delim
34119psdir!$psdir$ac_delim
34120libdir!$libdir$ac_delim
34121localedir!$localedir$ac_delim
34122mandir!$mandir$ac_delim
34123DEFS!$DEFS$ac_delim
34124ECHO_C!$ECHO_C$ac_delim
34125ECHO_N!$ECHO_N$ac_delim
34126ECHO_T!$ECHO_T$ac_delim
34127LIBS!$LIBS$ac_delim
34128build_alias!$build_alias$ac_delim
34129host_alias!$host_alias$ac_delim
34130target_alias!$target_alias$ac_delim
34131LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
34132subdirs!$subdirs$ac_delim
34133build!$build$ac_delim
34134build_cpu!$build_cpu$ac_delim
34135build_vendor!$build_vendor$ac_delim
34136build_os!$build_os$ac_delim
34137host!$host$ac_delim
34138host_cpu!$host_cpu$ac_delim
34139host_vendor!$host_vendor$ac_delim
34140host_os!$host_os$ac_delim
34141target!$target$ac_delim
34142target_cpu!$target_cpu$ac_delim
34143target_vendor!$target_vendor$ac_delim
34144target_os!$target_os$ac_delim
34145OS!$OS$ac_delim
34146LINKALL!$LINKALL$ac_delim
34147NOLINKALL!$NOLINKALL$ac_delim
34148LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
34149LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
34150ARCH!$ARCH$ac_delim
34151ENDIAN!$ENDIAN$ac_delim
34152CC!$CC$ac_delim
34153CFLAGS!$CFLAGS$ac_delim
34154LDFLAGS!$LDFLAGS$ac_delim
34155CPPFLAGS!$CPPFLAGS$ac_delim
34156ac_ct_CC!$ac_ct_CC$ac_delim
34157EXEEXT!$EXEEXT$ac_delim
34158OBJEXT!$OBJEXT$ac_delim
34159CPP!$CPP$ac_delim
34160GREP!$GREP$ac_delim
34161EGREP!$EGREP$ac_delim
34162LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
34163BUILD_CC!$BUILD_CC$ac_delim
34164BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
34165CVSBUILD!$CVSBUILD$ac_delim
34166ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
34167DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
Reid Spencer8b2e1412006-11-17 03:32:33 +000034168DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034169JIT!$JIT$ac_delim
34170TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
34171ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
34172ENABLE_THREADS!$ENABLE_THREADS$ac_delim
34173TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
Reid Spencer65c5d752006-11-05 17:08:18 +000034174ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034175EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
34176CXX!$CXX$ac_delim
34177CXXFLAGS!$CXXFLAGS$ac_delim
34178ac_ct_CXX!$ac_ct_CXX$ac_delim
34179LEX!$LEX$ac_delim
34180LEXLIB!$LEXLIB$ac_delim
34181LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
34182FLEX!$FLEX$ac_delim
34183YACC!$YACC$ac_delim
34184YFLAGS!$YFLAGS$ac_delim
34185BISON!$BISON$ac_delim
34186NM!$NM$ac_delim
34187ifGNUmake!$ifGNUmake$ac_delim
34188LN_S!$LN_S$ac_delim
34189CMP!$CMP$ac_delim
34190CP!$CP$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034191_ACEOF
34192
34193 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34194 break
34195 elif $ac_last_try; then
34196 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34197echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34198 { (exit 1); exit 1; }; }
34199 else
34200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
John Criswell7a73b802003-06-30 21:59:07 +000034201 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034202done
34203
34204ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34205if test -n "$ac_eof"; then
34206 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34207 ac_eof=`expr $ac_eof + 1`
34208fi
34209
34210cat >>$CONFIG_STATUS <<_ACEOF
34211cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34212/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34213_ACEOF
34214sed '
34215s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34216s/^/s,@/; s/!/@,|#_!!_#|/
34217:n
34218t n
34219s/'"$ac_delim"'$/,g/; t
34220s/$/\\/; p
34221N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34222' >>$CONFIG_STATUS <conf$$subs.sed
34223rm -f conf$$subs.sed
34224cat >>$CONFIG_STATUS <<_ACEOF
34225CEOF$ac_eof
34226_ACEOF
34227
34228
34229ac_delim='%!_!# '
34230for ac_last_try in false false false false false :; do
34231 cat >conf$$subs.sed <<_ACEOF
Reid Spencer8b2e1412006-11-17 03:32:33 +000034232DATE!$DATE$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034233FIND!$FIND$ac_delim
34234MKDIR!$MKDIR$ac_delim
34235MV!$MV$ac_delim
34236RANLIB!$RANLIB$ac_delim
34237RM!$RM$ac_delim
34238SED!$SED$ac_delim
34239TAR!$TAR$ac_delim
34240BINPWD!$BINPWD$ac_delim
34241GRAPHVIZ!$GRAPHVIZ$ac_delim
34242DOT!$DOT$ac_delim
34243GV!$GV$ac_delim
34244DOTTY!$DOTTY$ac_delim
34245PERL!$PERL$ac_delim
34246HAVE_PERL!$HAVE_PERL$ac_delim
34247INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34248INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34249INSTALL_DATA!$INSTALL_DATA$ac_delim
34250BZIP2!$BZIP2$ac_delim
34251DOXYGEN!$DOXYGEN$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034252GROFF!$GROFF$ac_delim
34253GZIP!$GZIP$ac_delim
34254POD2HTML!$POD2HTML$ac_delim
34255POD2MAN!$POD2MAN$ac_delim
34256RUNTEST!$RUNTEST$ac_delim
34257TCLSH!$TCLSH$ac_delim
34258ZIP!$ZIP$ac_delim
34259INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
34260INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
34261CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
34262CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
34263LIBADD_DL!$LIBADD_DL$ac_delim
34264ECHO!$ECHO$ac_delim
34265AR!$AR$ac_delim
34266STRIP!$STRIP$ac_delim
34267CXXCPP!$CXXCPP$ac_delim
34268F77!$F77$ac_delim
34269FFLAGS!$FFLAGS$ac_delim
34270ac_ct_F77!$ac_ct_F77$ac_delim
34271LIBTOOL!$LIBTOOL$ac_delim
34272ETAGSFLAGS!$ETAGSFLAGS$ac_delim
34273LLVMGCC!$LLVMGCC$ac_delim
34274LLVMGXX!$LLVMGXX$ac_delim
Reid Spencer1000b732006-12-01 00:37:14 +000034275HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
Reid Spencerb2ed05262006-11-03 18:04:08 +000034276HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
Reid Spencera773bd52006-08-04 18:18:08 +000034277ALLOCA!$ALLOCA$ac_delim
34278MMAP_FILE!$MMAP_FILE$ac_delim
34279LLVMCC1!$LLVMCC1$ac_delim
34280LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
34281LLVMGCCDIR!$LLVMGCCDIR$ac_delim
34282LLVMGCC_VERSION!$LLVMGCC_VERSION$ac_delim
34283LLVMGCC_MAJVERS!$LLVMGCC_MAJVERS$ac_delim
34284SHLIBEXT!$SHLIBEXT$ac_delim
34285LLVM_PREFIX!$LLVM_PREFIX$ac_delim
34286LLVM_BINDIR!$LLVM_BINDIR$ac_delim
34287LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
34288LLVM_DATADIR!$LLVM_DATADIR$ac_delim
34289LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
34290LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
34291LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
34292LLVM_INFODIR!$LLVM_INFODIR$ac_delim
34293LLVM_MANDIR!$LLVM_MANDIR$ac_delim
34294LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
34295LIBOBJS!$LIBOBJS$ac_delim
34296LTLIBOBJS!$LTLIBOBJS$ac_delim
34297_ACEOF
34298
Reid Spencer1000b732006-12-01 00:37:14 +000034299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 65; then
Reid Spencera773bd52006-08-04 18:18:08 +000034300 break
34301 elif $ac_last_try; then
34302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34303echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34304 { (exit 1); exit 1; }; }
34305 else
34306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34307 fi
34308done
34309
34310ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34311if test -n "$ac_eof"; then
34312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34313 ac_eof=`expr $ac_eof + 1`
34314fi
34315
34316cat >>$CONFIG_STATUS <<_ACEOF
34317cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34318/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34319_ACEOF
34320sed '
34321s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34322s/^/s,@/; s/!/@,|#_!!_#|/
34323:n
34324t n
34325s/'"$ac_delim"'$/,g/; t
34326s/$/\\/; p
34327N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34328' >>$CONFIG_STATUS <conf$$subs.sed
34329rm -f conf$$subs.sed
34330cat >>$CONFIG_STATUS <<_ACEOF
34331:end
34332s/|#_!!_#|//g
34333CEOF$ac_eof
34334_ACEOF
34335
34336
34337# VPATH may cause trouble with some makes, so we remove $(srcdir),
34338# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34339# trailing colons and then remove the whole line if VPATH becomes empty
34340# (actually we leave an empty line to preserve line numbers).
34341if test "x$srcdir" = x.; then
34342 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34343s/:*\$(srcdir):*/:/
34344s/:*\${srcdir}:*/:/
34345s/:*@srcdir@:*/:/
34346s/^\([^=]*=[ ]*\):*/\1/
34347s/:*$//
34348s/^[^=]*=[ ]*$//
34349}'
34350fi
34351
34352cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034353fi # test -n "$CONFIG_FILES"
34354
Reid Spencera773bd52006-08-04 18:18:08 +000034355
34356for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34357do
34358 case $ac_tag in
34359 :[FHLC]) ac_mode=$ac_tag; continue;;
34360 esac
34361 case $ac_mode$ac_tag in
34362 :[FHL]*:*);;
34363 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34364echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34365 { (exit 1); exit 1; }; };;
34366 :[FH]-) ac_tag=-:-;;
34367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34368 esac
34369 ac_save_IFS=$IFS
34370 IFS=:
34371 set x $ac_tag
34372 IFS=$ac_save_IFS
34373 shift
34374 ac_file=$1
34375 shift
34376
34377 case $ac_mode in
34378 :L) ac_source=$1;;
34379 :[FH])
34380 ac_file_inputs=
34381 for ac_f
34382 do
34383 case $ac_f in
34384 -) ac_f="$tmp/stdin";;
34385 *) # Look for the file first in the build tree, then in the source tree
34386 # (if the path is not absolute). The absolute path cannot be DOS-style,
34387 # because $ac_f cannot contain `:'.
34388 test -f "$ac_f" ||
34389 case $ac_f in
34390 [\\/$]*) false;;
34391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34392 esac ||
34393 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34394echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34395 { (exit 1); exit 1; }; };;
34396 esac
34397 ac_file_inputs="$ac_file_inputs $ac_f"
34398 done
34399
34400 # Let's still pretend it is `configure' which instantiates (i.e., don't
34401 # use $as_me), people would be surprised to read:
34402 # /* config.h. Generated by config.status. */
34403 configure_input="Generated from "`IFS=:
34404 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34405 if test x"$ac_file" != x-; then
34406 configure_input="$ac_file. $configure_input"
34407 { echo "$as_me:$LINENO: creating $ac_file" >&5
34408echo "$as_me: creating $ac_file" >&6;}
34409 fi
34410
34411 case $ac_tag in
34412 *:-:* | *:-) cat >"$tmp/stdin";;
34413 esac
34414 ;;
John Criswell7a73b802003-06-30 21:59:07 +000034415 esac
34416
Reid Spencera773bd52006-08-04 18:18:08 +000034417 ac_dir=`$as_dirname -- "$ac_file" ||
John Criswell7a73b802003-06-30 21:59:07 +000034418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034419 X"$ac_file" : 'X\(//\)[^/]' \| \
34420 X"$ac_file" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000034422echo X"$ac_file" |
Reid Spencera773bd52006-08-04 18:18:08 +000034423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34424 s//\1/
34425 q
34426 }
34427 /^X\(\/\/\)[^/].*/{
34428 s//\1/
34429 q
34430 }
34431 /^X\(\/\/\)$/{
34432 s//\1/
34433 q
34434 }
34435 /^X\(\/\).*/{
34436 s//\1/
34437 q
34438 }
34439 s/.*/./; q'`
34440 { as_dir="$ac_dir"
34441 case $as_dir in #(
34442 -*) as_dir=./$as_dir;;
34443 esac
34444 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell0c38eaf2003-09-10 15:17:25 +000034445 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034446 while :; do
34447 case $as_dir in #(
34448 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34449 *) as_qdir=$as_dir;;
34450 esac
34451 as_dirs="'$as_qdir' $as_dirs"
34452 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034453$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034454 X"$as_dir" : 'X\(//\)[^/]' \| \
34455 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034456 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000034457echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34459 s//\1/
34460 q
34461 }
34462 /^X\(\/\/\)[^/].*/{
34463 s//\1/
34464 q
34465 }
34466 /^X\(\/\/\)$/{
34467 s//\1/
34468 q
34469 }
34470 /^X\(\/\).*/{
34471 s//\1/
34472 q
34473 }
34474 s/.*/./; q'`
34475 test -d "$as_dir" && break
John Criswell0c38eaf2003-09-10 15:17:25 +000034476 done
Reid Spencera773bd52006-08-04 18:18:08 +000034477 test -z "$as_dirs" || eval "mkdir $as_dirs"
34478 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34479echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000034480 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000034481 ac_builddir=.
34482
Reid Spencera773bd52006-08-04 18:18:08 +000034483case "$ac_dir" in
34484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34485*)
John Criswell7a73b802003-06-30 21:59:07 +000034486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034487 # A ".." for each directory in $ac_dir_suffix.
34488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34489 case $ac_top_builddir_sub in
34490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34492 esac ;;
34493esac
34494ac_abs_top_builddir=$ac_pwd
34495ac_abs_builddir=$ac_pwd$ac_dir_suffix
34496# for backward compatibility:
34497ac_top_builddir=$ac_top_build_prefix
John Criswell7a73b802003-06-30 21:59:07 +000034498
34499case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034500 .) # We are building in place.
John Criswell7a73b802003-06-30 21:59:07 +000034501 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034502 ac_top_srcdir=$ac_top_builddir_sub
34503 ac_abs_top_srcdir=$ac_pwd ;;
34504 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell7a73b802003-06-30 21:59:07 +000034505 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034506 ac_top_srcdir=$srcdir
34507 ac_abs_top_srcdir=$srcdir ;;
34508 *) # Relative name.
34509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34510 ac_top_srcdir=$ac_top_build_prefix$srcdir
34511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell7a73b802003-06-30 21:59:07 +000034512esac
Reid Spencera773bd52006-08-04 18:18:08 +000034513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Reid Spencer2706f8c2004-09-19 23:53:36 +000034514
John Criswell7a73b802003-06-30 21:59:07 +000034515
Reid Spencera773bd52006-08-04 18:18:08 +000034516 case $ac_mode in
34517 :F)
34518 #
34519 # CONFIG_FILE
34520 #
John Criswell7a73b802003-06-30 21:59:07 +000034521
34522 case $INSTALL in
34523 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034524 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
John Criswell7a73b802003-06-30 21:59:07 +000034525 esac
John Criswell7a73b802003-06-30 21:59:07 +000034526_ACEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034527
34528cat >>$CONFIG_STATUS <<\_ACEOF
34529# If the template does not know about datarootdir, expand it.
34530# FIXME: This hack should be removed a few years after 2.60.
34531ac_datarootdir_hack=; ac_datarootdir_seen=
34532
34533case `sed -n '/datarootdir/ {
34534 p
34535 q
34536}
34537/@datadir@/p
34538/@docdir@/p
34539/@infodir@/p
34540/@localedir@/p
34541/@mandir@/p
34542' $ac_file_inputs` in
34543*datarootdir*) ac_datarootdir_seen=yes;;
34544*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34545 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34546echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34547_ACEOF
34548cat >>$CONFIG_STATUS <<_ACEOF
34549 ac_datarootdir_hack='
34550 s&@datadir@&$datadir&g
34551 s&@docdir@&$docdir&g
34552 s&@infodir@&$infodir&g
34553 s&@localedir@&$localedir&g
34554 s&@mandir@&$mandir&g
34555 s&\\\${datarootdir}&$datarootdir&g' ;;
34556esac
34557_ACEOF
34558
34559# Neutralize VPATH when `$srcdir' = `.'.
34560# Shell code in configure.ac might set extrasub.
34561# FIXME: do we really want to maintain this feature?
John Criswell7a73b802003-06-30 21:59:07 +000034562cat >>$CONFIG_STATUS <<_ACEOF
34563 sed "$ac_vpsub
34564$extrasub
34565_ACEOF
34566cat >>$CONFIG_STATUS <<\_ACEOF
34567:t
34568/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Reid Spencera773bd52006-08-04 18:18:08 +000034569s&@configure_input@&$configure_input&;t t
34570s&@top_builddir@&$ac_top_builddir_sub&;t t
34571s&@srcdir@&$ac_srcdir&;t t
34572s&@abs_srcdir@&$ac_abs_srcdir&;t t
34573s&@top_srcdir@&$ac_top_srcdir&;t t
34574s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34575s&@builddir@&$ac_builddir&;t t
34576s&@abs_builddir@&$ac_abs_builddir&;t t
34577s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34578s&@INSTALL@&$ac_INSTALL&;t t
34579$ac_datarootdir_hack
34580" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
John Criswell7a73b802003-06-30 21:59:07 +000034581
Reid Spencera773bd52006-08-04 18:18:08 +000034582test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34583 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34584 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34585 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34586which seems to be undefined. Please make sure it is defined." >&5
34587echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34588which seems to be undefined. Please make sure it is defined." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000034589
Reid Spencera773bd52006-08-04 18:18:08 +000034590 rm -f "$tmp/stdin"
John Criswell7a73b802003-06-30 21:59:07 +000034591 case $ac_file in
Reid Spencera773bd52006-08-04 18:18:08 +000034592 -) cat "$tmp/out"; rm -f "$tmp/out";;
34593 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
John Criswell7a73b802003-06-30 21:59:07 +000034594 esac
Reid Spencera773bd52006-08-04 18:18:08 +000034595 ;;
34596 :H)
34597 #
34598 # CONFIG_HEADER
34599 #
John Criswell7a73b802003-06-30 21:59:07 +000034600_ACEOF
34601
Reid Spencera773bd52006-08-04 18:18:08 +000034602# Transform confdefs.h into a sed script `conftest.defines', that
34603# substitutes the proper values into config.h.in to produce config.h.
34604rm -f conftest.defines conftest.tail
34605# First, append a space to every undef/define line, to ease matching.
34606echo 's/$/ /' >conftest.defines
34607# Then, protect against being on the right side of a sed subst, or in
34608# an unquoted here document, in config.status. If some macros were
34609# called several times there might be several #defines for the same
34610# symbol, which is useless. But do not sort them, since the last
34611# AC_DEFINE must be honored.
34612ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34613# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34614# NAME is the cpp macro being defined, VALUE is the value it is being given.
34615# PARAMS is the parameter list in the macro definition--in most cases, it's
34616# just an empty string.
34617ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34618ac_dB='\\)[ (].*,\\1define\\2'
34619ac_dC=' '
34620ac_dD=' ,'
John Criswell7a73b802003-06-30 21:59:07 +000034621
Reid Spencera773bd52006-08-04 18:18:08 +000034622uniq confdefs.h |
34623 sed -n '
34624 t rset
34625 :rset
34626 s/^[ ]*#[ ]*define[ ][ ]*//
34627 t ok
34628 d
34629 :ok
34630 s/[\\&,]/\\&/g
34631 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34632 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34633 ' >>conftest.defines
34634
34635# Remove the space that was appended to ease matching.
34636# Then replace #undef with comments. This is necessary, for
John Criswell7a73b802003-06-30 21:59:07 +000034637# example, in the case of _POSIX_SOURCE, which is predefined and required
34638# on some systems where configure will not decide to define it.
Reid Spencera773bd52006-08-04 18:18:08 +000034639# (The regexp can be short, since the line contains either #define or #undef.)
34640echo 's/ $//
34641s,^[ #]*u.*,/* & */,' >>conftest.defines
John Criswell7a73b802003-06-30 21:59:07 +000034642
Reid Spencera773bd52006-08-04 18:18:08 +000034643# Break up conftest.defines:
34644ac_max_sed_lines=50
34645
34646# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
34647# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
34648# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
34649# et cetera.
34650ac_in='$ac_file_inputs'
34651ac_out='"$tmp/out1"'
34652ac_nxt='"$tmp/out2"'
34653
34654while :
John Criswell7a73b802003-06-30 21:59:07 +000034655do
Reid Spencera773bd52006-08-04 18:18:08 +000034656 # Write a here document:
34657 cat >>$CONFIG_STATUS <<_ACEOF
34658 # First, check the format of the line:
34659 cat >"\$tmp/defines.sed" <<\\CEOF
34660/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
34661/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
34662b
34663:def
34664_ACEOF
34665 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034666 echo 'CEOF
Reid Spencera773bd52006-08-04 18:18:08 +000034667 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
34668 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
34669 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
34670 grep . conftest.tail >/dev/null || break
John Criswell7a73b802003-06-30 21:59:07 +000034671 rm -f conftest.defines
34672 mv conftest.tail conftest.defines
34673done
Reid Spencera773bd52006-08-04 18:18:08 +000034674rm -f conftest.defines conftest.tail
John Criswell7a73b802003-06-30 21:59:07 +000034675
Reid Spencera773bd52006-08-04 18:18:08 +000034676echo "ac_result=$ac_in" >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000034677cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000034678 if test x"$ac_file" != x-; then
Reid Spencera773bd52006-08-04 18:18:08 +000034679 echo "/* $configure_input */" >"$tmp/config.h"
34680 cat "$ac_result" >>"$tmp/config.h"
34681 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000034682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34683echo "$as_me: $ac_file is unchanged" >&6;}
34684 else
John Criswell7a73b802003-06-30 21:59:07 +000034685 rm -f $ac_file
Reid Spencera773bd52006-08-04 18:18:08 +000034686 mv "$tmp/config.h" $ac_file
John Criswell7a73b802003-06-30 21:59:07 +000034687 fi
34688 else
Reid Spencera773bd52006-08-04 18:18:08 +000034689 echo "/* $configure_input */"
34690 cat "$ac_result"
John Criswell7a73b802003-06-30 21:59:07 +000034691 fi
Reid Spencera773bd52006-08-04 18:18:08 +000034692 rm -f "$tmp/out12"
34693 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034694
Reid Spencera773bd52006-08-04 18:18:08 +000034695 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
34696echo "$as_me: executing $ac_file commands" >&6;}
34697 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000034698 esac
John Criswell7a73b802003-06-30 21:59:07 +000034699
Reid Spencera773bd52006-08-04 18:18:08 +000034700
34701 case $ac_file$ac_mode in
34702 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
34703 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
34704 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
34705 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
34706 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
34707 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
34708 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
34709 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
Reid Spencer8b2e1412006-11-17 03:32:33 +000034710 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
34711 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034712 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
34713 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
34714 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
34715 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
34716 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
34717 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
34718 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
34719 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
34720 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
34721 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
34722
34723 esac
34724done # for ac_tag
34725
John Criswell7a73b802003-06-30 21:59:07 +000034726
34727{ (exit 0); exit 0; }
34728_ACEOF
34729chmod +x $CONFIG_STATUS
34730ac_clean_files=$ac_clean_files_save
34731
34732
34733# configure is writing to config.log, and then calls config.status.
34734# config.status does its own redirection, appending to config.log.
34735# Unfortunately, on DOS this fails, as config.log is still kept open
34736# by configure, so config.status won't be able to write to it; its
34737# output is simply discarded. So we exec the FD to /dev/null,
34738# effectively closing config.log, so it can be properly (re)opened and
34739# appended to by config.status. When coming back to configure, we
34740# need to make the FD available again.
34741if test "$no_create" != yes; then
34742 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000034743 ac_config_status_args=
34744 test "$silent" = yes &&
34745 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000034746 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000034747 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000034748 exec 5>>config.log
34749 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34750 # would make configure fail if this is the last instruction.
34751 $ac_cs_success || { (exit 1); exit 1; }
34752fi
34753
John Criswell12399a12003-09-30 15:55:44 +000034754#
34755# CONFIG_SUBDIRS section.
34756#
34757if test "$no_recursion" != yes; then
34758
34759 # Remove --cache-file and --srcdir arguments so they do not pile up.
34760 ac_sub_configure_args=
34761 ac_prev=
Reid Spencera773bd52006-08-04 18:18:08 +000034762 eval "set x $ac_configure_args"
34763 shift
34764 for ac_arg
34765 do
John Criswell12399a12003-09-30 15:55:44 +000034766 if test -n "$ac_prev"; then
34767 ac_prev=
34768 continue
34769 fi
34770 case $ac_arg in
34771 -cache-file | --cache-file | --cache-fil | --cache-fi \
34772 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
34773 ac_prev=cache_file ;;
34774 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
34775 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
34776 | --c=*)
34777 ;;
34778 --config-cache | -C)
34779 ;;
34780 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
34781 ac_prev=srcdir ;;
34782 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
34783 ;;
34784 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
34785 ac_prev=prefix ;;
34786 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
34787 ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034788 *)
34789 case $ac_arg in
34790 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34791 esac
34792 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
John Criswell12399a12003-09-30 15:55:44 +000034793 esac
34794 done
34795
34796 # Always prepend --prefix to ensure using the same prefix
34797 # in subdir configurations.
Reid Spencera773bd52006-08-04 18:18:08 +000034798 ac_arg="--prefix=$prefix"
34799 case $ac_arg in
34800 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
34801 esac
34802 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
John Criswell12399a12003-09-30 15:55:44 +000034803
34804 ac_popdir=`pwd`
34805 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
34806
34807 # Do not complain, so a configure script can configure whichever
34808 # parts of a large source tree are present.
Reid Spencera773bd52006-08-04 18:18:08 +000034809 test -d "$srcdir/$ac_dir" || continue
John Criswell12399a12003-09-30 15:55:44 +000034810
Reid Spencera773bd52006-08-04 18:18:08 +000034811 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
34812 echo "$as_me:$LINENO: $ac_msg" >&5
34813 echo "$ac_msg" >&6
34814 { as_dir="$ac_dir"
34815 case $as_dir in #(
34816 -*) as_dir=./$as_dir;;
34817 esac
34818 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
John Criswell12399a12003-09-30 15:55:44 +000034819 as_dirs=
Reid Spencera773bd52006-08-04 18:18:08 +000034820 while :; do
34821 case $as_dir in #(
34822 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34823 *) as_qdir=$as_dir;;
34824 esac
34825 as_dirs="'$as_qdir' $as_dirs"
34826 as_dir=`$as_dirname -- "$as_dir" ||
John Criswell12399a12003-09-30 15:55:44 +000034827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000034828 X"$as_dir" : 'X\(//\)[^/]' \| \
34829 X"$as_dir" : 'X\(//\)$' \| \
Reid Spencera773bd52006-08-04 18:18:08 +000034830 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000034831echo X"$as_dir" |
Reid Spencera773bd52006-08-04 18:18:08 +000034832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34833 s//\1/
34834 q
34835 }
34836 /^X\(\/\/\)[^/].*/{
34837 s//\1/
34838 q
34839 }
34840 /^X\(\/\/\)$/{
34841 s//\1/
34842 q
34843 }
34844 /^X\(\/\).*/{
34845 s//\1/
34846 q
34847 }
34848 s/.*/./; q'`
34849 test -d "$as_dir" && break
John Criswell12399a12003-09-30 15:55:44 +000034850 done
Reid Spencera773bd52006-08-04 18:18:08 +000034851 test -z "$as_dirs" || eval "mkdir $as_dirs"
34852 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34853echo "$as_me: error: cannot create directory $as_dir" >&2;}
John Criswell12399a12003-09-30 15:55:44 +000034854 { (exit 1); exit 1; }; }; }
John Criswell12399a12003-09-30 15:55:44 +000034855 ac_builddir=.
34856
Reid Spencera773bd52006-08-04 18:18:08 +000034857case "$ac_dir" in
34858.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34859*)
John Criswell12399a12003-09-30 15:55:44 +000034860 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Reid Spencera773bd52006-08-04 18:18:08 +000034861 # A ".." for each directory in $ac_dir_suffix.
34862 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34863 case $ac_top_builddir_sub in
34864 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34865 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34866 esac ;;
34867esac
34868ac_abs_top_builddir=$ac_pwd
34869ac_abs_builddir=$ac_pwd$ac_dir_suffix
34870# for backward compatibility:
34871ac_top_builddir=$ac_top_build_prefix
John Criswell12399a12003-09-30 15:55:44 +000034872
34873case $srcdir in
Reid Spencera773bd52006-08-04 18:18:08 +000034874 .) # We are building in place.
John Criswell12399a12003-09-30 15:55:44 +000034875 ac_srcdir=.
Reid Spencera773bd52006-08-04 18:18:08 +000034876 ac_top_srcdir=$ac_top_builddir_sub
34877 ac_abs_top_srcdir=$ac_pwd ;;
34878 [\\/]* | ?:[\\/]* ) # Absolute name.
John Criswell12399a12003-09-30 15:55:44 +000034879 ac_srcdir=$srcdir$ac_dir_suffix;
Reid Spencera773bd52006-08-04 18:18:08 +000034880 ac_top_srcdir=$srcdir
34881 ac_abs_top_srcdir=$srcdir ;;
34882 *) # Relative name.
34883 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34884 ac_top_srcdir=$ac_top_build_prefix$srcdir
34885 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
John Criswell12399a12003-09-30 15:55:44 +000034886esac
Reid Spencera773bd52006-08-04 18:18:08 +000034887ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
John Criswell12399a12003-09-30 15:55:44 +000034888
34889
Reid Spencera773bd52006-08-04 18:18:08 +000034890 cd "$ac_dir"
John Criswell12399a12003-09-30 15:55:44 +000034891
34892 # Check for guested configure; otherwise get Cygnus style configure.
Reid Spencera773bd52006-08-04 18:18:08 +000034893 if test -f "$ac_srcdir/configure.gnu"; then
34894 ac_sub_configure=$ac_srcdir/configure.gnu
34895 elif test -f "$ac_srcdir/configure"; then
34896 ac_sub_configure=$ac_srcdir/configure
34897 elif test -f "$ac_srcdir/configure.in"; then
34898 # This should be Cygnus configure.
34899 ac_sub_configure=$ac_aux_dir/configure
John Criswell12399a12003-09-30 15:55:44 +000034900 else
34901 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
34902echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
34903 ac_sub_configure=
34904 fi
34905
34906 # The recursion is here.
34907 if test -n "$ac_sub_configure"; then
34908 # Make the cache file name correct relative to the subdirectory.
34909 case $cache_file in
34910 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
Reid Spencera773bd52006-08-04 18:18:08 +000034911 *) # Relative name.
34912 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000034913 esac
34914
Reid Spencera773bd52006-08-04 18:18:08 +000034915 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
34916echo "$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 +000034917 # The eval makes quoting arguments work.
Reid Spencera773bd52006-08-04 18:18:08 +000034918 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
34919 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
Reid Spencer2706f8c2004-09-19 23:53:36 +000034920 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000034921echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
34922 { (exit 1); exit 1; }; }
34923 fi
34924
Reid Spencera773bd52006-08-04 18:18:08 +000034925 cd "$ac_popdir"
John Criswell12399a12003-09-30 15:55:44 +000034926 done
34927fi
34928
Brian Gaekef3b24102003-11-16 18:38:14 +000034929